285 / 342 page

LM3S310 Data Sheet
October 6, 2006
285
Preliminary
– Write the PWM0CMPB register with a value of 0x00000063.
8.
Start the timers in PWM generator 0.
– Write the PWM0CTL register with a value of 0x00000001.
9.
Enable PWM outputs.
– Write the PWMENABLE register with a value of 0x00000003.
14.4
Register Map
Table 14-2 lists the PWM registers. The offset listed is a hexadecimal increment to the register’s
address, relative to the PWM base address of 0x40028000.
Table 14-1.
PWM Register Map (Sheet 1 of 2)
Offset
Name
Reset
Type
Description
See
page
PWM Module Control
0x000
PWMCTL
0x00000000
R/W
Master control of the PWM module
288
0x004
PWMSYNC
0x00000000
R/W
Counter synchronization for the PWM generators
289
0x008
PWMENABLE
0x00000000
R/W
Master enable for the PWM output pins
290
0x00C
PWMINVERT
0x00000000
R/W
Inversion control for the PWM output pins
291
0x010
PWMFAULT
0x00000000
R/W
Fault handling for the PWM output pins
292
0x014
PWMINTEN
0x00000000
R/W
Interrupt enable
293
0x018
PWMRIS
0x00000000
RO
Raw interrupt status
294
0x01C
PWMISC
0x00000000
R/W1C
Interrupt status and clear
295
0x020
PWMSTATUS
0x00000000
RO
Value of the Fault input signal
296
PWM Generator 0
0x040
PWM0CTL
0x00000000
R/W
Master control of the PWM0 generator block
297
0x044
PWM0INTEN
0x00000000
R/W
Interrupt enable
299
0x048
PWM0RIS
0x00000000
RO
Raw interrupt status
300
0x04C
PWM0ISC
0x00000000
R/W1C
Interrupt status and clear
301
0x050
PWM0LOAD
0x00000000
R/W
Load value for the counter
302
0x054
PWM0COUNT
0x00000000
RO
Current counter value
302
0x058
PWM0CMPA
0x00000000
R/W
Comparator A value
304
0x05C
PWM0CMPB
0x00000000
R/W
Comparator B value
305
0x060
PWM0GENA
0x00000000
R/W
Controls PWM generator A
306
0x064
PWM0GENB
0x00000000
R/W
Controls PWM generator B
308
0x068
PWM0DBCTL
0x00000000
R/W
Control the dead-band generator
309