LM3S6952 Luminary Micro, Inc, LM3S6952 Datasheet - Page 479
LM3S6952
Manufacturer Part Number
LM3S6952
Description
Lm3s6952 Arm Microcontroller
Manufacturer
Luminary Micro, Inc
Datasheet
1.LM3S6952.pdf
(601 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
LM3S6952-EQC50-A2
Manufacturer:
Texas Instruments
Quantity:
10 000
Company:
Part Number:
LM3S6952-EQC50-A2T
Manufacturer:
Texas Instruments
Quantity:
10 000
Company:
Part Number:
LM3S6952-IBZ50-A2
Manufacturer:
TI
Quantity:
329
Company:
Part Number:
LM3S6952-IBZ50-A2
Manufacturer:
Texas Instruments
Quantity:
10 000
Company:
Part Number:
LM3S6952-IBZ50-A2T
Manufacturer:
Texas Instruments
Quantity:
10 000
Company:
Part Number:
LM3S6952-IQC50-A2
Manufacturer:
Texas Instruments
Quantity:
135
Company:
Part Number:
LM3S6952-IQC50-A2
Manufacturer:
Texas Instruments
Quantity:
10 000
- Current page: 479 of 601
- Download datasheet (7Mb)
18.3
July 25, 2008
modifying the individual PWM generators, which are modified by the feedback control loop). Similarly,
fault control can disable any of the PWM signals as well. A final inversion can be applied to any of
the PWM signals, making them active Low instead of the default active High.
Initialization and Configuration
The following example shows how to initialize the PWM Generator 0 with a 25-KHz frequency, and
with a 25% duty cycle on the PWM0 pin and a 75% duty cycle on the PWM1 pin. This example assumes
the system clock is 20 MHz.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Enable the PWM clock by writing a value of 0x0010.0000 to the RCGC0 register in the System
Control module.
Enable the clock to the appropriate GPIO module via the RCGC2 register in the System Control
module.
In the GPIO module, enable the appropriate pins for their alternate function using the
GPIOAFSEL register.
Configure the Run-Mode Clock Configuration (RCC) register in the System Control module
to use the PWM divide (USEPWMDIV) and set the divider (PWMDIV) to divide by 2 (000).
Configure the PWM generator for countdown mode with immediate updates to the parameters.
■
■
■
Set the period. For a 25-KHz frequency, the period = 1/25,000, or 40 microseconds. The PWM
clock source is 10 MHz; the system clock divided by 2. This translates to 400 clock ticks per
period. Use this value to set the PWM0LOAD register. In Count-Down mode, set the Load field
in the PWM0LOAD register to the requested period minus one.
■
Set the pulse width of the PWM0 pin for a 25% duty cycle.
■
Set the pulse width of the PWM1 pin for a 75% duty cycle.
■
Start the timers in PWM generator 0.
■
Enable PWM outputs.
■
Write the PWM0CTL register with a value of 0x0000.0000.
Write the PWM0GENA register with a value of 0x0000.008C.
Write the PWM0GENB register with a value of 0x0000.080C.
Write the PWM0LOAD register with a value of 0x0000.018F.
Write the PWM0CMPA register with a value of 0x0000.012B.
Write the PWM0CMPB register with a value of 0x0000.0063.
Write the PWM0CTL register with a value of 0x0000.0001.
Write the PWMENABLE register with a value of 0x0000.0003.
Preliminary
LM3S6952 Microcontroller
479
Related parts for LM3S6952
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Inductor: Molded: 10u: 10%: 30M: 7.9: 440m: Axial: T/R
Manufacturer:
Inductor Supply, Inc.
Part Number:
Description:
Molded Inductor
Manufacturer:
Inductor Supply, Inc.
Datasheet:
Part Number:
Description:
Cree Smd Led
Manufacturer:
Cree, Inc.
Datasheet:
Part Number:
Description:
Cree Smd Led
Manufacturer:
Cree, Inc.
Datasheet:
Part Number:
Description:
Specification For Cotco Led Lamp
Manufacturer:
Marktech Optoelectronics
Datasheet:
Part Number:
Description:
Lm3s1110 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
Part Number:
Description:
Lm3s1133 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
Part Number:
Description:
Lm3s1138 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
Part Number:
Description:
Lm3s1150 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
Part Number:
Description:
Lm3s1162 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
Part Number:
Description:
Lm3s1165 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
Part Number:
Description:
Lm3s1332 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
Part Number:
Description:
Lm3s1435 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet: