Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
sleep mode question
- 09-09-2007

Re: sleep mode question

SLEEP
Yes on the RB0 INT, but not on RA0.

Carefully read the datasheet on this stuff, it really matters. You have to
have INTE set to have it wake from SLEEP on the RB0 interrupt. GIE will
determine what happens after wakeup (next instruction or branch to ISR).
The instruction following sleep gets executed before anything else. READ
THE DATASHEET. :-)
BTW, you should be using something like a 16F88. It's basically pin
compatible, much cheaper and has way more features.

Re: sleep mode question
"Hayley" wrote

Microchip has several application notes with code examples to help you
get started.
AN528 Implementing Wake-Up on Keystroke
http://ww1.microchip.com/downloads/en/AppNotes/00528d.pdf
AN879 Using the Microchip Ultra Low-power Wake-up Module
http://ww1.microchip.com/downloads/en/AppNotes/00879C.pdf
This is for the PIC16F684, but you can use a similar approach with any PIC
supporting wake-up on pin change.
Regards,
-Bruce
http://www.rentron.com
Site Timeline
- » anyone know what's going on with oshonsoft?
- — Next thread in » Microcontroller Discussions
-
- » AT90USB dev kits
- — Previous thread in » Microcontroller Discussions
-
- » New(ish) assembler for PIC16 microcontrollers (asm1825)
- — Newest thread in » Microcontroller Discussions
-
- » (PDF) Essentials of Anatomy & Physiology 2nd Ed by Kenneth Saladin
- — The site's Newest Thread. Posted in » Electronics (Polish)
-
- » Cortex-Mx MCUs with SWD access locked
- — The site's Last Updated Thread. Posted in » Embedded Programming
-