-
1. Re: Deep sleep cycling
user_14586677 Aug 13, 2015 11:16 AM (in response to dale.kramer)The part is woken up by the ISR and code execution then occurs.
These may be of some help -
http://www.cypress.com/?rID=78797 AN86233 - PSoC® 4 Low-Power Modes and Power Reduction Techniques
http://www.cypress.com/?rID=96072 AN90114 - PSoC® 4000 Family Low-Power System Design Techniques
http://www.cypress.com/?rID=110007 AN92584 - Designing for Low Power and Estimating Battery Life for BLE Applications
http://video.cypress.com/video-library/search/psoc+4+low+power/
http://www.cypress.com/?id=4&rID=94607 PSOC 4 SysTick
http://www.cypress.com/?id=5509 100 Projects in 100 Days with Bluetooth
Regards, Dana
-
2. Re: Deep sleep cycling
user_1377889 Aug 13, 2015 11:28 AM (in response to dale.kramer)There is only the watchdog timer running in deep-sleep, no normal timer. Use that as your interrupt source and you will be woken up as expected.
Bob
-
3. Re: Deep sleep cycling
dale.kramer Aug 13, 2015 11:32 AM (in response to dale.kramer):) too much info, most I have seen.
So, if it is woken by the ISR, shouldn't my code work?
-
4. Re: Deep sleep cycling
user_14586677 Aug 13, 2015 11:34 AM (in response to dale.kramer)Project 27, 38, 41 may help, see attached.
http://www.cypress.com/?id=5509 100 Projects in 100 Days with Bluetooth
Regards, Dana.
-
5. Re: Deep sleep cycling
dale.kramer Aug 13, 2015 1:12 PM (in response to user_1377889)Bob,
That was it! Just set WDT1 to 25ms with interrupt and then I only need code in main loop for WakeUp, Do Something, Go back to sleep for another 25ms:
while(1){
CySysClkEcoStop();
CySysPmDeepSleep();
CySysClkEcoStart(0);
RED_Write(0);
RED_Write(1);
}Not sure why direct into deep sleep and then empty main loop shows correct 1ua current and my code ups that to 11ua though.
1ua of that is the LED blip and the rest must be 12mhz PRoC active average over 25ms.
Thanks!!!
-
6. Re: Deep sleep cycling
user_14586677 Aug 13, 2015 12:23 PM (in response to dale.kramer)Here is a table from PSOC 4 Ap Note that shows generally speaking what is "alive" in
what modes, attached.
Regards, Dana.
-
7. Re: Deep sleep cycling
dale.kramer Aug 13, 2015 1:09 PM (in response to dale.kramer)Much better than the table I posted but I still would not have guessed only the WDT's were available in deep sleep
-
8. Re: Deep sleep cycling
user_1377889 Aug 13, 2015 1:41 PM (in response to dale.kramer)That's why they call it Deep Sleep. ;-)
Bob