>I have connected a push-button switch >to ground and pulled up with a 10 k >resistor to +5V to get 0V input. >When I press on the button the whole >programm will be hangin and stops. Maybe RB6 is configured as output. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu