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;