SDAA028 June 2025 MSPM0C1104 , MSPM0C1105 , MSPM0C1106 , MSPM0G1106 , MSPM0G1107 , MSPM0G1506 , MSPM0G1507 , MSPM0G1518 , MSPM0G1519 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0G3518 , MSPM0G3518-Q1 , MSPM0G3519 , MSPM0G3519-Q1 , MSPM0H3216 , MSPM0L1306
To capture a fixed-frequency PWM duty cycle, an additional timeout timer running at the same frequency as the PWM can be used. This timer generates a timeout event when a 0% or 100% duty cycle occurs and then to detect high or low of the PWM signal.
Since the MSPM0 timer lacks an input signal state monitor register, other peripherals must be used to detect the signal state. The software flow for this application note is illustrated below:
Figure 2-1 Software Flow of Main Thread
Figure 2-2 TIMER1 ISR
Figure 2-3 TIMER3 ISR