Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN2604 Datasheet(PDF) 6 Page - STMicroelectronics

Part # AN2604
Description  STM32F101xx and STM32F103xx RTC calibration
PDF  14 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2604 Datasheet(HTML) 6 Page - STMicroelectronics

Back Button AN2604 Datasheet HTML 2Page - STMicroelectronics AN2604 Datasheet HTML 3Page - STMicroelectronics AN2604 Datasheet HTML 4Page - STMicroelectronics AN2604 Datasheet HTML 5Page - STMicroelectronics AN2604 Datasheet HTML 6Page - STMicroelectronics AN2604 Datasheet HTML 7Page - STMicroelectronics AN2604 Datasheet HTML 8Page - STMicroelectronics AN2604 Datasheet HTML 9Page - STMicroelectronics AN2604 Datasheet HTML 10Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 6 / 14 page
background image
RTC calibration basics
AN2604 - Application note
6/14
1.2
Methodology
The RTC of STM32F10xxx products is driven by a quartz crystal-controlled oscillator with a
nominal frequency of 32.768 kHz. The crystal oscillator is one of the most accurate circuits
to provide a fixed frequency. There are two causes of clock error:
1.
temperature variation
2.
crystal variation
As mentioned previously, most clock chips compensate for crystal frequency and
temperature variations by using cumbersome trim capacitors. The STM32F10xxx design
employs periodic counter corrections. The digital calibration circuit removes 0 to 127 cycles
every 220 clock cycles (see Figure 2.). The number of times the pulses are blanked depends
upon the value that has been loaded into the seven least significant bits of the BKP’s RTC
clock calibration register. Since the RTC clock calibration register is in the backup domain,
the calibration value is not lost even if the device is powered off provided that a battery is
connected to the VBAT pin.
Figure 2.
RTC calibration clock output
1.
The clock output on the ANTI_TAMP pin is the RTC clock before calibration, so its value is not changed by
the calibration.
Each calibration step has the effect of subtracting 1 oscillator cycle every 1 048 576 (220)
actual oscillator cycles. That is, 0.954(1000000/220) ppm of adjustment per calibration step
in the calibration register. As a result, the oscillator clock can be slowed down from 0 to
121 ppm.
Table 1 on page 7 shows how many ppm and seconds per month (30 days) each bit
represents in real time.
Oscillator
Div64
LSE
LSI
HSE/128
ANTI_TAMP
512 Hz output
for frequency test
Enabled by CCO bit in
BKP_RTCCR register
Clock
calibration
CAL[6:0]bits in
BKP_RTCCR register
RTC
RTCCLK
32 768 Hz
ai14626



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14


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