CONNECTION for a SNAPHAT TOP which
CONTAINS the BATTERY and CRYSTAL
■ MICROPROCESSOR POWER-ON RESET
(Valid even during battery back-up mode)
■ PROGRAMMABLE ALARM OUTPUT ACTIVE
IN THE BATTERY BACKED-UP MODE
PFD
PFD
≤ 4.5V
≤ 3.0V
SNAPHAT (SH)
Battery/Crystal
44
1
SOH44 (MH)
Figure 1. Logic Diagram
V
CC
19
A0-A18
M48T201Y
M48T201V
8
DQ0-DQ7
DESCRIPTION
The M48T201Y/201V are self-contained devices
that include a real time clock (RTC), programmable alarms, a watchdog timer, and a square wave
output which provides control of up to 512K x 8 of
external low-power static RAM. Access to all RTC
functions and the external RAM is the same as
conventional bytewide SRAM. The 16 TIMEKEEPERregisters offer year, month, date, day,
hour, minute, second, calibration, alarm, century,
watchdog, andsquare waveoutput data.Externally attached static RAMs are controlled by the
M48T201Y/201V via the G
CON
and E
CON
signals.
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 damage due to the high
temperatures required for device surface-mounting. TheSNAPHAT housing iskeyedto preventreverse insertion. The SOIC and battery packages
are shipped separately in plastic anti-static tubes
or in Tape & Reel form. For the 44 lead SOIC, the
battery/crystal package (i.e. SNAPHAT) part number is ”M4Txx-BR12SH1” (See Table 14).
Caution: Do not place the SANPHAT battery/crystal top in conductive foam,as this will drain the lithium button-cell battery.
Automatic backup and write protection for an external SRAMis provided through V
G
pins. (Users are urged to insurethat voltage
CON
OUT,ECON
, and
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
2/24
NCNot Connected Internally
through the V
RAM (E
(G
CON
) andthe output enableoutput to RAM
CON
) are controlled during power transients to
pin. The chip enable output to
OUT
prevent data corruption. The date is automatically
adjusted for months with less than 31 days and
corrects for leap years. The internal watchdog timer provides programmable alarm windows.
The nine clock bytes (7FFFFh-7FFF9h and
7FFF1h) are not the actual clock counters, they
are memory locations consisting of BiPORT
read/write memory cells within the static RAM array. Clock circuitry updates the clock bytes with
current informationonce per second. The information canbe accessedby theuser inthe same manner as any other location in the static memory
array. Byte 7FFF8h is the clock control register.
This byte controls user access to the clock information and also stores the clock calibration setting.
Page 3
M48T201Y, M48T201V,
Table 2. Absolute Maximum Ratings
(1)
SymbolParameterValueUnit
T
A
T
STG
T
SLD
V
IO
V
CC
I
O
P
D
Note: 1. Stresses greater than those listed under ”Absolute Maximum Ratings” may cause permanent damage to thedevice. This is a stress
2. 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 undershoots below –0.3V are not allowed on any pin while in the Battery Back-up mode.
CAUTION: Do NOT wave solder SOIC to avoiddamaging SNAPHATsockets.
Table 3. Operating Modes
Mode
Deselect
Write
Read
Read
Deselect
Deselect
Note: 1. X = VIHor VIL.
2. V
Ambient Operating Temperature0 to 70°C
Storage Temperature (VCCOff,Oscillator Off)
(2)
Lead Solder Temperature for 10 seconds260°C
Input or Output Voltages
Supply Voltage
SNAPHAT–40 to 85°C
SOIC–55 to 125°C
–0.3 to V
CC
+0.3
V
M48T201Y–0.3 to 7.0V
M48T201V–0.3 to 4.6V
Output Current20mA
Power Dissipation1W
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.
(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 6A and 6B for details).
Byte 7FFF7h 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 7FFF6h - 7FFF2h
include 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 7FFF1h contains century information. Byte7FFF0h containsadditionalflag information pertaining to the watchdog timer, the alarm
condition, the battery statusand square wave output operation. 4-bits are included within this regis-
ter (RS0-RS3) that are used to program the
Square Wave Output Frequency (see Table 11).
The M48T201Y/V also has its own Power-Fail Detect circuit. This control circuitry constantly monitors the supply voltage for an out of tolerance
condition. When VCCis out of tolerance,the circuit
write protects the TIMEKEEPER register data and
external SRAM, providing data security in the
midst of unpredictable system operation. As V
CC
falls, the control circuitry automatically switchesto
the battery, maintaining data and clock operation
until valid power is restored.
3/24
Page 4
M48T201Y, M48T201V,
Figure 3. Block Diagram
0.1µF
5V
32,768
Hz
CRYSTAL
LITHIUM
CELL
M48T201Y/V
V
CC
E
W
G
WDI
RSTIN1
RSTIN2
V
SS
A0-A18
IRQ/FT
DQ0-DQ7
V
OUT
ECON
GCON
RST
SQW
0.1µF
V
E
W
G
V
A0-Axx
CC
CMOS
SRAM
SS
DQ0-DQ7
AI00604
Figure 4. AC Testing Load Circuit
DEVICE
UNDER
TEST
CLincludes JIG capacitance
Note: Excluding open-drain output pin.
4/24
645Ω
CL= 100pF
1.75V
AI02330
Table 4. AC Measurement Conditions
Input Rise and Fall Times≤ 5ns
Input Pulse Voltages0 to 3V
Input and Output Timing Ref.Voltages1.5V
Note that Output Hi-Z is defined asthe point wheredata isnolonger
driven.
Address Decoding
The M48T201Y/V accommodates 19 address
lines (A0-A18) which allow direct connection of up
to 512K bytesof static RAM. Regardless of SRAM
density used, timekeeping, watchdog, alarm, century, flag, and control registers are located in the
upper RAM locations. All TIMEKEEPER registers
reside in the upper RAM locations without conflict
by inhibiting the G
(output enable RAM) signal
CON
during clock access. TheRAM’s physical locations
are transparent to the user and the memory map
looks continuousfrom thefirst clock address to the
upper most attached RAM addresses.
Page 5
M48T201Y, M48T201V,
Table 5. Capacitance
(1)
(TA=25°C, f = MHz)
SymbolParameterTest ConditionMinMaxUnit
C
IN
C
IO
Note: 1. Effective capacitance measured with power supply at 5V. Sampled only, not 100% tested.
2. Outputs deselected.
Input Capacitance
(2)
Input / Output Capacitance
V
V
OUT
IN
=0V
=0V
10pF
10pF
Table 6A. DC Characteristics
(TA= 0 to 70 °C; VCC= 3.0V to 3.6V)
SymbolParameterTest ConditionTypMinMaxUnit
(1, 2)
I
LI
I
LO
I
I
I
Input Leakage Current0V ≤ VIN≤ V
(1)
Output Leakage Current
I
Supply CurrentOutputs open410mA
CC
Supply Current (Standby) TTL
CC1
Supply Current (Standby) CMOS
CC2
Battery Current OSC ON575800nA
BAT
Battery Current OSC OFF100nA
V
Input Low Voltage–0.30.8V
IL
V
Input High Voltage2.0
IH
Output Low VoltageIOL= 2.1mA0.4V
V
OL
Output Low Voltage (open drain)
V
V
OHB
I
OUT1
I
OUT2VOUT
V
V
V
Note: 1. Outputs deselected.
Output High Voltage
OH
(4)
VOH(Battery Back-Up)I
(5)
V
Current (Active)V
OUT
Current (Battery Back-Up)V
Power Fail Deselect2.92.73.0V
PFD
Battery Back-Up Switchover
SO
Battery Voltage3.0V
BAT
2. RSTIN1 andRSTIN2 internally pulled-up to V
3. For IRQ/FT, RST pins (Open Drain).
4. Conditioned outputs (E
Higher leakage currents will reduce battery life.
5. External SRAM must match TIMEKEEPER Controller chip V
CON
and G
(3)
) can only sustain CMOS leakage current in the battery back-up mode.
CON
CC
0V ≤ V
E=V
OUT
E=V
CC
≤ V
IH
–0.2V
CC
IOL= 10.0mA
I
= –1.0mA
OH
= –1.0µA
OUT2
OUT1>VCC
OUT2>VBAT
–0.3
–0.3100µA
V
–
PFD
2.4V
2.03.6V
100mV
through 100KΩ resistor. WDI internally pulled-down to VSSthrough 100KΩ resistor.
CC
specification.
CC
±1µA
±1µA
3mA
2mA
V
+ 0.3
CC
0.4V
70mA
V
V
5/24
Page 6
M48T201Y, M48T201V,
Table 6B. DC Characteristics
(TA= 0 to 70 °C; VCC= 4.5V to 5.5V)
SymbolParameterTest ConditionTypMinMaxUnit
(1, 2)
I
LI
I
LO
I
I
I
Input Leakage Current
(1)
Output Leakage Current
I
Supply CurrentOutputs open815mA
CC
Supply Current (Standby) TTL
CC1
Supply Current (Standby) CMOS
CC2
Battery Current OSC ON575800nA
BAT
Battery Current OSC OFF100nA
V
Input Low Voltage–0.30.8V
IL
V
Input High Voltage2.2
IH
Output Low Voltage
V
OL
Output Low Voltage (open drain)
V
V
OHB
I
OUT1
I
OUT2VOUT
V
V
V
Note: 1. Outputs deselected.
Output High Voltage
OH
(4)
VOH(Battery Back-Up)I
(5)
V
Current (Active)V
OUT
Current (Battery Back-Up)V
Power Fail Deselect4.354.14.5V
PFD
Battery Back-Up Switchover3.0V
SO
Battery Voltage3.0V
BAT
2. RSTIN1 andRSTIN2 internally pulled-up to V
3. For IRQ/FT, RST pins (Open Drain).
4. Conditioned outputs (E
Higher leakage currents will reduce battery life.
5. External SRAM must match TIMEKEEPER Controller chip V
CON
and G
) can only sustain CMOS leakage current in the battery back-up mode.
CON
0V ≤ V
0V ≤ V
E=V
(3)
IOL= 10.0mA
I
OUT2
OUT1>VCC
OUT2>VBAT
through 100KΩ resistor. WDI internally pulled-down to VSSthrough 100KΩ resistor.
CC
I
OL
E=V
≤ V
IN
≤ V
OUT
IH
–0.2V
CC
= 2.1mA
CC
CC
±1µA
±1µA
5mA
3mA
V
+ 0.3
CC
0.4V
0.4V
= –1.0mA
OH
2.4V
= –1.0µA2.03.6V
–0.3
–0.3
specification.
CC
100mA
100µA
V
6/24
Page 7
Figure 5. Power Down/Up Mode AC Waveforms
V
CC
V
(max)
PFD
V
(min)
PFD
V
SO
tF
tFB
M48T201Y, M48T201V,
tR
tRECtRB
INPUTS
OUTPUTS
RST
VALIDVALID
VALIDVALID
Table 7. Power Down/Up Trip Points DC Characteristics
DON’T CARE
HIGH-Z
(1)
(TA= 0 to 70 °C)
SymbolParameterMinMaxUnit
t
t
t
REC
t
FB
t
RB
F
R
V
(max) to V
PFD
V
(min) to VSSVCCFall Time
PFD
V
(min) to V
PFD
VSSto V
V
(max) to RST High
PFD
PFD
PFD
(min) VCCRise Time5µs
PFD
(min) VCCFallTime
(max) VCCRise Time
300µs
M48T201Y10µs
M48T201V150µs
10µs
40200ms
AI03519
7/24
Page 8
M48T201Y, M48T201V,
Figure 6. G
Timing When Switching Between RTC and External SRAM
Read Cycle Time7085ns
Address Valid to Output Valid7085ns
Chip Enable Low to Output Valid7085ns
Output Enable Low to Output Valid2535ns
Chip Enable Low to Output Transition55ns
Output Enable Low to Output Transition00ns
Chip Enable High to Output Hi-Z2025ns
Output Enable High to Output Hi-Z2025ns
Address Transition to Output Transition55ns
External SRAM Address to G
Controller SRAM Address to G
EtoE
G Low to G
G High to G
The M48T201Y/V executes a read cycle whenever W (Write Enable) is high and E (ChipEnable) is
low. The unique address specified by the address
inputs (A0-A18) defines which one of the on-chip
TIMEKEEPER registers or external SRAM locations is to be accessed. When the address presented to the M48T201Y/V is in the range of
7FFFFh-7FFF0h, one of the on-board TIMEKEEPER registers is accessed and valid data will
be available to the eight data output drivers within
t
after the address input signal is stable, pro-
AVQV
viding that the E and G access times are also sat-
isfied. 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
forE or
When one of the on-chip TIMEKEEPER registers
is selectedfor read,the G
signal will remainin-
CON
active throughout the read cycle.
When the address value presented to the
M48T201Y/V is outside the range of TIMEKEEPER registers, an external SRAM location will be
selected. In this case the G signal will be passed
to the G
t
The M48T201Y/V is in the Write Mode whenever
W (Write Enable) and E (Chip Enable) are low
state after the address inputs are stable. The start
of a write is referenced from the latter occurring
falling edge of W orE. A write is terminated bythe
earlier rising edge of W or E. The addresses must
be heldvalid throughout thecycle. E or Wmust return high fora minimumof t
or t
fromWrite Enable priorto the initiation of
WHAX
fromChip Enable
EHAX
another read or write cycle. Data-in must be valid
t
t
10/24
priorto the end of write and remainvalid for
DVWH
afterward. G should be kept high during
WHDX
write cycles to avoid bus contention; although, if
the output bus has been activated by a low on E
and Ga lowon Wwill disable the outputs t
WLQZ
af-
ter W falls.
When the address value presented to the
M48T201Y/V during the write is in the range of
7FFFFh-7FFF0h, one of the on-board TIMEKEEPER registers will beselectedand data will be
written into the device. When the address value
presented to M48T201Y/V is outside the range of
TIMEKEEPER registers, an external SRAM location is selected.
Page 11
Table 9. Write Mode AC Characteristics
(TA= 0 to 70 °C)
M48T201YM48T201V
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 to Address Transition00ns
Input Valid to Write Enable High2530ns
Input Valid to Chip Enable High2530ns
Write Enable High to Input Transition00ns
Chip Enable High to Input Transition00ns
(1, 2)
Write Enable Low to Output Hi-Z2025ns
Address Valid to Write Enable High5565ns
Address Valid to Chip Enable High5565ns
(1, 2)
Write Enable High to Output Transition55ns
M48T201Y, M48T201V,
Unit-70-85
DATA RETENTION MODE
With valid VCCapplied, the M48T201Y/V can be
accessed as described above with read or write
cycles. Should the supply voltage decay, the
M48T201Y/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 access isinhibited in a similar manner by forcing E
within 0.2V of the V
to a high level. This level is
CON
BAT.ECON
will remain at this
level aslong as VCCremains at anout-of tolerance
condition. When VCCfalls below the level of the
battery (V
), power input is switched from the
BAT
VCCpin to the SNAPHAT battery and the clock
registers are maintainedfrom the attached battery
supply. External RAM is also powered by the
SNAPHAT battery. All outputs except G
E
, RST, IRQ/FT and V
CON
, become high im-
OUT
CON
pedance. The V
pin is capable of supplying
OUT
100µA of current tothe attached memory with less
than 0.3V drop under this condition. On power up,
when VCCreturnsto anominal value, writeprotection continues for200ms (max) by inhibitingE
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 M48T201Y/V TIMEKEEPER Controller. There are, however some
criteria which should be used in making the final
choice of an SRAM to use.
The SRAM must be designed in a way where the
chip enable input disables all other inputs to the
SRAM. This allowsinputs to the M48T201Y/V and
SRAMs to be Don’t Care once VCCfalls below
V
(min). The SRAM should also guarantee
PFD
data retention down to VCC= 2.0V. The chip enable access time must be sufficient to meet the
system needswith the chip enable (andoutput en-
,
able) output propagation delays included.
CON
11/24
.
Page 12
M48T201Y, M48T201V,
Figure 9. Alarm Interrupt Reset Waveforms
A0-A18
ACTIVE FLAG BIT
IRQ/FT
Table 10. Alarm Repeat Modes
RPT5RPT4RPT3RPT2RPT1Alarm Activated
11111Once per Second
11110Once per Minute
11100Once per Hour
11000Once per Day of Month
10000Once per Month
ADDRESS 7FFF0h
15ns Min
HIGH-Z
AI02331
If data retention lifetime is a critical parameter for
the system, it isimportant to review the dataretention current specifications for the particular
SRAMs being evaluated. Most SRAMs specify a
data retention currentat 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 val-
12/24
ue to use. The data retention current value of the
SRAMs can then be added to the I
value of the
BAT
M48T201Y/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 this current to determine the
amount of data retention available (see Table 14).
For a further more detailed review of lifetime calculations, please see Application Note AN1012.
Page 13
Figure 10. Back-Up Mode Alarm Waveform
V
CC
V
(max)
PFD
V
(min)
PFD
V
SO
AFE bit/ABE bit
AF bit in Flags Register
IRQ/FT
M48T201Y, M48T201V,
tREC
HIGH-Z
TIMEKEEPER REGISTERS
The M48T201Y/V offers 16 internal registers
which contain TIMEKEEPER, Alarm, Watchdog,
Interrupt, Flag, and Control data. These registers
are memory locations whichcontain external (user
accessible) andinternal copies ofthe data (usually
referred to as BiPORT TIMEKEEPER cells). The
external copies are independent of internal functions except that they are updated periodically by
the simultaneoustransfer of the incremented internal copy. TIMEKEEPER and Alarm Registers
store data in BCD. Control, Watchdog and Flags
(bits D0 to D3) Registers store data in Binary Format.
CLOCK OPERATIONS
Reading the Clock
Updates to the TIMEKEEPER registers should be
halted before clock data is read to prevent reading
data in transition. Because the BiPORT TIMEKEEPER cells in 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, D6 in theControl Register (7FFF8h). As
HIGH-Z
AI03520
long as a ’1’ remains in that position, updating is
halted. After a halt is issued, the registers reflect
the count; that is, the day, date, and timethat 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 occurs approximately 1 second after the READ bit is reset to a ‘0’.
Setting the Clock
Bit D7 of the Control Register (7FFF8h) 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 12).
Resetting the WRITE bit to a ’0’ then transfers the
values of all time registers (7FFFFh-7FFF9h,
7FFF1h)to theactual TIMEKEEPER counters and
allows normal operation to resume. After the
WRITE bit is reset,the next clock updatewill occur
approximately one second later.
Note: Upon power-up following a power failure,
both the WRITE bit and the READ bit will be reset
to ’0’.
The oscillator may be stopped at any time. If the
device is going to spend a significant amount of
time on the shelf, theoscillator can be turned off to
minimize current drain on the battery. The STOP
bit is located at Bit D7 within the Seconds Register
(7FFF9h). Setting it to a ’1’ stops the oscillator.
When reset to a ’0’, the M48T201Y/V oscillator
starts within 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
Registers 7FFF6h-7FFF2h contain the alarm settings. The alarm can be configured to go off at a
prescribed time on a specific month, day of month,
hour, minute, or second or repeat every month,
day of month, hour, minute, or second.
It can also be programmed to go off while the
M48T201Y/V is in the battery back-up to serve as
a system wake-up call.
Bits RPT5-RPT1 putthe alarm in the repeat mode
of operation. Table 10 shows the possible configurations. Codesnot listedin thetabledefault tothe
once per second mode to quickly alert the user of
an incorrect alarm setting.
Note: Usermust transition address (or toggle chip
enable) to see Flag bit 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 register and RPT1-4.
The IRQ/FT output is cleared by a read to the
Flags register asshown in Figure 9. A subsequent
read of the Flags register will reset the Alarm Flag
(D6; Register 7FFF0h).
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 areset. The ABE
and AFE bits are reset 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 M48T201Y/V was in the deselect mode
during power-up. Figure 10 illustrates the back-up
mode alarm timing.
FT =FREQUENCY TEST Bit
R = READ Bit
W = WRITEBit
ST = STOP Bit
0 = Must be set to zero
Z = ’0’and are Read only
WDS = Watchdog Steering Bit
AF = Alarm Flag
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
7FFF7h. BitsBMB4-BMB0store abinarymultiplier
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 time-out is then determined to be the
multiplication ofthe fivebit multiplier value withthe
resolution. (For example: writing 00001110 in the
Watchdog Register = 3*1 or 3 seconds).
Note: Accuracy of timer is within ± the selected
resolution.
If the processor does notreset the timer withinthe
specified period, the M48T201Y/V sets the WDF
(Watchdog Flag) and generates a watchdog inter-
BL = Battery Low
SQWE = Battery Low Flag
BMB0-BMB4 = Watchdog Multiplier Bits
RB0-RB1 = Watchdog Resolution Bits
AFE = Alarm Flag Enable
ABE = Alarm in Battery Back-up Mode Enable
RPT1-RPT5 = Alarm Repeat Mode Bits
WDF = Watchdog Flag
RS0-RS3 = SQW Frequency
rupt or a microprocessor reset. WDF is reset by
reading the Flag Register (Address 7FFF0h).
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 timer can be reset 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.
15/24
Page 16
M48T201Y, M48T201V,
Figure 11. Calibration Waveform
NORMAL
POSITIVE
CALIBRATION
NEGATIVE
CALIBRATION
AI00594B
In order to perform a software reset of the watchdog timer, the original 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 programmed to output an interrupt, a value of
00h needs to be written to the Watchdog Register
in order to clear the IRQ/FT pin. 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
7FFF0h).
The watchdog function is automatically disabled
upon power-down and the Watchdog Register is
cleared. If the watchdog function is setto output to
the IRQ/FT pin and the frequency test function is
activated, the watchdog or alarm function prevails
and the frequency test functionis denied.
Square Wave Output
The M48T201Y/V offers the user a programmable
square wave function which is output on the SQW
pin. RS3-RS0 bitslocated in 7FFF0h establish the
square waveoutput frequency. These frequencies
are listed in Table 11. Once the selection of the
SQW frequency has been completed, the SQW
pin can be turned on and off under software control withthe squarewave enable bit (SQWE)located in Register 7FFF6h.
POWER-ON RESET
The M48T201Y/V continuously monitors VCC.
When VCCfalls to the power fail detect trip point,
the RST pulls low (opendrain) and remains low on
power-up for 40 to 200ms after VCCpasses V
PFD
The RST pin isanopen drain output andan appropriate pull-up resistor to VCCshould be chosen to
control rise time.
Reset Inputs (RSTIN1 & RSTIN2)
The M48T201Y/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 13 and
Figure 12 illustrate the AC reset characteristics of
this function. Pulses shorter than tR1and tR2will
not generate a reset condition. RSTIN1 and
RSTIN2 are each internally pulled up to V
CC
through a 100KΩ resistor.
Calibrating the Clock
The M48T201Y/V is driven by a quartz controlled
oscillator with a nominal frequency of 32,768Hz.
The devices are factory calibrated at 25°C and
tested for accuracy. Clock accuracy will not exceed ±35 ppm (parts per million) oscillator frequency error at 25°C, which equates to about
±1.53 minutes per month. When the Calibration
circuit is properlyemployed, accuracyimproves to
better than ±2 ppm at 25°C. The oscillation rate of
crystalschangeswithtemperature.The
M48T201Y/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.
.
16/24
Page 17
M48T201Y, M48T201V,
Table 13. Reset AC Characteristics
(TA = 0to 70°C, VCC= 3.0V to 3.6V or VCC= 4.5V to 5.5V)
RSTIN1 Low to RST Low50200ns
RSTIN2 Low to RST Low20100ms
(1)
RSTIN1 High to RST Hi-Z40200ms
(1)
RSTIN2 High to RST Hi-Z40200ms
The number of times pulses which are blanked
(subtracted, negative calibration) or split (added,
positive calibration) depends upon the value loaded intothe five Calibration bits foundin theControl
Register. Adding countsspeeds the clock up, subtracting counts slows the clock down.
The Calibration bits occupy the five lower order
bits (D4-D0) in the Control Register 7FFF8h.
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 256 oscillator 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 oscillator is 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 correspondstoa total range of +5.5 or–2.75
minutes per month.
Two methods are available for ascertaining how
much calibration a given M48T201Y/V may require. The first involves setting the clock, letting it
run for a month and comparing itto a known accurate reference and recording deviation overa fixed
period of time. Calibration values, including the
number of seconds lost or gained in a given period, can be found in STMicroelectronics Application Note: TIMEKEEPER CALIBRATION. This
allows the designer to give the end user the ability
to calibrate the clock as the environment requires,
even if the final product is packaged in a non-user
serviceableenclosure. 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 useof the
IRQ/FT pin. The pinwill toggle at 512Hz, when the
Stop bit (ST, D7 of 7FFF9h) is ’0’,the Frequency
Test bit (FT, D6 of 7FFFCh) is ’1’, the Alarm Flag
Enable bit (AFE, D7 of 7FFF6h) is ’0’, and the
Watchdog Steering bit (WDS, D7 of 7FFF7h) is ’1’
or the Watchdog Register (7FFF7h=0) is reset.
Note: A 4 second settling time must be allowed
before reading the 512Hz output.
Any deviation from 512Hz indicates the degree
anddirection ofoscillatorfrequency shift at the test
temperature.Forexample,areadingof
512.010124Hz would indicatea +20 ppmoscillator
frequency error, requiring a –12 (001100) to be
loaded into the Calibration Byte for correction.
Note that setting or changing the Calibration Byte
does notaffect the Frequency testoutput frequency.
The IRQ/FT pin is an open drain output which requires a pull-up resistor to VCCfor proper operation. A 500-10kΩ resistoris recommended inorder
to control the rise time. The FT bit is cleared on
power-up.
17/24
Page 18
M48T201Y, M48T201V,
Figure 12. RSTIN1 and RSTIN2 Timing Waveforms
RSTIN1
RSTIN2
RST
tR2
Hi-Z
Hi-Z
tR1tR1HRZ
BATTERY LOW WARNING
The M48T201Y/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 7FFF0h, 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 sequenceorthe next scheduled24-hour
interval.
If a battery lowis generatedduring a power-up sequence, this indicates that the battery is below approximately 2.5V and may not be able to maintain
data integrityin theSRAM. Datashould beconsidered 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-
tR2HRZ
AI01679
tery is near end of life. However, data is not compromised due to the fact that a nominal VCCis
supplied. In order to insure data integrity during
subsequent periods of battery back-up mode, the
battery should be replaced. The SNAPHAT top
maybe replacedwhile VCCisapplied to the device
(Note, this will cause the clock to lose time during
the time interval the battery/crystal is removed).
The M48T201Y/201V only monitors the battery
when a nominal VCCis applied to the device. Thus
applications which require extensive durations in
the battery back-up mode should be powered-up
periodically (at least once every few months) in order forthis technique tobe beneficial. Additionally,
if a battery low is indicated, data integrity should
be verified uponpower-up viaa checksum or other
technique.
18/24
Page 19
M48T201Y, M48T201V,
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; SQWE; W;R;
FT.
(See Table 15)
POWER SUPPLY DECOUPLING
and UNDERSHOOT PROTECTION
ICCtransients,including those produced by output
switching, can produce voltage fluctuations, resulting in spikes on the VCCbus. These transients
can be reduced if capacitors are 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 (as shownin Figure
13) is recommended in order to provide the needed filtering.
In addition to transients that are caused bynormal
SRAM operation,power cycling cangenerate negative voltage spikes on VCCthat drive it to values
below VSSby as much as one Volt. These negative spikescan 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 VCCto VSS(cathode
connected to VCC, anode to VSS). Schottky diode
1N5817 is recommended for through hole and
MBRS120T3 is recommended for surface mount.
Figure 13. Supply Voltage Protection
V
CC
V
CC
0.1µFDEVICE
V
SS
AI00605
Table 15. Default Values
ConditionWRFTAFEAFE
Initial Power-up
(Battery Attach for SANPHAT)
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
000000
000000
000110
(1)
19/24
Page 20
M48T201Y, M48T201V,
Table 16. Ordering Information Scheme
Example:M48T201Y-70 MH 1 TR
Device Type
M48T
Supply Voltage and Write Protect Voltage
Y=V
V=V
Speed
-70 = 70ns (M48T201Y)
-85 = 85ns (M48T201V)
Package
MH
Temperature Range
1=0to70°C
Shipping Method for SOIC
blank tubes
TR Tape& Reel
= 4.5V to 5.5V; V
CC
= 3.0V to 3.6V; V
CC
(1)
= SOH44
= 4.1V to 4.5V
PFD
= 2.7V to 3.0V
PFD
Note: 1. The SOIC package (SOH44) requiresthe battery package (SNAPHAT) which is ordered separately underthe part number ”M4Txx-
BR12SH1” in plastic tube or ”M4Txx-BR12SH1TR” in Tape & Reel form.
Caution:Do not place the SNAPHAT battery package ”M4Txx-BR12SH1” inconductive foam since will 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 ST Sales Office nearest to you.
20/24
Page 21
M48T201Y, M48T201V,
Table 17. SOH44 - 44 lead Plastic Small Outline, 4-socket battery, SNAPHAT,
Package Mechanical Data
Figure 16. SH - 4-pinSNAPHAT Housing for120 mAh Battery & Crystal, Package Outline
A1
eA
D
A
B
eB
A3
L
E
SHTK-A
Drawing is not to scale.
A2
23/24
Page 24
M48T201Y, M48T201V,
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences
of useof such information norforanyinfringement of patents or other rights of third parties whichmay result from its use. 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 allinformation previously supplied. STMicroelectronics products are not
authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics.
The ST logo is registered trademark of STMicroelectronics
1999 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
24/24
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.