Sleep Command


Closed Thread
Results 1 to 6 of 6

Thread: Sleep Command

  1. #1
    Join Date
    Oct 2007
    Posts
    8

    Smile Sleep Command

    Hi..i'm new here as well as a beginner in PICBasic Pro....

    I'm using PIC 16F84A and i tried use Sleep command for 1 minute (Sleep 60)..

    But after 1 minute it still sleep....any command for wake it up?

    Thanks a lot.....

  2. #2
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Do you have the WDT turned on when you load the program into the PIC?
    (Sleep 60 uses the Watch Dog Timer)
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  3. #3
    Join Date
    Oct 2007
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    Hi,

    I thought the WDT included in Sleep command.....

    How to add the WDT command? Can give me some examples..?

    Thanks a lot....

  4. #4
    Join Date
    Oct 2007
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    Hi,

    How I can wake it up anytime without WDT? Any extra command for this?

    Thanks a lot...

  5. #5
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Default

    >>How to add the WDT command?

    The WDT isn't really a command but a bit you select when you program the PIC. Just like you have to select HS or XS, you get to pick whether to enable or disable the WDT. These are usually selected using menus. Once you get the hang of these, you can add them to your program in this manner http://www.picbasic.co.uk/forum/showthread.php?t=543

    good luck
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  6. #6
    Join Date
    Oct 2007
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    Thanks Paul...

    I didnt notice the WDT got inside the IC Prog...

    How about without WDT to wake it up by giving 1 pulse to any port pins..? Can it works?

Similar Threads

  1. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 20:31
  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. Can I do this???
    By noobie in forum mel PIC BASIC
    Replies: 2
    Last Post: - 10th June 2006, 18:57
  4. Sleep command with 18F1220
    By suded in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 7th April 2005, 11:11
  5. SLEEP Command and Interupts 16F648A
    By ghoot in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 28th May 2004, 18:35

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