This example shows how to configure TCB for input capture, triggered by a change on
the input of the I/O port pin, PC5.
- Configure TCB with the desired
frequency and period
- Configure asynchronous event channel
2 to use the PC5 event as event input
- Select asynchronous user channel 0 to
use asynchronous event channel 2 as event input channel
- Set event action for TCB to “Input
Capture Event” and enable TCB
- Configure PC5 as input
TCB will now perform an input capture every time there is a falling edge on
the input of PC5.