nickelflippr
Member
Hey, I'm checking in to see if anyone has some ideas on my high PIC10F322 sleep current. In the past I've never had a problem getting sleep current down to a reasonable level of <30ua or much lower depending on the chip.
The app is running from a single 3.7V li-ion cell. And after going to sleep it is still reading 400ua! Some pertinent info, sorry no schematic.
CONFIG: OSC= INTOSC, BOREN = OFF, PWRTE = OFF, MCLRE= OFF, WDTEN = OFF, LVP = OFF
OSCCON set to 4Mhz
RA3 is being used a button input with a 10k pulldown resistor and bypassed with a 0.1 uf cap.
RA0 is being used as a PWM1 output.
RA1 and RA2 are unused and in a digital output state.
VREGCON,VREGPM1 bit is SET so it will be in low power mode during sleep
With the amount of current being used I'm thinking either the OSC is still trying to run at a high speed, or the internal voltage regulator is being used?
Tried setting OSCCON to LPINTOSC prior to sleep, no luck.
Also hooked up a lower battery at < 3.0V thinking the internal regulator would have no reason to regulate. No luck with that either, though the sleep current went down to 300ua.
I haven't worked with the 10f322 too much, so must be overlooking something obvious.
The app is running from a single 3.7V li-ion cell. And after going to sleep it is still reading 400ua! Some pertinent info, sorry no schematic.
CONFIG: OSC= INTOSC, BOREN = OFF, PWRTE = OFF, MCLRE= OFF, WDTEN = OFF, LVP = OFF
OSCCON set to 4Mhz
RA3 is being used a button input with a 10k pulldown resistor and bypassed with a 0.1 uf cap.
RA0 is being used as a PWM1 output.
RA1 and RA2 are unused and in a digital output state.
VREGCON,VREGPM1 bit is SET so it will be in low power mode during sleep
With the amount of current being used I'm thinking either the OSC is still trying to run at a high speed, or the internal voltage regulator is being used?
Tried setting OSCCON to LPINTOSC prior to sleep, no luck.
Also hooked up a lower battery at < 3.0V thinking the internal regulator would have no reason to regulate. No luck with that either, though the sleep current went down to 300ua.
I haven't worked with the 10f322 too much, so must be overlooking something obvious.