TIMER CAPTURE DUAL CHANNEL EDGE CAPTURE
This example configures timer TIMG12_0 to measure the time from the start of the capture operation to the signal edge of 2 input channels.
Timer is configured in 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 rising edge after some delay. Connections to Timer Capture/Compare pins to GPIO Output pins documented in External Connections.
External Connections
Timer Capture Pin |
GPIO Output Pin |
|---|---|
PA26 |
PD7 |
PA4 |
PD6 |