long countdown timer, how to save power?


Results 1 to 30 of 30

Threaded View

  1. #12
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Open a new page in PBP and write only Define OSC 4, save it and compile.......................Anyway . . . just an idea.
    Wayyyyyy to many macro's to mess with to get that too work! But, it is an idea...if a guy has that sort of time!
    Power saving...there is an internal 31-ish khz backup to the backup to the backup oscillator (I think, don't have datasheets on hand, not ambitious enough to look them up).
    But it's not accurate enough to keep any time.
    Easiest thing in my mind is to get an 8pin RTC, DS1602 type and use that. Then you can put the PIC to sleep and have it wake itself up every roughly XX number of seconds using the WDT timer and the WDT prescaler.

    Internal oscillator does saves power, for comparisons sake, 2x the power.
    Running slowly saves power, say 4x the power.
    Putting it to sleep saves LOADS of power, say 1000x the power when compared to the other methods.
    In the circuit I'm playing with at the house: PIC18F4685 @ 40Mhz (10Mhz external plus 4xPLL) = about 45mA, like the datasheet says. Running it at 8Mhz internal OSC = about 20mA (little high, but close enough to the datasheet), run it on the 31Khz backup oscillator = roughly 5mA with nothing else going on (tight loop only)...
    BUT...put it to sleep and the mA doesn't even read. It bounces back and forth between zero and one mA.
    Last edited by skimask; - 18th June 2008 at 19:03.

Similar Threads

  1. High Resolution Timer & Speed Calculator
    By WOZZY-2010 in forum Code Examples
    Replies: 4
    Last Post: - 7th February 2010, 17:45
  2. Battery powered applications
    By NavMicroSystems in forum Off Topic
    Replies: 7
    Last Post: - 22nd June 2009, 08:12
  3. Replies: 5
    Last Post: - 24th February 2009, 19:55
  4. dual 7-segment countdown timer code
    By dr.ragh in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 30th April 2007, 14:19
  5. Long Timer
    By Tissy in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 1st November 2005, 18:24

Members who have read this thread : 0

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