Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

AN2822 Datasheet(PDF) 6 Page - STMicroelectronics

Part # AN2822
Description  STM8S and STM8A high speed internal oscillator calibration
PDF  19 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2822 Datasheet(HTML) 6 Page - STMicroelectronics

Back Button AN2822 Datasheet HTML 2Page - STMicroelectronics AN2822 Datasheet HTML 3Page - STMicroelectronics AN2822 Datasheet HTML 4Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 6 / 19 page
background image
High speed internal oscillator trimming
AN2822
6/19
Doc ID 14983 Rev 2
Note:
The default value on the CLK_HSITRIMR register is zero (000b) after reset.
1.2
Calibration principle
To calibrate the HSI output frequency, a reference timebase is necessary. A simple
reference timebase can be used, such as the post-processed signal from the mains power
source (see Section 2). The final accuracy of the HSI frequency is strongly dependent on
the accuracy of the reference timebase. Better accuracy can be achieved with more
accurate timebases such as a signal generator.
Figure 2.
HSI calibration set-up
The calibration signal, from the mains power supply, is connected to the TIM3_CC1 input pin
and is used as a timebase which allows the microcontroller to test if the HSI RC oscillator
frequency is above or below the nominal frequency. The HSI frequency is sequentially tuned
by the microcontroller until the optimum value is reached.
Table 1.
CLK_HSITRIMR values and two’s-complement binary representation
Decimal value
Binary two’s-complement value
3011
2010
1001
0000
-1
111
-2
110
-3
101
-4
100
TIM3_CC1
/1, /2, /4 or /8
Counter
Capture
fMASTER = fHSI
Core
CCO
Overload
interrupt
Capture
interrupt
CLK_HSITRIMR
HSI 16 MHz
Prescaler
Calibration
signal
Input
Filter
TI1
TI1F
IC1PS



Html Pages

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


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