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.

TMS320F28374D: PWM setting or clear output B immediately without chaning period - suggestion

Part Number: TMS320F28374D

HI eveybody ,

A PWM module has PWM_A and PWM_B outputs. Is there any way to disable (make it LOW) only PWM_B without changing duty cycle of the channel B? I see there is one option to do it by configuring AQ configurations, but it requires to update more than one registers. 

any suggestion ? can Trip zone make it ? 

best regards

Carlo

  •  Hi Carlo,

    Is the above waveform what you want ? Can you elaborate some more on your requirements. For example when would the PWMB be forced low, Do you expect it to come back after s few PWM cycles etc. Based on your requirements, we can explore the possible options.

    Regards,

    Srinivasa

  • Hi Srinivasa,

    Let me elaborate. 

    • PWM module uses complementary mode by using dead-band submodule.
    • Is there any submodule to control either make only one output PWM A or PWM B to LOW/HIGH without affecting the other output?
      • For example, PWM B output is complementary from the DB submodule. PWM A and PWM B outputs complementary pulses with 50% duty cycle. Now PWM A need to be LOW without making PWM B HIGH. PWM B should output the same 50% duty cycle pulses. 

    Is there any gating logic or making HIGH/LOW to control PWM A/B after DB?

    Thanks,

    Justin

  • After the DEADBAND module you have three options I can think of.

    1. TripZone: TZFRC

    2. CLB: This can 100 get the job done with additional custom logic. A simple design would be gating the Deadband module with an AND gate and SW control gate signal.

    3. GPIO Mux: Switch GPIO mux to point to GPIO instead of EPWMB. The GPIO is in Output/HIGH mode.