Sure, this kind of stuff happens all the time. I use this exact technique in a 16C84 project of mine. It should work fine. Note that it is often a good idea to make sure you have an R in series with the button, this limits ESD inrush currents. Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) ----- Original Message ----- From: brah To: Sent: Tuesday, September 05, 2000 8:36 AM Subject: [PIC]:Inputs & Outputs > I've read the discussions re port registers and latches where care has > to be taken, and I've noted the necessities. > However, I wonder if it is common, or even regular, to swap a pin from > input to output and back again repeatedly every mS or so. i.e. to have > a button and a led on the same pin - with resitors to protect the pin > being shorted to either pos or neg by the button, when it's an output. > Sort of multiplexed in-out. This would save a few pins on my project, > and maybe get it back from an 877 to an 876. > Thoughts on this would be appreciated. > Regards to all > Howard. > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics