English
Language : 

LM3S5G31 Datasheet, PDF (564/1223 Pages) Texas Instruments – Stellaris LM3S5G31 Microcontroller
General-Purpose Timers
7. Set the TnEN bit in the GPTM Control (GPTMCTL) register to enable the timer and begin
generation of the output PWM signal.
In PWM Timing mode, the timer continues running after the PWM signal has been generated. The
PWM period can be adjusted at any time by writing the GPTMTnILR register, and the change takes
effect at the next cycle after the write.
11.5
Register Map
Table 11-11 on page 564 lists the GPTM registers. The offset listed is a hexadecimal increment to
the register’s address, relative to that timer’s base address:
■ Timer 0: 0x4003.0000
■ Timer 1: 0x4003.1000
■ Timer 2: 0x4003.2000
Note that the GP Timer module clock must be enabled before the registers can be programmed
(see page 264). There must be a delay of 3 system clocks after the Timer module clock is enabled
before any Timer module registers are accessed.
Table 11-11. Timers Register Map
Offset Name
Type
0x000 GPTMCFG
0x004 GPTMTAMR
0x008 GPTMTBMR
0x00C GPTMCTL
0x018 GPTMIMR
0x01C GPTMRIS
0x020 GPTMMIS
0x024 GPTMICR
0x028 GPTMTAILR
0x02C GPTMTBILR
0x030 GPTMTAMATCHR
0x034 GPTMTBMATCHR
0x038 GPTMTAPR
0x03C GPTMTBPR
0x040 GPTMTAPMR
0x044 GPTMTBPMR
0x048 GPTMTAR
0x04C GPTMTBR
0x050 GPTMTAV
R/W
R/W
R/W
R/W
R/W
RO
RO
W1C
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
RO
RO
RW
Reset
Description
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0xFFFF.FFFF
0x0000.FFFF
0xFFFF.FFFF
0x0000.FFFF
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0xFFFF.FFFF
0x0000.FFFF
0xFFFF.FFFF
GPTM Configuration
GPTM Timer A Mode
GPTM Timer B Mode
GPTM Control
GPTM Interrupt Mask
GPTM Raw Interrupt Status
GPTM Masked Interrupt Status
GPTM Interrupt Clear
GPTM Timer A Interval Load
GPTM Timer B Interval Load
GPTM Timer A Match
GPTM Timer B Match
GPTM Timer A Prescale
GPTM Timer B Prescale
GPTM TimerA Prescale Match
GPTM TimerB Prescale Match
GPTM Timer A
GPTM Timer B
GPTM Timer A Value
See
page
566
567
569
571
574
576
579
582
584
585
586
587
588
589
590
591
592
593
594
564
July 03, 2014
Texas Instruments-Production Data