Thomas N wrote: > Hello everyone, > > How do I drive all the I/O ports of the PIC16F877 Micro to hi-impedance? I want to do this to save power before it put it to sleep! As somebody already mentioned, the main part of the answer is to set the pins as inputs - in other words, write 0xFF to all the TRIS registers. An additional trick to minimize power consumption is to make sure that the weak pullups on PORTB are turned off. Finally, you should also turn off the A/D converter. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body