How to make a 16f628 Sleep and Wakeup ?


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default Re: How to make a 16f628 Sleep and Wakeup ?

    Quote Originally Posted by andybarrett1 View Post
    Hi All

    Simple Question I know... But I cannot figure it out...

    Both Sleep and nap seem to be for short time durations.....???

    What I am looking for is basically an alarm function using the rtcxu.pbp code...

    The RTC to be running all the time... The PIC to wake up latch an alarm for X Seconds then go back to sleep.

    Ultimately saving me battery power.

    Originally I was thinking of using the Hours and Mins VARs as a trigger. But the PIC needs to be awake for this to happen !

    Arghhhhhhhhhh......... Hardware is easy ... Software not so.

    Any Ideas or links to examples help welcome. I have looked,

    Andy
    This could be an interesting project for me I can help with the software. Richard's pcf8563 and interrupts look good to me.

  2. #2
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: How to make a 16f628 Sleep and Wakeup ?

    Wake up once per second, check the time, if not alarm time go back to sleep.
    The time you are awake is so small, you are still asleep well over 99% of the time.

Similar Threads

  1. Watchdog periodic wakeup
    By jimbostlawrence in forum General
    Replies: 3
    Last Post: - 15th August 2012, 14:44
  2. Replies: 11
    Last Post: - 29th December 2010, 12:24
  3. Trying to add a sleep function or pretend to sleep
    By lilimike in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th May 2010, 20:10
  4. Please help me make an ASK Rx/Tx pair
    By financecatalyst in forum Schematics
    Replies: 0
    Last Post: - 7th February 2009, 21:58
  5. Replies: 1
    Last Post: - 12th May 2008, 15:33

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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