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.

CCS/F28M36P63C2: Setting ePWM output pin to defined state at once / at the same time by Software

Part Number: F28M36P63C2


Tool/software: Code Composer Studio

Hello,

in the project I am currently working on, it is required to start PWMs at the same time and to stop PWMs at the same time. All 12 ePWM modules are used.

PWM signals shall have a period of 20µs.

For a single ePWM module it is possible to set output pins to a certain state by using e.g. trip zone module.

But, if forcing trip zones in a loop for all 12 ePWM modules, it takes some time and PWM pins are not changing at the same time. Like in the screenshot below.

Is there a way to force ePWM output pins to a certain state at the same time by SW?

How would the procedure look like?

  

Best regards,

Karl-Heinz

  • Hi,

    But, if forcing trip zones in a loop for all 12 ePWM modules, it takes some time and PWM pins are not changing at the same time. Like in the screenshot below.

    Is there a way to force ePWM output pins to a certain state at the same time by SW?

    I don't think it is possible to force all the EPMs to a state through software tripping. I think it is better to use the external trip signal for the same.

    Although you can try switching off the TBCLK to all the PWMs at the same time. I am not sure if this will force all the pins to same state or if it will retain the previous state. I will also check this at my end and will let you know.

    Thanks

    Vasudha

  • Hello Vasudha,

    thanks for your feedback!

    I will check, if switching off TBCLK works for me.

    Best regards,

    Karl-Heinz