? about sleep/wake on pin change and WDT


Results 1 to 13 of 13

Threaded View

  1. #13
    Join Date
    Jan 2007
    Posts
    2


    Did you find this post helpful? Yes | No

    Default ultra low power

    just use a inline resistor and a cap to GND on the output of your switch.

    V+ --- [resistor, 10K?]----[reed switch]----[Capacitor from this line to GND]----pic I/O

    The cap will "store" the switch closure event so that when the unit wakes up it can tell the reed switch was closed while it was sleeping.

    The PIC can then, once it wakes up, flip the input bit to a grounded output to "reset" the circuit. Then just before SLEEP it can make the pin back into an input.

    Note that if the circuit board is damp or dirty and you don't reset the circuit on every wake up from sleep, that eventually the cap can charge up.

    The cap can be very small, 0.01uF (10nF) would work just fine. I tried to make
    a proper ascii schematic but this forum has no code mode that I can see.
    Last edited by dolphin42; - 25th January 2007 at 23:35.

Similar Threads

  1. saving RCREG to word
    By Macgman2000 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th September 2008, 13:51
  2. Changing 18F WDT postscaler on-the-fly
    By Bruce in forum Code Examples
    Replies: 4
    Last Post: - 1st August 2006, 21:09

Members who have read this thread : 0

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