Enable and disable PWM in software | Cypress Semiconductor
Enable and disable PWM in software
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.