RAM is a 2Kb x 8
non-volatile static RAM and real time c lock which
is pin and functional compatible with the DS1642.
A special 24-pin, 600mil DIP CAPHAT™ package
houses the M48T02/12 silicon with a quartz crystal
and a long life lithium but ton cell to form a hi ghly
integrated battery backed-up memory and real
time clock solution.
The M48T02/12 button cell has sufficient capacity
and storage life to maintain data and clock func-
tionality for an accumulated time period of at least
10 years in the absence of power over the operating temperature range.
The M48T02/12 i s a non-volatile pin and function
equivalent to any JEDEC standard 2Kb x 8 SRAM.
It also easily fits into many ROM , EPROM, and
EEPROM sockets, providing the non-volatility of
PROMs without any requirement for special
WRITE timing or limitations on the number of
WRITEs that can be performed.
Figure 2. Logic DiagramTable 1. Signal Names
A0-A10Address Inputs
DQ0-DQ7Data Inputs / Outputs
E
G
W
V
V
CC
SS
Chip Enable
Output Enable
WRITE Enable
Supply Voltage
Ground
A0-A10
W
V
CC
11
M48T02
M48T12
E
G
8
DQ0-DQ7
V
SS
Figure 3. DIP C on ne ctions
AI01027
A7
A6
A5
A4
A3
A2
A1
A0
DQ0
DQ2
SS
1
2
3
4
5
6
7
8
9
10
11
12
M48T02
M48T12
24
23
22
21
20
19
18
17
16
15
14
13
AI01028
V
CC
A8
A9
W
G
A10
E
DQ7
DQ6
DQ5DQ1
DQ4
DQ3V
3/19
M48T02, M48T12
Figure 4. Block Diagram
OSCILLATOR AND
CLOCK CHAIN
32,768 Hz
CRYSTAL
POWER
LITHIUM
CELL
VOLTAGE SENSE
AND
SWITCHING
CIRCUITRY
V
CC
MAXIMUM RATIN G
Stressing the device ab ove the rating listed in the
“Absolute Maximum Ratings” table may cause
permanent damage to the device. These are
stress ratings only and operation of the dev ice at
these or any other conditions above those indicated in the Operating sections of this specification is
8 x 8 BiPORT
SRAM ARRAY
A0-A10
DQ0-DQ7
E
W
G
AI01329
V
PFD
BOK
2040 x 8
SRAM ARRAY
V
SS
not implied. Exposure to Absol ute Maxim um Ra ting conditions for extended periods may affect device reliability. Refer also to the
STMicroelectronics SURE Program and other relevant quality documents.
Table 2. Absolute Maximum Ratings
SymbolParameterValueUnit
T
A
T
STG
(2)
T
SLD
V
IO
V
CC
I
O
P
D
Note: 1. Soldering temperature not to exceed 260°C for 10 seconds (total thermal budget not to exceed 150°C for longer than 30 seconds).
CAUTION: Negative unders hoots below –0.3V are not allowe d on any pin while in the Batter y Back-up mode.
4/19
Ambient Operating Temperature0 to 70°C
Storage Temperature (VCC Off, Oscillator Off)
–40 to 85°C
Lead Solder Temperature for 10 seconds260°C
Input or Output Voltages–0.3 to 7V
Supply Voltage–0.3 to 7V
Output Current20mA
Power Dissipation1W
M48T02, M48T12
DC AND AC PARAMETERS
This section summarizes the operat ing and measurement conditions, as well as the DC and AC
characteristics of the device. The parameters in
the following DC and AC Characteristic tables are
derived from tests performed under the M easure-
Table 3. Operating and AC Measurement Conditions
ParameterM48T02M48T12Un it
Supply Voltage (V
Ambient Operating Temperature (T
Load Capacitance (C
CC
)
)
A
)
L
Input Rise and Fall Times
Input Pulse Voltages0 to 30 to 3V
Input and Output Timing Ref. Voltages1.51.5V
Note: Output Hi -Z is define d as the point wh ere data is no l onger driven.
Figure 5. AC Testing Load Circuit
5V
ment Conditions listed in the rel evant tables. Designers should check that the operating conditions
in their projects match the measurement conditions when using the quoted parameters.
4.75 to 5.54.5 to 5.5V
0 to 700 to 70°C
100100pF
5
≤
5ns
≤
1.8kΩ
DEVICE
UNDER
TEST
1kΩ
CL includes JIG capacitance
OUT
CL = 100pF
AI01019
Table 4. Capacitance
Symbol
C
IN
C
IO
Note: 1. Effec tive capacit ance measured with power supply at 5V. Sampl ed only, not 10 0% tested.
2. At 25°C, f = 1MHz.
3. Outputs deselected.
Input Capacitance10pF
(3)
Input / Output Capacitance10pF
Parameter
(1,2)
MinMaxUnit
5/19
M48T02, M48T12
Table 5. DC Characteristics
SymbolParameter
Test Condition
(1)
MinMaxUnit
I
LI
I
LO
I
CC
I
CC1
I
CC2
V
IL
V
V
OL
V
OH
Note: 1. Vali d for Ambient Operating Tem perature: TA = 0 to 70°C; VCC = 4.75 to 5.5V or 4.5 to 5.5V (except where noted).
2. Outputs deselected.
3. Measured with Control Bits set as follows: R = '1'; W, ST, FT = '0.'
4. Negati ve spike s of –1V allowe d f or up to 10ns once per Cycl e.
Input Leakage Current
(2)
Output Leakage Current
Supply CurrentOutputs open80mA
(3)
Supply Current (Standby) TTL
(3)
Supply Current (Standby) CMOS
(4)
Input Low Voltage–0.30.8V
Input High Voltage2.2
IH
Output Low Voltage
Output High Voltage
0V ≤ V
0V ≤ V
E
≤ V
IN
CC
≤ V
OUT
E
= V
IH
= VCC – 0.2V
I
= 2.1mA
OL
I
= –1mA
OH
CC
±1µA
±1µA
3mA
3mA
V
+ 0.3
CC
0.4V
2.4V
OPERATION MODES
As Figure 4, page 4 s hows, the static memory array and the quartz controlled clock oscillator of the
M48T02/12 are integrated on one silicon chip. The
two circuits are interconnected at the up per eight
memory locations to provide user accessible
BYTEWIDE™ clock information in the by tes with
addresses 7F8h-7FFh. The clock locations contain the year, month, date, day, hour, minute, and
second in 24 hour BCD format. Corrections for 28,
29 (leap year - valid until 2100), 30, and 31 day
months are made automatically.
Byte 7F8h is the clock control register. This byte
controls user access to the clock information and
also stores the clock calibration setting.
The eight clock bytes are not the actual clock
counters themselves; they are memory locat ions
consisting of BiPORT™ READ/WRITE memory
cells. The M48T02/12 includes a clock cont rol circuit which updates the clock bytes with current information once per second. The information can
be accessed by the user in the same manner as
any other location in the static memory array.
The M48T02/12 also has its own Power-fail Detect
circuit. The control circuitry constantly monitors
the single 5V supply for an out of tolerance condition. When V
is out of tolerance, the circuit write
CC
protects the SRAM, providing a high degree of
data security in the midst of unpredictable system
operation brought on by low V
CC
. As V
low approximately 3V, the control circuitry connects the battery which maintains data and clock
operation until valid power returns.
CC
V
falls be-
Table 6. Operating Modes
Mode
Deselect
WRITE
READ
READ
Deselect
V
Deselect
Note: X = VIH or VIL; VSO = Battery Back-up Swit chover Voltage.
The M48T02/12 is in the READ Mode whenever W
(WRITE Enable) is high and E (Chip Enable) is
low. The device architecture allows ripple-through
access of data from eight of 16,384 locations in the
static storage array. Thus, the unique address
specified by the 11 Address Inputs defines which
one of the 2,048 bytes of data is to be accessed.
Valid data will be available at the Data I/O pins
within Address Access time (t
) after the last
AVQV
address input signal is stable, providing that the E
and G access times are also satisfied. If the E and
G
access times are not met, valid data will be
Figure 6. READ Mode AC Waveforms
M48T02, M48T12
available after the latter of the Chip Enable Access
time (t
(t
GLQV
The state of the eight t hree-s tate Da ta I/O s i gnals
is controlled by E
ed before t
indeterminate state until t
puts are changed while E
output dat a will rem ain v alid for Outp ut Dat a Hold
time (t
Addr e ss Access.
tAVAV
) or Output Enable Access time
ELQV
).
and G. If the outputs are activat-
, the data lines will be driven to an
AVQV
. If the Ad dres s In-
AVQV
and G remain active,
) but will go indeterminate until the next
AXQX
A0-A10
tAVQVtAXQX
tELQV
E
tELQX
tGLQV
G
tGLQX
DQ0-DQ7
Note: WRITE Enable (W) = High.
VALID
tEHQZ
tGHQZ
VALID
AI01330
Table 7. READ Mode AC Characteristics
M48T02/M48T1 2
Symbol
t
AVAV
t
AVQV
t
ELQV
t
GLQV
t
ELQX
t
GLQX
t
EHQZ
t
GHQZ
t
AXQX
Note: 1. Vali d for Ambient Operating Tem perature: TA = 0 to 70°C; VCC = 4.75 to 5.5V or 4.5 to 5.5V (except where noted).
READ Cycle Time70150200ns
Address Valid to Output Valid70150200ns
Chip Enable Low to Output Valid70150200ns
Output Enable Low to Output Valid357580ns
Chip Enable Low to Output Transition51010ns
Output Enable Low to Output Transition555ns
Chip Enable High to Output Hi-Z253540ns
Output Enable High to Output Hi-Z253540ns
Address Transition to Output Transition1055ns
Parameter
(1)
MinMaxMinMaxMinMax
Unit–70–150–200
7/19
M48T02, M48T12
WRITE Mode
The M48T02/12 is i n the W RITE M ode whenever
W
and E are activ e. The s tart of a WRI TE is refer -
enced from the latter occurring falling edge of W
. A WRITE is terminated by the earlier rising
E
edge of W
throughout the cycle. E
a minimum of t
or E. The addresses must be held valid
or W must return high for
from Chip Enable or t
EHAX
or
WHAX
from WRITE Enable prior to the initiation of anoth-
Figure 7. WRITE Enable Controlled, WRITE AC Waveform
er READ or WRITE cycle. Data-in must be valid t
prior to the end of WRITE and remain valid for
VWH
t
WHDX
WRITE cycles to avoid bus contention; although, if
the output bus has been activated by a low on E
and G, a low on W will disable the out puts t
after W falls.
tAVAV
D-
afterward. G should be kept high during
WLQZ
A0-A10
tAVEL
E
tAVWL
W
tWLQZ
DQ0-DQ7
VALID
tAVWH
tWLWH
Figure 8. Chip Enable Controlled, WRITE AC Waveforms
tAVAV
A0-A10
tAVEL
VALID
tAVEH
tELEH
tDVWH
tWHAX
tWHQX
tWHDX
DATA INPUT
AI01331
tEHAX
8/19
E
W
DQ0-DQ7
tAVWL
DATA INPUT
tDVEH
tEHDX
AI01332B
M48T02, M48T12
Table 8. WRITE Mode AC Characteristics
M48T02/M48T12
Symbol
t
AVAV
t
AVWL
t
AVEL
t
WLWH
t
ELEH
t
WHAX
t
EHAX
t
DVWH
t
DVEH
t
WHDX
t
EHDX
t
WLQZ
t
AVWH
t
AVEH
t
WHQX
Note: 1. Vali d for Ambient Operating Tem perature: TA = 0 to 70°C; VCC = 4.75 to 5.5V or 4.5 to 5.5V (except where noted).
WRITE Cycle Time70150200ns
Address Valid to WRITE Enable Low000ns
Address Valid to Chip Enable Low000ns
WRITE Enable Pulse Width5090120ns
Chip Enable Low to Chip Enable High5590120ns
WRITE Enable High to Address Transition01010ns
Chip Enable High to Address Transition01010ns
Input Valid to WRITE Enable High304060ns
Input Valid to Chip Enable High304060ns
WRITE Enable High to Input Transition555ns
Chip Enable High to Input Transition555ns
WRITE Enable Low to Output Hi-Z255060ns
Address Valid to WRITE Enable High60120140ns
Address Valid to Chip Enable High60120140ns
WRITE Enable High to Output Transition51010ns
Parameter
(1)
MinMaxMinMaxMinMax
Unit–70–150–200
9/19
M48T02, M48T12
Data Retention Mode
With valid V
applied, the M48T02/12 operates
CC
as a conventional BYTEWIDE™ static RAM.
Should the supply voltage decay, the RAM will automatically power-fail deselect, write protecting itself when V
falls within the V
CC
PFD
(max), V
PFD
(min) window. All outputs become high impedance, and all inputs are treated as “don't care.”
Note: A power failure during a WRITE cycle may
corrupt data at the currently a ddressed location,
but does not jeopardize the rest of the RAM's content. At voltages below V
(min), the user can be
PFD
assured the memory will be i n a write protected
state, provided the V
fall time is not less than tF.
CC
The M48T02/12 may respond to transient noise
spikes on V
during the time the device is sampling V
that reach into the deselect window
CC
. There-
CC
fore, decoupling of the power supply lines is recommended.
The power switching circuit connects external V
to the RAM and disconnects the battery when V
CC
CC
rises above VSO. As VCC rises, the battery voltage
is checked. If the voltage is too low, an internal
Batte ry Not O K (BOK
) flag will be set. The BOK
flag can be checked after power up. If the BOK flag
is set, the first WRITE attem pted will be blocked.
The flag is automatically cleared after the first
WRITE, and normal RAM operation resumes. Figure 9 illustrates how a BOK
check routine could be
str uctured.
For more information on a Battery Storage Life re-
fer to the Application Note AN1012.
Figure 9. Checking the BOK
POWER-UP
READ DATA
AT ANY ADDRESS
WRITE DATA
COMPLEMENT BACK
TO SAME ADDRESS
READ DATA
AT SAME
ADDRESS AGAIN
COMPLEMENT
OF FIRST
(BATTERY OK)
WRITE ORIGINAL
DATA BACK TO
SAME ADDRESS
CONTINUE
IS DATA
READ?
YES
NO
Flag Status
(BATTERY LOW)
NOTIFY SYSTEM
OF LOW BATTERY
(DATA MAY BE
CORRUPTED)
10/19
AI00607
Figure 10. Power Down/Up Mode AC Waveforms
V
CC
V
(max)
PFD
V
(min)
PFD
VSO
M48T02, M48T12
tF
tFB
INPUTS
OUTPUTS
Note: Inputs may or may not be recognized at this time. Caution should be taken to keep E high as VCC rises past V
may perf orm inadvertent WRI T E cycles after V
power on reset is being applied to the pr ocessor, a res et condition may not occur unt i l a fter the system c l ock is running.
VALIDVALID
(PER CONTROL INPUT)
rises ab ove V
CC
tDR
DON'T CARE
HIGH-Z
(min) bu t b efore normal system operations be gi n. Even though a
PFD
tR
NOTE
(PER CONTROL INPUT)
PFD
tRECtPDtRB
RECOGNIZEDRECOGNIZED
(min). Some systems
Table 9. Power Down/Up AC Characteristics
Symbol
t
PD
(2)
t
F
(3)
t
FB
t
R
t
RB
t
REC
Note: 1. Vali d for Ambient Operating Tem perature: TA = 0 to 70°C; VCC = 4.75 to 5.5V or 4.5 to 5.5V (except where noted).
2. V
es V
3. V
E or W at VIH before Power Down
V
(max) to V
PFD
V
(min) to VSS VCC Fall Time
PFD
V
(min) to V
PFD
VSS to V
E or W at V
(max) to V
PFD
(min).
PFD
(min) to VSS fall time of less than tFB may cause corruption of RAM data.
PFD
PFD
IH
(min) fall time of less than tF may result in deselection/write protection not occurring until 200µs after VCC pass-
PFD
Parameter
(min) VCC Fall Time
PFD
(max) VCC Rise Time
PFD
(min) VCC Rise Time
before Power Up
(1)
MinM axUnit
0µs
300µs
10µs
0µs
1µs
2ms
AI00606
Table 10. Power Down/Up Trip Points DC Characteristics
Symbol
V
PFD
V
SO
t
DR
Note: 1. All voltages referenced to VSS.
2. Valid for Ambient Operatin g T em perature: T
Power-fail Deselect Voltage
Battery Back-up Switchover Voltage3.0V
Expected Data Retention Time10YEARS
Parameter
(1,2)
M48T024.54.64.75V
M48T124.24.34.5V
= 0 to 70°C; VCC = 4.75 to 5.5V or 4.5 to 5.5V (except where noted).
A
MinTypMaxUnit
11/19
M48T02, M48T12
CLOCK OPERATIONS
Reading the Clock
Updates to the TIMEKEEPER
be halted before clock data is read to prevent
reading data in transition. The BiPORT ™ TIMEKEEPER cel ls in the RAM array are o n ly data registers and not the actual clock counters, so
updating the registers can be halted without disturbing the clock itself.
Updating is halted when a '1' is written to the
READ Bit, the seventh bit in the control register.
As long as a '1' remains in that po sition, updating
is halted. After a halt is issued, the registers reflect
the count; tha t is, the day, date, and t he time that
were current at the moment the halt command was
issued.
All of the TIMEKEEPER registers are updated simultaneously. A halt will not interrupt an update in
progress. Updating is within a second after the bit
is reset to a '0.'
Table 11. Register Map
Address
D7D6D5D4D3D2D1D0
®
registers should
Data
Setting the Cl ock
The eighth bit of the control register is the WRITE
Bit. Setting the WRITE Bit to a '1,' like the RE AD
Bit, halts updates to the TIMEKEEPER registers.
The user can then load them with the correct day,
date, and time data in 24 hour BCD format (on Table 11). Resetting the WRITE Bit to a '0' then transfers the values of all time registers (7F9-7FF) to
the actu al TIMEKE EPER c ount ers and al low s nor mal operation to resume. The FT B it and the bits
marked as '0' in Table 11 must be writ ten to '0' to
allow for normal TIMEKEEPER and RAM operation.
7F9ST10 Seco ndsSecondsS econ ds00 -59
7F8WRSCalibration Control
Keys : S = SIGN Bit
FT = FREQUE NCY TEST Bit (Set to ’0’ for normal clock operati on)
R = READ Bit
W = WRITE Bit
ST = STOP Bit
0 = Must be set to ’0’
12/19
Stopping and Starting the Oscillator
The oscillator may be stopped at any time. If the
device is going to spend a significant amount of
time on the shelf, the oscillator can be turned off to
minimize current drain on the battery. The STOP
Bit is the MSB of the seconds register. Setting it to
a ’1’ stops the oscillator. The M48T02/12 is
shipped from STMicroelectronics with the STOP
Bit set to a ’1.’ When reset to a ’0,’ the M48T02/12
oscillator starts within one second.
Calib ratin g t h e C lock
The M48T02/12 is driven by a quartz-controlled
oscillator with a nominal frequency of 32,768 Hz.
A typical M48T02/12 is accurate within 1 minute
per month at 25°C without calibration. The devices
are tested not to exceed ± 35 PPM (parts per m illion) oscillator frequency error at 25°C, which
equates to about ±1.53 minutes per month.
The oscillation rate of any crystal changes with
temperature. Figure 11, page 14 shows the frequency error that can be expected at various temperatures. Most clock chips compensate for
crystal frequency and temperat ure shift error with
cumbersome “trim” capacitors. The M48T02/12
design, however, employs periodic counter correction. The calibration circuit adds or subtracts
counts from the oscillator divider circuit at the divide by 256 stage, as shown in Figure 12, page 14.
The number of times pulses are blanked (subtracted, negative calibration) or split (added, positive
calibration) depends upon the value loaded into
the five-bit Calibration Byte f ound in the Control
Register. Adding counts speeds the clock up, subtracting counts slows the clock down.
The Calibration Byte occupies the five lower order
bits in the Control register. This byte can be set to
represent any value be tween 0 and 31 in binary
form. The sixth bit is the Sign Bit; '1' indicates positive calibration, '0' indicates negative calibration.
Calibration occurs within a 64 minute cycle. The
first 62 minutes i n the cycle may, o nce per minut e,
have one second either shortened by 128 or
lengthened by 256 oscillator cycles. If a binary '1'
is loaded into the register, only the first 2 minutes
in the 64 minute cycle will be modified; if a binary
6 is loaded, the first 12 will be affected, and so on.
Therefore, each cal ibration step has the effect of
adding 512 or subtracting 256 oscillator cycles for
every 125,829,120 actual oscillator cycles; that is
+4.068 or –2.034 PPM of adjustm ent per calibra-
M48T02, M48T12
tion step in the cal ibration registe r. Ass um ing that
the oscillator is in fact running at exactly 32,768Hz,
each of the 31 increments in the Calibration Byte
would represent +10.7 or –5.35 seconds per
month which corresponds to a total range of +5.5
or –2.75 minutes per month.
Two methods are available for ascertaining how
much calibration a given M48T02/12 may require.
The first involves simply setting the clock, letting it
run for a month and comparing it to a known accurate reference (like WWV broadcasts). While that
may seem crude, it allows the designer to give the
end user the ability to calibrate his clock as his environment may require, even after the final product
is packaged in a non-user serviceable enclosure.
All the designer has to do is provide a simple utility
that accesses the Calibration Byte.
The second approach is better suit ed to a manufacturing environment, and involves the use of
some test equipment. When the F requency Test
(FT) Bit, the seventh-most significant bit in t he Day
Register, is set to a '1, ' and the oscillator i s running
at 32,768 Hz, the LSB (DQ0) of the Seconds Register will toggle at 512 Hz. Any deviation from 512
Hz indicates the degree and direction of oscillator
frequency shift at the test temperature. For example, a reading of 512.01024 Hz would i ndicate a
+20 PPM oscillator freque ncy error, requiring a –
10 (WR001010) to be loaded into the Calibration
Byte for correction.
Note: Setting or changing the Calibration Byte
does not affect the Frequency Test output frequency. The device must be selected and addresses must be stable at Address 7F9 when
reading the 512 Hz on DQ0.
The FT Bit must be set using the same method
used to set the clo ck: using the WRITE Bit. The
LSB of the Seconds Register is monitored by holding the M48T02/12 in an extended READ of the
Seconds Register, but without having the READ
Bit set. The FT Bit MUST be reset to ' 0 ' for normal
clock operations to re sume.
Note: It is not necessary to set the WRITE Bit
when setting or resetting the Frequency Test Bit
(FT) or the Stop Bit (ST).
For more information on calibration, see the Application Note AN924, “TIMEKEEPER
®
Calibration.”
13/19
M48T02, M48T12
Figure 11. Crystal Accuracy Across Temp eratur e
ppm
20
0
-20
-40
-60
-80
-100
0510152025303540455055606570
Figure 12. Cloc k C al ib rat i on
NORMAL
POSITIVE
CALIBRATION
NEGATIVE
CALIBRATION
∆F
= -0.038(T - T0)2 ± 10%
F
ppm
2
C
T0 = 25 °C
°C
AI02124
AI00594B
14/19
M48T02, M48T12
Power Supply Decoupling and Undershoot
Protection
I
transients, including those produced by output
CC
switching, can produce voltage fluctuations, resulting in spikes on the V
bus. These transients
CC
can be reduced if capacitors are used to store energy which stabilizes the V
bus. The energy
CC
stored in the bypass capacitors will be released as
low going spikes are generated or energy will be
absorbed when overshoots occur. A ceramic by-
pass capacitor value of 0.1µF (as shown in Figure
13) is recommended in order to provide the needed filtering.
In addition to transients that are caused by normal
SRAM operation, power cycling can generate negative voltage spikes on VCC that drive it to values
below V
by as much as one Volt. These nega-
SS
tive spikes can cause data corruption in the SRAM
while in battery backup mode. To protect from
these voltage spikes, it is recommended to connect a schottky diode from V
connected to V
, anode to VSS). Schottky diode
CC
to VSS (cathode
CC
1N5817 is recommended for through hole and
MBRS120T3 is recommended for surface mount.
For a list of available options (e.g., Speed, Package) or for further information on any aspect of this device,
please contact the ST Sales Office nearest you.
Information furnished is believed to be ac curate and reliable. Howev er, STMicroelec tronics assumes no responsibility for t he consequ ences
of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted
by implic ation or oth erwise under any patent or patent rights of STMicroelectron i cs . Specifications mentioned in this public at ion ar e subject
to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not
authorized for use as critical comp onents in life support devices or systems wi thout express written approval of STM i croelect ronics.
The ST log o i s registered trademark of STM icroelec tronics
All other names are the property of their respective owner s.