21.3.4 Events

The TCB can generate the events described in the following table:
Table 21-3. Event Generators in TCB
Generator NameDescriptionEvent TypeGenerating Clock DomainLength of Event
PeripheralEvent
TCBnCAPTCAPT flag setPulseCLK_PEROne CLK_PER period

The conditions for generating the CAPT event are identical to those that will raise the corresponding interrupt flag in the Timer/Counter Interrupt Flags (TCBn.INTFLAGS) register. Refer to the Event System section for more details regarding event users and Event System configuration.

The TCB can receive the events described in the following table:
Table 21-4. Event Users and Available Event Actions in TCB
User NameDescriptionInput DetectionAsync/Sync
PeripheralInput
TCBnCAPTTime-Out Check Count modeEdgeSync
Input Capture on Event Count mode
Input Capture Frequency Measurement Count mode
Input Capture Pulse-Width Measurement Count mode
Input Capture Frequency and Pulse-Width Measurement Count mode
Single-Shot Count modeBoth

If the Capture Event Input Enable (CAPTEI) bit in the Event Control (TCBn.EVCTRL) register is written to ‘1’, incoming events will result in an event action as defined by the Event Edge (EDGE) bit in the Event Control (TCBn.EVCTRL) register and the Timer Mode (CNTMODE) bit field in Control B (TCBn.CTRLB) register. The event needs to last for at least one CLK_PER cycle to be recognized.

If the Asynchronous mode is enabled for Single-Shot mode, the event is edge-triggered and will capture changes on the event input shorter than one system clock cycle.