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

X  

AN3371 Datasheet(PDF) 19 Page - STMicroelectronics

Part # AN3371
Description  Using the hardware real-time clock
PDF  45 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3371 Datasheet(HTML) 19 Page - STMicroelectronics

Back Button AN3371 Datasheet HTML 15Page - STMicroelectronics AN3371 Datasheet HTML 16Page - STMicroelectronics AN3371 Datasheet HTML 17Page - STMicroelectronics AN3371 Datasheet HTML 18Page - STMicroelectronics AN3371 Datasheet HTML 19Page - STMicroelectronics AN3371 Datasheet HTML 20Page - STMicroelectronics AN3371 Datasheet HTML 21Page - STMicroelectronics AN3371 Datasheet HTML 22Page - STMicroelectronics AN3371 Datasheet HTML 23Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 19 / 45 page
background image
AN3371
Overview of the STM32 advanced RTC
Doc ID 018624 Rev 5
19/45
A smooth calibration can be performed on the fly so that it can be changed when the
temperature changes or if other factors are detected.
Checking the smooth calibration
The smooth calibration effect on the calendar clock (RTC Clock) can be checked by:
●
Calibration using the AFO_CALIB (512 Hz or 1 Hz).
●
Calibration using the sub-second alarms.
●
Calibration using the Wakeup timer.
1.5
Synchronizing the RTC
The RTC calendar can be synchronized to a more precise clock, “remote clock”, using the
RTC shift feature. After reading the RTC sub-second field, a calculation of the precise offset
between the time being maintained by the remote clock and the RTC can be made. The
RTC can be adjusted by removing this offset with a fine adjustment using the shift register
control.
Figure 12. RTC shift register
It is not possible to check the “Synchronization” Shift function using the AFO_CALIB output
since the shift operation has no impact on the RTC clock, other than adding or subtracting a
few fractions from the calendar counter.
Correcting the RTC calendar time
If the RTC clock is advanced compared to the remote clock by n fractions of seconds, the
offset value must be written in SUBFS, which will be added to the synchronous prescaler’s
counter. As this counter counts down, this operation effectively subtracts from (delays) the
clock by:
Delay (seconds) = SUBFS / (PREDIV_S + 1)
If the RTC is delayed compared to the remote clock by n fractions of seconds, the offset
value can effectively be added to the clock (advancing the clock) when the ADD1S function
is used in conjunction with SUBFS, effectively advancing the clock by:
Advance (seconds) = (1 - (SUBFS / (PREDIV_S + 1))).
MS30111V1
RTC Clock
Asynch. 7-bit prescaler
(default=128)
Asynchronous
prescaler
Synchronous
prescaler
Synchronous 15-bit
prescaler (default=256)
Shadow registers
(RTC_TR, RTC_DR)
Calendar
512 Hz
AFO_CALIB
Ck_Spre
Shift
(RTC_SHIFTER)
delay
advance



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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45


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