Part Number: TMS320F28377S
I am using a TMS320F28377S and need to map an external PWM sync signal into EPwm1, with downstream PWMs sync'd to EPwm1.
EPwm1 is set to up-down count.
I have set the following registers / bits:
InputXbarRegs.INPUT5SELECT = 78; /* This maps GPIO78 to InputXBAR5. GPIO78 is configured as an input. */
EPwm1Regs.TBCTL.bit.PHSEN = TB_ENABLE; /* Enable counter load from TBPHS whne EPWM1SYNCI occurs. TBPHS SET TO 0 */
EPwm1Regs.TBCTL.bit.SYNCOSEL = TB_SYNC_IN; SYNCOUT = EPWM1SYNCI */
Given these settings, I do not appear to be able to sync to the external signal.
Are there any other registers or bits I need to set to ensure that InputXBAR5 is mapped to EXTSYNCIN1?
Thanks in advance for any insight.