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.

tms320f2808 Pwm Trip zone force

Other Parts Discussed in Thread: TMS320F2808

hi,

I need to disable the pwm output for a few cycles and re-enable it synchronously with pwm rate. (i'm talking about tms320f2808 but I think tms3202833x should have the same PWM peripheral block)

I'm trying this solution:

I'm trying to use the "Trip-Zone Force Register" for to disable all PWM output in cycle by cycle mode (CBC).

I don't understand from datasheet what happen if I maintain the TZFRC register "high" for more than one PWM cycle. Is this register automatically reset to "low" at any pwm cycle? or if I hold this register to high the pwm output remain disabled until i manually put it "low"?

Can anyone help me?

Thanks a lot

G.F.

 

  • I believe in CBC mode PWM outputs will be activated at the beginning of a new cycle. If you need to keep outputs disabled for a number of cycles then you will need to utilize "one shot" feature where outputs remain disabled until you manually clear the TZ bit. Now, the issue with this method can be in maintaining synchronization as the PWM outputs will become active immediately after you clear the bit. You will need to check if that creates any issue for your application.

  • Dear Mohammed,

     my problem is exactly the pwm synchronization. Now I'm trying a reconfiguration of PWM module and a different use of the Action Qualifier submodule and Dead Band. The actual module configuration use  only CMPA register and Complementary Dead Band setting. I will try with double CMP register and with a proper dead band configuration as you suggest in  an other  discussion.

    http://e2e.ti.com/support/microcontrollers/tms320c2000_32-bit_real-time_mcus/f/171/p/21278/82295.aspx#82295

    thanks a lot.

    G.F.