Register Descriptions
312
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
M3 General-Purpose Timers
Table 2-7. GPTM Timer B Mode (GPTMTBMR) Register Field Descriptions (continued)
Bit
Field
Value
Description
1-0
TBMR
GPTM Timer B Mode. The timer mode is based on the timer configuration defined by bits 2:0 in the
GPTMCFG register.
0x0
Reserved
0x1
One-shot timer mode
0x2
Periodic Ttimer mode
0x3
Capture mode
2.6.4 GPTM Control (GPTMCTL) Register, offset 0x00C
The GPTM Control (GPTMCTL) register is used alongside the GPTMCFG and GMTMTnMR registers to
fine-tune the timer configuration, and to enable other features such as timer stall and the output trigger.
Important:
Bits in this register should only be changed when the TnEN bit for the respective timer is
cleared.
Figure 2-9. GPTM Control (GPTMCTL) Register
31
16
Reserved
R-0
15
14
13
12
11
10
9
8
Reserved
TBPWML
Reserved
TBEVENT
TBSTALL
TBEN
R-0
R/W-0
R-0
R/W-0
R/W-0
R/W-0
7
6
5
4
3
2
1
0
Reserved
TAPWML
Reserved
RTCEN
TAEVENT
TASTALL
TAEN
R-0
R/W-0
R-0
R/W-0
R/W-0
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 2-8. GPTM Control (GPTMCTL) Register Field Descriptions
Bit
Field
Value
Description
31-15
Reserved
Reserved
14
TBPWML
GPTM Timer B PWM Output Level
0
Output is unaffected.
1
Output is inverted.
13-12
Reserved
Reserved
11-10
TBEVENT
GPTM Timer B Event Mode
0x0
Positive edge
0x1
Negative edge
0x2
Reserved
0x3
Both edges
9
TBSTALL
GPTM Timer B Stall Enable
0
Timer B continues counting while the processor is halted by the debugger
1
Timer B freezes counting while the processor is halted by the debugger
If the processor is executing normally, the TBSTALL bit is ignored.
8
TBEN
GPTM Timer B Enable
0
Timer B is disabled.
1
Timer B is enabled and begins counting or the capture logic is enabled based on the GPTMCFG
register.
7
Reserved
Reserved