The M48T212Y/V are self-contained devices that
include a real time clock (RTC), programmable
alarms, a watchdog timer, and two external chip
enable outputs which provide control of up to four
(two in parallel) external low-power static RAMs.
Access to all TIMEKEEPERfunctions and the
external RAM is the same as conventional bytewide SRAM. The16TIMEKEEPER Registers offer
Century, Year, Month, Date, Day, Hour, Minute,
Second, Calibration,Alarm, Watchdog,and Flags.
Externally attached static RAMs are controlled by
the M48T212Y/V via the E1
CON
and E2
CON
sig-
nals (see Table 4).
The 44 pin 330mil SOIC provides sockets with
gold plated contacts at both ends for direct connection to a separate SNAPHAT housing containing the battery and crystal. The unique design
allows the SNAPHAT battery package to be
mounted on top of the SOIC package after the
completion of the surface mount process.
Insertion of the SNAPHAT housing after reflow
prevents potential battery andcrystal damagedue
to the high temperatures required for device surface-mounting. The SNAPHAT housing is keyed
to prevent reverse insertion.
The SOIC and battery/crystal packages are
shipped separately inplastic anti-static tubesor in
Tape & Reel form. For the 44 lead SOIC, the battery/crystal package (i.e. SNAPHAT) part number
is ”M4TXX-BR12SH” (see Table 15).
Caution: Do not placetheSNAPHAT battery/crystal topin conductive foam,as this will drain thelithium button-cell battery.
Automatic backup and write protection for an external SRAM is provided through V
and E2
pins. (Users are urged to insure that
CON
OUT
,E1
CON
voltage specifications, for both the controller chip
and external SRAM chosen, are similar). The
SNAPHAT containing the lithium energy source
used to permanently power the real time clock is
also used to retain RAM data in the absence of
VCCpower through the V
The chip enable outputs to RAM (E1
E2
) are controlled during power transients to
CON
OUT
pin.
CON
and
prevent data corruption. The date is automatically
adjusted for months with less than 31 days and
corrects forleap years. The internalwatchdog timer provides programmable alarm windows.
The nine clock bytes (Fh - 9h and 1h) are not the
actual clock counters, they are memory locations
consisting of BiPORTTMread/write memory cells
within the static RAM array. Clock circuitry updates the clock byteswith current information once
per second. The information can be accessed by
the userin thesame manner asany otherlocation
in the staticmemory array.
Byte 8h isthe clock control register.This byte controls user access to the clock information and also
stores the clock calibration setting. Byte 7h contains the watchdog timer setting. The watchdog
timer can generate either a reset or an interrupt,
depending on the state of the Watchdog Steering
bit (WDS). Bytes 6h-2hinclude bits that,when programmed, provide for clock alarm functionality.
Alarms are activated when the register content
matches the month, date, hours, minutes, and
seconds of the clock registers. Byte 1h contains
century information. Byte 0h contains additional
flag information pertaining to the watchdog timer,
alarm and battery status.
2/23
Page 3
M48T212Y, M48T212V
Table 2. Absolute Maximum Ratings
(1)
SymbolParameterValueUnit
T
A
T
STG
T
SLD
V
IO
V
CC
I
O
P
D
Note: 1. Stresses greaterthan those listed under ”Absolute Maximum Ratings” may cause permanent damage to thedevice. This is a stress
rating only and functional operation of the device at these or any other conditions above those indicated in the operational section
of this specification is not implied. Exposure to the absolute maximum rating conditions for extended periods of time may affect
reliability.
2. Soldering temperature not to exceed 260°C for 10 seconds (totalthermal budget not to exceed 150°C for longer than 30 seconds).
CAUTION: Negative undershoots below –0.3V are not allowed on any pin while in the Battery Back-up mode.
CAUTION: Do NOTwave solder SOIC to avoid damaging SNAPHATsockets.
Table 3. Operating Modes
Mode
Deselect
Write
Read
Read
Deselect
Deselect
Note: 1. X = VIHor VIL.
2. V
SO
Ambient Operating Temperature0 to 70°C
Storage Temperature (VCCOff, Oscillator Off) SNAPHAT
SOIC
(2)
Lead Solder Temperature for 10 sec260°C
–40 to 85
–55 to 125
Input or Output Voltages–0.3 to VCC+0.3V
Supply VoltageM48T212Y
M48T212V
–0.3 to 7
–0.3 to 4.6
Output Current20mA
Power Dissipation1W
(1)
V
CC
4.5V to 5.5V
or
3.0V to 3.6V
to V
V
SO
PFD
≤ V
SO
= Battery Back-up Switchover Voltage. (See Tables 7A and 7B fordetails).
(min)
(2)
(2)
EGWDQ7-DQ0Power
V
IH
V
IL
V
IL
V
IL
XXHigh-ZStandby
X
V
IL
V
IH
V
IL
V
IH
V
IH
D
IN
D
OUT
High-ZActive
XXXHigh-ZCMOS Standby
XXXHigh-ZBattery Back-Up
°C
V
Active
Active
Table 4. Truth Table for SRAM Bank Select
ModeV
Select
DeselectHighXHighHighStandby
Deselect
V
SO
Deselect
Note: 1. X = VIHor VIL.
= Battery Back-up Switchover Voltage. (See Tables 7A and 7B fordetails).
2. V
SO
CC
4.5V to 5.5V
or
3.0V to 3.6V
to V
≤ V
PFD
SO
(min)
(2)
(2)
(1)
EXAE1
CON
E2
CON
LowLowLowHighActive
LowHighHighLowActive
XXHighHighCMOS Standby
XXHighHighBattery Back-Up
Power
3/23
Page 4
M48T212Y, M48T212V
Figure 3. Hardware Hookup
A0-A18
0.1µF
5V/3.3V
1N5817
0.1µF
MOTOROLA
MTD20P06HDL
V
CC
E
V
CC
E
A0-Axx
CMOS
SRAM
A0-Axx
CMOS
SRAM
A0-A3
V
V
CC
(1)
A
E
EX
W
G
WDI
RSTIN1
RSTIN2
DQ0-DQ7
V
SS
M48T212Y/V
CCSW
V
OUT
E1
CON
E2
CON
RST
IRQ/FT
Note 2
Note: 1. See description in Power Supply Decoupling and Undershoot Protection.
2. Traces connecting E1
Figure 4. AC Testing Load Circuit
CON
and E2
to external SRAM should be as short as possible.
CON
Table 5. AC Measurement Conditions
Input Rise and Fall Times≤ 5ns
DEVICE
UNDER
TEST
645Ω
Input Pulse Voltages0 to 3V
Input and Output Timing Ref.Voltages1.5V
Note that Output Hi-Z is defined as the point where data
is no longer driven.
(1)
(2)
1.75V
AI03239
CLincludes JIG capacitance
Note: 1. DQ0-DQ7
2. E1
CON
and E2
CL= 100pF or 5pF
CL=30pF
CON
4/23
AI03046
Page 5
M48T212Y, M48T212V
Table 6. Capacitance
(1)
(TA=25°C, f = 1 MHz)
SymbolParameterTest ConditionMinMaxUnit
C
IN
C
OUT
Note: 1. Sampled only, not 100% tested.
2. Outputs deselected.
Input Capacitance
(2)
Input/Output Capacitance
V
V
OUT
IN
=0V
=0V
10pF
10pF
Table 7A. DC Characteristics for M48T212V
(TA= 0 to70°C; VCC= 3V to 3.6V)
SymbolParameterTestConditionMinTypMaxUnit
(1,2)
I
LI
I
LO
I
CC
I
CC1
I
CC2
I
BAT
V
V
Input Leakage Current0V ≤ VIN≤ V
(1)
Output Leakage Current
Supply CurrentOutputs open410mA
Supply Current (Standby) TTL
Supply Current (Standby) CMOS
Battery Current OSC ON575800nA
Battery Current OSC OFF100nA
Input Low Voltage–0.30.8V
IL
Input High Voltage2.0
IH
Output Low VoltageIOL= 2.1mA0.4V
V
OL
Output Low Voltage (open drain)
V
V
OHB
I
OUT1
I
OUT2
V
PFD
V
V
BATBattery Voltage
Note: 1. Outputs deselected.
Output High Voltage
OH
(4)
VOHBattery Back-upI
(5)
V
Current (Active)V
OUT
V
Current (Battery Back-up)V
OUT
Power-fail Deselect Voltage2.72.93.0V
Battery Back-up Switchover Voltage
SO
2. RSTIN1 andRSTIN2 internally pulled-up to V
3. For IRQ/FT & RST pins (Open Drain).
4. Conditioned outputs (E1
rents will reduce battery life.
5. External SRAM mustmatch TIMEKEE PER Controller chip V
CON
-E2
CON
(3)
) can only sustain CMOS leakage currents in the battery back-up mode. Higher leakage cur-
CC
0V ≤ V
E=V
OUT
E=V
CC
≤ V
IH
–0.2
CC
IOL= 10mA
I
= –1.0mA
OH
= –1.0µA
OUT2
OUT1>VCC
OUT2>VBAT
–0.3
–0.3100µA
2.4V
2.03.6V
V
–100mV
PFD
3.0V
through 100KΩ resistor. WDI internallypulled-down toVSSthrough 100KΩ resistor.
CC
specification.
CC
±1µA
±1µA
3mA
2mA
V
+ 0.3
CC
0.4V
70m A
V
V
5/23
Page 6
M48T212Y, M48T212V
Table 7B. DC Characteristics for M48T212Y
(TA= 0 to70°C; VCC= 4.5V to 5.5V)
SymbolParameterTest ConditionMinTypMaxUnit
(1,2)
I
LI
I
LO
I
CC
I
CC1
I
CC2
I
BAT
V
IL
V
IH
V
OL
V
OH
V
OHB
I
OUT1
I
OUT2
V
PFD
V
SO
Input Leakage Current
(1)
Output Leakage Current
Supply CurrentOutputs open815mA
Supply Current (Standby) TTL
Supply Current (Standby) CMOS
Battery Current OSC ON575800nA
Battery Current OSC OFF100nA
Input Low Voltage–0.30.8V
Input High Voltage2.2
Output Low Voltage
4. Conditioned outputs (E1
rents will reduce battery life.
5. External SRAM mustmatch TIMEKEE PER Controller chip V
CON
-E2
) can only sustain CMOS leakage currents in the battery back-up mode. Higher leakage cur-
CON
through 100KΩ resistor. WDI internallypulled-down toVSSthrough 100KΩ resistor.
CC
The M48T212Y/Valso hasits own Power-Fail Detect circuit. This control circuitry constantly monitors the supply voltage for an out of tolerance
condition. When VCCis outof tolerance, the circuit
write protects the TIMEKEEPER registerdata and
external SRAM, providing data security in the
midst of unpredictable system operation. As V
CC
falls, the controlcircuitry automatically switchesto
the battery, maintaining data and clock operation
until valid power is restored.
3.0V
specification.
CC
Address Decoding
The M48T212Y/V accommodates 4 address lines
(A3-A0) which allow access to thesixteen bytes of
the TIMEKEEPERclock registers.All TIMEKEEPER registers reside in the controller chip itself. All
TIMEKEEPER registersare accessed by enabling
E (Chip Enable).
6/23
Page 7
Figure 5. Power Down/Up AC Waveform
V
CC
V
(max)
PFD
V
(min)
PFD
V
SO
tF
tFB
M48T212Y, M48T212V
tR
tRECtRB
INPUTS
OUTPUTS
RST
V
CCSW
VALIDVALID
VALIDVALID
DON’T CARE
HIGH-Z
AI02638
Table 8. Power Down/Up AC Characteristics
(TA= 0 to70°C)
SymbolParameterMinMaxUnit
V
t
t
FB
t
t
REC
t
RB
(max) to V
F
R
PFD
V
(min) to VSSVCCFallTime
PFD
V
(min) to V
PFD
V
(max) to RST High40200ms
PFD
VSSto V
PFD
(min) VCCFall Time
PFD
(max) VCCRise Time
PFD
(min) VCCRise Time
300µs
M48T212Y10µs
M48T212V150µs
10µs
1µs
7/23
Page 8
M48T212Y, M48T212V
Figure 6. Chip Enable Control and Bank Select Timing
EX
tEXPDtAPD
A
tEXPD
E1
CON
E2
CON
Table 9. Chip Enable Control and Bank Select Characteristics
(TA= 0 to70°C)
M48T212YM48T212V
SymbolParameter
AI02639
Unit-70-85
t
EXPD
t
APD
EX to E1
AtoE1
CON
CON
or E2
or E2
(Low or High)
CON
(Low or High)
CON
MinMaxMinMax
1015ns
1015ns
8/23
Page 9
M48T212Y, M48T212V
READ MODE
The M48T212Y/V executes a read cycle whenever W (Write Enable) is high and E (Chip Enable) is
low. The unique address specified by the address
inputs (A3-A0) defines which one of the on-chip
TIMEKEEPER registers is to be accessed. When
the address presented to the M48T212Y/V is in
the range of 0h-Fh, one of the on-board TIMEKEEPER registers is accessed and valid data will
be available to the eight data outputdrivers within
t
after the address input signal is stable, pro-
AVQV
Figure 7. Read Cycle Timing: RTC Control Signals
ADDRESS
E
G
READREADWRITE
tAVAV
tELQV
tELQX
tGLQV
viding that the E and G access times are also satisfied.If they are not, then data access must be
measured from the latter occurring signal (E or G)
and the limiting parameter is either t
t
for G rather than the address access time.
GLQV
ELQV
for E or
When EX input is low, an external SRAM location
will be selected.
Note: Care should be taken to avoid taking both E
and EX low simultaneously to avoid bus contention.
tAVAVtAVAV
tAVQVtWHAXtAVWL
tWLWH
W
DQ7-DQ0
Table 10. Read Mode Characteristics
(TA= 0 to70°C)
SymbolParameter
t
AVAV
t
AVQV
t
ELQV
t
GLQV
t
ELQX
t
GLQX
t
EHQZ
t
GHQZ
t
AXQX
Note: 1. CL= 5pF
Read Cycle Time7085ns
Address Valid to Output Valid7085ns
Chip Enable Low to Output Valid7085ns
Output Enable Low toOutput Valid2535ns
(1)
Chip Enable Low to Output Transition55ns
(1)
Output Enable Low toOutput Transition00ns
(1)
Chip Enable High toOutput Hi-Z2025ns
(1)
Output Enable High to Output Hi-Z2025ns
Address Transition to Output Transition55ns
DATA OUT
VALID
tAXQXtGLQX
DATA OUT
VALID
tGHQZ
DATA IN
VALID
M48T212YM48T212V
MinMaxMinMax
AI02640
Unit-70-85
9/23
Page 10
M48T212Y, M48T212V
WRITE MODE
The M48T212Y/V is in the Write Mode whenever
W (Write Enable) and E(Chip Enable) are in alow
state after the address inputs are stable. The start
of a write is referenced from the latter occurring
falling edge ofW orE. A write is terminated by the
earlier rising edge of W or E. The addresses must
be heldvalid throughout thecycle. E or W must return high for aminimum of t
or t
fromWrite Enable prior to the initiation of
WHAX
fromChip Enable
EHAX
another read or write cycle. Data-in must be valid
t
t
priorto the end of write and remainvalid for
DVWH
afterward.
WHDX
Figure 8. Write Cycle Timing: RTC Control Signals
ADDRESS
tAVEL
WRITEWRITEREAD
tAVAV
tAVEH
tELEHtEHAX
G should be kept high during write cycles to avoid
bus contention; although, if the output bus has
been activated bya low on E and G alow on W will
disable the outputs t
WLQZ
after W falls.
When E is low during the write, one of the onboard TIMEKEEPER registers willbeselected and
data willbe written into the device. When EXis low
(and E is high) an external SRAM location is selected.
Note: Care should be taken to avoid taking both E
and EX low simultaneously to avoid bus contention.
tAVAVtAVAV
tAVWH
tWHAX
tAVQV
E
G
W
DQ0-DQ7
tAVWL
DATA OUT
VALID
tEHDX
tWLWH
tEHQZtDVEH
DATA IN
VALID
tDVWH
tWHQXtWLQZ
tWHDX
DATA IN
VALID
tGLQV
DATA OUT
VALID
AI02641
10/23
Page 11
Table 11. Write Mode AC Characteristics
(TA= 0 to70°C)
M48T212YM48T212V
SymbolParameter
MinMaxMinMax
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. CL= 5pF.
2. If E goes low simultaneously with W going low, the outputs remain in the high impedance state.
Write Cycle Time7085ns
Address Valid to Write Enable Low00ns
Address Valid to Chip Enable Low00ns
Write Enable Pulse Width4555ns
Chip Enable Low to Chip Enable High5060ns
Write Enable High to Address Transition00ns
Chip Enable High toAddress Transition00ns
Input Valid to Write Enable High2530ns
Input Valid to Chip Enable High2530ns
Write Enable High to Input Transition00ns
Chip Enable High toInput Transition00ns
(1,2)
Write Enable Low to Output High-Z2025ns
Address Valid to Write Enable High5565ns
Address Valid to Chip Enable High5565ns
(1,2)
Write Enable High to Output Transition55ns
M48T212Y, M48T212V
Unit-70-85
DATA RETENTION MODE
With valid VCCapplied, the M48T212Y/V can be
accessed as described above with read or write
cycles. Should the supply voltage decay, the
M48T212Y/V will automatically deselect, write
protecting itself (and any external SRAM) when
VCCfalls between V
(max) and V
PFD
PFD
(min).
This is accomplished by internally inhibiting access to the clock registers via the E signal. At this
time, the Reset pin (RST) is driven active and will
remain active until VCCreturns to nominal levels.
External RAM accessis inhibited in a similar manner by forcing E1
This level is within 0.2 volts of the V
and E2
will remain atthis level as long asV
CON
CON
and E2
to a high level.
CON
BAT
.E1
CON
CC
remains at an out-of tolerance condition.
When VCCfalls below the level of the battery
(V
), power input is switched from the VCCpin
BAT
to the SNAPHAT battery and the clock registers
and external SRAM are maintained from the attached batterysupply. Alloutputs become highim-
pedance. The V
pin is capable of supplying
OUT
100µA of current to the attached memory with less
than 0.3V drop under this condition. On power up,
when VCCreturnsto anominal value, write protection continues for 200ms (max) by inhibiting
E1
CON
or E2
CON
.
The RST signal also remains active during this
time (see Figure 5).
Note: Most low power SRAMs on the market today can be used with the M48T212Y/V TIMEKEEPER Controller. There are, however some
criteria which should be used in making the final
choice of anSRAM to use.The SRAM mustbe designed in a way where the chip enable input disables all other inputs to the SRAM. This allows
inputs to the M48T212Y/V and SRAMs to beDon’t
Care once VCCfalls below V
(min). The SRAM
PFD
should also guarantee data retention down to
VCC= 2.0V. The chip enableaccess time must be
sufficient to meet the system needs with the chip
enable output propagation delays included.
11/23
Page 12
M48T212Y, M48T212V
Figure 9. Alarm Interrupt Reset Waveforms
A0-A3
ACTIVE FLAG BIT
IRQ/FT
1hFh
Table 12. Alarm Repeat Modes
RPT5RPT4RPT3RPT2RPT1Alarm Setting
11111Once per Second
11110Once per Minute
11100Once per Hour
11000Once per Day
10000Once per Month
00000Once per Year
ADDRESS 0h
HIGH-Z
AI03021
If the SRAM includes a second chip enable pin
(E2), this pin should be tied to V
OUT
.
If data retention lifetime is a critical parameter for
the system,it is important to reviewthe dataretention current specifications for the particular
SRAMs being evaluated. Most SRAMs specify a
data retention current at 3.0V. Manufacturers generally specify a typical condition for room temperature along with a worst case condition (generally
at elevated temperatures). The system level requirements will determine the choice of which value to use.
Thedata retentioncurrent valueofthe SRAMs can
then be added tothe I
valueof the M48T212Y/
BAT
V to determine the total current requirements for
data retention. The available battery capacity for
the SNAPHAT of your choice can then be divided
by thiscurrent todetermine the amount of data retention available (see Table 15).
For afurther moredetailed review of lifetime calculations, please see ApplicationNote AN1012.
12/23
Page 13
Figure 10. Back-Up Mode Alarm Waveforms
V
CC
V
(max)
PFD
V
(min)
PFD
AFE bit/ABE bit
AF bit inFlags Register
IRQ/FT
M48T212Y, M48T212V
tREC
HIGH-Z
TIMEKEEPER REGISTERS
The M48T212Y/V offers 16 internal registers
which contain TIMEKEEPER, Alarm, Watchdog,
Flag, and Control data. These registers are memory locationswhich contain external(useraccessible) and internal copies of the data (usually
referred to as BiPORTTMTIMEKEEPER cells).
The external copies are independent of internal
functions exceptthat they are updatedperiodically
by the simultaneous transfer of the incremented
internal copy. TIMEKEEPER and Alarm Registers
store data in BCD. Control, Watchdog and Flags
Registers store data inBinary Format.
CLOCK OPERATIONS
Reading the Clock
Updates to the TIMEKEEPER registers should be
halted beforeclock data is read to prevent reading
data in transition. Because the BiPORT TIMEKEEPER cellsin the RAM array areonly data registers, and not the actual clock counters, updating
the registers can be halted without disturbing the
clock itself.
Updating is halted when a ‘1’ is written to the
READ bit, D6in the Control Register (8h). Aslong
as a‘1’ remains inthat position,updating is halted.
After a halt is issued, the registers reflect the
count; that is, the day, date, and time that were
HIGH-Z
AI03622
current at the moment the halt command was issued.
All of the TIMEKEEPER registers are updated simultaneously. Ahalt will not interrupt an update in
progress. Updating occurs 1 second after the
READ bit is reset to a ‘0’.
Setting the Clock
Bit D7 of the Control Register (8h) is the WRITE
bit. Setting the WRITE bit to a ‘1’, like the READ
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 (see
Table 13).
Resetting the WRITE bit to a ‘0’ then transfers the
values of alltime registers (Fh-9h, 1h)to theactual
TIMEKEEPER counters andallows normal operation to resume. After the WRITE bit is reset, the
next clock update will occur one second later.
Note: Upon power-up following a power failure,
the READbit will automatically be set to a ‘1’. This
will prevent the clock from updating the TIMEKEEPER registers, and will allow the user to read
the exact time of the power-down event.
Resetting theREAD Bit to a ‘0’ will allow the clock
to update these registers with the current time.
The WRITE Bit will be reset to a ‘0’ upon powerup.
13/23
Page 14
M48T212Y, M48T212V
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 onthe shelf, the oscillator can be turned off to
minimize current drain on the battery. The STOP
bit islocated atBit D7within theSeconds Register
(9h). Setting ittoa ‘1’ stops theoscillator. Whenreset toa ‘0’, the M48T212Y/Voscillator startswithin
one second.
Note: It is not necessary to set the WRITE bit
when setting or resetting the FREQUENCY TEST
bit (FT) or the STOP bit (ST).
SETTING ALARM CLOCK
Address locations 6h-2h contain the alarm settings. The alarm can be configured to go off at a
prescribed time on a specific month, date, hour,
minute, or second or repeat every year, month,
day, hour, minute, or second. It can also be programmed to go off whilethe M48T212Y/V isin the
battery back-upto serve asa system wake-upcall.
Bits RPT5-RPT1 putthe alarm in the repeatmode
of operation. Table 12 shows the possible configurations. Codesnot listedin thetabledefault to the
once per second mode to quickly alert the user of
an incorrect alarm setting.
Note: User must transition address (or toggle chip
enable) to see Flagbit change.
When the clock information matches the alarm
clock settings based on the match criteria defined
by RPT5-RPT1, the AF (Alarm Flag) is set.
If AFE (Alarm Flag Enable) is also set, the alarm
condition activates the IRQ/FT pin. To disable
alarm, write ’0’ to the Alarm Date registers and
RPT1-4. TheIRQ/FT output isclearedby aread to
the Flags register as shown in Figure 9. A subsequent read of the Flags register will reset the
Alarm Flag (D6; Register 0h).
The IRQ/FT pin can also be activated in the battery back-up mode. The IRQ/FT will go low if an
alarm occurs and both ABE (Alarm in Battery
Back-up Mode Enable) and AFE are set. The ABE
and AFE bits arereset during power-up, therefore
an alarm generated during power-up will only set
AF. Theuser can read the Flag Register at system
boot-up to determine if an alarm was generated
while the M48T212Y/V was in the deselect mode
during power-up. Figure 10 illustrates the back-up
mode alarm timing.
WATCHDOG TIMER
The watchdog timer can be used to detect an outof-control microprocessor. The user programs the
watchdog timer by setting the desired amount of
time-out into the Watchdog Register, address 7h.
Bits BMB4-BMB0 store a binary multiplier and the
two lower order bits RB1-RB0 select the resolution, where 00=1/16 second, 01=1/4 second,10=1
second, and 11=4 seconds. The amount of timeout is then determined to be the multiplication of
the five bit multiplier value with the resolution. (For
example: writing 00001110 in the Watchdog Register = 3*1 or 3 seconds).
Note: Accuracy of timer is within ± the selected
resolution.
If theprocessor does not reset the timer within the
specified period, the M48T212Y/V sets the WDF
(Watchdog Flag) and generates a watchdog interrupt or a microprocessor reset. WDF is reset by
reading the FlagsRegister (Address 0h).
The most significant bit of the Watchdog Register
is the Watchdog Steering Bit (WDS). When set to
a ‘0’, the watchdog will activate the IRQ/FT pin
when timed-out. When WDS is set to a ‘1’, the
watchdog will output a negative pulse on the RST
pin for 40 to 200 ms. The Watchdog register and
the FT bit will reset to a ‘0’ at the end of a Watchdog time-out when the WDS bit is set to a ‘1’.
The watchdog timercan bereset by two methods:
1. a transition (high-to-low or low-to-high) can be
applied to the Watchdog Input pin (WDI) or
2. the microprocessor can perform a write of the
Watchdog Register.
The time-out period then starts over. The WDI pin
should be tied to VSSif not used. The watchdog
will be reset on each transition (edge) seen by the
WDI pin. In the order to perform a software reset
of the watchdog timer, theoriginal time-out period
can be written into the Watchdog Register, effectively restarting the count-down cycle.
Should the watchdog timertime-out,and the WDS
bit is programmedto output an interrupt, a value of
00h needs to be written to the Watchdog Register
in order to clear the IRQ/FTpin. This will also disable the watchdog function until it is again programmed correctly. A read of the Flags Register
will reset the Watchdog Flag (Bit D7;Register 0h).
The watchdog function is automatically disabled
upon power-down and the Watchdog Register is
cleared. Ifthe watchdog functionis set to output to
the IRQ/FT pin and the frequency test function is
activated, the watchdog or alarm function prevails
and the frequency test function is denied.
14/23
Page 15
Table 13. TIMEKEEPER Register Map
M48T212Y, M48T212V
Address
D7D6D5D4D3D2D1D0
Fh10 YearsYearYear00-99
Eh00010MMonthMonth01-12
Dh0010 DateDate: Day of MonthDate01-31
Ch0FT000Dayof WeekDay01-7
Bh0010 HoursHours (24 Hour Format)Hour00-23
Ah010 MinutesMinutesMin00-59
9hST10 SecondsSecondsSec00-59
8hWRSCalibrationControl
7hWDSBMB4BMB3BMB2BMB1BMB0RB1RB0Watchdog
6hAFE0ABEAl 10MAlarm MonthA Month01-12
5hRPT4RPT5AI 10 DateAlarm DateA Date01-31
4hRPT30AI 10 HourAlarm HourA Hour00-23
3hRPT2Alarm 10 MinutesAlarm MinutesA Min00-59
2hRPT1Alarm 10 SecondsAlarm SecondsA Sec00-59
1h1000 Year100 YearCentury00-99
0hWDFAFYBLYYYYFlag
Function/Range
BCD Format
Keys: S = Sign Bit
FT = Frequency Test Bit
R = Read Bit
W = Write Bit
ST = Stop Bit
0 = Must be set to zero
BL = Battery Low Flag
BMB0-BMB4 = Watchdog Multiplier Bits
VCCSWITCH OUTPUT
Vccsw output goes low when V
OUT
switches to
VCCturning on a customer supplied P-Channel
MOSFET(seeFigure3).TheMotorola
MTD20P06HDL is recommended. This MOSFET
in turn connects V
the current requirement is greater than I
to a separate supply when
OUT
OUT1
(see
Tables 7A and 7B). This output may also be used
simply to indicate the statusof the internal battery
switchover comparator, which controls the source
(VCCor battery) of the V
OUT
output.
POWER-ON RESET
The M48T212Y/V continuously monitors VCC.
When VCCfalls to the power fail detect trip point,
the RSTpulls low (open drain) andremains lowon
power-up for 40 to 200msafter VCCpasses V
PFD
AFE =Alarm FlagEnable Flag
RB0-RB1 = Watchdog Resolution Bits
WDS = Watchdog Steering Bit
ABE = Alarm in Battery Back-Up Mode Enable Bit
RPT1-RPT5 = Alarm Repeat Mode Bits
WDF =Watchdog flag
AF = Alarm flag
Y = ‘1’ or ‘0’
The RST pin is an open drain output andan appropriate pull-up resistor to VCCshould be chosen to
control rise time.
Note: If the RST output is fed back into either of
the RSTIN inputs (for a microprocessor with a bidirectional reset) then a 1kΩ (max) pull-up resistor
is recommended.
Reset Inputs (RSTIN1 & RSTIN2)
The M48T212Y/V provides two independent inputs which can generate an output reset. The duration and function of these resets is identical to a
reset generated by a power cycle. Table 14 and
Figure 12 illustrate the AC reset characteristics of
this function. During the time RST is enabled
(t
R1HRH&tR2HRH
Note: RSTIN1 and RSTIN2 are each internally
.
pulled up to VCCthrough a 100KΩ resistor.
), the ResetInputs are ignored.
15/23
Page 16
M48T212Y, M48T212V
Figure 11. Calibration Waveform
NORMAL
POSITIVE
CALIBRATION
NEGATIVE
CALIBRATION
AI00594B
Calibrating the Clock
The M48T212Y/V is driven by a quartz controlled
oscillator with a nominal frequency of 32,768 Hz.
The devices are tested not to exceed ±35 PPM
(parts per million) oscillator frequency error at
25°C, which equates to about ±1.53 minutes per
month. Whenthe Calibrationcircuitis properly employed, accuracy improves to better than +1/–2
PPM at 25°C.
The oscillation rate of crystals changes with temperature. The M48T212Y/V design employs periodic counter correction. The calibration circuit
adds orsubtracts counts from the oscillator divider
circuit at the divide by 256 stage, as shown in Figure 11. The number of times pulses which are
blanked (subtracted, negative calibration) or split
(added, positive calibration) depends upon the
value loaded into the five Calibration bits found in
the Control Register. Adding counts speeds the
clock up, subtracting countsslows the clock down.
The Calibration bits occupy the five lower order
bits (D4-D0) in the Control Register 8h. These bits
can be set to represent any value between 0 and
31 in binary form. Bit D5 is a Sign bit; ‘1’ indicates
positive calibration, ‘0’ indicates negative calibration. Calibration occurs within a 64 minute cycle.
The first 62 minutes in the cycle may, once per
minute, 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 calibration step has the effect of
adding 512 or subtracting 256oscillator cycles for
every 125,829,120 actual oscillator cycles, that is
+4.068 or –2.034 PPM of adjustment per calibration step in the calibration register. Assuming that
the oscillatoris runningat exactly 32,768 Hz, each
of the 31 increments in the Calibration byte would
represent +10.7 or –5.35 seconds per month
which corresponds to a totalrange of +5.5 or–2.75
minutes per month.
Two methods are available for ascertaining how
much calibration a given M48T212Y/V may require. The first involves setting the clock, letting it
run for a month and comparing it toa knownaccurate reference and recordingdeviation overafixed
period of time. Calibration values, including the
number of seconds lost or gained in a given period, can be found in Application Note AN934:
TIMEKEEPER Calibration.
This allows the designer to give the end user the
ability tocalibrate the clock as the environment requires, even if the final product is packaged in a
non-user serviceable enclosure. The designer
could provide a simple utility that accesses the
Calibration byte.
The second approach is better suited to a manufacturing environment, and involves the use of the
IRQ/FT pin. The pin will toggle at 512Hz, whenthe
Stop bit (ST,D7 of 9h)is ‘0’,the FrequencyTest bit
(FT, D6 of Ch) is ‘1’, the Alarm Flag Enable bit
(AFE, D7 of 6h) is ‘0’, and the Watchdog Steering
bit(WDS, D7of7h) is ‘1’ ortheWatchdog Register
(7h=0) is reset.
Any deviation from 512 Hz indicates the degree
anddirection of oscillatorfrequency shift at the test
temperature.Forexample,areadingof
512.010124 Hz wouldindicate a +20 PPM oscillator frequency error, requiring a –10 (WR001010)
to be loaded into the Calibration Byte for correction. Note that setting or changing the Calibration
Byte does not affect the Frequency test output frequency.
The IRQ/FT pin is an open drain output which requires a pull-up resistor to VCCfor proper operation. A 500-10kΩ resistor is recommended inorder
to control the rise time. The FT bit is cleared on
power-up.
16/23
Page 17
M48T212Y, M48T212V
Table 14. Reset AC Characteristics
(TA= 0 to70°C; VCC= 3V to 3.6V or VCC= 4.5V to 5.5V)
SymbolParameterMinMaxUnit
(1)
t
R1
(2)
t
R2
t
R1HRH
t
R2HRH
Note: 1. Pulse width less than 50ns will result in no RESET(for noise immunity).
2. Pulse width less than 20ms will result inno RESET (for noise immunity).
RSTIN1 Low to RSTIN1 High200ns
RSTIN2 Low to RSTIN2 High100ms
(3)
RSTIN1 High to RST High40200ms
(3)
RSTIN2 High to RST High40200ms
= 5pF (see Figure 4).
RSTIN1
tR1
RSTIN2
(1)
RST
BATTERY LOW WARNING
The M48T212Y/V automatically performs battery
voltage monitoring upon power-up and at factoryprogrammed time intervals of approximately 24
hours. The Battery Low (BL) bit, Bit D4 of Flags
Register 0h, will be asserted if the battery voltage
is found to be less than approximately 2.5V. The
BL bit will remain asserted until completion of battery replacement and subsequent battery low
monitoring tests, either during the next power-up
sequence or the next scheduled 24-hour interval.
If a battery lowis generatedduring apower-up sequence, this indicates that the battery is belowapproximately 2.5 volts and may not be able to
maintain data integrity in the SRAM. Data should
be considered suspect and verified as correct. A
fresh battery should be installed.
If a battery low indication is generated during the
24-hour interval check, this indicates that the bat-
tR2
tR1HRH
tR2HRH
AI02642
tery is near end of life. However, data is not compromised due to the fact that a nominal Vcc is
supplied. In order to insure data integrity during
subsequent periods of battery back-up mode, the
battery should be replaced. The SNAPHAT battery/crystal top should be replaced with VCCpowering the device to avoid data loss.
Note: this will cause the clock to lose time during
the time interval the battery crystal is removed.
The M48T212Y/V only monitors the battery when
a nominal Vcc is applied to thedevice. Thus applications which require extensive durations in the
battery back-up mode should bepowered-up periodically (at least once every few months) in order
for this technique to be beneficial.
Additionally, if a battery low is indicated, data integrity should be verified upon power-up via a
checksum or other technique.
17/23
Page 18
M48T212Y, M48T212V
INITIAL POWER-ON DEFAULTS
Upon application of power to the device, the following register bits are set to a ‘0’ state: WDS,
BMB0-BMB4, RB0-RB1, AFE, ABE, W and FT.
(See Table 16)
POWER SUPPLY DECOUPLING
AND UNDERSHOOT PROTECTION
Note: ICCtransients, including those produced by
output switching, can produce voltage fluctuations, resulting in spikes on the VCCbus. These
transients canbe reduced if capacitorsare used to
store energy, which stabilizes the VCCbus. The
energy stored in the bypass capacitors will be released as low going spikes are generated or energy will be absorbed when overshoots occur.
A ceramic bypass capacitor value of 0.1µF is recommended inorder to provide the neededfiltering.
In addition to transients that are caused bynormal
SRAM operation,power cyclingcangenerate negative voltage spikes on VCCthat drive it to values
below VSSbyas much asonevolt. These negative
spikes can cause data corruption in the SRAM
while in battery backup mode.
To protect from these voltage spikes, ST recommends connecting a schottky diode from VCCto
Figure 13. Supply Voltage Protection
V
CC
V
CC
0.1µFDEVICE
V
SS
AI02169
VSS(cathode connected to VCC, anode to VSS).
(Schottky diode 1N5817 is recommended for
through hole and MBRS120T3 is recommended
for surface mount).
Table 16. Default Values
ConditionWRFTAFEABE
Initial Power-up
(Battery Attach for SNAPHAT)
Subsequent Power-up / RESET
Power-down
Note: 1. WDS, BMB0-BMB4, RB0, RB1.
2. State of other control bits undefined.
3. State of other control bits remains unchanged.
4. Assuming these bits set to ‘1’ prior to power-down.
(4)
(2)
(3)
WATCHDOG
Register
00000 0
00000 0
00011 0
(1)
18/23
Page 19
M48T212Y, M48T212V
Table 17. Ordering Information Scheme
Example:M48T212Y-70 MH 1 TR
Device Type
M48T
SupplyVoltage and Write Protect Voltage
212Y = V
212V = V
Speed
-70 = 70ns (for M48T212Y)
-85 = 85ns (for M48T212V)
Package
(1)
MH
Temperature Range
1=0to70°C
6=–40to85°C
= 4.5V to 5.5V;V
CC
= 3.0V to 3.6V;V
CC
= SOH44
= 4.2V to 4.5V
PFD
= 2.7V to 3.0V
PFD
Shipping Method for SOIC
blank = Tubes
TR = Tape& Reel
Note: 1. The SOIC package (SOH44) requires the battery package (SNAPHAT) which is ordered separately under the part number
“M4Txx-BR12SH1” in plastictube or ”M4Txx-BR12SH1TR” in Tape & Reel form.
Caution: Do not placethe SNAPHATbatterypackage ”M4Txx-BR12SH1” in conductive foam sincewill drain the lithium button-cell battery.
For a list of available options (Speed, Package, etc...) or for further information on any aspect of this device, please contact the STMicroelectronics Sales Office nearest to you.
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences
of use of such information nor for any infringement ofpatents or other rights of third parties which may result from itsuse. No license is granted
by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject
to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not
authorized for use as critical components in lifesupport devices or systems without express written approval of STMicroelectronics.
The ST logo is registered trademark of STMicroelectronics
2000 STMicroelectronics - All Rights Reserved
All other names are the property of their respective owners.
Australia - Brazil - China - Finland - France -Germany - Hong Kong - India - Italy- Japan - Malaysia - Malta - Morocco -
Singapore - Spain - Sweden - Switzerland - United Kingdom - U.S.A.
STMicroelectronics GROUP OF COMPANIES
http://www.st.com
23/23
Loading...
+ 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.