数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN591 数据表(PDF) 2 Page - STMicroelectronics

部件名 AN591
功能描述  Input capture with ST62 auto-reload timer
PDF  5 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN591 数据表(HTML) 2 Page - STMicroelectronics

  AN591 Datasheet HTML 1Page - STMicroelectronics AN591 Datasheet HTML 2Page - STMicroelectronics AN591 Datasheet HTML 3Page - STMicroelectronics AN591 Datasheet HTML 4Page - STMicroelectronics AN591 Datasheet HTML 5Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 2 / 5 page
background image
Input capture with ST62 auto-reload timer
AN591
2/5
Capture mode with reset
This can be used to measure time durations or frequencies.This mode is used to measure
the time elapsed between two edges of an external signal: two rising edges, two falling
edges, or one rising and one falling if the configuration of the timer is modified after the first
edge detected.
The minimum duration of one signal to measure depends on the CPU clock and on the
required precision. With a 8MHz Quartz crystal, a signal of 8ms duration can be measured
with a resolution of 1/64.
Example:
Let’s measure the time elapsed between two rising edges on TIMIN:
The prescaler ratio must be programmed according to the expected duration to measure. In
this example it is programmed to: prescaler ratio = 4, clock source = CPU clock. (in case the
duration expected can be longer than the 255 count span of the TC count register, the
overflow interrupt can be used to increment a RAM variable, used as the most significant
part of the result).
In the program example, waiting for the edge on TIMIN is made by a software loop (jrr 2,
SC0, wt_edge), but it is also possible to use the external event interrupt to read the result
immediately after the edge without loading the rest of the program. It is also possible to read
the result directly from RC without waiting or using the interrupt, if the duration is required at
an asynchronous time, not just after the edge.
Table 1.
Prescaler programming ratio
Bit 0
Reg. SC1
PS2
PS1
PS0
Prescaler ratio
000
01
000
12
001
04
001
18
010
0
16
010
1
32
011
0
64
011
1
128
100
03
100
16
101
0
12



Html Pages

1 2 3 4 5


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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