Will RTC run while PSoC5 sleeps? | Cypress Semiconductor
Will RTC run while PSoC5 sleeps?
I'm having trouble finding the answer to this question. I've integrated the RtcDesign example code into my PSoC5 project. The seconds retreived from the RTC count up fine. But if I sleep for 10 seconds, the next seconds value retrieved is NOT 10 seconds later. It seems the RTC increment isn't happening during sleep.
I've changed "CyPmSleep" to "CyPmAltAct" as the only change, and the RTC continues. But that draws 7 times the power of sleep. I might be able to trim that if I research alt act more, but I'd rather use sleep if I can. Note that there are you tube videos out there from Cypress that talk about RTC, sleep, and are titled as applying to both PSoC3 and PSoC5. But nothing seems to apply to PSoC5.
I can't find an answer in the system reference, or architecture TRM, or CY8C55 family datasheet, or AN77900. Somewhere I read that the 32-kHz clock continues to run on the PSoC5 in sleep mode. But RTC isn't counting. I would hope that the max 16ms sleeptimer business in the PSoC5 might afford the RTC an opportunity to process an interrupt between repeated 16ms sleeps, and thus be able to keep counting????