Application Note 1549
Addressing Power Issues in Real Time Clock
Applications
Introduction
Intersil Real Time Clock (RTC) products now include
many products with a variety of functions. Common
functions include a low power 32,768kHz oscillator and
also the ability to keep time in SRAM registers after initial
time and date is set.
The power for RTC devices includes a V
DD
source, and
can also include a backup source of either a battery or
large storage capacitor (super capacitor). In many
applications the RTC device is the only device in a system
that has an alternative power source such as the backup
battery, so there can be unique demands placed on the
device compared to other semiconductor products.
In addition, the RTC device has a communications bus,
usually I
2
C, that has pull-up resistors which can go to a
different power source than the RTC. The interrupt or
frequency output pull-up can be connected to yet
another voltage.
Some RTC devices contain non-volatile EEPROM storage,
both for device control registers and for general purpose
storage. The EEPROM is a robust storage method that
can survive temperature extremes, millions of write
cycles and up to 10 years of endurance. Despite the
robust design, there are power and ground voltage
transients that, although they exceed data sheet limits,
are present in systems and may upset EEPROM memory
cells. In addition, some applications may have I
2
C
communication during power-down, another possible
source of upset.
Many applications prefer to have these connections
powered separately. Examples include:
• RTC device is powered down while the I
2
C bus and
microcontroller are active (not recommended since it
will violate RTC data sheet, but RTC devices are OK
in this state).
• RTC device is powered down while the F
OUT
or IRQ is
pulled up to V
BAT
to allow a wake-up interrupt or
clock while other circuits are asleep (this is OK, but
the RTC data sheet absolute maximum ratings need
to be followed).
• RTC device is powered from a higher or lower voltage
than the I
2
C pull-ups (this may or may not be
allowed, possible unreliable operation).
• RTC device operates with one supply voltage and the
V
BAT
pin is grounded (this is OK, and is covered later
in this document).
V
POWER
V
BUS
2.2k
2.2k
IC
Bus
2
C
1
V
DD
SCL
SDA
V
BAT
X1
X2
F
OUT
GND
Y
1
V
FOUT
10k
RTC Device Power Connections
The typical applications circuit for the RTC is shown in
Figure 1. This seemingly simple circuit has no less than 4
possible power connections:
• V
DD
power (V
POWER
)
• I
2
C bus open drain pull-up power (V
BUS
)
• Battery backup (V
BAT
)
• Frequency output or interrupt open drain pull-up
(V
FOUT
)
Having four different power sources raises the issue of
power sequencing. Ideally, the RTC circuit will have 3 of
the four power sources in common. The V
CC
, V
BUS
and
V
FOUT
should all connect to the main V
POWER
source, and
when that is the case there are virtually no concerns with
power sequencing.
C
2
BT
1
FIGURE 1. TYPICAL RTC APPLICATION CIRCUIT
Table 1 provides some guidance when designing an RTC
applications circuit.
March 1, 2010
AN1549.0
1
CAUTION: These devices are sensitive to electrostatic discharge; follow proper IC Handling Procedures.
1-888-INTERSIL or 1-888-468-3774
|
Intersil (and design) is a registered trademark of Intersil Americas Inc.
Copyright Intersil Americas Inc. 2010. All Rights Reserved
All other trademarks mentioned are the property of their respective owners.
Application Note 1549
TABLE 1. RTC POWER CONNECTION GUIDELINES
DESCRIPTION
1 Normal Operation, 5V
2 Normal Operation, 3.3V
3 Split Supplies, Low Voltage
Four/IRQ-
4 Split Supplies, Lower
Voltage I
2
C (a)
5 Split Supplies, Lower
Voltage I
2
C (b)
6 Split Supplies, High Voltage
V
BAT
, Variable Voltage I
2
C
V
DD
5V
3.3V
5V
5V
5V
SCL
5V
3.3V
5V
SDA F
OUT
/IRQ
5V
3.3V
5V
5V
3.3V
3.3V
V
BAT
<5.0V
<3.6V
<5.0V
<5.0V
<3.5V
COMMENT
All pull-ups same source as V
DD
. No Issues. OK if
V
BAT
is a super capacitor.
OK. Normally V
BAT
up to 5.5V (super capacitor) is
OK. Check applicable data sheet.
OK. The F
OUT
can connect to 3.3V circuits reliably.
Will not work.
The V
IH
for the I
2
C is based on V
DD
and prevents communications.
Will not work.
The V
IH
for the I
2
C is based on V
DD
and prevents communications, especially as V
BAT
discharges. V
BAT
discharges quickly too.
Will work on
SOME
RTC’s. Be careful for V
BAT
> V
DD
as the device may not access I
2
C in this mode or
can draw high V
BAT
current. Check applicable data
sheet. Note that with V
BAT
discharging to 2.0V or
below, the V
IH
will be too low for V
DD
-referenced
I
2
C. V
BAT
discharges quickly too.
Will work on
MOST
RTC’s. Check applicable data
sheet. Note that with V
BAT
discharging to 2.0V or
below, the V
IH
will be too low for V
DD
-referenced
I
2
C. V
BAT
discharges quickly too.
Will work on all RTC devices but
NOT ADVISED.
Potential for latch-up and high V
BAT
current exists,
some RTC may have issues. Follow absolute
maximum ratings on data sheet.
Will work on all RTC devices but not advised. If
unavoidable, make sure to apply both supplies at
close to the same time.
3.3V 3.3V
5V or 3.3V
V
BAT
V
BAT
5V or 3.3V
3.3V
V
BAT
V
BAT
3.3V
<5.0V
7 Split Supplies, Low voltage
V
BAT
, Variable Voltage I
2
C
3.3V
V
BAT
V
BAT
3.3V
<V
DD
8 Split Supplies, Higher
Voltage I
2
C
3.3V
5.0V 5.0V
3.3V
<5.0V
9 Split Supplies F
OUT
has One
Supply and V
DD
another,
Low Voltage V
DD
3.3V 3.3V 3.3V
5V or 3.3V
3.0V to
5.0V
NOTE: Consult data sheet for RTC V
DD
operation below 2.7V.
Powering the RTC ON and OFF
Most Intersil RTC devices contain an internal power
switch that applies the battery power to the internal
circuitry when the V
DD
voltage drops below a certain
threshold. That threshold is generally selectable,
depending on the device (see applicable data sheet).
Since the RTC device is very low power, the switch
circuitry is fairly slow, and can take more than 50µs to
completely switch to the battery voltage. If the V
DD
power-down ramp is faster than this time, the internal
RAM registers may not have sufficient voltage to retain
their values and may become corrupted or reset
altogether.
If a V
DD
power source needs to power-down quickly for
some reason, the RTC should have some extra
capacitance at the V
DD
pin to slow down the ramp to
>50µs. If the extra capacitance is not realistic, then a
small series resistor can be added to form an R-C
network which will give the RTC a dedicated power-down
and power-up waveform. Since the supply current for
RTC’s can go up to 1mA or 2mA during write functions (if
EEPROM is included), then it’s a good idea to use about a
100Ω resistor to keep the maximum drop reasonable.
Power Supply Turn-On Issues
Some applications involving the RTC device may
unknowingly expose the device to excessive transients
which may not permanently damage the device, but may
corrupt the EEPROM and SRAM contents. Specifically,
those applications which use offline AC power and switch
it on and off can produce voltage bounces on the ground
or V
DD
, or both, with enough energy and fast enough
speed to propagate across a PC board despite bulk and
decoupling capacitance at supply pins. In some cases,
the energy supplied and the resulting current pulse is so
large and fast that high intensity spikes can occur,
capable of producing voltages exceeding the absolute
maximum for IC’s. For negative pulses, the internal ESD
diodes can absorb this energy but are limited, and the
resulting negative excursion can be many volts,
triggering latch-up or disruptive events. The RTC device
can be uniquely susceptible to this bounce since it has a
battery input and is expected to retain proper data in the
SRAM through power turn-on and turn-off. In cases
where the battery input is grounded, a device with
EEPROM can have the data bits corrupted. It requires a
large amount of energy to do this, with device currents
and voltages that exceed the absolute maximum ratings.
2
AN1549.0
March 1, 2010
Application Note 1549
The worst case scenario is where the AC waveform is
near its peak during turn-on and the board instantly sees
that peak before passive devices absorb the energy.
Normal power supply filtering does help prevent this, and
adding small amounts of inductance can improve it or
make it worse, depending on the location of the
inductance and decoupling capacitance. The best
prevention is to add a medium power Schottky diode at
the RTC, anode at ground and cathode at V
DD
, which can
clamp the voltage across the device to a safe value at
higher currents than the internal ESD structures. A good
low leakage diode such as the BAT54 is recommended.
values either from EEPROM or default hard-coded values
on power-up, depending on the RTC device type. There
are two circuit configurations which lend themselves to
corruption of the SRAM registers:
1. The V
BAT
pin is grounded
In this case there is just a main V
DD
power source which
may power-down occasionally. If this voltage is allowed
to float to a non-zero state on power-down, the ensuing
power-up may put the SRAM registers in an unknown
state.
Practical tests have shown that the SRAM registers can
maintain their contents down to V
DD
= 1.0V at room
temperature. Once V
DD
drops to <0.2V and then rises to
its normal level, then the default values will be loaded.
With V
DD
stalled in the range from 0.2V to 1.0V (the
“High Risk” range) on power-down, the SRAM registers
can be in an unknown value on power-up.
Note that the V
DD
power glitch to this lower voltage for a
period of time can also trigger the SRAM corruption. If
the glitch is not recognized by the rest of the system the
RTC device can lose SRAM bits without notice. Practical
tests show that the glitch would need to be minimum
50µs to 100µs duration to cause a problem.
A solution for corrupted RTC SRAM on power-up is to add
a series resistor and clamp MOSFET to the RTC V
DD
as
shown in Figure 2.
Applying a logic high to the RTC_SD node (M
1
gate) will
cause M
1
to saturate and discharge C
1
while pulling
current through R
S
. This action clamps the V
RTC
node
(V
DD
) low, to around 20mV-30mV or less. When the logic
signal is released, C
1
will charge up through R
S
and V
DD
will be powered up normally, with registers in the correct
default or EEPROM recalled states. R
S
must be chosen so
that there enough headroom for the RTC to operate at
maximum V
DD
current, which is normally for an I
2
C
write. RTC devices containing EEPROM will draw more
current, about 1mA during write operations and will need
a smaller R
S
value.
Power Glitches or Interruptions
The battery backup design for RTC’s is there to insure the
device retains the time/date in the event the power is
turned off or interrupted for some reason. Battery
backup works fine for most applications where the power
is turned off and on predictably.
Occasions arise where there may be fast glitches or
excursions of the V
DD
beyond the absolute maximum
limits, and these will cause problems. If a fast glitch is
generated by power switching or interruption, then RAM
contents can be corrupted or reset (see section
“Powering the RTC ON and OFF” on page 2). Again, local
filtering of the V
DD
may be needed to prevent memory
corruption.
Many Intersil RTC devices contain a power-up delay
function to prevent accidental access by the serial bus
before power is stable and devices on a board are
functioning properly. This delay is normally about 90ms,
and some older devices may have a 3 second delay. After
the glitch or power-up, the delay is triggered and the
device will not respond to an I
2
C communication until the
timeout period is over. If a customer is unsure about this
function in their application, they should contact Intersil.
Powering the RTC with NO or VERY LOW V
BAT
RTC device operation relies on stable contents in the
internal registers. These SRAM registers get loaded with
R
S
V
RTC
C1
R
S
= 1k FOR SRAM DEVICES
= 510 FOR EEPROM DEVICES
M
1
= FDY301NZ OR EQUIVALENT
V
DD
RTC_SD
V
SYS
R
1
SCL
SDA
R
2
M
1
V
SYS
X1
SCL
SDA
V
BAT
*
IRQ/F
OUT
* ALSO USEFUL IF V
BAT
DROPS TO <1.0V
X2
R
3
GND
FIGURE 2. POWERING A DEVICE WITH NO BATTERY BACKUP
3
AN1549.0
March 1, 2010
Application Note 1549
A secondary benefit of the R
S
-C
1
circuit is filtering
glitches, preventing unwanted noise on the V
DD
pin. Note
that the SDA, SCL and IRQ/F
OUT
pins all are powered
through pull-ups during the V
DD
power cycle. This state
is allowed short term and will not harm the device.
2. V
BAT
is allowed to drop into the high risk range
In this case, the backup supply may discharge to a very
low voltage (0.2V < V
BAT
< 1V is considered very
unreliable for backup power, as well). Now the RTC
device is relying on V
BAT
bias to power the SRAM
registers and maintain their contents. When the V
BAT
level drops to a low voltage, but not zero, it may be too
low to maintain the SRAM bits and once V
DD
power is
cycled, they will either corrupt the current contents or
incorrectly recall the default or EEPROM settings. Unless
the system monitors the battery voltage, it will assume
all RTC functions are normal.
If the system can detect bad data from the RTC or low
V
BAT
has been detected, then the battery should be
replaced and the device should restore original SRAM
register settings before operation proceeds.
The circuit from Figure 3 can be used with the jumper
J
BAT
for manually disconnecting the battery to allow the
device to reset if the battery or super capacitor is
discharged. Once the battery is changed or the super
capacitor is charged again, the jumper can be replaced.
complete power voltage shutdown. If that is not possible,
then I
2
C communication during battery switchover can
occur which may result in erroneous register writes.
These register writes could result in incorrect data being
written to a valid address, or having correct data written
to an incorrect address. Either way, the erroneous write
could change data in EEPROM (if it exists) or battery
backed SRAM. Erroneous data in RTC control registers
can result in the device not operating properly, even
preventing I
2
C communication with V
DD
powered up.
Steps should be taken to prevent any I
2
C activity during
V
DD
power-down situations.
V
DD
= 2.7V
TO 5.5V
C
IN
0.1µF
GND
RTC
VDD
VBAT
C
BAT
0.1µF
J
BAT
D
BAT
BAT43W
+ V
BAT
= 1.8V
TO 3.2V
FIGURE 3. SUGGESTED BATTERY-BACKUP CIRCUIT
Conclusions
Intersil RTC devices are designed to provide a reliable
clock and calendar function with battery backed up data
in registers. There are some power supply situations that
need to be considered in order to maintain reliable data
and also serial bus communication. With these
considerations, RTC applications can be made reliable
and robust.
I
2
C Communication During Power-Down
Most systems will have an orderly power-down sequence,
including completing I
2
C communications before
Intersil Corporation reserves the right to make changes in circuit design, software and/or specifications at any time without notice. Accordingly, the
reader is cautioned to verify that the Application Note or Technical Brief is current before proceeding.
For information regarding Intersil Corporation and its products, see www.intersil.com
4
AN1549.0
March 1, 2010