SLAU847D October 2022 – May 2024 MSPM0L1105 , MSPM0L1106 , MSPM0L1227 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346 , MSPM0L2227 , MSPM0L2228 , MSPM0L2228-Q1
In TIMA only, asymmetric PWMs can be generated by generating two synchronized center-aligned PWM signals with a controlled phase shift. To generate the asymmetric PWM signals, the phase load feature is used as described in Section 23.2.2.5.
Asymmetric PWM Configuration
To generate asymmetric PWMs using compare match events from the counter:
Synchronize TIMA0 and TIMA1 using a cross trigger as described in Section 23.2.7.
Configure two center-aligned PWMs as described in Section 23.2.5.2.2 using TIMA0 and TIMA1. TIMA0 and TIMA1 should have the same load value (TIMA.LOAD) and compare value (TIMA.CC_xy[0/1]) to generate the same PWM frequency and duty cycle.
Add a phase shift value for TIMA0 or TIMA1 by configuring the phase load value TIMA.PL as described in Section 23.2.2.5.
Figure 23-31 shows an example of asymmetric PWM configuration using CCP channel 0 of TIMA0 and TIMA1.