-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jan-Erik Soderholm wrote: > 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. [snip] Do you think you could just answer something that's been bugging me for a while? I've heard before that "inputs should never be floating, either make them outputs or put pull-resistors on them". Here's the problem: all the standard port pins are bidirectional, which means even those used as outputs "normally" will be inputs for a fraction of a second before the code has a chance to fix them. Does this mean that every output pin must carry a pull-resistor as well? That seems a little crazy, but it also seems like the only legitimate solution! Thanks, Chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: GnuPT 2.7.2 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEnzVb6ZGQ8LKA8nwRArH2AJ979mqhgPKUw89zImbDzW4t+Is3xwCguDs4 peB+Yg1HCm+tKzJwZ1J5kRg= =mBY2 -----END PGP SIGNATURE----- -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist