| Electronic Components Datasheet Search |
|
AN2604 Datasheet(PDF) 6 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2604 Datasheet(HTML) 6 Page - STMicroelectronics |
|
6 / 14 page ![]() 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 |
|
|
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 |
| 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 |