Hi Alaskan,

I suggest you go to www.microchip.com and download the datasheet on the 16F88 and learn about the chip. Pay particular attention to the part about analog versus digital I/O and comparators. You need to address these issues before your basic program will work. Also your individual TRIS statements can be setup as TRISA=%00000001 with PortA.0 being an input and the rest of PortA are outputs for example.

Next I would suggest that you spend a little time looking over this forum at some of the code examples and other peoples problem that are listed to get an idea as to how to write a program and troubleshoot problems. You're off to a decent start, but you can learn alot from this forum.

There's some great minds on this forum but they won't write your program for you. Don't get us wrong, this is YOUR PROJECT. You have to write it. When you get into a snag then ask for help. BUT the two most important things to have on hand is the PBP manual and the specific datasheet. If you don't have the PBP manual, then goto www.melabs.com and download a copy.

I've got to go to work now.

Have a nice day!

BobK.