www.ti.com
Timer Registers
323
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
General-Purpose Timers
9.5.4 GPTMCTL Register (offset = Ch) [reset = 0h]
GPTMCTL is shown in Figure 9-8 and described in Table 9-12 .
Figure 9-8. GPTMCTL Register
31 30 29 28 27 26 25 24
RESERVED
R-0h
23 22 21 20 19 18 17 16
RESERVED
R-0h
15 14 13 12 11 10 9 8
RESERVED TBPWML RESERVED TBEVENT TBSTALL TBEN
R-0h R/W-0h R-0h R/W-0h R/W-0h R/W-0h
7 6 5 4 3 2 1 0
RESERVED TAPWML RESERVED TAEVENT TASTALL TAEN
R-0h R/W-0h R-0h R/W-0h R/W-0h R/W-0h
Table 9-12. GPTMCTL Register Field Descriptions
Bit Field Type Reset Description
31-15 RESERVED R 0h
14 TBPWML R/W 0h
GPTM Timer B PWM Output Level. The TBPWML values are
defined as follows:
0h = Output is unaffected.
1h = Output is inverted.
13-12 RESERVED R 0h
11-10 TBEVENT R/W 0h
GPTM Timer B Event Mode. The TBEVENT values are defined as
follows. Note: If PWM output inversion is enabled, edge-detection
interrupt behavior is reversed. Thus, if a positive-edge interrupt
trigger has been set and the PWM inversion generates a positive
edge, no event-trigger interrupt asserts. Instead, the interrupt is
generated on the negative edge of the PWM signal.
0h = Positive edge
1h = Negative edge
2h = Reserved
3h = Both edges
9 TBSTALL R/W 0h
GPTM Timer B Stall Enable. The TBSTALL values are defined as
follows. If the processor is executing normally, the TBSTALL bit is
ignored.
0h = Timer B continues counting while the processor is halted by the
debugger.
1h = Timer B freezes counting while the processor is halted by the
debugger.
8 TBEN R/W 0h
GPTM Timer B Enable. The TBEN values are defined as follows:
0h = Timer B is disabled.
1h = Timer B is enabled and begins counting or the capture logic is
enabled based on the GPTMCFG register.
7 RESERVED R 0h
6 TAPWML R/W 0h
GPTM Timer A PWM Output Level. The TAPWML values are
defined as follows:
0h = Output is unaffected.
1h = Output is inverted.
5-4 RESERVED R 0h