timers-009
GPTi.TLDR
GPTi.TPIR
GPTi.TNIR
GPTi.TCVR
GPTi.TOCR
GPTi.TOWR
Timer
counter
GPTi.TISR
24-bit counter
OVF
Filtred
overflow
Add
1
Add
3
Add
2
MSB
MSB
MSB
1
0
Conversion
1 -> 0xFFFF FFFF
0 -> 0x0000 0000
Add
4
Full
32
/
32
/
24
24
Public Version
General-Purpose Timers
www.ti.com
Figure 16-9. Block Diagram of the 1-ms Tick Module
The GPTi.
, GPTi.
registers and adders Add1, Add2, and Add3 are used to
define whether the next value loaded in the timer counter register (GPTi.
[31:0] TIMER_COUNTER
bit field) is the value of the GPTi.
[31:0] LOAD_VALUE bit field (period less than 1 ms) or the value of
[31:0] LOAD_VALUE - 1 (period greater than 1 ms).
lists the value loaded in the GPTi.
register according to the sign of the result of Add1,
Add2, and Add3.
MSB = 0: Positive value, MSB = 1: Negative value
Table 16-8. Value Loaded in GPTi.TCRR to Generate 1-ms Tick
Add1 MSB
Add2 MSB
Add3 MSB
Value of GPTi.
Register
0
0
0
[31:0] LOAD_VALUE bit field
0
0
1
[31:0] LOAD_VALUE bit field
0
1
0
[31:0] LOAD_VALUE bit field
0
1
1
[31:0] LOAD_VALUE - 1
1
0
0
N/A
1
0
1
N/A
1
1
0
[31:0] LOAD_VALUE - 1
1
1
1
[31:0] LOAD_VALUE - 1
2716Timers
SWPU177N – December 2009 – Revised November 2010
Copyright © 2009–2010, Texas Instruments Incorporated