You need the following code to stop TCPWM, enter DeepSleep, then wake up with the wakeup event and restart TCPWM.
However, if you use CY8CKIT-145-40XX to blink LED4 (P2_0) with PWM and set it to DeepSleep, you can see that the DeepSleep current is large. If you do the following, the Deep Sleep current will be the specified value.
Alternatively, in the case of LED4 (P2_0), the above cord may not be necessary if a pull-up resistor is connected externally.
[Preparation for operation]
You need to prepare a tact switch and add it to P0_0 to connect.
[How to operate this project]
When you program and press SW1 (RST), LED4 (P2_0) is blinking.
1. You can push SW2 (P0_7) to stop TCPWM and put it in the Deep Sleep state.
2.It wakes up by pressing the tact switch (P0_0). And TCPWM will start working.
- PSoC 4 Architecture
Thank you very much for sharing your findings and project with the community 🙂
Rakshith M B