Sleep until button press?


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2007
    Posts
    67

    Default Sleep until button press?

    I know there are tons of ways to do this, but I'm looking for the most simple and purely PicBasic way of doing this (without writing assembly interrupts and such)...

    - I need to put the PIC to sleep / low power mode for an unspecified time (perhaps days) then have it wake up when a button is pressed.

    - The wakeup can be a complete reset or resume at a specific spot - matters not to me, as the program will start fresh from the top after being waken. It'll do some stuff then eventually go back to sleep until minutes, hours, or days later the button is pressed again.


    I'm not looking for the code but rather a link please - I know this has already been discussed before but not having luck finding it. It does'nt have to even be an efficient way to do it. Just sleep, wait, and wake without ASM code. I did some searching and couldn't find anything specific.

    I'm running a 16F677 if it makes any difference.

    Thanks!

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. multi functions button press
    By malwww in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th May 2009, 00:12
  2. Using Sleep
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th August 2008, 04:05
  3. Button press and press & hold how to ?
    By GrandPa in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 22nd August 2007, 03:37
  4. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 02:43
  5. Code check -- button not working
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 2nd March 2006, 22:43

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