I am facing the following problem:
I am using TMS320F28035.
I use an external sync signal (logic low) to sync EPWM4.
From the PWM waveforms created, I can tell that the EPWM4 is synced to that signal very well.
I want to use the sync status register, TBSTS, to get the sync status. However, the bit TBSTS.bit.SYNC is always 0 even when EPWM4 is synced.
Does anyone know why?
Thank you.
RE: 28035 EPWM datasheet Time-Base Status Register (TBSTS) Field Descriptions
15:3 Reserved Reserved.
2 CTRMAX (Read only)
1 SYNCI(R/W) Input Synchronization Latched Status
Writing a 0 will have no effect. Reading a 0 indicates no external synchronization event has occurred.
Reading a 1 on this bit indicates that an external synchronization event has occurred (EPWMxSYNCI).
Writing a 1 to this bit will clear the latched event.
0 CTRDIR (R)
0 Time-Base Counter is currently counting down.
1 Time-Base Counter is currently counting up.