AnsweredAssumed Answered

K20: Can the comparator reset PWM?

Question asked by Jan Rychter on Jun 8, 2014
Latest reply on Jun 10, 2014 by jeremyzhou

Is there any way to set up the comparator and FTM so that the comparator output acts as a PWM reset (e.g. does the same thing as when the counter reaches CnV)?

 

I'd like to generate two complementary PWM drive signals with dead-time insertion, but I'd like the actual duty time to be driven by the comparator. Having looked in the K20SFRM I found no way to do that (DMA came closest, but is too slow and doesn't solve the problem of loading a non-zero CnV value for the next cycle), but perhaps I missed something?

 

Would an external connection help? This is on a K20.

 

Any advice/hints appreciated!

Outcomes