SLAAEL2 August 2025 MSPM0G1106 , MSPM0G1107 , MSPM0G1506 , MSPM0G1507 , MSPM0G1518 , MSPM0G1519 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0G3518 , MSPM0G3518-Q1 , MSPM0G3519 , MSPM0G3519-Q1 , MSPM0L1306
This subsystem example demonstrates how to vary the period and duty cycle of a Pulse Width Modulation (PWM) output based on inputs from a set of push buttons.
This subsystem example demonstrates using the two switches on the MSPM0 LaunchPadâ„¢ Development Kit to change the period and duty cycle of two PWM output channels. TIMA controls these channels with CC0 and CC1. Pressing switch S1 changes the PWM period of the timer. Pressing S2 changes the duty cycle on only the CC0 output. This example also demonstrates the use of a one-shot timer with an interrupt to handle input switch debouncing.