DS1251/DS1251P
4096k NV SRAM with Phantom Clock
www.maxim-ic.com
FEATURES
Real-Time Clock Keeps Track of Hundredths
Of Seconds, Minutes, Hours, Days, Date of
the Month, Months, and Years
512k x 8 NV SRAM Directly Replaces
Volatile Static RAM or EEPROM
Embedded Lithium Energy Cell Maintains
Calendar Operation and Retains RAM data
Watch function is Transparent to RAM
Operation
Month and Year Determine the Number of
Days in Each Month; Valid Up to 2100
Over 10 Years of Data Retention in the
Absence of Power
Full 10% Operating Range
Lithium Energy Source is Electrically
Disconnected to Retain Freshness until
Power is Applied for the First Time
DIP Module Only
– Standard 32-Pin JEDEC Pinout
– Upward Comparable with the DS1248
PowerCap
®
Module Board Only
Surface Mountable Package for Direct
Connection to PowerCap Containing
Battery and Crystal
Replaceable Battery (PowerCap)
Pin-for-Pin Compatible with Other
Densities of DS124xP Phantom Clocks
Underwriters Laboratory (UL) Recognized
(www.maxim-ic.com/qa/info/ul/)
Available in Lead-Free Package
PowerCap is a registered trademark of Maxim Integrated Products, Inc.
PIN CONFIGURATIONS
TOP VIEW
A18/RST
A16
A14
A12
A7
A6
A5
A4
A3
A2
A1
A0
DQ0
DQ1
DQ2
GND
1
2
DS1251
3
4
5
6
7
8
9
10
11
12
13
14
15
16
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
V
CC
A15
A17
WE
A13
A8
A9
A11
OE
A10
CE
DQ7
DQ6
DQ5
DQ4
DQ3
Encapsulated Package
740-Mil Flush
RST
A15
A16
N.C.
V
CC
WE
OE
CE
DQ7
DQ6
DQ5
DQ4
DQ3
DQ2
DQ1
DQ0
GND
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
DS1251P
X1
GND V
BAT
X2
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
A18
A17
A14
A13
A12
A11
A10
A9
A8
A7
A6
A5
A4
A3
A2
A1
A0
PowerCap Module Board
(Uses DS9034PCX PowerCap)
1 of 21
REV: 071105
DS1251/DS1251P
ORDERING INFORMATION
PART
T
DS1251W-120
DS1251W-120+
DS1251W-120IND
DS1251W-120IND+
DS1251WP-120
DS1251WP-120+
DS1251WP-120IND
DS1251WP-120IND+
DS1251Y-70
DS1251Y-70+
DS1251YP-70
DS1251YP-70+
DS1251YP-70IND
DS1251YP-70IND+
TEMP RANGE
0°C to +70°C
0°C to +70°C
-40°C to +85°C
-40°C to +85°C
0°C to +70°C
0°C to +70°C
-40°C to +85°C
-40°C to +85°C
0°C to +70°C
0°C to +70°C
0°C to +70°C
0°C to +70°C
-40°C to +85°C
-40°C to +85°C
VOLTAGE
RANGE (V)
3.3
3.3
3.3
3.3
3.3
3.3
3.3
3.3
5.0
5.0
5.0
5.0
5.0
5.0
PIN-PACKAGE
32 EMOD (0.740a)
32 EMOD (0.740a)
32 EMOD (0.740a)
32 EMOD (0.740a)
34 PowerCap*
34 PowerCap*
34 PowerCap*
34 PowerCap*
32 EMOD (0.740a)
32 EMOD (0.740a)
34 PowerCap*
34 PowerCap*
34 PowerCap*
34 PowerCap*
TOP MARK
DS1251W-120
DS1251W-120+
DS1251W-12I IND
DS1251W-12I+IND
DS1251WP-120
DS1251WP-120+
DS1251WP-120IND
DS1251WP-120IND+
DS1251Y-070
DS1251Y-070+
DS1251YP-070
DS1251YP-070+
DS1251YP-070 IND
DS1251YP-070+IND
+
Denotes a lead(Pb)-free/RoHS-compliant device.
*DS9034PCX
(PowerCap) required. Must be ordered separately.
PIN DESCRIPTION
PIN
EDIP PowerCap
1
1
1
34
2
3
3
32
4
30
5
25
6
24
7
23
8
22
9
21
10
20
11
19
12
18
23
28
25
29
26
27
27
26
28
31
30
33
31
2
13
16
14
15
15
14
17
13
18
12
19
11
20
10
21
9
NAME
RST
A18
A16
A14
A12
A7
A6
A5
A4
A3
A2
A1
A0
A10
A11
A9
A8
A13
A17
A15
DQ0
DQ1
DQ2
DQ3
DQ4
DQ5
DQ6
DQ7
FUNCTION
Active-Low Reset Input. This pin has an internal pullup resistor connected to V
CC
.
Address Inputs
Data In/Data Out
2 of 21
DS1251/DS1251P
PIN DESCRIPTION (continued)
PIN
EDIP PowerCap
22
8
24
7
29
6
32
5
—
4
16
17
NAME
CE
OE
WE
V
CC
N.C.
GND
FUNCTION
Active-Low Chip-Enable Input
Active-Low Output-Enable Input
Active-Low Write-Enable Input
Power-Supply Input
No Connection
Ground
DESCRIPTION
The DS1251 4096k NV SRAM with Phantom Clock is a fully static nonvolatile RAM (organized as 512k
words by 8 bits) with a built-in real-time clock. The DS1251Y has a self-contained lithium energy source
and control circuitry, which constantly monitors V
CC
for an out-of-tolerance condition. When such a
condition occurs, the lithium energy source is automatically switched on and write protection is
unconditionally enabled to prevent garbled data in both the memory and real-time clock.
The phantom clock provides timekeeping information including hundredths of seconds, seconds, minutes,
hours, days, dates, months, and years. The date at the end of the month is automatically adjusted for
months with fewer than 31 days, including correction for leap years. The phantom clock operates in either
24-hour or 12-hour format with an AM/PM indicator.
PACKAGES
The DS1251 is available in two packages: 32-pin DIP and 34-pin PowerCap module. The 32-pin DIP
style module integrates the crystal, lithium energy source, and silicon in one package. The 34-pin
PowerCap module board is designed with contacts for connection to a separate PowerCap (DS9034PCX)
that contains the crystal and battery. This design allows the PowerCap to be mounted on top of the
DS1251P after the completion of the surface mount process. Mounting the PowerCap after the surface
mount process prevents damage to the crystal and battery because of the high temperatures required for
solder reflow. The PowerCap is keyed to prevent reverse insertion. The PowerCap Module Board and
PowerCap are ordered separately and shipped in separate containers.
RAM READ MODE
The DS1251 executes a read cycle whenever
WE
(write enable) is inactive (high) and
CE
(chip enable) is
active (low). The unique address specified by the 19 address inputs (A0–A18) defines which of the 512k
bytes of data is to be accessed. Valid data will be available to the eight data-output drivers within t
ACC
(access time) after the last address input signal is stable, providing that
CE
and
OE
(output enable) access
times and states are also satisfied. If
OE
and
CE
access times are not satisfied, then data access must be
measured from the later occurring signal (
CE
or
OE
) and the limiting parameter is either t
CO
for
CE
or
t
OE
for
OE
, rather than address access.
RAM WRITE MODE
The DS1251 is in the write mode whenever the
WE
and
CE
signals are in the active (low) state after
address inputs are stable. The latter occurring falling edge of
CE
or
WE
will determine the start of the
write cycle. The write cycle is terminated by the earlier rising edge of
CE
or
WE
. All address inputs must
3 of 21
DS1251/DS1251P
be kept valid throughout the write cycle.
WE
must return to the high state for a minimum recovery time
(t
WR
) before another cycle can be initiated. The
OE
control signal should be kept inactive (high) during
write cycles to avoid bus contention. However, if the output bus has been enabled (
CE
and
OE
active)
then
WE
will disable the outputs in t
ODW
from its falling edge.
DATA RETENTION MODE
The 5V device is fully accessible and data can be written or read only when V
CC
is greater than V
PF
.
However, when V
CC
is below the power-fail point, V
PF
(point at which write protection occurs), the
internal clock registers and SRAM are blocked from any access. When V
CC
falls below the battery switch
point, V
SO
(battery supply level), device power is switched from the V
CC
pin to the backup battery. RTC
operation and SRAM data are maintained from the battery until V
CC
is returned to nominal levels.
The 3.3V device is fully accessible and data can be written or read only when V
CC
is greater than V
PF.
When V
CC
falls below the power-fail point, V
PF
, access to the device is inhibited. If V
PF
is less than V
BAT,
the device power is switched from V
CC
to the backup supply (V
BAT
) when V
CC
drops below V
PF
. If V
PF
is
greater than V
BAT
, the device power is switched from V
CC
to the backup supply (V
BAT
) when V
CC
drops
below V
BAT
. RTC operation and SRAM data are maintained from the battery until V
CC
is returned to
nominal levels.
All control, data, and address signals must be powered down when V
CC
is powered down.
PHANTOM CLOCK OPERATION
Communication with the phantom clock is established by pattern recognition on a serial bit stream of
64 bits, which must be matched by executing 64 consecutive write cycles containing the proper data on
DQ0. All accesses that occur prior to recognition of the 64-bit pattern are directed to memory.
After recognition is established, the next 64 read or write cycles either extract or update data in the
phantom clock, and memory access is inhibited.
Data transfer to and from the timekeeping function is accomplished with a serial bit stream under control
of chip enable, output enable, and write enable. Initially, a read cycle to any memory location using the
CE
and
OE
control of the phantom clock starts the pattern recognition sequence by moving a pointer to
the first bit of the 64-bit comparison register. Next, 64 consecutive write cycles are executed using the
CE
and
WE
control of the SmartWatch. These 64 write cycles are used only to gain access to the
phantom clock. Therefore, any address to the memory in the socket is acceptable. However, the write
cycles generated to gain access to the phantom clock are also writing data to a location in the mated
RAM. The preferred way to manage this requirement is to set aside just one address location in RAM as a
phantom clock scratch pad. When the first write cycle is executed, it is compared to bit 0 of the 64-bit
comparison register. If a match is found, the pointer increments to the next location of the comparison
register and awaits the next write cycle. If a match is not found, the pointer does not advance and all
subsequent write cycles are ignored. If a read cycle occurs at any time during pattern recognition, the
present sequence is aborted and the comparison register pointer is reset. Pattern recognition continues for
a total of 64 write cycles as described above until all the bits in the comparison register have been
matched (Figure 1). With a correct match for 64 bits, the phantom clock is enabled and data transfer to or
4 of 21
DS1251/DS1251P
from the timekeeping registers can proceed. The next 64 cycles will cause the phantom clock to either
receive or transmit data on DQ0, depending on the level of the
OE
pin or the
WE
pin. Cycles to other
locations outside the memory block can be interleaved with
CE
cycles without interrupting the pattern
recognition sequence or data transfer sequence to the phantom clock.
PHANTOM CLOCK REGISTER INFORMATION
The phantom clock information is contained in eight registers of 8 bits, each of which is sequentially
accessed 1 bit at a time after the 64-bit pattern recognition sequence has been completed. When updating
the phantom clock registers, each register must be handled in groups of 8 bits. Writing and reading
individual bits within a register could produce erroneous results. These read/write registers are defined in
Figure 2.
Data contained in the phantom clock register is in binary-coded decimal format (BCD). Reading and
writing the registers is always accomplished by stepping through all eight registers, starting with bit 0 of
register 0 and ending with bit 7 of register 7.
PHANTOM CLOCK REGISTER DEFINITION
Figure 1
NOTE:
THE PATTERN RECOGNITION IN HEX IS C5, 3A, A3, 5C, C5, 3A, A3, 5C. THE ODDS OF THIS PATTERN BEING ACCIDENTALLY
DUPLICATED AND CAUSING INADVERTENT ENTRY TO THE PHANTOM CLOCK IS LESS THAN 1 IN 10
19
. THIS PATTERN IS SENT TO
THE PHANTOM CLOCK LSB TO MSB.
5 of 21