I disabled the interrupts which were from a different source but I noticed current doesn't change much with capsense polling period increased. The only way to reduce current significantly seems to be with deep sleep. Is there a way to use capsense with deep sleep between polling? Using 1s RTC to wake up seems too slow to poll for touch.
There is a PSoC4 Low power CapSense Appnote (http://www.cypress.com/file/230796/download) that can be used as reference for PSoC 6.
Basically you go into DeepSleep and periodically wake up by WDT interrupt and start the scan. Then you wait in sleep mode until the CapSense interrupt is generated (scan finished) to process the data (CapSense_ProcessAllWidgets() and user defined actions). After that you go back to DeepSleep again and wait for the next WDT interrupt.
I am running capsense on CM0 and I cannot get any interrupts for WDT or MCWDT when I am in deep sleep. I tried the simple WDT and MCWDT examples which are all for CM4 and I get the same result. I copy all the code from CM4 to CM0 and change interrupt assignment to CM0 vector 3. Do you know what is the problem?
I need to change interrupt enable code from
It works now, thanks.