Config Pinx.N = Input '---> dadurch ist der Pin jetzt Input

Portx.N = 1 ' --> Dadurch hast du den Pull up gesetzt