SDAA040 July 2025 MSPM0C1104
The PWM duty and period capture also can be realized with GPIO interrupt in software. The CPU interrupt can be generated on both GPIO falling and rising edge with GPIO First Event Publisher. The user can control the CPU timer action in the GPIO interrupt to capture PWM duty and period. The capture time order is described in the following sections. The software details are described in following chapters. To improve the capture accuracy, the timer must start or stop as soon as the GPIO interrupt enters to verify the short and equal SW delay between T1, T2, and T3. The time order of this PWM duty and period capture method is shown in Figure 2-3.