PIC18F4520 Sleep mode power consumption w Int & Ext Osc


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191

    Post PIC18F4520 Sleep mode power consumption w Int & Ext Osc

    Hi All,

    I have one PIC18F4520 application running at 40MHz (10MHz XTAL, 4x PLL). To get more IO's, I thought to run PIC with internal clock (8MHz, 4x PLL). Everything works perfectly, until I tested sleep mode.

    Code:
    </i></font><b>ASM
        </b><font color="#008000">sleep
    </font><b>ENDASM</b>
    PIC goes to sleep, but current consumptions is much higher (~8x) than with 10MHz XTAL.
    40MHz: 0.85mA (XTAL)
    32MHz: 6.75mA (Int CLK)

    Differences between codes:
    Code:
    <code><font color="#000000"><b>DEFINE </b>OSC 40
    </code>
    Code:
    <code><font color="#000000"><b>DEFINE </b>OSC 32
    OSCCON=%11111100
    OSCTUNE.6=1
    </code>
    Differences in INC-file
    Code:
    __CONFIG    _CONFIG1H, _OSC_HSPLL_1H
    Code:
    __CONFIG    _CONFIG1H, _OSC_INTIO67_1H
    Any ideas how to recude power consumption?
    I tried to search forum and web, but no hits. Also I have read data sheet, but I was not able to find any help.

    BR,
    -Gusse-

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    When a PIC goes into sleep mode, the primarary oscillator is shut-down (internal or external).
    So it shouldn't matter what oscillator you are using.

    And in sleep mode, a 4520 should only draw 10uA or less. (about 1/1000th of what you are reading).

    Are you sure you didn't leave the WDT ON?
    Any interrupts enabled?

    There are several things you can turn off to get lower current in sleep mode, but none of them take 6 ma.
    <br>
    DT

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Clear OSCCON.7 so you aren't in power managed mode with peripherals still clocked during sleep.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Oh! Very nice.

    I did not see that.

    Good 1 Bruce.
    <br>
    DT

  5. #5
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Post Working!

    Thanks Bruce & Darrel, You are Awesome guys!

    After clearing OSCCON.7 it goes again to low power mode sleep with int osc
    0.85mA is system power consumption during PIC sleep. During sleep mode there are still several other parts, which consume power. Therefore value is so high.

    BR,
    -Gusse-

Similar Threads

  1. High Power Consumption in Sleep Mode
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 18th September 2014, 13:29
  2. Sleep power consumption
    By Nereus in forum mel PIC BASIC
    Replies: 1
    Last Post: - 12th January 2010, 09:43
  3. Pin won't stay high during Repeat...Until loop??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th August 2009, 23:57
  4. Won't go back to SLEEP after 1st Interrupt
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 29th June 2009, 09:00
  5. Battery powered applications
    By NavMicroSystems in forum Off Topic
    Replies: 7
    Last Post: - 22nd June 2009, 07:12

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts