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

X  

AN4112 数据表(PDF) 9 Page - STMicroelectronics

部件名 AN4112
功能描述  Using STM32F05xx analog comparators in application cases
PDF  17 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN4112 数据表(HTML) 9 Page - STMicroelectronics

Back Button AN4112 Datasheet HTML 5Page - STMicroelectronics AN4112 Datasheet HTML 6Page - STMicroelectronics AN4112 Datasheet HTML 7Page - STMicroelectronics AN4112 Datasheet HTML 8Page - STMicroelectronics AN4112 Datasheet HTML 9Page - STMicroelectronics AN4112 Datasheet HTML 10Page - STMicroelectronics AN4112 Datasheet HTML 11Page - STMicroelectronics AN4112 Datasheet HTML 12Page - STMicroelectronics AN4112 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 17 page
background image
AN4112
Pulse width measurement
Doc ID 023195 Rev 1
9/17
3
Pulse width measurement
In STM32F05xx devices, the COMP2 output can be redirected to the BKIN (Break input) of
the embedded timer TIM1. Redirecting the COMP2 output allows a signal width or
frequency with specific low and high levels (for example, a shifted signal) to be measured.
Figure 6 displays all the possible output redirections of the COMP2 output.
The input signal, whose signal width should be measured, is connected to (PA3 or PA1).
The reference signal can be powered by:
●
an internal reference (VREFINT, 3/4 VREFINT, 1/2 VREFINT, or 1/4 VREFINT)
●
the built-in DAC (channel 1)
●
an external pin through PA2
The COMP2 output redirection is achieved through the COMP2OUTSEL[2:0] bits.
The timer input capture channel is configured to save the timer counter at both rising and
falling edges. When the input signal goes above the reference voltage, the COMP2 output is
at a high level, generating a rising edge on the timer input capture. When the input signal
goes under the reference voltage, the COMP2 output is at low level, generating a falling
edge. The elapsed time between the two consecutive events (falling then rising edge or
rising then falling edge) represents the pulse width. Hence, the pulse width measurement is
performed by simple subtraction of the counter values. Figure 7 gives an overview of the
pulse width measurement as measured by COMP2.
Figure 6.
COMP2 with output redirection feature
1.
DAC_OUT: DAC channel 1 output
VREFINT: Internal reference voltage
COMP2OUT: Comparator 2 output (internal output)
TIM1_BK1: Timer 1 Break input
TIMx ICy: Timer x input capture channel y
TIMx _OCref_clr: Timer x output compare reference clear
-
+



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17


数据表 下载

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