Hi People, My problem may seem trivial compared to some of you expertise. I am 3 days old in my PIC career and am having problems with a project. I am trying to program a PIC16877 to read 2 potentiometers and the do an A/D conversion. I can get the pot and the A/D conversion no problem but what I am having problems doing is getting a switch to work so I can toggle each of the outputs separately and show them on the LED bank as a binary output. Could someone point me in the direction to find some code to help Thanking you all Scott Norrie -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.