TIMER CAPTURE PERIOD

This example configures timer TIMG12_0 to measure the period of a PWM signal.

Timer is configured in Period capture mode, Down counting mode with period of 5s. Interrupts is configured to be generated on edge capture and zero event.

This example uses GPIO Output pins to generate PWM pulse. Connections to Timer Capture/Compare pins to GPIO Output pins documented in External Connections.

External Connections

Timer Capture Pin

GPIO Output Pin

PA3

PA27