Motore di ricerca datesheet componenti elettronici
  Italian  ▼
ALLDATASHEETIT.COM

X  

AN4067 Scheda tecnica(PDF) 10 Page - STMicroelectronics

Il numero della parte AN4067
Spiegazioni elettronici  Microcontrollers of STM32F0x1
PDF  27 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Produttore elettronici  STMICROELECTRONICS [STMicroelectronics]
Homepage  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4067 Scheda tecnica(HTML) 10 Page - STMicroelectronics

Back Button AN4067 Datasheet HTML 6Page - STMicroelectronics AN4067 Datasheet HTML 7Page - STMicroelectronics AN4067 Datasheet HTML 8Page - STMicroelectronics AN4067 Datasheet HTML 9Page - STMicroelectronics AN4067 Datasheet HTML 10Page - STMicroelectronics AN4067 Datasheet HTML 11Page - STMicroelectronics AN4067 Datasheet HTML 12Page - STMicroelectronics AN4067 Datasheet HTML 13Page - STMicroelectronics AN4067 Datasheet HTML 14Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 27 page
background image
Internal RC oscillator calibration
AN4067
10/27
DocID022913 Rev 2
After enabling the timer counter, when the first rising edge of the reference signal occurs,
the timer counter value is captured and stored in IC1ReadValue1. At the second rising edge,
the timer counter is captured again and stored in IC1ReadValue2. The elapsed time
between two consecutive rising edges (IC1ReadValue2 - IC1ReadValue1) represents an
entire period of the reference signal.
Since the timer counter is clocked by the system clock (internal RC oscillator HSI), the real
frequency generated by the internal RC oscillator versus the reference signal is given by:
The error (in Hz) is computed as the absolute value of the difference between the measured
frequency and the typical value.
Hence, the internal oscillator frequency error is expressed as:
After calculating the error for each trimming value, the algorithm determines the optimum
trimming value (that corresponds to the nearest frequency to typical value) to be
programmed in the trimming bits (refer to Section 3.3: Description of the internal oscillator
calibration firmware for more details).
3.1.2
HSI14 calibration
The calibration principle consists in:
1.
Setting the PLL, clocked by the HSI (after calibrating the HSI), as the system clock
source.
2.
Measuring the internal RC oscillator (HSI14) frequency for each trimming value.
3.
Computing the frequency error for each trimming value.
4.
Finally, setting the trimming bits with the optimum value (corresponding to the lowest
frequency error).
Figure 6 shows how the reference signal period is measured in number of timer counts.
Figure 6. Timing diagram of internal oscillator calibration HSI14
After enabling the timer counter, when the first rising edge of the reference signal occurs,
the timer counter value is captured and stored in IC1ReadValue1. At the second rising edge,
the timer counter is captured again and stored in IC1ReadValue2. The elapsed time
between two consecutive rising edges (IC1ReadValue2 - IC1ReadValue1) represents an
entire period of the reference signal.
Measuredfrequency
IC1ReadValue2
IC1ReadValue1
–
 referencefrequency
=
Error Hz

Measuredfrequency
typicalvalue
–
=



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27


Scheda tecnica Scarica

Go To PDF Page


Link URL



Lei ha avuto il aiuto da alldatasheet?  [ DONATE ] 

Di alldatasheet   |   Richest di pubblicita   |   contatti   |   Privacy Policy   |   Collegamento alla scheda tecnica    |   scambio Link   |   Ricerca produttore
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