Other Parts Discussed in Thread: CONTROLSUITE
Hello,
We purchased the DesignDRIVE Development Kit IDDK v2.2.1 and I have a question on the IDDK_PM_Servo_F2837x project.
With reference to the IDDK_PM_Servo_F2837x project, the file of IDDK_PM_Servo_F2837x.c contains the following statements in the interrupt function of MotorControlISR(void):
// ------------------------------------------------------------------------------
// Computed Duty and Write to CMPA register
// ------------------------------------------------------------------------------
EPwm1Regs.CMPA.bit.CMPA = (INV_PWM_HALF_TBPRD*svgen1.Ta)+INV_PWM_HALF_TBPRD;
EPwm2Regs.CMPA.bit.CMPA = (INV_PWM_HALF_TBPRD*svgen1.Tb)+INV_PWM_HALF_TBPRD;
EPwm3Regs.CMPA.bit.CMPA = (INV_PWM_HALF_TBPRD*svgen1.Tc)+INV_PWM_HALF_TBPRD;
WIth respect to the statements listed above, I cannot figure out the calculation logic between svgen1.Ta and CMPA.
It seems to be aqssociated with a symmetric switching scheme.
Please inform me some TI document that I can refer to in order to figure out the calculation logic between svgen1.Ta and CMPA.
Thank you for guidance.
G. Kim