TMS320F28377S: pwm sync

Part Number: TMS320F28377S

Tool/software:

we want to make pwm1 and pwm2 sync, which are 50khz

and pwm5--pwm12 sync,which are 18khz.

we configurate the pwm module as follows, but pwm7 and pwm8 not output pwm signal. once EPwm1Regs.TBCTL.bit.SYNCOSEL set to 0; it works ok.

my question is, how to make two sync ?

thanks

EPwm1Regs.TBCTL.bit.PHSEN = 0; 
EPwm1Regs.TBCTL.bit.PRDLD = TB_SHADOW;
EPwm1Regs.TBCTL.bit.SYNCOSEL = 1;

EPwm2Regs.TBCTL.bit.PHSEN = 1;
EPwm2Regs.TBCTL.bit.PRDLD = TB_SHADOW;
EPwm2Regs.TBCTL.bit.SYNCOSEL = 0;

EPwm5Regs.TBCTL.bit.PHSEN = 0;
EPwm5Regs.TBCTL.bit.PRDLD = TB_SHADOW;
EPwm5Regs.TBCTL.bit.SYNCOSEL = 1;

EPwm6Regs.TBCTL.bit.PHSEN = 1;
EPwm6Regs.TBCTL.bit.PRDLD = TB_SHADOW;
EPwm6Regs.TBCTL.bit.SYNCOSEL = 0;

EPwm7Regs.TBCTL.bit.PHSEN = 1;
EPwm7Regs.TBCTL.bit.PRDLD = TB_SHADOW;
EPwm7Regs.TBCTL.bit.SYNCOSEL = 0;

EPwm8Regs.TBCTL.bit.PHSEN = 1;
EPwm8Regs.TBCTL.bit.PRDLD = TB_SHADOW;
EPwm8Regs.TBCTL.bit.SYNCOSEL = 0;

  • Hi Jane,

    The expert is currently out of office until after the holidays. Please expect a delay in response. Thank you for your patience.

    Best Regards,

    Aishwarya

  • Hello Jane,

    Apologies for the extended delay. Are you still facing this issue? Has there been any change since the original post?

    To clarify, it sounds like you are trying to have two separate groups of synced PWMs, correct?

    1. PWM1 and PWM2 synced

    2. PWM5 thru PWM12 synced

    The TRM outlines the sync schemes which show that

    1. PWM2 can use EPWM1SYNCOUT as its sync source

    2. In order to sync PWM5 thru 12, you will need to use a common sync source such as EPWM4SYNCOUT

    Best Regards,

    Allison