152 / 342 page

General-Purpose Timers
152
October 6, 2006
Preliminary
7.
If a prescaler is going to be used, configure the GPTM Timern Prescale (GPTMTnPR)
register and the GPTM Timern Prescale Match (GPTMTnPMR) register.
8.
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.
9.4
Register Map
Table 9-1 lists the GPTM registers. The offset listed is a hexadecimal increment to the register’s
address, relative to that timer’s base address:
Timer0: 0x40030000
Timer1: 0x40031000
Timer2: 0x40032000
Table 9-2.
GPTM Register Map
Offset
Name
Reset
Type
Description
See
page
0x000
GPTMCFG
0x00000000
R/W
Configuration
154
0x004
GPTMTAMR
0x00000000
R/W
TimerA mode
155
0x008
GPTMTBMR
0x00000000
R/W
TimerB mode
156
0x00C
GPTMCTL
0x00000000
R/W
Control
157
0x018
GPTMIMR
0x00000000
R/W
Interrupt mask
159
0x01C
GPTMRIS
0x00000000
RO
Interrupt status
161
0x020
GPTMMIS
0x00000000
RO
Masked interrupt status
162
0x024
GPTMICR
0x00000000
W1C
Interrupt clear
163
0x028
GPTMTAILR
0x0000FFFFa
0xFFFFFFFF
R/W
TimerA interval load
164
0x02C
GPTMTBILR
0x0000FFFF
R/W
TimerB interval load
165
0x030
GPTMTAMATCHR
0x0000FFFFa
0xFFFFFFFF
R/W
TimerA match
166
0x034
GPTMTBMATCHR
0x0000FFFF
R/W
TimerB match
167
0x038
GPTMTAPR
0x00000000
R/W
TimerA prescale
168
0x03C
GPTMTBPR
0x00000000
R/W
TimerB prescale
169
0x040
GPTMTAPMR
0x00000000
R/W
TimerA prescale match
170
0x044
GPTMTBPMR
0x00000000
R/W
TimerB prescale match
171