Thanks everybody.. The common ground and pull-up resistors solved my problems. The code works but doesn't do anything useful as of yet... -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu