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

X  

AN3248 数据表(PDF) 9 Page - STMicroelectronics

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

AN3248 数据表(HTML) 9 Page - STMicroelectronics

Back Button AN3248 Datasheet HTML 5Page - STMicroelectronics AN3248 Datasheet HTML 6Page - STMicroelectronics AN3248 Datasheet HTML 7Page - STMicroelectronics AN3248 Datasheet HTML 8Page - STMicroelectronics AN3248 Datasheet HTML 9Page - STMicroelectronics AN3248 Datasheet HTML 10Page - STMicroelectronics AN3248 Datasheet HTML 11Page - STMicroelectronics AN3248 Datasheet HTML 12Page - STMicroelectronics AN3248 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 17 page
background image
AN3248
Pulse width measurement
Doc ID 17758 Rev 3
9/17
3
Pulse width measurement
In STM32L1 devices, the COMP2 output can be redirected to the input capture of the
embedded timers: TIM2, TIM3, TIM4, and TIM10. 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 7 displays all the possible output redirections of the COMP2 output.
The input signal, whose signal width should be measured, is connected to any I/O of analog
switches group 6 (PB4 or PB5). 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 or channel 2)
an external pin through PB3
The COMP2 output redirection is achieved through the OUTSEL[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, 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, 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 8 gives an overview of the pulse width
measurement as measured by COMP2.
Figure 7.
COMP2 with output redirection feature
1.
Legend for Figure 7
DAC_OUT1: DAC channel 1 output
DAC_OUT2: DAC channel 2 output
VREFINT: Internal reference voltage
CMP2OUT: Comparator 2 output (internal output)
TIMx ICy: Timer x input capture channel y
TIMx OCREFCLR: Timer x output compare reference clear
Note:
In High-density devices, pins PB6 and PB7 can be used also as COMP2 non-inverting
inputs.
PB5
-
+
COMP2
PB4
GR6
GR6
CMP2OUT
Wakeup
EXTI line 22
PB3
DAC_OUT1
DAC_OUT2
V
REFINT
3/4 V
REFINT
1/2 V
REFINT
1/4 V
REFINT
Input voltage
TIM2 IC4
TIM2 OCRECLR
TIM3 IC4
TIM3 OCREFCLR
TIM4 IC4
TIM4 OCRECLR
TIM10 IC1
OUTSEL[2:0]
ai18706
Threshold2:
multiple sources
-1
-2



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