SPRUJF2A March 2026 – March 2026 AM13E23019
The frequency of PWM events is controlled by the time-base period (TBPRD) register and the mode of the time-base counter. Figure 18-5 shows the period (Tpwm) and frequency (Fpwm) relationships for the up-count and up-down-count time-base counter modes when the period is set to 4 (TBPRD = 4). The time increment for each step is defined by the time-base clock (TBCLK) which is a prescaled version of the MCPWM clock (MCPWMCLK).
The time-base counter has two modes of operation selected by the time-base control register (TBCTL.CTRMODE):
Figure 18-5 Time-Base
Frequency and Period