Enable and disable PWM in software

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

cross mob
DaHu_285096
Level 5
Level 5
10 likes received 250 replies posted 100 replies posted

 I set up a PWM with clock to drive a LED in hardware. I started the PWM and it runs fine.

   

I assumed I could use PWM_Start() and Stop to control control the PWM in software but the LEDs continue to blink after I issue the Stop API command.

   

To get it running, I put a constant "1" logic on Enable of the PWM. My guess is there is another logical function I could drop onto the enable and set it high or low in software. Is this correct and what component do I use.

   

Or, is there a better way to enable and disable the PWM in software.

   

 

   

Thanks

0 Likes
9 Replies