• AVR Freaks

Hot!12F675 - High current in SLEEP mode

Author
romiadam
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2009/02/02 15:18:02
  • Location: 0
  • Status: offline
2019/01/19 11:49:02 (permalink)
0

12F675 - High current in SLEEP mode

Hi
I got a message Access Denied, when I wanted to post the thread (pure text), so I must to save it as a picture (no comment).
 
Can you please read the problem on attached picture?
 
Thank you.

Attached Image(s)

#1

5 Replies Related Threads

    romiadam
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2009/02/02 15:18:02
    • Location: 0
    • Status: offline
    Re: 12F675 - High current in SLEEP mode 2019/01/19 13:55:33 (permalink)
    0
    EDIT:
    By the time I tried to use 32,768kHz external crystal. The Run mode current dropped from 1.125mA to 0.85mA, but the SLEEP mode still use 0.35 mA. It has not changed.
    #2
    romiadam
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2009/02/02 15:18:02
    • Location: 0
    • Status: offline
    Re: 12F675 - High current in SLEEP mode 2019/01/19 20:22:20 (permalink)
    0
    The issue is sorted.
    #3
    qhb
    Superb Member
    • Total Posts : 9999
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: 12F675 - High current in SLEEP mode 2019/01/19 23:59:45 (permalink)
    0
    How?
     

    Nearly there...
    #4
    Howard Long
    Super Member
    • Total Posts : 744
    • Reward points : 0
    • Joined: 2005/04/04 08:50:32
    • Status: offline
    Re: 12F675 - High current in SLEEP mode 2019/01/21 14:45:35 (permalink)
    0
    Using the code below, I measure these sleep currents: ~0.75nA at 5v, 0.41nA at 3v and 0.31nA at 2v (measured on a Keithley 236 SMU).
     
    Run currents are 37uA, 20uA and 12uA respectively with a 32.768kHz crystal.
     
    Video will be here in a few minutes: https://youtu.be/g-tZLRBfds8
     
    Edit: video re-uploaded as it was corrupted part way through.
     


    // PIC12F675 Configuration Bit Settings
    // 'C' source line config statements
    // CONFIG
    //#pragma config FOSC = INTRCCLK // Oscillator Selection bits (INTOSC oscillator: CLKOUT function on GP4/OSC2/CLKOUT pin, I/O function on GP5/OSC1/CLKIN)
    #pragma config FOSC = LP // Oscillator Selection bits (LP oscillator: Low power crystal on GP4/OSC2/CLKOUT and GP5/OSC1/CLKIN)
    #pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT disabled)
    #pragma config PWRTE = OFF // Power-Up Timer Enable bit (PWRT disabled)
    #pragma config MCLRE = ON // GP3/MCLR pin function select (GP3/MCLR pin function is MCLR)
    #pragma config BOREN = OFF // Brown-out Detect Enable bit (BOD disabled)
    #pragma config CP = OFF // Code Protection bit (Program Memory code protection is disabled)
    #pragma config CPD = OFF // Data Code Protection bit (Data memory code protection is disabled)
    // #pragma config statements should precede project file includes.
    // Use project enums instead of #define for ON and OFF.
    #include <xc.h>
    #define _XTAL_FREQ 32768
    int main(void)
    {
    TRISIO=0;
    WPU=0;
    GPIO=0;
    ANSEL=0;

    while (1)
    {
    // Twiddle a GPIO so we can see it's about to go into sleep
    GPIObits.GP2=1;
    __delay_ms(500);
    GPIObits.GP2=0;
    __delay_ms(500);
    GPIObits.GP2=1;
    __delay_ms(2000);
    GPIObits.GP2=0;
    SLEEP();
    NOP();
    }
    return 0;
    }

    post edited by Howard Long - 2019/01/27 04:26:27
    #5
    piticbogdan
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2018/12/02 17:58:02
    • Location: 0
    • Status: online
    Re: 12F675 - High current in SLEEP mode 2020/01/14 19:29:34 (permalink)
    0
    what about the Voltage reference power down and the Comparator off ?
    #6
    Jump to:
    © 2020 APG vNext Commercial Version 4.5