This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is it possible to vary the pulse width of a PWM in hardware?

I need to use a high speed PWM (> 500 kHz) in which I can vary the pulse width. In examples, it's handled in software which is too slow.

Is there any way to set a pin on a compare event and clear it on another? From the documentation I don't see how this would work. If it can't be done, do you plan on implementing this in a future version of the chip? Seems like a significant oversight.

Is there something I'm missing here?

Thanks

Colin

Related