Hi -
Each of the ePWM modules of the Concerto's C28x includes an EPWMx Link Register (EPWMXLINK). I am trying to use these registers to force the TBPRD in ePWM2 through ePWM6 to be written when ePWM1's is written. Here is a code snippet:
EPwm2Regs.EPWMXLINK.bit.TBPRDLINK = 2; // link TBPRD to ePWM1
EPwm3Regs.EPWMXLINK.bit.TBPRDLINK = 2; // link TBPRD to ePWM1
EPwm4Regs.EPWMXLINK.bit.TBPRDLINK = 2; // link TBPRD to ePWM1
EPwm5Regs.EPWMXLINK.bit.TBPRDLINK = 2; // link TBPRD to ePWM1
EPwm6Regs.EPWMXLINK.bit.TBPRDLINK = 2; // link TBPRD to ePWM1
EPwm1Regs.TBPRD = PWM_ONEHALF_PERIOD; // Set timer period
After the last statement (above) has executed, ePWM1's TBPRD contains the correct value, but none of the others have been written to. According to the manual, a simultaneous write to all of them should have occurred. Are there other setup conditions that are necessary for this operation to work?
Thanks,
Chuck