SLEEP and NAP commands


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2004
    Posts
    34

    Default SLEEP and NAP commands

    I am working on one Battery Operated RF project with NRF24L01+ modules.
    I need to arrange as much as low current consumption for both side as TX and RX. I have no problem on TX side because I can put the module in Standby-I mode which pull 26uA and I can put the pic (16F1827) in low Current mode (sleep mode) also and wake up all together by pushing one button. The main problem is on the RX side. If I put the RX in low current mode it does not recive any information. For that reason I need to arrange a time division sleep and wakup system. I was thinking to open Timer interrupt but they are not working in sleep mode. The only way is to use external inputs but this is also impossible.
    It seems that there is only solution is to use Wdt or Sleep X or NAP x commands.

    I read that the sleep and Nap commans were using the wdt in order to wakeup. I tried some codes but I could not get success. For that reason I want to ask how that commans can be used? what are the conditions to use sleep x or Nap x commands.
    Related my question also I need to know how WDT Fuse must be arranged (WDT_ON or WDT_OFF)

    I will appreciate if somone reply my questions.

    Ero

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: SLEEP and NAP commands

    I always leave watchdog timer on. I use nap 0 to reduce current drain.

    start:
    nap 0
    if porta.1 = 1 then run
    goto start

    run:
    xxxxxxxxxxxxxxxxxx

Similar Threads

  1. Precision NAP or SLEEP
    By Zebryk in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th July 2013, 18:56
  2. NAP vs. SLEEP
    By AvionicsMaster1 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 8th August 2011, 19:47
  3. Nap and sleep commands
    By rusty99 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 27th August 2010, 08:16
  4. Sleep & nap
    By keymuu in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 4th December 2008, 18:45
  5. Sleep/Nap Low power consumption
    By George in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th March 2007, 06:19

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