This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28388D: How use more PWM?

Part Number: TMS320F28388D

Good afternoon.

I'm interested in working with a PWM processor. It has sixteen PWM with 4 comparison counters. (Counter-Compare Submodule)
Tell me, is it possible to generate different frequencies on all outputs CTR = CMPA CTR = CMPB CTR = CMPC CTR = CMPD of all 16 PWMs?
Perhaps there are C libraries for working with all PWM and generating different frequencies.
Maybe you can tell me examples of working with such a large set of PWM.

The problem in my project is that the processor itself is loaded and there is no way to use a large number of interrupts.

  • Hi Sergey,

    The counter compare module does not determine the frequency of your PWM signal. This is controlled via the Time-base counter submodule. It is possible to have different frequencies of all of your PWM signals, but this would prevent you from keeping your PWMs synchronized with eachother.

    The CTR=CMPA and CTR=CMPB events can affect the output and control the duty cycle of your signal. The CMPC and CMPD events merely generate trigger events to perform an ADC conversion, however these trigger signals can be used elsewhere in the device for other purposes. On F28P65x, there is a capability for more counter events within a single period that affect the output to produce a more complicated signal.

    Perhaps I am misunderstanding your question, let me know if this clears things up for you.

    Thank you,

    Luke