| 数据搜索系统,热门电子元器件搜索 |
|
AN4112 数据表(PDF) 9 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4112 数据表(HTML) 9 Page - STMicroelectronics |
|
9 / 17 page ![]() 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 - + |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| 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 |