PWM and sleep

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Pippolo
Level 1
Level 1
5 sign-ins First reply posted First question asked

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

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

View solution in original post

0 Likes
7 Replies