That current sure is high. Typical spec is under 2uA. What current is your battery voltage divider drawing? To minimize that current you need to switch it out somehow (P chan VFET with OC pin driving gate that pulls up to vbatt). Are your outputs pulling against any pullups? If so, you have to make the pin the same level as the pullup when you sleep. What current do you get when you have the PIC alone, not connected to anything else but it's crystal (but with inputs terminated)? How are you waking it up? Is there a current path there? Could you get away with shutting the whole thing off an thereby dump your regulator current too? What crystal frequency are you using? And you're sure it's off? What VCC? What about board leakage due to wrong choice of flux/failure to clean? I have found that some 'no clean' fluxes are quite resistive in fact. If you want the lowest possible leakage, make sure you clean the board thoroughly and then conformal coat it. As for the analog pins, leaving them as input is fine, assuming the PIC still has VCC>. Switch the multiplexer to an unused channel to remove any possible leakage through the pin. Robert Bruce Partridge wrote: > > More information: > > I'm using a 16F819 and drawing 125 uA during sleep. The regulator is 50uA, > and the only other component is the op amp which should be <5uA when > shutdown. ADC, BOR, LVP, PWM are all shutdown. All other pins are outputs > and are set to 0. > > VCC is tied to VREF+ at 4V. > > Bruce Partridge > http://www.rebreather.ca > > > -----Original Message----- > > From: pic microcontroller discussion list > > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Bruce Partridge > > Sent: Sunday, February 08, 2004 11:45 AM > > To: PICLIST@MITVMA.MIT.EDU > > Subject: [PIC:] Reducing current in sleep > > > > > > I have two pins that are analog attached to my pic. What is the > > best state > > to put them in to reduce current during sleep. > > > > One pin will have a low voltage for the output of an op-amp that is > > shutdown. > > > > The other pin is a voltage divider from VBAT that I use to monitor the > > battery. It will be sitting between 2 and 4 volts. > > > > Bruce Partridge > > http://www.rebreather.ca -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.