kravnus wolf wrote : > My experience with PIC sleep has been quite > interesting. When I executed the sleep instruction, > the system was still draining about 0.40mA. At times > it would take up more...... > After reading the article on the PICLIST, I found that > the output pins MUST not float or it would drain > power. Are you talking about pins configured as *inputs* ? If so, they should never float, sleeping or not. > After setting all pins as output and latch them to > low. The power consumption is well below. 0.00mA(from > my fluke). Setting them to high would probably work just as well. The important thing is that they are set as outputs (or tied high or low externaly using 100K-1M ohm. > Just sharing my experience. That's fine of course. It's just that it's fairy common knowledge. You should never leave a CMOS input floating, doesn't matter if it's a PIC or any other CMOS device. They are very high impedance inputs and will pick up any electrical fields fom "the air" like an antenna, such as 50/60 Hz mains interference. I just checked a couple of data sheets (628A and 877A) and there are recomendations about this issue. Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist