SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Each GP 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 GP 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 IRQSTATUS_SET and IRQSTATUS_CLR register for the interrupt features, and a dedicated bit of the IRQWAKEEN register for the wake-up of TIMER1, TIMER2, and TIMER10. In addition, these timers have a mechanism implemented to generate an accurate tick interrupt.
For all other internal interrupt source can be independently enabled and disabled through the IRQENABLE_SET and IRQENABLE_CLR registers.
For each GP timer implemented in the device, there are two possible clock sources:
Selection of the input clock source is done in the registers in the PRCM configuration (see Section 22.2.1, GP Timer Overview).
Each GP timer supports three functional modes:
The capture and compare modes are disabled by default after core reset.