LM3S1637 Luminary Micro, Inc, LM3S1637 Datasheet - Page 215

no-image

LM3S1637

Manufacturer Part Number
LM3S1637
Description
Lm3s1637 Arm Microcontroller
Manufacturer
Luminary Micro, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LM3S1637-EQC50-A2
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S1637-EQC50-A2T
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S1637-IBZ50-A2
Manufacturer:
TI
Quantity:
264
Part Number:
LM3S1637-IBZ50-A2
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S1637-IBZ50-A2T
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S1637-IQC50-A2
Manufacturer:
Texas Instruments
Quantity:
10 000
10.3
10.3.1
July 25, 2008
Figure 10-4. 16-Bit PWM Mode Example
Initialization and Configuration
To use the general-purpose timers, the peripheral clock must be enabled by setting the TIMER0,
TIMER1, TIMER2, and TIMER3 bits in the RCGC1 register.
This section shows module initialization and configuration examples for each of the supported timer
modes.
32-Bit One-Shot/Periodic Timer Mode
The GPTM is configured for 32-bit One-Shot and Periodic modes by the following sequence:
1.
2.
3.
4.
5.
6.
Ensure the timer is disabled (the TAEN bit in the GPTMCTL register is cleared) before making
any changes.
Write the GPTM Configuration Register (GPTMCFG) with a value of 0x0.
Set the TAMR field in the GPTM TimerA Mode Register (GPTMTAMR):
a.
b.
Load the start value into the GPTM TimerA Interval Load Register (GPTMTAILR).
If interrupts are required, set the TATOIM bit in the GPTM Interrupt Mask Register (GPTMIMR).
Set the TAEN bit in the GPTMCTL register to enable the timer and start counting.
Write a value of 0x1 for One-Shot mode.
Write a value of 0x2 for Periodic mode.
Output
Signal
TnPWML = 0
TnPWML = 1
0xC350
0x411A
Count
TnEN set
GPTMTnR=GPTMnMR
Preliminary
GPTMTnR=GPTMnMR
LM3S1637 Microcontroller
Time
215

Related parts for LM3S1637