Timer/Counter Control Inputs (Events)

The TCC can take several actions on the occurrence of an input event. The event actions are listed in Table 1.

Table 1. TCC Module Event Actions

Event action

Description

Applied event

TCC_EVENT_ACTION_OFF

No action on the event input

All

TCC_EVENT_ACTION_RETRIGGER

Re-trigger Counter on event

All

TCC_EVENT_ACTION_NON_RECOVERABLE_FAULT

Generate Non-Recoverable Fault on event

All

TCC_EVENT_ACTION_START

Counter start on event

EV0

TCC_EVENT_ACTION_DIR_CONTROL

Counter direction control

EV0

TCC_EVENT_ACTION_DECREMENT

Counter decrement on event

EV0

TCC_EVENT_ACTION_PERIOD_PULSE_WIDTH_CAPTURE

Capture pulse period and pulse width

EV0

TCC_EVENT_ACTION_PULSE_WIDTH_PERIOD_CAPTURE

Capture pulse width and pulse period

EV0

TCC_EVENT_ACTION_STOP

Counter stop on event

EV1

TCC_EVENT_ACTION_COUNT_EVENT

Counter count on event

EV1

TCC_EVENT_ACTION_INCREMENT

Counter increment on event

EV1

TCC_EVENT_ACTION_COUNT_DURING_ACTIVE

Counter count during active state of asynchronous event

EV1