Electronic Components Datasheet Search
  English  ▼

X  

AN4631 Datasheet(PDF) 11 Page - STMicroelectronics

Part # AN4631
Description  How to calibrate an STM32L0xx internal RC oscillator
PDF  30 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4631 Datasheet(HTML) 11 Page - STMicroelectronics

Back Button AN4631 Datasheet HTML 7Page - STMicroelectronics AN4631 Datasheet HTML 8Page - STMicroelectronics AN4631 Datasheet HTML 9Page - STMicroelectronics AN4631 Datasheet HTML 10Page - STMicroelectronics AN4631 Datasheet HTML 11Page - STMicroelectronics AN4631 Datasheet HTML 12Page - STMicroelectronics AN4631 Datasheet HTML 13Page - STMicroelectronics AN4631 Datasheet HTML 14Page - STMicroelectronics AN4631 Datasheet HTML 15Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 11 / 30 page
background image
DocID027266 Rev 2
11/30
Internal RC oscillator calibration
29
Figure 5. Timing diagram of internal oscillator calibration
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 HSI16 or MSI),
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 2.3: Description of the internal oscillator
calibration firmware for more details).
2.2
Hardware implementation
2.2.1
Case where LSE is used as the reference frequency
The STM32L0xx offers a useful feature, that is the ability to connect internally the Low-
Speed External (LSE) oscillator to Timer 21 channel 1. Thus, the LSE clock can be used as
the reference signal for internal oscillator calibration and no additional hardware
connections are required. Only the LSE oscillator should be connected to OSC32_IN and
OSC32_OUT.
Figure 6 shows the hardware connections needed for internal oscillators calibration using
LSE as an accurate frequency source for calibration.
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 28 29 30


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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