Register Descriptions
316
SPRUHE8E – October 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
M3 General-Purpose Timers
Table 2-4. Timers Register Map (continued)
Offset
Name
Type
Reset
Description
0x02C
GPTMTBILR
R/W
0x0000.FFFF
GPTM Timer B Interval
Load
0x030
GPTMTAMATCHR
R/W
0xFFFF.FFFF
GPTM Timer A Match
0x034
GPTMTBMATCHR
R/W
0x0000.FFFF
GPTM Timer B Match
0x038
GPTMTAPR
R/W
0x0000.0000
GPTM Timer A Prescale
0x03C
GPTMTBPR
R/W
0x0000.0000
GPTM Timer B Prescale
0x040
GPTMTAPMR
R/W
0x0000.0000
GPTM TimerA Prescale
Match
0x044
GPTMTBPMR
R/W
0x0000.0000
GPTM TimerB Prescale
Match
0x048
GPTMTAR
R
0xFFFF.FFFF
GPTM Timer A
0x04C
GPTMTBR
R
0x0000.FFFF
GPTM Timer B
0x050
GPTMTAV
R/W
0xFFFF.FFFF
GPTM Timer A Value
0x054
GPTMTBV
R/W
0x0000.FFFF
GPTM Timer B Value
2.6
Register Descriptions
The remainder of this section lists and describes the GPTM registers, in numerical order by address
offset.
2.6.1 GPTM Configuration (GPTMCFG) Register, offset 0x000
The GPTM Configuration (GPTMCFG) register configures the global operation of the GPTM module. The
value written to this register determines whether the GPTM is in 32- or 16-bit mode.
Important:
Bits in this register should only be changed when the TAEN and TBEN bits in the GPTMCTL
register are cleared.
Figure 2-6. GPTM Configuration (GPTMCFG) Register
31
3
2
0
Reserved
GPTMCFG
R-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 2-5. GPTM Configuration (GPTMCFG) Register Field Descriptions
Bit
Field
Value
Description
31-1
Reserved
Reserved
2-0
GPTMCFG
GPTM Configuration
0x0
32-bit timer configuration
0x1
32-bit real-time clock (RTC) counter configuration.
0x2-0x3 Reserved
0x4
16-bit timer configuration
The function is controlled by bits 1:0 of GPTMTAMR and GPTMTBMR.
0x5-0x7 Reserved
2.6.2 GPTM Timer A Mode (GPTMTAMR) Register, offset 0x004
The GPTM Timer A Mode (GPTMTAMR) register configures the GPTM based on the configuration
selected in the GPTMCFG register. When in PWM mode, set the TAAMS bit , clear the TACMR bit, and
configure the TAMR field to 0x2.