timers-007
GPTi.TSICR
GPTi.TWPS
GPTi.TIOCP_CFG
GPTi.TISTAT
L4
interconnect
GPTi.TCLR
GPTi.TTGR
GPTi.TLDR
GPTi.TCRR
GPTi.TMAR
+
GPTi.TPIR
GPTi.TNIR
GPTi.TCVR
GPTi.TOCR
GPTi.TOWR
Comp
Timer
counter
GPTi.TCAR1
GPTi.TCAR2
Edge detection
logic
Prescaler
GPTi.TIER
GPTi.TWER
GPTi.TISR
Pulse PWM
logic
Interrupt
logic
Wake-up
logic
Full
24-bit counter
OVF
Filtered overflow
1-ms tick module
L4 interface
General-purpose timer
TIMER_INTERRUPT
GPTi_SWAKEUP
GPTi_GPOCFG
CLK_TIMER
EVENT_CAPTURE
PWM_OUT
Public Version
General-Purpose Timers
www.ti.com
Figure 16-7. Block Diagram of GPTIMER1, GPTIMER2, and GPTIMER10
16.2.4.2 Timer Mode Functionality
The timer is an upward counter that can be started and stopped at any time through the timer control
register (GPTi.
[0] ST bit). The timer counter register (GPTi.
) can be loaded when stopped or
on-the-fly (while counting). GPTn.
can be loaded directly by a GPTi.
write access with a new
timer value. The GPTi.
register can also be loaded with the value held in the timer load register
by a trigger register (GPTi.
loading is done regardless of
the GPTi.
written value. The timer counter register GPTi.
value can be read when stopped or
captured on-the-fly by a GPTi.
read access. The timer is stopped and the counter value is set to 0
when the module reset is asserted. The timer is maintained at stop after the reset is released.
In one-shot mode (the GPTi.
[1] AR bit set to 0), the counter is stopped after counting overflow
occurs (the counter value remains at 0).
When the autoreload mode is enabled (the GPTi.
[1] AR bit set to 1), the GPTi.
register is
reloaded with the timer load register (GPTi.
) value after a counting overflow occurs.
2714
Timers
SWPU177N – December 2009 – Revised November 2010
Copyright © 2009–2010, Texas Instruments Incorporated