Aug 23, 2021
10:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 23, 2021
10:02 PM
Hi,
I would like to use the PSoC® 4 PIN configured as analog PWM.
It all works very well until it goes to sleep. When the board wakes up from sleep, the PWM pin doesn’t works.
I have tried to re initialized the PWM pin with PWM2_Wakeup function (defined in the board library) but without success.
Any idea?
Thanks
Solved! Go to Solution.
Labels
- Labels:
-
PSoC 4 MCU
1 Solution
Aug 26, 2021
04:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 26, 2021
04:11 AM
The _Sleep() and _Wakeup are used when you send the device into sleep or deepsleep mode which you do not use. The CyDelay() function just suspends execution of the code by entering a loop. Interrupts will get handled in that time. Best would be to create a workspace bundle (Creator->File->) and attach this to your forum posts. will be much easier to understand what's going on.
Bob
7 Replies