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

X  

LM3S310 Datasheet(PDF) 146 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) 146 Page - List of Unclassifed Manufacturers

Back Button LM3S310 Datasheet HTML 142Page - List of Unclassifed Manufacturers LM3S310 Datasheet HTML 143Page - List of Unclassifed Manufacturers LM3S310 Datasheet HTML 144Page - List of Unclassifed Manufacturers LM3S310 Datasheet HTML 145Page - List of Unclassifed Manufacturers LM3S310 Datasheet HTML 146Page - List of Unclassifed Manufacturers 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 146 / 342 page
background image
General-Purpose Timers
146
October 6, 2006
Preliminary
9.2.3.2
16-Bit Input Edge Count Mode
In Edge Count mode, the timer is configured as a down-counter capable of capturing three types
of events: rising edge, falling edge, or both. To place the timer in Edge Count mode, the TnCMR bit
of the GPTMTnMR register must be set to 0. The type of edge that the timer counts is determined
by the TnEVENT fields of the GPTMCTL register. During initialization, the GPTM Timern Match
(GPTMTnMATCHR) register is configured so that the difference between the value in the
GPTMTnILR register and the GPTMTnMATCHR register equals the number of edge events that
must be counted.
When software writes the TnEN bit in the GPTM Control (GPTMCTL) register, the timer is enabled
for event capture. Each input event on the CCP pin decrements the counter by 1 until the event
count matches GPTMTnMATCHR. When the counts match, the GPTM asserts the CnMRIS bit in
the GPTMRIS register (and the CnMMIS bit, if the interrupt is not masked). The counter is then
reloaded using the value in GPTMTnILR, and stopped since the GPTM automatically clears the
TnEN
bit in the GPTMCTL register. Once the event count has been reached, all further events are
ignored until TnEN is re-enabled by software.
Figure 9-2 shows how input edge count mode works. In this case, the timer start value is set to
GPTMnILR=0x000A and the match value is set to GPTMnMATCHR=0x0006 so that four edge
events are counted. The counter is configured to detect both edges of the input signal.
Note that the last two edges are not counted since the timer automatically clears the TnEN bit after
the current count matches the value in the GPTMnMR register.
Table 9-1.
16-Bit Timer With Prescaler Configurations
Prescale
#Clock (TC)
a
Max Time
Units
00000000
1
2.6214
mS
00000001
2
5.2428
mS
00000010
3
7.8642
mS
------------
--
11111100
254
665.8458
mS
11111110
255
668.4672
mS
11111111
256
671.0886
mS
a. TC is the clock period.



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