Applications guide for serial real-time clocks (RTCs)
By Doug Sams
Introduction
ST’s family of serial real-time clocks (RTCs) has been very popular with users. Over the
years, many topics associated with these devices have been addressed by the applications
groups supporting them. This document is a compilation of some of the most common
issues addessed ranging from layout considerations for crystals to proper software access
upon power-up. Readers will find this helpful in understanding some of the subtleties of
RTCs and what it takes to keep them running reliably.
1.1 What are some basic layout considerations for the RTC
crystal?
Layout considerations are straightforward for the 32 KHz crystals used with ST's M41 series
real-time clocks.
Figure 1.Layout considerations
MOUNT CRYSTAL AS CLOSE
TO RTC AS POSSIBLE
CRYSTAL
NO OTHER COMPONENTS
REQUIRED IN OSCILLATOR
CIRCUIT
IF POSSIBLE, ADD LOCAL GROUND PLANE,
ON SEPARATE LAYER, ISOLATED FROM PCB
GROUND PLANE, AND CONNECTED TO
RTC GND PIN
ADD GUARD RING AROUND
CRYSTAL CONNECTIONS,
CONNECT TO GND PIN
KEEP TRACES SHORT
XI
RTC
XO
GND
AM04719v1
The primary consideration is lead length. The crystal should be mounted as near as
possible to the RTC to keep the traces short. A guard ring around these connections,
connected to ground, is very important to avoid picking up unwanted noise, which might
affect timekeeping.
Users should avoid running signals directly underneath this area unless a ground plane
resides between the signals and the crystal connections.
When possible, users can add an island ground plane under the area of the ring and crystal
body. This plane is on a separate layer from the ring, and isolated from the PCB ground
plane. It connects to ground at the GND pin of the RTC.
No other components are shown in the layout because the crystal is all that is required for
the RTC oscillator to work. No external load capacitors or bias resistors should be added.
Doc ID 16253 Rev 25/23
Oscillator circuitAN3060
2 Oscillator circuit
2.1 Besides the crystal, what other components do I need to add
to make my RTC oscillator work correctly?
None. Nothing else is required. ST's real-time clocks have built-in load capacitors.
External load capacitors are not needed, nor are external resistors. All that is needed is the
crystal. It must be a 32,768 Hz watch crystal and be rated for the load capacitance built into
the RTC.
Figure 2.Built-in load capacitors
EXTERNAL LOAD CAPACITORS
NOT NEEDED
EXTERNAL RESISTOR
NOT NEEDED
No other components are required to make the oscillator run. Adding any external
components will only serve to reduce the accuracy and reliability of the oscillator. Extra load
capacitors will tend to slow the clock. At low temperatures, such capacitance, or any
external resistance, may keep the oscillator from starting.
CRYSTAL
C
X1
R
X
XIXO
INTERNAL RTC
CIRCUITRY
C
L1
CHOOSE CRYSTAL TO MATCH RTC’S RATED
LOAD CAPACITANCE - eg, 6pF OR 12.5pF
C
L2
THEY ARE BUILT INTO RTC
C
X2
AM04720v1
Matching load capacitance
Each RTC comes with built-in load capacitors. These are usually specified as 12.5 pF, or in
the case of the M41T6x family, 6 pF. The crystal selected for use with the RTC should have
this same rating. Mismatched crystals will tend to run slightly off frequency. For example, a
crystal rated for 12.5 pF expects to see that load. If it is used with an RTC rated for 6 pF, the
crystal will only see 6 pF instead of the specified 12.5 pF and will thus run fast.
6/23Doc ID 16253 Rev 2
AN3060Oscillator circuit
Effective load capacitance value versus internal capacitance value
Occasionally, the reader will see a reference to the individual load capacitors. There are two
used inside the RTC - one on each leg of the crystal. The actual value of each is twice the
rated or effective load value - that is, twice the load value specified in the data sheet. This is
because the internal load capacitors add in series. In Figure 2, the effective load
capacitance is:
CC
•
L
L
2
LL
1
CwithseriesinCC
1
==
L
2
CC
+
L
L
2
1
Thus, when C
the data sheet - is half of C
and CL2 are equal, the effective load capacitance, CL - the value listed in
L1
and CL2. An ST RTC rated for 12.5 pF will have two 25 pF
L1
capacitors built into its oscillator circuit. The reader is encouraged to be aware of this.
Furthermore, the reader should keep in mind that the crystal specifications should match
the rated value - in this case 12.5 pF - and not the individual values.
Doc ID 16253 Rev 27/23
Loading...
+ 16 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.