Hey,

schau mal hier:

http://halvar.at/elektronik/kleiner_...er_entprellen/

Das muss PORTX = 1 heißen und nicht PINX = 1.