This type of direction switching is quite common. It is needed in other aplicaions as well. For example when implementing a master mode IIC bus device in software. Take a look Microchips app note number AN615 for an example of what you want to do. ----- Original Message ----- From: brah To: Sent: Tuesday, September 05, 2000 2:36 PM 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