Forum: Mikrocontroller und Digitale Elektronik PIC10f3XX eating 20uA while in sleep mode at 3.7V


von pit (Gast)


Lesenswert?

I'm using the XC8 compiler. The following code is running:

#define _XTAL_FREQ 31000
#include <xc.h>

#pragma config CP=OFF,BOREN=0x00, WDTE=OFF
#pragma config PWRTE=ON, FOSC=INTOSC, MCLRE=OFF
#pragma config LVP=OFF, BORV=0x00, WRT=OFF//, IESO = OFF,FCMEN = OFF//ON

void main() {
    OSCCONbits.IRCF = 0b000;
    while(!OSCCONbits.LFIOFR);

    SLEEP();
    while(1){NOP();NOP();NOP();NOP();NOP();NOP();}
}

My multimeter tells me around 20uA. Nothing is connected to the 
PIC10F3XX, it is supplied by a Li-ion 3.7V battery. I know supplying it 
with more than 1.8V is not optimal but still I don't expect it to 
consume more than 5uA in sleep mode.

What do you think? Changing the ports does not change much.

von pit (Gast)


Lesenswert?

Könnte den Thread jemand in die PIC Kategorie verschieben?

von Peter (Gast)


Lesenswert?

- Enable internal PullUps
- Your Vdd is too high: Recommended voltage is 3.6V. See 
https://moodle.epfl.ch/pluginfile.php/1833321/mod_resource/content/1/vhdl_testbench_tutorial.pdf, 
page 157

von Peter (Gast)


Lesenswert?

Sorry, wrong table entry, your Vdd is ok.

von Peter (Gast)


Lesenswert?

And wrong link... i think need to SLEEP();

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.