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

X  

AN2822 数据表(PDF) 9 Page - STMicroelectronics

部件名 AN2822
功能描述  STM8S and STM8A high speed internal oscillator calibration
PDF  19 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN2822 数据表(HTML) 9 Page - STMicroelectronics

Back Button AN2822 Datasheet HTML 5Page - STMicroelectronics AN2822 Datasheet HTML 6Page - STMicroelectronics AN2822 Datasheet HTML 7Page - STMicroelectronics AN2822 Datasheet HTML 8Page - STMicroelectronics AN2822 Datasheet HTML 9Page - STMicroelectronics AN2822 Datasheet HTML 10Page - STMicroelectronics AN2822 Datasheet HTML 11Page - STMicroelectronics AN2822 Datasheet HTML 12Page - STMicroelectronics AN2822 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 19 page
background image
AN2822
High speed internal oscillator trimming
Doc ID 14983 Rev 2
9/19
1.4
Measurement of HSI pulses per calibration period
The current HSI oscillator frequency, fHSI, is not measured directly. It is evaluated from the
number of counted HSI clock pulses, NHSI, during a defined calibration interval, Tcal, for a
known number of calibration signal periods (L), using the following equation:
TIM3 timer counts the number of HSI pulses with minimum interaction from the software
routine. This helps to reduce measurement uncertainty caused by the software routine
reaction times. In addition, the MCU core is not occupied by the software and can continue
to execute user code.
The measurement of HSI pulses starts with the initialization of TIM3 timer. It is configured to
count the number of HSI pulses and to handle two interrupt events. The first interrupt occurs
when the timer overflows. The second interrupt is an input capture interrupt which occurs
every Lth rising edge of the calibration period signal.
When the first rising edge of the calibration signal period occurs, the value in the
TIM3_CNTR register is stored in the input capture register, TIM3_CCR, and the content of
this register is saved during the input capture interrupt into the firstcapture variable.
The last input capture interrupt occurs when the Lth rising edge of the calibration signal is
detected and the value in the input capture register TIM3_CCR is saved into the lastcapture
variable.
The number of overflows between the first and last capture events is increased at every
overflow interrupt and stored in the overflow variable.
When the last input capture event occurs the state MEASURE_COMPLETED is set and the
timer is stopped. Then the number of HSI pulses is evaluated using the equation below:
Figure 4 summarizes the measurement of HSI pulses for a known calibration signal period.
f
HSI
N
HSI
T
cal
L
---------------------
=
N
HSI
lastcapture
0x10000
overflows
firstcapture
×
+
=



Html Pages

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


数据表 下载

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