SLAU846A June 2023 – October 2023 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1
TIMA provides the option of generating complimentary PWM outputs with deadband insertion (non-overlapping transitions in complimentary PWM signals) from a signal PWM reference signal. Deadband is useful for applications with half-bridge control to avoid shoot-through conditions, such as motor driver or inverter-based applications.
TIMA provides this optional feature on complimentary CCP output channels, such as TIMA0_C2 and TIMA0_C2N for a reference PWM signal on TIMA0 CCP output channel 2.
The deadband control register (TIMA.DBCTL) is programmed with the deadband mode and timing information. The deadband mode is Mode 0 or Mode 1, which can be selected using the M1_ENABLE bit, and the timing information to control the deadband width in TIMCLK cycles is selected by the RISEDELAY and FALLDELAY bit fields. See Table 25-18 for the configuration and relationship between deadband mode and deadband width settings.
Deadband Mode | Bitfield | Description | Counting Mode |
---|---|---|---|
Mode 0 | M1_ENABLE = 0 | RISEDELAY and FALLDELAY is applied with respect to the output generator signal's rising and falling edges to generate CCP and CCP complimentary signal | Any |
Mode 1 | M1_ENABLE = 1 |
| Up/down counting mode only |
Deadband timing equation and example
The equations for configuring RISEDELAY and FALLDELAY from TIMCLK frequency and deadband timing is shown in Equation 29 and Equation 30.
For example, if 400 ns of deadband is required when using a TIMCLK frequency of 80 MHz, and Mode 1 is used with center-aligned PWMs to generate equal deadband every PWM period, then RISEDELAY = FALLDELAY = (80 MHz) * (400 ns) = 32.
Complimentary PWM with Deadband Configuration
Configure a PWM output for an edge-aligned PWM (Section 25.2.5.2.1) or center-aligned PWM (Section 25.2.5.2.2) for any CCP output channel in TIMA.
Example 1 - Complimentary PWM outputs with deadband using edge-aligned PWM in down-counting mode
For edge-aligned PWM, Mode 0 can only be used for deadband insertion mode. See Figure 25-32 for inserting configurable deadband using down counting mode, TIMA output channel 0, and edge-aligned PWM. For center-aligned PWM, there are two modes, as shown in and Figure 25-33.Example 2- Complimentary PWM outputs with deadband using center-aligned PWM
For center-aligned PWM, Mode 0 or Mode 1 can be used for deadband insertion mode. See Figure 25-33For inserting configurable deadband using up/down counting mode, TIMA output channel 0, and center-aligned PWMs for both Mode 0 and Mode 1.