DS1558
Watchdog Clock with NV RAM Control
www.maxim-ic.com
FEATURES
Integrated Real-Time Clock (RTC), Power-
Fail Control Circuit, and NV RAM Controller
Clock Registers are Accessed Identically to
the Static RAM; These Registers are Resident
in the 16 Top RAM Locations
Century Register
Greater than 10 Years of Timekeeping and
Data Retention in the Absence of Power with
Small Lithium Coin Cell(s) and Low-Leakage
SRAM
Precision Power-On Reset
Programmable Watchdog Timer and RTC
Alarm
BCD-Coded Year, Month, Date, Day, Hours,
Minutes, and Seconds with Automatic Leap-
Year Compensation Valid Up to the Year
2100
Battery Voltage-Level Indicator Flag
Power-Fail Write Protection Allows for
10%
V
CC
Power-Supply Tolerance
Underwriters Laboratory (UL) Recognized
PIN CONFIGURATION
GND
X1
X2
GND
A17
N.C.
V
CC
N.C.
V
CCO
N.C.
RST
V
BAT
2
1
2
3
4
5
6
7
8
9
10
11
12
48
47
46
45
44
43
42
41
40
39
38
37
N.C.
A18
A16
A14
A12
A7
A6
A5
A4
A3
A2
A1
TOP VIEW
DS1558
ORDERING INFORMATION
PART
DS1558W
DS1558W+
DS1558W-TRL
DS1558W+TRL
DS1558Y
DS1558Y+
DS1558Y-TRL
DS1558Y+TRL
TEMP RANGE
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
-40°C to +85°C
VOLTAGE
(V)
3.3
3.3
3.3
3.3
5.0
5.0
5.0
5.0
PIN-PACKAGE
48 TQFP (7 x 7 x 1mm)
48 TQFP (7 x 7 x 1mm)
48 TQFP (7 x 7 x 1mm)
48 TQFP (7 x 7 x 1mm)
48 TQFP (7 x 7 x 1mm)
48 TQFP (7 x 7 x 1mm)
48 TQFP (7 x 7 x 1mm)
48 TQFP (7 x 7 x 1mm)
TOP MARK*
DS1558D
DS1558D
DS1558D
DS1558D
DS1558B
DS1558B
DS1558B
DS1558B
+
Denotes a lead(Pb)-free/RoHS-compliant device.
*
A “+” anywhere on the top mark indicates a lead-free device.
Note:
Some revisions of this device may incorporate deviations from published specifications known as errata. Multiple revisions of any device
may be simultaneously available through various sales channels. For information about device errata, click here:
www.maxim-ic.com/errata.
1 of 18
N.C.
A0
DQ0
DQ1
DQ2
GND
DQ3
DQ4
DQ5
DQ6
DQ7
CER
13
14
15
16
17
18
19
20
21
22
23
24
36
35
34
33
32
31
30
29
28
27
26
25
A15
V
BAT1
WE
IRQ/FT
A13
A8
A9
A11
OE
A10
CE
OER
TQFP
REV: 071305
DS1558
PIN DESCRIPTION
PIN
1, 13, 39
41, 43
2
3
4
5
6
7
8
9
10
11
12
14
27
29
30
31
32
36
44
15
16
17
19
20
21
22
23
18, 45,
48
24
NAME
N.C.
A18
A16
A14
A12
A7
A6
A5
A4
A3
A2
A1
A0
A10
A11
A9
A8
A13
A15
A17
DQ0
DQ1
DQ2
DQ3
DQ4
DQ5
DQ6
DQ7
GND
CER
No Connection
FUNCTION
Address Inputs for Address Decode. The DS1558 uses the address inputs to determine
whether or not a read or write cycle should be directed to the attached SRAM or to the
RTC registers.
Data Input/Outputs. Data input/output pins for the RTC registers.
Ground
Active-Low Chip-Enable RAM.
CE
is passed through to
CER,
with an added
propagation delay. When the signals on A0–A18 match an RTC address,
CER
is held
high, disabling the SRAM. If
OE
is also low, the RTC outputs data on DQ0–DQ7.
Active-Low Output-Enable RAM.
OE
is passed through to
OER,
with an added
propagation delay. When the signals on A0–A18 match an RTC address,
CER
is held
high, disabling the SRAM. If
CE
is also low, the RTC outputs data on DQ0–DQ7.
Active-Low Chip-Enable Input. Used to access the RTC and the external SRAM.
Active-Low Output-Enable Input. Used to access the RTC and the external SRAM.
Active-Low Interrupt/Frequency-Test Output. This pin is used to output the alarm
interrupt or the frequency test signal. It is open drain and requires an external pullup
resistor.
Active-Low Write Enable. Used to write data to the RTC registers.
2 of 18
25
26
28
33
34
OER
CE
OE
IRQ/FT
WE
DS1558
PIN DESCRIPTION (continued)
PIN
35
37
NAME
V
BAT1
V
BAT2
FUNCTION
Battery Inputs for Any Standard +3V Lithium Cell or Other Energy Source. Battery
voltage must be held between 2.5V and 3.7V for proper operation. UL recognized to
ensure against reverse charging current when used with a lithium battery. If only one
battery is used, it should be attached to V
BAT1
, and V
BAT2
should be grounded. See
“Conditions of Acceptability” at
www.maxim-ic.com/TechSupport/QA/ntrl.htm
.
Active-Low Power-On Reset Output (Open Drain). This pin is an output used to signal
that V
CC
is out of tolerance. On power-up,
RST
is held low for a period of time to allow
the system to stabilize. The RTC and SRAM are not accessible while
RST
is active. This
pin is open drain and requires an external pullup resistor.
V
CC
Output to RAM. While V
CC
is above V
BAT
, the external SRAM is powered by V
CC
.
When V
CC
is below the battery level, the SRAM is powered by one of the V
BAT
inputs.
Power-Supply Input. DC power is provided to the device on these pins. V
CC
is the +5V
input. When 5V (or 3.3V for the 3.3V version) is applied within normal limits, the device
is fully accessible and data can be written and read. Reads and writes are inhibited when
a 3V battery is connected to the device and V
CC
is V
TP
. However, the timekeeping
function continues unaffected by the lower input voltage. As V
CC
falls below V
BAT
, the
RAM and RTC are switched over to the external power supply (nominal 3.0V DC) at
V
BAT
.
Connections for Standard 32.768kHz Quartz Crystal. The internal oscillator circuitry is
designed for operation with a crystal having a specified load capacitance (C
L
) of 6pF. For
more information about crystal selection and crystal layout considerations, refer to
Application Note 58: Crystal Considerations with Dallas Real-Time Clocks.
The DS1558
can also be driven by an external 32.768kHz oscillator. In this configuration, the X1 pin
is connected to the external oscillator signal and the X2 pin is floated.
38
RST
40
V
CCO
42
V
CC
46
X1
47
X2
TYPICAL OPERATING CIRCUIT
3 of 18
DS1558
DESCRIPTION
The DS1558 is a full-function, year 2000-compliant (Y2KC), real-time clock/calendar with an RTC
alarm, watchdog timer, power-on reset, battery monitor, and NV SRAM controller. User access to all
registers within the DS1558 is accomplished with a byte-wide interface as shown in Figure 1. The RTC
registers contain century, year, month, date, day, hours, minutes, and seconds data in 24-hour BCD
format. Corrections for day of month and leap year are made automatically.
The DS1558 maps the RTC registers into the SRAM address space and constantly monitors A0–A18.
When any of the upper 16 address locations are accessed, the DS1558 inhibits
CER
and
OER
to the
SRAM, and redirects reads and writes to the RTC registers within the DS1558. The DS1558 can be used
with SRAMs up to 524,272 addresses. Smaller SRAMs can be used, provided that the unused upper
address lines on the DS1558 are connected to V
CC
.
The RTC registers are double-buffered into an internal and external set. The user has direct access to the
external set. Clock/calendar updates to the external set of registers can be disabled and enabled to allow
the user to access static data. Assuming the internal oscillator is turned on, the internal set of registers is
continuously updated; this occurs regardless of external register settings to guarantee that accurate RTC
information is always maintained.
The DS1558 has interrupt (
IRQ
/FT) and reset (
RST
) outputs that can be used to control CPU activity.
The
IRQ
/FT interrupt output can be used to generate an external interrupt when the RTC register values
match user-programmed alarm values. The interrupt is always available while the device is powered from
the system supply, and it can be programmed to occur when in the battery-backed state to serve as a
system wake-up. The
IRQ
/FT output can also be used as a CPU watchdog timer. CPU activity is
monitored and an interrupt or reset output are activated if the correct activity is not detected within
programmed limits. The DS1558 power-on reset can be used to detect a system power-down or failure
and hold the CPU in a safe reset state until normal power returns and stabilizes; the
RST
output is used
for this function.
The DS1558 also contains its own power-fail circuitry, which automatically protects the data in the clock
and SRAM against out-of-tolerance V
CCI
conditions by inhibiting the
CE
input when the V
CC
supply
enters an out-of-tolerance condition. When V
CCI
goes below the level of V
BAT
, the external battery is
switched on to supply energy to the clock and the external SRAM. This feature provides a high degree of
data security during unpredictable system operation brought on by low V
CC
levels.
4 of 18
DS1558
Figure 1. BLOCK DIAGRAM
NOTE:
ANY UNUSED UPPER ADDRESS PINS MUST BE CONNECTED TO V
CC
TO PROPERLY ADDRESS THE RTC.
Table 1. OPERATING MODES
V
CC
V
CC
> V
PF
V
SO
< V
CC
< V
PF
V
CC
< V
SO
< V
PF
CE
OE
WE
V
IH
V
IL
V
IL
V
IL
X
X
X
X
V
IL
V
IH
X
X
X
V
IL
V
IH
V
IH
X
X
DQ0–DQ7
High-Z
D
IN
D
OUT
High-Z
High-Z
High-Z
MODE
Deselect
Write
Read
Read
Deselect
Data Retention
POWER
Standby
Active
Active
Active
CMOS Standby
Battery Current
DATA READ MODE
The DS1558 is in the read mode whenever
CE
is low and
WE
is high. The device architecture allows
ripple-through access to any valid address location. Valid data is available at the DQ pins within t
AA
after
the last address input is stable, provided that
CE
and
OE
access times are satisfied. If
CE
or
OE
access
times are not met, valid data is available at the latter of chip-enable access (t
CEA
) or at output-enable
access time (t
OEA
). The state of the data input/output pins (DQ) is controlled by
CE
and
OE
. If the
outputs are activated before t
AA
, the data lines are driven to an intermediate state until t
AA
. If the address
inputs are changed while
CE
and
OE
remain valid, output data remains valid for output-data hold time
(t
OH
), but then goes indeterminate until the next address access.
5 of 18