Counting pulse width during sleep | Cypress Semiconductor
Counting pulse width during sleep
In an power sensitive application, I would like to count the pulsewidth of a signal on a GPIO Pin while the PSoC3 is in sleep. The resolution doesn't need to be very high so the ILO clock @ 1kHz is more than sufficient.
I have the system working without the sleep enabled, using either the component COUNTER and TIMER. But when entering sleep mode, using CyPMSleep(...), the counting process stops .
Note: with the first pin of the AND gate tied to "1" it doesn't work either.
Any suggestions how I can fix this?