Information Center for ARM

Description: This example shows how to configure TC in waveform and capture mode. In capture mode, pulse signal is set as an input, RA and RB will be loaded when programmed event occurs. When TC interrupt happens, we could read RA and RB value for calculating pulse frequency and pulse number be increased. The current pulse frequency and total pulse number is output on DBGU. The code can be roughly broken down as follows: