SPRUHX5I August 2014 – May 2024 TMS320F28374S , TMS320F28375S , TMS320F28375S-Q1 , TMS320F28376S , TMS320F28377S , TMS320F28377S-Q1 , TMS320F28378S , TMS320F28379S
The time-base submodule can be configured for the following:
The Type 4 ePWM clocking varies from previous ePWM types. Prior to the Type 4 ePWM, the time-base submodule is clocked directly by the system clock (SYSCLKOUT). On this version of the ePWM, there is a divider (EPWMCLKDIV) of the system clock that defaults to EPWMCLK = SYSCLKOUT/2.
If required by the application code to update the TBCTR value through software while the TBCTR is counting, note that the time-base module needs at least 1 TBCLK cycle for the time-base related events to be realized. Hence, the TBCTR can be written with TBCTR = PRD-1 instead of TBCTR = PRD (in case the counter is counting up) and can be written as TBCTR = 1 instead of TBCTR = 0 (in case the counter is counting down) for the events to be realized.