English
Language : 

LM3S5762 Datasheet, PDF (720/841 Pages) Texas Instruments – Stellaris® LM3S5762 Microcontroller
Pulse Width Modulator (PWM)
Figure 17-2. PWM Module Block Diagram
PWM Generator Block
Interrupts /
Triggers
Control
PWMnCTL
Timer
zero
load
dir
PWMnLOAD
PWMnCOUNT
PWM Clock
Comparators
PWMnCMPA
PWMnCMPB
cmp A
cmp B
Interrupt and
Trigger
Generator
PWMnINTEN
PWMnRIS
PWMnISC
Signal
Generator
PWMnGENA
PWMnGENB
Fault
PWMn_Fault
Dead-Band
Generator
PWMnDBCTL
PWMnDBRISE
PWMnDBFALL
PWMn_A
PWMn_B
17.2
Signal Description
Table 17-1 on page 720 lists the external signals of the PWM module and describes the function of
each. The PWM controller signals are alternate functions for some GPIO signals and default to be
GPIO signals at reset. The column in the table below titled "Pin Assignment" lists the possible GPIO
pin placements for these PWM signals. The AFSEL bit in the GPIO Alternate Function Select
(GPIOAFSEL) register (page 370) should be set to choose the PWM function. For more information
on configuring GPIOs, see “General-Purpose Input/Outputs (GPIOs)” on page 350.
Table 17-1. PWM Signals (64LQFP)
Pin Name
Pin Number Pin Type Buffer Typea Description
Fault0
27
I
TTL
PWM Fault 0.
PWM0
61
O
TTL
PWM 0. This signal is controlled by PWM Generator 0.
PWM1
62
O
TTL
PWM 1. This signal is controlled by PWM Generator 0.
PWM2
63
O
TTL
PWM 2. This signal is controlled by PWM Generator 1.
PWM3
64
O
TTL
PWM 3. This signal is controlled by PWM Generator 1.
PWM4
25
O
TTL
PWM 4. This signal is controlled by PWM Generator 2.
PWM5
26
O
TTL
PWM 5. This signal is controlled by PWM Generator 2.
a. The TTL designation indicates the pin has TTL-compatible voltage levels.
17.3 Functional Description
17.3.1
PWM Timer
The timer in each PWM generator runs in one of two modes: Count-Down mode or Count-Up/Down
mode. In Count-Down mode, the timer counts from the load value to zero, goes back to the load
value, and continues counting down. In Count-Up/Down mode, the timer counts from zero up to the
load value, back down to zero, back up to the load value, and so on. Generally, Count-Down mode
720
November 17, 2011
Texas Instruments-Production Data