Content originally posted in LPCWare by ktownsend on Fri Feb 26 03:31:58 MST 2010
Quote: rkiryanov
You cannot wake up with timer from deep sleep:
The LPC111x can wake up from Deep-sleep mode without the use of interrupts from peripherals by monitoring the inputs to the start logic (see Section 3–8.3).
Are you sure that means you can't wake up from a timer interrupt? The wording to me sounds like it's in addition to an interrupt (providing the block is enabled). I.e., you can use an interrupt ... but you can ALSO wake it up without an interrupt using one of the possible GPIO pins (GPIO0 and 1.1 or 1.0 off the top of my head, and I think any GPIO on the 1343). I'm really just guessing for some of this, though, since the UM isn't always very clear. I'm learning by trying everything out.
[B]Update:[/B] It seems you may be right (though I'll need to look into it a bit more). I can easily wakeup from a timer in sleep mode, but I haven't been able to do the same from deep sleep. I'll have to spend some more time in the UM and looking through some of the documentation from ARM to get a better sense of exactly what options you have, though. Can a timer be configured to change a pin state, and left running in deep-sleep, for example? Simple sleep mode doesn't really offer enough power savings to be useful to me. I can always find a HW method to toggle the external WAKEUP pin every x seconds, and go into power down mode for the lowest possible power, but this is exactly what I was hoping to avoid since I wanted to be able to control the deep-sleep/wakeup purely from SW.
[B]Update 2:[/B] It seems you can indeed wakeup from a timer (otherwise, you may as well just go directly to deep power down) ... you can use the watchdog oscillator to driver the timer, and with a timer match toggle the GPIO to wake the device. I'm going to test it now, but that should work well for me.