Register Descriptions
317
SPRUHE8E – October 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
M3 General-Purpose Timers
This register controls the modes for Timer A when it is used individually. When Timer A and Timer B are
concatenated, this register controls the modes for both Timer A and Timer B, and the contents of
GPTMTBMR are ignored.
Important:
Bits in this register should only be changed when the TAEN bit in the GPTMCTL register is
cleared.
Figure 2-7. GPTM Timer A Mode (GPTMTAMR) Register
31
8
Reserved
7
6
5
4
3
2
1
0
TASNAPS
TAWOT
TAMIE
TACDIR
TAAMS
TACMR
TAMR
R/W-0
R/W-0
R/W-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-6. GPTM Timer A Mode (GPTMTAMR) Register Field Descriptions
Bit
Field
Value
Description
31-8
Reserved
Reserved
7
TASNAPS
GPTM Timer A Snap-Shot Mode
0
Snap-shot mode is disabled.
1
If Timer A is configured in the periodic mode, the actual free-running value of Timer A is loaded at
the time-out event into the GPTM Timer A (GPTMTAR) register.
6
TAWOT
GPTM Timer A Wait-on-Trigger
0
Timer A begins counting as soon as it is enabled.
1
If Timer A is enabled (TAEN is set in the GPTMCTL register), Timer A does not begin counting until
it receives a trigger from the timer in the previous position in the daisy chain, see
. This
function is valid for both one-shot and periodic modes.
This bit must be clear for GP Timer Module 0, Timer A.
5
TAMIE
GPTM Timer A Match Interrupt Enable
0
The match interrupt is disabled
1
An interrupt is generated when the match value in the GPTMTAMATCHR register is reached in the
one-shot and periodic modes.
4
TACDIR
GPTM Timer A Count Direction
0
The timer counts down
1
When in one-shot or periodic mode, the timer counts up. When counting up, the timer starts from a
value of 0x0.
3
TAAMS
GPTM Timer A Alternate Mode Select
0
Capture mode is enabled.
0
PWM mode is enabled.
Note: To enable PWM mode, you must also clear the TACMR bit and configure the TAMR field to
0x1 or 0x2.
2
TACMR
GPTM Timer A Capture Mode
0
Edge-Count mode
1
Edge-Time mode
1-0
TAMR
GPTM Timer A 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 Timer mode
0x3
Capture mode