PSoC 5 Sleep and Wakeup with PICU | Cypress Semiconductor
PSoC 5 Sleep and Wakeup with PICU
I was interested in understanding PSoC low power modes, so I searched the Cypress website and found AN77900 http://www.cypress.com/?rID=64554
I downloaded the example projects and was able to get them to work on the CY8CKIT-050. However, I then wanted to create my own project. The first thing I tried was puting the PSoC to sleep using a button, and then waking it up using that same button. This example is in the AN77900 project.
In my program, the PSoC seems to go to sleep, but it does not wakeup.
Here is the function that puts the PSoC to sleep and wakes it up:
/* Display mode. */
/* Start the button interrupt. */
/* Prepare for Sleep and enter it. */
/* The PSoC wakes up here. Clear wakeup interrupts. */
/* Stop the button interrupt. */
I think I set up the button and ISR the same as the example, but I seem to have missed something. Any ideas?