Timer Practice — Capture and Measure
00:12:53
|
22 NOV 2024
The timer not only outputs PWM, but also captures the edge of the pulse and automatically records the moment of capture. This example will generate a PWM pulse on PA21, the frequency and duty cycle of the PWM can be modified by the serial assistant. The PA21 signal is captured by PA18 to measure the cycle and duty cycle.