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.

TMS320F28377D: CLB "Example 4 - PWM protection": How and where to enable and set the phase shift; where to change the duty cycles?

Part Number: TMS320F28377D
Other Parts Discussed in Thread: SYSCONFIG

Hi, 

With refrence to CLB "Example 4 - PWM protection" of TMS320F28377D (176 pins), I wish to modify this example to generate phase shifted PWMs with diffrent duty cycle for each module or PWM pair, e.g, 1A & 1B may be set to 40% while 2A and 2B may be set to 60%. I have gone through the training examples and I could not do the following for which I need your help:

1. On which pins (GPIOs) are the PWMs configured? If they are on 160 - 167, that is fine for me, otherwise where can I remap the pins in the project?

2. Where in the project can I change the duty cycle for each PWM?

3. How can I enable the phase shifts? Where in the project can I enable and change the phase shift for each PWM?

4. Where in the project can I change modify or remove the protection as this is not critical for the test I need the PWMs for?

Thanks in anticipation of your help.

  • Hi, 

    For getting started with epwm phase shift and duty cycle, you can look at these examples first:
    epwm_ex11_configure_signal(for phase shift) and epwm_ex13_up_aq(for changing duty cycle).

    1) You can remap the pins in the sysconfig in EPWM module under "PinMux" tab.

    4) There must be a variable called "mode" in clb example 4. You can set it to 0 to remove protection.

    Thanks and Regards,
    Masood.