SPRUIU1C July 2020 – February 2024 DRA821U , DRA821U-Q1
Each timer contains a free-running upward counter with autoreload capability on overflow. The timer counter can be read and written on-the-fly (while counting). Each timer includes compare logic to allow an interrupt event on a programmable counter matching value. A dedicated output signal can be pulsed or toggled on either an overflow or a match event. This offers time-stamp trigger signaling or PWM signal sources. A dedicated input signal can be used to trigger an automatic timer counter capture or an interrupt event on a programmable input signal transition. A programmable clock divider (prescaler) allows reduction of the timer input clock frequency. All internal timer interrupt sources are merged into one module interrupt line and one wake-up line.
Each internal interrupt source can be independently enabled and disabled by a dedicated bit in the TIMER_IRQSTATUS_SET and TIMER_IRQSTATUS_CLR register for the interrupt features, and a dedicated bit of the TIMER_IRQWAKEEN register for a wake-up. In addition, timers have a mechanism implemented to generate an accurate tick interrupt.
For each timer implemented in the device, there are two possible clock sources:
For more information of the selection of the input clock source, see Clocking.
Each timer supports three functional modes:
The capture and compare modes are disabled by default after core reset.