LM3S310 Luminary Micro, Inc, LM3S310 Datasheet - Page 149
LM3S310
Manufacturer Part Number
LM3S310
Description
Lm3s310 Arm Microcontroller
Manufacturer
Luminary Micro, Inc
Datasheet
1.LM3S310.pdf
(336 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
LM3S310-EQN25-C2
Manufacturer:
Texas Instruments
Quantity:
10 000
Company:
Part Number:
LM3S310-EQN25-C2T
Manufacturer:
Texas Instruments
Quantity:
10 000
Company:
Part Number:
LM3S310-IGZ25-C2
Manufacturer:
TI
Quantity:
86
Company:
Part Number:
LM3S310-IQN25-C2
Manufacturer:
Texas Instruments
Quantity:
10 000
Company:
Part Number:
LM3S310-IQN25-C2T
Manufacturer:
Texas Instruments
Quantity:
10 000
- Current page: 149 of 336
- Download datasheet (3Mb)
9.3.2
9.3.3
9.3.4
July 5, 2006
In One-Shot mode, the timer stops counting after step 7. To re-enable the timer, repeat the
sequence. A timer configured in Periodic mode does not stop counting after it times out.
32-Bit Real-Time Clock (RTC) Mode
To use the RTC mode, the timer must have a 32.768-KHz input signal on its CCP0, CCP2 or CCP4
pins. To enable the RTC feature, follow these steps:
1.
2.
3.
4.
5.
6.
When the timer count equals the value in the GPTMTAMATCHR register, the counter is re-loaded
with 0x00000000 and begins counting. If an interrupt is enabled, it does not have to be cleared.
16-Bit One-Shot/Periodic Timer Mode
A timer is configured for 16-bit One-Shot and Periodic modes by the following sequence:
1.
2.
3.
4.
5.
6.
7.
8.
In One-Shot mode, the timer stops counting after step 8. To re-enable the timer, repeat the
sequence. A timer configured in Periodic mode does not stop counting after it times out.
16-Bit Input Edge Count Mode
A timer is configured to Input Edge Count mode by the following sequence:
1.
2.
3.
Ensure the timer is disabled (the TAEN bit is cleared) before making any changes.
Write the GPTM Configuration Register (GPTMCFG) with a value of 0x1.
Write the desired match value to the GPTM TimerA Match Register (GPTMTAMATCHR).
Set/clear the RTCEN bit in the GPTM Control Register (GPTMCTL) as desired.
If interrupts are required, set the RTCIM bit in the GPTM Interrupt Mask Register
(GPTMIMR).
Set the TAEN bit in the GPTMCTL register to enable the timer and start counting.
Ensure the timer is disabled (the TnEN bit is cleared) before making any changes.
Write the GPTM Configuration Register (GPTMCFG) with a value of 0x4.
Set the TnMR field in the GPTM Timer Mode (GPTMTnMR) register:
a.
b.
If a prescaler is to be used, write the prescale value to the GPTM Timern Prescale Register
(GPTMTnPR).
Load the start value into the GPTM Timer Interval Load Register (GPTMTnILR).
If interrupts are required, set the TnTOIM bit in the GPTM Interrupt Mask Register
(GPTMIMR).
Set the TnEN bit in the GPTM Control Register (GPTMCTL) to enable the timer and start
counting.
Poll the TnTORIS bit in the GPTMRIS register or wait for the interrupt to be generated (if
enabled). In both cases, the status flags are cleared by writing a 1 to the TnTOCINT bit of the
GPTM Interrupt Clear Register (GPTMICR).
Ensure the timer is disabled (the TnEN bit is cleared) before making any changes.
Write the GPTM Configuration (GPTMCFG) register with a value of 0x4.
In the GPTM Timer Mode (GPTMTnMR) register, write the TnCMR field to 0x0 and the TnMR
field to 0x3.
Write a value of 0x1 for One-Shot mode.
Write a value of 0x2 for Periodic mode.
Preliminary
LM3S310 Data Sheet
149
Related parts for LM3S310
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
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:
Part Number:
Description:
Lm3s1439 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
Part Number:
Description:
Lm3s1512 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
Part Number:
Description:
Lm3s1538 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
Part Number:
Description:
Lm3s1601 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
Part Number:
Description:
Lm3s1607 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
Part Number:
Description:
Lm3s1608 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet: