TIMER COMPARE EDGE COUNT

This example configures timer TIMG12_0 in edge count mode to detect a predefined number of rising edges (10) on the input pin.

This example uses GPIO Output pins to generate 10 rising edges. Connections to Timer Capture/Compare pins to GPIO Output pins documented in External Connections.

External Connections

Timer Capture Pin

GPIO Output Pin

PA26

PD7