English
Language : 

LM3S5762 Datasheet, PDF (726/841 Pages) Texas Instruments – Stellaris® LM3S5762 Microcontroller
Pulse Width Modulator (PWM)
■ Write the PWM0CMPB register with a value of 0x0000.0063.
9. Start the timers in PWM generator 0.
■ Write the PWM0CTL register with a value of 0x0000.0001.
10. Enable PWM outputs.
■ Write the PWMENABLE register with a value of 0x0000.0003.
17.5
Register Map
Table 17-2 on page 726 lists the PWM registers. The offset listed is a hexadecimal increment to the
register’s address, relative to the PWM base address of 0x4002.8000. Note that the PWM module
clock must be enabled before the registers can be programmed (see page 217). There must be a
delay of 3 system clocks after the PWM module clock is enabled before any PWM module registers
are accessed.
Table 17-2. PWM Register Map
Offset Name
Type
0x000 PWMCTL
0x004 PWMSYNC
0x008 PWMENABLE
0x00C PWMINVERT
0x010 PWMFAULT
0x014 PWMINTEN
0x018 PWMRIS
0x01C PWMISC
0x020 PWMSTATUS
0x040 PWM0CTL
0x044 PWM0INTEN
0x048 PWM0RIS
0x04C PWM0ISC
0x050 PWM0LOAD
0x054 PWM0COUNT
0x058 PWM0CMPA
0x05C PWM0CMPB
0x060 PWM0GENA
0x064 PWM0GENB
0x068 PWM0DBCTL
0x06C PWM0DBRISE
R/W
R/W
R/W
R/W
R/W
R/W
RO
R/W1C
RO
R/W
R/W
RO
R/W1C
R/W
RO
R/W
R/W
R/W
R/W
R/W
R/W
Reset
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
Description
PWM Master Control
PWM Time Base Sync
PWM Output Enable
PWM Output Inversion
PWM Output Fault
PWM Interrupt Enable
PWM Raw Interrupt Status
PWM Interrupt Status and Clear
PWM Status
PWM0 Control
PWM0 Interrupt and Trigger Enable
PWM0 Raw Interrupt Status
PWM0 Interrupt Status and Clear
PWM0 Load
PWM0 Counter
PWM0 Compare A
PWM0 Compare B
PWM0 Generator A Control
PWM0 Generator B Control
PWM0 Dead-Band Control
PWM0 Dead-Band Rising-Edge Delay
See
page
729
730
731
732
733
734
735
736
737
738
741
744
745
746
747
748
749
750
753
756
757
726
November 17, 2011
Texas Instruments-Production Data