This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

piccolo 28035 Time Base Status Register (TBSTS.bit.SYNC)

Other Parts Discussed in Thread: TMS320F28035

Hi all,

 

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.

 

Table 30. Time-Base Status Register (TBSTS) Field Descriptions

15:3 Reserved Reserved


2      CTRMAX (Read only)

1      SYNCI(R/W)  Input Synchronization Latched Status Bit 0

        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.