Good afternoon,'m developing a new project where I've severall peripherals in use such as RTC, BLE, Capsense, UART, PWM, ADC and I want to detect a power failure, put in sleep mode and then only keep update the RTC and check if the power is back again.
I've managed already the rtc using an interruption and external crystal timer, but when i try CySysPmDeepSleep(); it does not work properly.
Do you have any advice how to do it? is there already someone that did a similar thing?
Could you please elaborate a bit more on how are you planning to detect the power failure ? Also, can you attach your project for review and the functionality?