Shop OBEX P1 Docs P2 Docs Learn Events
Javelin Sleep Mode — Parallax Forums

Javelin Sleep Mode

4ish4ish Posts: 24
edited 2005-11-17 09:05 in General Discussion
Hey guys,

I've read the manual on parallax and the comparison sheet and both of them suggest there is no sleep mode for the Javelin. However running a google search gave me the following addresses which say the Javelin operates at 13 uA during sleep mode.

http://dkc3.digikey.com/PDF/T053/0352-0369.pdf
&
http://www.britishrobotics.com/P/what_is_basic_stamp.htm

I just wanted to confirm that the information on parallax itself is the correct one.

Also what can be done to add a sleep mode to the uController? Is there any circuit/IC peripheral that could do this?

Thanks a lot.

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-11-17 09:05
    The javelin has a nap() function.
    nap
    static void nap(int period)
    – Places the processor in a low power sleep state. All operations cease
    while the Javelin is napping.
    The Javelin Stamp can only call nap as a foreground process with no
    background processes running. Before calling this method, you must use
    VirtualPeripheral.removeItem to uninstall any VPs that are
    installed. See example below.
    The period argument can range from 0 to 7, depending on how long you want to the Javelin Stamp to nap
    (see below). However, the nap time is only approximate and should not be used for timing where accuracy is
    required. The primary reason you’ll use nap is to conserve power when operating the Javelin from batteries.

    Here are the values for the period argument:
    0 – 16 ms
    1 – 32 ms
    2 – 64 ms
    3 – 128 ms
    4 – 256 ms
    5 – 512 ms
    6 – 1024 ms
    7 – 2048 ms

    Example:
    System.out.println(“Time to take about a 2-second nap&#8221[noparse];)[/noparse];
    CPU.nap(7);

    regards peter

Sign In or Register to comment.