PWM Capture
Overview
This sample provides an example application using the PWM API capture API to measure the period and pulse width of an external PWM signal.
Requirements
This sample requires the support of a timer IP compatible with pwm capture block.
Building and Running
west build -b lp_mspm0g3507 samples/drivers/pwm/capture west build -t run
Sample Output
PWM capture lp_mspm0g3507/mspm0g350 timclk 80000000 Hz {period:1000 pulse width: 499} in TIMCLK cycle {period: 80000.000000 Hz duty: 49.900002} <repeats endlessly>