Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

LM3S310 Datasheet(PDF) 151 Page - List of Unclassifed Manufacturers

Part # LM3S310
Description  Microcontroller
PDF  342 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ETC2 [List of Unclassifed Manufacturers]
Direct Link  
Logo ETC2 - List of Unclassifed Manufacturers

LM3S310 Datasheet(HTML) 151 Page - List of Unclassifed Manufacturers

Back Button LM3S310 Datasheet HTML 147Page - List of Unclassifed Manufacturers LM3S310 Datasheet HTML 148Page - List of Unclassifed Manufacturers LM3S310 Datasheet HTML 149Page - List of Unclassifed Manufacturers LM3S310 Datasheet HTML 150Page - List of Unclassifed Manufacturers LM3S310 Datasheet HTML 151Page - List of Unclassifed Manufacturers LM3S310 Datasheet HTML 152Page - List of Unclassifed Manufacturers LM3S310 Datasheet HTML 153Page - List of Unclassifed Manufacturers LM3S310 Datasheet HTML 154Page - List of Unclassifed Manufacturers LM3S310 Datasheet HTML 155Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 151 / 342 page
background image
LM3S310 Data Sheet
October 6, 2006
151
Preliminary
4.
Configure the type of event(s) that the timer captures by writing the TnEVENT field of the
GPTM Control (GPTMCTL) register.
5.
Load the timer start value into the GPTM Timern Interval Load (GPTMTnILR) register.
6.
Load the desired event count into the GPTM Timern Match (GPTMTnMATCHR) register.
7.
If interrupts are required, set the CnMIM bit in the GPTM Interrupt Mask (GPTMIMR) register.
8.
Set the TnEN bit in the GPTMCTL register to enable the timer and begin waiting for edge
events.
9.
Poll the CnMRIS 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 CnMCINT bit of the
GPTM Interrupt Clear (GPTMICR) register.
In Input Edge Count Mode, the timer stops after the desired number of edge events has been
detected. To re-enable the timer, ensure that the TnEN bit is cleared and repeat steps 4-9.
9.3.5
16-Bit Input Edge Timing Mode
A timer is configured to Input Edge Timing mode by the following sequence:
1.
Ensure the timer is disabled (the TnEN bit is cleared) before making any changes.
2.
Write the GPTM Configuration (GPTMCFG) register with a value of 0x4.
3.
In the GPTM Timer Mode (GPTMTnMR) register, write the TnCMR field to 0x1 and the TnMR
field to 0x3.
4.
Configure the type of event that the timer captures by writing the TnEVENT field of the GPTM
Control (GPTMCTL) register.
5.
Load the timer start value into the GPTM Timern Interval Load (GPTMTnILR) register.
6.
If interrupts are required, set the CnEIM bit in the GPTM Interrupt Mask (GPTMIMR) register.
7.
Set the TnEN bit in the GPTM Control (GPTMCTL) register to enable the timer and start
counting.
8.
Poll the CnERIS 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 CnECINT bit of the
GPTM Interrupt Clear (GPTMICR) register. The time at which the event happened can be
obtained by reading the GPTM Timern (GPTMTnR) register.
In Input Edge Timing mode, the timer continues running after an edge event has been detected,
but the timer interval can be changed at any time by writing the GPTMTnILR register. The change
takes effect at the next cycle after the write.
9.3.6
16-Bit PWM Mode
A timer is configured to PWM mode using the following sequence:
1.
Ensure the timer is disabled (the TnEN bit is cleared) before making any changes.
2.
Write the GPTM Configuration (GPTMCFG) register with a value of 0x4.
3.
In the GPTM Timer Mode (GPTMTnMR) register, set the TnAMS bit to 0x1, the TNCMR bit to
0x0, and the TnMR field to 0x2.
4.
Configure the output state of the PWM signal (whether or not it is inverted) in the TnEVENT
field of the GPTM Control (GPTMCTL) register.
5.
Load the timer start value into the GPTM Timern Interval Load (GPTMTnILR) register.
6.
Load the GPTM Timern Match (GPTMTnMATCHR) register with the desired value.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com