long sleep


Closed Thread
Results 1 to 2 of 2

Thread: long sleep

  1. #1
    geselaw's Avatar
    geselaw Guest

    Talking long sleep

    Hi guys, I am new to this forum ,so I am going to ask a question

    I want my pic16f628 to sleep for the nigh(at least 6 hours). And resume in the morning without restarting. I have already used TMR1 for real time clock.


    My second question is ...there is one switch state that I want my pic to remember even if the power fails. any idea?

    I am glad to be a member ofthis forum and I hope there will be something that I can contribute.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    >> "I want my pic16f628 to sleep for the nigh(at least 6 hours). "

    SLEEP 21600

    see SLEEP command in Manual

    >> "...there is one switch state that I want my pic to remember even if the power fails"

    use the 16F628's integral EEPROM...

    see WRITE, READ and DATA in the Manual

Similar Threads

  1. High Resolution Timer & Speed Calculator
    By WOZZY-2010 in forum Code Examples
    Replies: 4
    Last Post: - 7th February 2010, 16:45
  2. 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
  3. Timer and long (hours) sleep period - how to?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th January 2007, 07:32
  4. 16F628A current high during sleep
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th October 2006, 10:21
  5. Wierd sleep issue
    By orca in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th March 2006, 22:06

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