SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
The TBCLKSYNC bit in the peripheral clock enable registers allows all users to globally synchronize all enabled ePWM modules to the time-base clock (TBCLK). When set, all enabled ePWM module clocks are started with the first rising edge of TBCLK aligned. For synchronized TBCLKs, the prescalers for each ePWM module must be set identically.
The proper procedure for enabling ePWM clocks is as follows:
In a multicore environment, GTBCLKSYNC can be used to override the core-specific TBCLKSYNC. When GTBCLKSYNC is set, TBCLKSYNC is ignored in all cores and therefore clearing or setting the TBCLKSYNC has no affect. If this feature is not required, GTBCLKSYNC must be cleared. In a multicore environment where different ePWM modules are assigned to different cores, the GTBCLKSYNC bit can be used to enable and disable the Time-Base clock of all ePWM modules simultaneously.