24.3.3.1.2 Time-Out Check Mode
In the Time-Out Check mode, the peripheral starts counting on the first signal edge and stops on the next signal edge detected on the event input channel. CNT remains stationary after the Stop edge (Freeze state). In the Freeze state, the counter restarts on a new Start edge.
This mode requires TCB to be configured as an event user and is explained in the Events section.
The Start or Stop edge is determined by the Event Edge (EDGE) bit in the Event Control
(TCBn.EVCTRL) register. If CNT reaches TOP before the second edge, a CAPT interrupt and
event will be generated. If TOP is updated to a value lower than the CNT upon reaching
MAX, an OVF interrupt and the simultaneous event are generated, and the counter restarts
from BOTTOM. In the Freeze state, reading the Counter (TCBn.CNT) register or
Compare/Capture (TCBn.CCMP) register or writing the Run (RUN) bit in the Status
(TCBn.STATUS) register has no effect.