M48TMH1

更新时间:2024-09-18 02:03:53
描述:5V PC REAL TIME CLOCK

M48TMH1 概述

5V PC REAL TIME CLOCK 5V PC实时时钟

M48TMH1 数据手册

通过下载M48TMH1数据手册来全面了解它。这个PDF文档包含了所有必要的细节,如产品概述、功能特性、引脚定义、引脚排列图等信息。

PDF下载
M48T86  
5V PC REAL TIME CLOCK  
DROP-IN REPLACEMENT for PC  
SNAPHAT (SH)  
Battery/Crystal  
COMPUTER CLOCK/CALENDAR  
COUNTS SECONDS, MINUTES, HOURS,  
DAYS, DAY of the WEEK, DATE, MONTH and  
YEAR with LEAP YEAR COMPENSATION  
INTERFACED WITH SOFTWARE AS 128  
RAM LOCATIONS:  
– 14 Bytes of Clock and Control Registers  
– 114 Bytes of General Purpose RAM  
24  
28  
1
1
SELECTABLE BUS TIMING (Intel/Motorola)  
PCDIP24 (PC)  
Battery/Crystal  
THREE INTERRUPTS are SEPARATELY  
SOH28 (MH)  
CAPHAT  
SOFTWARE-MASKABLE and TESTABLE  
– Time-of-Day Alarm (Once/Second to  
Once/Day)  
– Periodic Rates from 122µs to 500ms  
– End-of-Clock Update Cycle  
Figure 1. Logic Diagram  
PROGRAMMABLE SQUARE WAVE OUTPUT  
SELF-CONTAINED BATTERY and CRYSTAL  
in the CAPHAT DIP PACKAGE  
V
CC  
PACKAGING INCLUDES a 28-LEAD SOIC  
®
and SNAPHAT TOP  
(to be Ordered Separately)  
8
SOIC PACKAGE PROVIDES DIRECT  
CONNECTION for a SNAPHAT TOP  
CONTAINS the BATTERY and CRYSTAL  
AD0-AD7  
SQW  
IRQ  
E
R/W  
DS  
PIN and FUNCTION COMPATIBLE with  
bq3285/7A and DS128887  
M48T86  
AS  
RST  
RCL  
MOT  
V
SS  
AI01640  
May 2000  
1/23  
M48T86  
Figure 2. DIP Connections  
Figure 3. SOIC Connections  
NC  
MOT  
NC  
1
28  
27  
NC  
V
MOT  
NC  
1
2
3
4
5
6
7
8
9
24  
V
CC  
2
CC  
23 SQW  
22 NC  
21 RCL  
20 NC  
19 IRQ  
18 RST  
17 DS  
16 NC  
15 R/W  
14 AS  
3
26  
SQW  
NC  
NC  
4
25  
NC  
AD0  
AD1  
AD2  
AD3  
AD4  
AD5  
AD0  
AD1  
AD2  
AD3  
AD4  
AD5  
AD6  
AD7  
5
24  
RCL  
NC  
6
23  
7
22  
IRQ  
RST  
DS  
M48T86  
M48T86  
8
21  
9
20  
10  
11  
12  
13  
14  
19  
NC  
AD6 10  
AD7 11  
18  
R/W  
AS  
17  
V
12  
13  
E
V
16  
E
SS  
SS  
V
15  
NC  
AI01641  
SS  
AI01642  
Table 1. Signal Names  
DESCRIPTION  
The M48T86 is an industry standard real time  
clock (RTC).The M48T86 is composed of a lithium  
energy source, quartz crystal, write-protection cir-  
cuitry, and a 128 byte RAM array. This provides  
the user with a complete subsystem packaged in  
either a 24-pin DIP CAPHAT or 28-pin SNAPHAT  
SOIC. Functions available to the user include a  
non-volatile time-of-day clock, alarm interrupts, a  
one-hundred-year clock with programmable inter-  
rupts, square wave output, and 128 bytes of non-  
volatile static RAM.  
The 24 pin 600mil DIP CAPHAT™ houses the  
M48T86 silicon with a quartz crystal and a long life  
lithium button cell in a single package.  
The 28 pin 330mil SOIC provides sockets with  
gold plated contacts at both ends for direct con-  
nection to a separate SNAPHAT housing contain-  
ing 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.  
AD0-AD7  
E
Multiplexed Address/Data Bus  
Chip Enable Input  
Write Enable Input  
Data Strobe Input  
Address Strobe Input  
Reset Input  
R/W  
DS  
AS  
RST  
RCL  
MOT  
SQW  
IRQ  
RAM Clear Input  
Bus Type Select Input  
Square Wave Output  
Interrupt Request Output  
Supply Voltage  
V
CC  
Insertion of the SNAPHAT housing after reflow  
prevents potential battery and crystal damage due  
to the high temperatures required for device sur-  
face-mounting. The SNAPHAT housing is keyed  
to prevent reverse insertion.  
V
Ground  
SS  
NC  
Not Connected Internally  
The SOIC and battery packages are shipped sep-  
arately in plastic anti-static tubes or in Tape & Reel  
form.  
2/23  
M48T86  
(1)  
Table 2. Absolute Maximum Ratings  
Symbol  
Parameter  
Value  
0 to 70  
Unit  
°C  
T
A
Ambient Operating Temperature  
T
Storage Temperature (V Off, Oscillator Off)  
–40 to 85  
°C  
STG  
CC  
(2)  
Lead Solder Temperature for 10 seconds  
Input or Output Voltages  
Supply Voltage  
260  
–0.3 to 7.0  
–0.3 to 7.0  
1
°C  
V
T
SLD  
V
IO  
V
V
CC  
P
Power Dissipation  
W
D
Note: 1. Stresses greater than those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. 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 (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 avoid damaging SNAPHAT sockets.  
For the 28 lead SOIC, the battery/crystal package  
part number is "M4T28-BR12SH1".  
Automatic deselection of the device provides in-  
surance that data integrity is not compromised  
AD0-AD7 (Multiplexed Bi-Directional Address/  
Data Bus). The M48T86 provides a multiplexed  
bus in which address and data information share  
the same signal path. The bus cycle consists of  
two stages; first the address is latched, followed by  
the data. Address/Data multiplexing does not slow  
the access time of the M48T86, since the bus  
change from address to data occurs during the in-  
ternal RAM access time. Addresses must be valid  
prior to the falling edge of AS, at which time the  
M48T86 latches the address present on AD0-  
AD7. Valid write data must be present and held  
stable during the latter portion of the R/W pulse. In  
a read cycle, the M48T86 outputs 8 bits of data  
during the latter portion of the DS pulse. The read  
cycle is terminated and the bus returns to a high  
impedance state upon a high transition on R/W.  
should V  
lect Voltage (V  
fall below specified Power-fail Dese-  
CC  
) levels. The automatic deselec-  
PFD  
tion of the device remains in effect upon power up  
for a period of 200ms (max) after V rises above  
CC  
V
, provided that the Real Time Clock is running  
PFD  
and the count down chain is not reset. This allows  
sufficient time for V to stabilize and gives the  
CC  
system clock a wake up period so that a valid sys-  
tem reset can be established.  
The block diagram in Figure 3 shows the pin con-  
nections and the major internal functions of the  
M48T86.  
AS (Address Strobe Input). A positive going  
pulse on the Address Strobe (AS) input serves to  
demultiplex the bus. The falling edge of AS causes  
the address present on AD0-AD7 to be latched  
within the M48T86.  
MOT (Mode Select). The MOT pin offers the flex-  
ibility to choose between two bus types. When  
SIGNAL DESCRIPTION  
V
, V . DC power is provided to the device on  
SS  
CC  
these pins.The M48T86 utilizes a 5V V  
SQW (Square Wave Output). During normal op-  
.
CC  
eration (i.e. valid V ), the SQW pin can output a  
CC  
signal from one of 13 taps.The frequency of the  
SQW pin can be changed by programming Regis-  
ter A as shown in Table 10. The SQW signal can  
be turned on and off using the SQWE bit (Register  
B; bit 3). The SQW signal is not available when  
connected to V , Motorola bus timing is selected.  
CC  
When connected to V or left disconnected, Intel  
SS  
bus timing is selected. The pin has an internal pull-  
down resistance of approximately 20K ohms.  
V
is less than V  
.
CC  
PFD  
3/23  
M48T86  
Figure 4. Block Diagram  
OSCILLATOR  
/ 8  
/ 64  
/ 64  
PERIODIC INTERRUPT/SQUARE WAVE SELECTOR  
E
POWER  
SWITCH  
AND  
V
CC  
V
POK  
CC  
WRITE  
V
SQUARE WAVE  
OUTPUT  
PROTECT  
BAT  
SQW  
IRQ  
RST  
REGISTERS A,B,C,D  
CLOCK CALENDAR,  
CLOCK/  
CALENDAR  
UPDATE  
AND ALARM RAM  
DOUBLE  
BUFFERED  
DS  
R/W  
AS  
BCD/BINARY  
INCREMENT  
RCL  
BUS  
INTERFACE  
STORAGE  
REGISTERS  
(114 BYTES)  
AD0-AD7  
AI01643  
DS (Data Strobe Input). The DS pin is also re-  
ferred to as Read (RD). A falling edge transition on  
the Data Strobe (DS) input enables the output dur-  
ing a a read cycle. This is very similar to an Output  
Enable (G) signal on other memory devices.  
E (Chip Enable Input). The Chip Enable pin  
must be asserted low for a bus cycle in the  
M48T86 to be accessed. Bus cycles which take  
place without asserting E will latch the addresses  
present, but no data access will occur.  
IRQ (Interrupt Request Output). The IRQ pin is  
an open drain output that can be used as an inter-  
rupt input to a processor. The IRQ output remains  
low as long as the status bit causing the interrupt  
is present and the corresponding interrupt-enable  
bit is set. IRQ returns to a high impedance state  
whenever Register C is read. The RST pin can  
also be used to clear pending interrupts. Because  
the IRQ bus is an open drain output, it requires an  
external pull-up resistor to V  
.
CC  
4/23  
M48T86  
RST (Reset Input). The M48T86 is reset when  
the RST input is pulled low. With a valid V ap-  
plied and a low on RST, the following events oc-  
cur:  
1. Periodic Interrupt Enable (PIE) bit is cleared to  
a zero. (Register B; Bit 6)  
2. Alarm Interrupt Enable (AIE) bit is cleared to a  
zero.(Register B; bit 5)  
RCL (RAM Clear). The RCL pin is used to clear  
all 114 storage bytes, excluding clock and control  
registers, of the array to FF(hex) value. The array  
will be cleared when the RCL pin is held low for at  
least 100ms with the oscillator running. Usage of  
this pin does not affect battery load. This function  
CC  
is applicable only when V  
is applied.  
CC  
R/W (Read/Write Input). The R/W pin is utilized  
to latch data into the M48T86 and provides func-  
tionality similar to W in other memory systems.  
3. Update Ended Interrupt Request (UF) bit is  
cleared to a zero. (Register C; Bit 4)  
4. Interrupt Request (IRQF) bit is cleared to a zero.  
(Register C Bit 7)  
5. Periodic Interrupt Flag (PF) bit is cleared to a  
zero. (Register C; Bit 6)  
6. The device is not accessible until RST is re-  
turned high.  
7. Alarm Interrupt Flag (AF) bit is cleared to a zero.  
(Register C; Bit 5)  
ADDRESS MAP  
The address map of the M48T86 is shown in Fig-  
ure 9. It consists of 114 bytes of user RAM, 10  
bytes of RAM that contain the RTC time, calendar  
and alarm data, and 4 bytes which are used for  
control and status. All bytes can be read or written  
to except for the following:  
1. Registers C & D are read-only.  
2. Bit 7 of Register A is read-only.  
8. The IRQ pin is in the high impedance state.  
The contents of the four Registers A, B, C, and D  
are described in the "Registers" section.  
9. Square Wave Output Enable (SQWE) bit is  
cleared to zero. (Register B; Bit 3).  
10.Update Ended Interrupt Enable (UIE) is cleared  
to a zero. (Register B; Bit 4)  
5/23  
M48T86  
Table 3. Time, Calendar and Alarm Formats  
Range  
Binary  
00-3B  
00-3B  
00-3B  
00-3B  
Address  
RTC Bytes  
Decimal  
0-59  
BCD  
00-59  
00-59  
00-59  
00-59  
0
1
2
3
Seconds  
Seconds Alarm  
Minutes  
0-59  
0-59  
Minutes Alarm  
0-59  
01-0C AM  
81-8C PM  
01-12 AM  
81-92 PM  
Hours, 12-hrs  
Hours, 24-hrs  
1-12  
0-23  
1-12  
4
5
00-17  
00-23  
01-0C AM  
81-8C PM  
01-12 AM  
81-92 PM  
Hours Alarm, 12-hrs  
Hours Alarm, 24-hrs  
Day of Week (1 = Sun)  
Day of Month  
Month  
0-23  
1-7  
00-17  
01-07  
01-1F  
01-0C  
00-63  
00-23  
01-07  
01-31  
01-12  
00-99  
6
7
8
9
1-31  
1-12  
0-99  
Year  
TIME, CALENDAR, AND ALARM LOCATIONS  
shows the binary and BCD formats of the time, cal-  
endar, and alarm locations. The 24/12 bit (Regis-  
ter B; Bit 1) cannot be changed without  
reinitializing the hour locations. When the 12-hour  
format is selected, a logic one in the high order bit  
of the hours byte represents PM. The time, calen-  
dar, and alarm bytes are always accessible be-  
cause they are double buffered. Once per second  
the ten bytes are advanced by one second and  
checked for an alarm condition. If a read of the  
time and calendar data occurs during an update, a  
problem exists where seconds, minutes, hours,  
etc. may not correlate. However, the probability of  
reading incorrect time and calendar data is low.  
Methods of avoiding possible incorrect time and  
calendar reads are reviewed later in this text.  
The time and calendar information is obtained by  
reading the appropriate memory bytes. The time,  
calendar, and alarm registers are set or initialized  
by writing the appropriate RAM bytes. The con-  
tents of the time, calendar, and alarm bytes can be  
either Binary or Binary-Coded Decimal (BCD) for-  
mat. Before writing the internal time, calendar, and  
alarm register, the SET bit (Register B; Bit 7)  
should be written to a logic "1". This will prevent  
updates from occurring while access is being at-  
tempted. In addition to writing the time, calendar,  
and alarm registers in a selected format (binary or  
BCD), the Data Mode (DM) bit (Register B; Bit 2),  
must be set to the appropriate logic level ("1" sig-  
nifies binary data; "0" signifies Binary Coded Dec-  
imal (BCD data). All time, calendar, and alarm  
bytes must use the same data mode. The SET bit  
should be cleared after the Data Mode bit has  
been written to allow the Real Time Clock to up-  
date the time and calendar bytes. Once initialized,  
the Real Time Clock makes all updates in the se-  
lected mode. The data mode cannot be changed  
without reinitializing the ten data bytes. Table 3  
NON-VOLATILE RAM  
The 114 general purpose non-volatile RAM bytes  
are not dedicated to any special function within the  
M48T86. They can be used by the processor pro-  
gram as non-volatile memory and are fully acces-  
sible during the update cycle.  
6/23  
M48T86  
Figure 5. AC Testing Load Circuit  
Figure 6. AC Testing Load Circuit  
5V  
5V  
960Ω  
1.15kΩ  
FOR ALL  
OUTPUTS  
EXCEPT IRQ  
IRQ  
510Ω  
50pF  
130pF  
AI01644  
AI01645  
Table 4. AC Measurement Conditions  
Input Rise and Fall Times  
5ns  
0 to 3V  
1.5V  
Input Pulse Voltages  
Input and Output Timing Ref. Voltages  
Note that Output Hi-Z is defined as the point where data is no longer driven.  
(1, 2)  
Table 5. Capacitance  
(T = 25 °C, f = 1 MHz)  
A
Symbol  
Parameter  
Input Capacitance  
Test Condition  
Min  
Max  
Unit  
C
V
= 0V  
= 0V  
7
pF  
IN  
(3)  
IN  
V
OUT  
Input / Output Capacitance  
5
pF  
C
IO  
Note: 1. Effective capacitance measured with power supply at 5V.  
2. Sampled only, not 100% tested.  
3. Outputs deselected.  
Table 6. DC Characteristics (1)  
(T = 0 to 70 °C; V = 4.5V to 5.5V)  
A
CC  
Symbol  
Parameter  
Test Condition  
Min  
Max  
Unit  
(1)  
0V V V  
Input Leakage Current  
±1  
µA  
I
LI  
IN  
CC  
(1)  
0V V  
V  
CC  
Output Leakage Current  
Supply Current  
±1  
15  
µA  
mA  
V
I
OUT  
LO  
I
Outputs open  
CC  
V
Input Low Voltage  
Input High Voltage  
Output Low Voltage  
–0.3  
2.2  
0.8  
IL  
V
V
+ 0.3  
V
IH  
CC  
I
= 4mA  
0.4  
0.4  
V
OL  
V
V
OL  
I
= 0.5mA  
= –1mA  
OH  
V
OL  
Output Low Voltage (IRQ)  
Output High Voltage  
I
2.4  
V
OH  
Note: 1. Outputs deselected.  
7/23  
M48T86  
(1)  
Table 7. Power Down/Up Trip Points DC Characteristics  
(T = 0 to 70 °C)  
A
Symbol  
Parameter  
Power-fail Deselect Voltage  
Min  
Typ  
Max  
Unit  
V
V
PFD  
4.0  
4.35  
V
Battery Back-up Switchover Voltage  
3.0  
V
SO  
(2)  
Expected Data Retention Time  
10  
YEARS  
t
DR  
Note: 1. All voltages referenced to V  
.
SS  
2. At 25°C.  
Table 8. Power Down/Up Mode AC Characteristics  
(TA = 0 to 70°C)  
Symbol  
Parameter  
Min  
Max  
Unit  
µs  
(1)  
V
Fall Time  
300  
100  
20  
t
F
CC  
t
V
V
Rise Time  
to E High  
µs  
R
CC  
t
200  
ms  
REC  
PFD  
Note: 1. V fall time of less than t may result in deselection/write protection not occurring until 200µs after V passes V .  
PFD  
CC  
F
CC  
Figure 7. Power Down/Up Mode AC Waveforms  
V
4.5V  
CC  
V
PFD  
V
SO  
tF  
tR  
tREC  
E
AI01646  
INTERRUPTS  
Register B enable the interrupts. Writing a logic "1"  
to an interrupt-enable bit (Register B; Bit 6 = PIE;  
Bit 5 = AIE; Bit 4 = UIE) permits an interrupt to be  
initialized when the event occurs. A zero in an in-  
terrupt-enable bit prohibits the IRQ pin from being  
asserted from that interrupt condition. If an inter-  
rupt flag is already set when an interrupt is en-  
abled, IRQ is immediately set at an active level,  
although the interrupt initiating the event may have  
occurred much earlier. As a result, there are cases  
where the program should clear such earlier initi-  
ated interrupts before first enabling new interrupts.  
The RTC plus RAM includes three separate, fully  
automatic sources of interrupt (alarm, periodic, up-  
date-in-progress) available to a processor. The  
alarm interrupt can be programmed to occur at  
rates from once per second to once per day. The  
periodic interrupt can be selected from rates of  
500ms to 122µs. The update-ended interrupt can  
be used to indicate that an update cycle has com-  
pleted.  
The processor program can select which inter-  
rupts, if any, are going to be used. Three bits in  
8/23  
M48T86  
Table 9. AC Characteristics  
(T = 0 to 70 °C; V = 4.5V to 5.5V)  
A
CC  
M48T86  
Typ  
Symbol  
Parameter  
Unit  
Min  
160  
80  
55  
0
Max  
t
Cycle Time  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
µs  
CYC  
t
t
Pulse Width, Data Strobe Low or R/W High  
Pulse Width, Data Strobe High or R/W Low  
R/W Hold Time  
DSL  
DSH  
RWH  
t
t
R/W Setup Time  
10  
5
RWS  
t
Chip Select Setup Time  
CS  
t
Chip Select Hold Time  
0
CH  
t
Read Data Hold Time  
0
25  
DHR  
t
Write Data Hold Time  
0
DHW  
t
AS  
Address Setup Time  
20  
5
t
AH  
Address Hold Time  
t
Delay Time, Data Strobe to Address Strobe Rise  
Pulse Width Address Strobe High  
Delay Time, Address Strobe to Data Strobe Rise  
Output Data Delay Time from Data Strobe Rise  
Write Setup Time  
10  
30  
35  
DAS  
t
ASW  
t
ASD  
t
50  
OD  
t
30  
DW  
t
Delay Time before Update Cycle  
Periodic Interrupt Time interval  
Time of Update Cycle  
244  
BUC  
(1)  
PI  
t
t
1
µs  
UC  
Note: 1. See Table 10.  
When an interrupt event occurs, the related flag bit  
(Register C; Bit 6 = PF; Bit 5 = AF; Bit 4 = UF) is  
set to a logic "1". These flag bits are set indepen-  
dent of the state of the corresponding enable bit in  
Register B and can be used in a polling mode with-  
out enabling the corresponding enable bits. The  
interrupt flag bits are status bits which software  
can interrogate as necessary.  
When a flag is set, an indication is given to soft-  
ware that an interrupt event has occurred since the  
flag bit was last read; however, care should be tak-  
en when using the flag bits as all are cleared each  
time Register C is read. Double latching is includ-  
ed with Register C so that bits which are set, re-  
main stable throughout the read cycle. All bits  
which are set high are cleared when read. Any  
new interrupts which are pending during the read  
cycle are held until after the cycle is completed.  
One, two, or three bits can be set when reading  
Register C. Each utilized flag bit should be exam-  
ined when read to ensure that no interrupts are  
lost.  
The second flag bit usage method is with fully en-  
abled interrupts. When an interrupt flag bit is set  
and the corresponding enable bit is also set, the  
IRQ pin is asserted low. IRQ is asserted as long as  
at least one of the three interrupt sources has its  
flag and enable bits both set. The IRQF bit (Regis-  
ter C; Bit 7) is a "1" whenever the IRQ pin is being  
driven low. Determination that the RTC initiated an  
interrupt is accomplished by reading Register C.A  
logic "1" in the IRQF bit indicates that one or more  
interrupts have been initiated by the M48T86. The  
act of reading Register C clears all active flag bits  
and the IRQF bit.  
9/23  
M48T86  
Figure 8. Intel Bus Read Mode AC Waveforms  
tCYC  
AS  
tASW  
tASD  
DS  
tDSL  
R/W  
tDAS  
E
tDSH  
tCS  
tOD  
tCH  
tAS  
tAH  
tDHR  
AD0-AD7  
AI01647  
Figure 9. Intel Bus Write AC Waveforms  
tCYC  
AS  
tDAS  
tASW  
tDSL  
tASD  
DS  
R/W  
E
tDSH  
tCS  
tCH  
tAS  
tAH  
tDW  
tDHW  
AD0-AD7  
AI01648  
10/23  
M48T86  
Figure 10. Motorola Bus Read/Write Mode AC Waveforms  
AS  
tDAS  
tASW  
tASD  
tCYC  
DS  
tDSL  
tRWS  
tDSH  
tRWH  
R/W  
E
tCS  
tCH  
tAH  
tAS  
tDW  
tDHW  
AD0-AD7  
(Write)  
tAS  
tOD  
tAH  
tDHR  
AD0-AD7  
(Read)  
AI01649  
PERIODIC INTERRUPT  
ALARM INTERRUPT  
The periodic interrupt will cause the IRQ pin to go  
to an active state from once every 500ms to once  
every 122µs. This function is separate from the  
alarm interrupt which can be output from once per  
second to once per day. The periodic interrupt rate  
is selected using the same Register A bits which  
select the square wave frequency (see Table 10).  
Changing the Register A bits affects both the  
square wave frequency and the periodic interrupt  
output. However, each function has a separate en-  
able bit in Register B. The periodic interrupt is en-  
abled by the PIE bit (Register B; Bit 6). The  
periodic interrupt can be used with software  
counters to measure inputs, create output inter-  
vals, or await the next needed software function.  
The alarm interrupt provides the system processor  
with an interrupt when a match is made between  
the RTC's hours, minutes, and seconds bytes and  
the corresponding alarm bytes.  
The three alarm bytes can be used in two ways.  
First, when the alarm time is written in the appro-  
priate hours, minutes, and seconds alarm loca-  
tions, the alarm interrupt is initiated at the specified  
time each day if the Alarm Interrupt Enable bit  
(Register B; Bit 5) is high. The second use is to in-  
sert a "don't care" state in one or more of the three  
alarm bytes. The "don't care" code is any hexadec-  
imal value from C0 to FF. The two most significant  
bits of each byte set the "don't care" condition  
when at logic "1". An alarm will be generated each  
hour when the "don't care" is are set in the hours  
byte. Similarly, an alarm is generated every minute  
with "don't care" codes in the hour and minute  
alarm bytes. The "don't care" codes in all three  
alarm bytes create an interrupt every second.  
11/23  
M48T86  
Figure 11. Address Map  
0
00  
0
1
SECONDS  
SECONDS ALARM  
MINUTES  
14  
BYTES  
CLOCK AND CONTROL  
STATUS REGISTERS  
2
3
MINUTES ALARM  
HOURS  
13  
14  
0D  
0E  
BCD OR  
BINARY  
FORMAT  
4
5
HOURS ALARM  
DAY OF WEEK  
DATE OF MONTH  
MONTH  
6
7
8
9
YEAR  
114  
BYTES  
STORAGE REGISTERS  
10  
11  
12  
13  
REGISTER A  
REGISTER B  
REGISTER C  
REGISTER D  
127  
7F  
AI01650  
UPDATE CYCLE INTERRUPT  
SQW frequency selection shares the 1-of-15 se-  
lector with the periodic interrupt generator. Once  
the frequency is selected, the output of the SQW  
pin can be turned on and off under program control  
with the square wave enabled (SQWE).  
After each update cycle, the update cycle ended  
flag bit (UF) (Register C; Bit 4) is set to a "1". If the  
update interrupt enable bit (UIE) (Register B; Bit 4)  
is set to a "1", and the SET bit (Register B; Bit 7) is  
a "0", then an interrupt request is generated at the  
end of each update cycle.  
OSCILLATOR CONTROL BITS  
When the M48T86 is shipped from the factory the  
internal oscillator is turned off. This feature pre-  
vents the lithium energy cell from being dis-  
charged until it is installed in a system. A pattern of  
"010" in Bits 4-6 of Register A will turn the oscilla-  
tor on and enable the countdown chain. A pattern  
of "11X" will turn the oscillator on, but holds the  
countdown chain of the oscillator in reset. All other  
combinations of Bits 4-6 keep the oscillator off.  
SQUARE WAVE OUTPUT SELECTION  
Thirteen of the 15 divider taps are made available  
to a 1-of-15 selector, as shown in the block dia-  
gram of Figure 3. The purpose of selecting a divid-  
er tap is to generate a square wave output signal  
on the SQW pin. The RS3-RS0 bits in Register A  
establish the square wave output frequency.  
These frequencies are listed in Table 10. The  
12/23  
M48T86  
Table 10. Square Wave Frequency/Periodic Interrupt Rate  
Register A Bits  
RS2 RS1  
Square Wave  
Periodic Interrupt  
RS3  
0
RS0  
0
Frequency  
None  
256  
128  
8.192  
4.096  
2.048  
1.024  
512  
256  
128  
64  
Units  
Period  
None  
Units  
0
0
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
1
Hz  
Hz  
3.90625  
7.8125  
122.070  
244.141  
488.281  
976.5625  
1.953125  
3.90625  
7.8125  
15.625  
31.25  
ms  
ms  
us  
0
0
0
1
kHz  
kHz  
kHz  
kHz  
Hz  
0
0
us  
0
1
us  
0
0
us  
0
1
ms  
ms  
ms  
ms  
ms  
ms  
ms  
ms  
ms  
1
0
Hz  
1
1
Hz  
1
0
Hz  
1
1
32  
Hz  
1
0
16  
Hz  
62.5  
1
1
8
Hz  
125  
1
0
4
Hz  
250  
1
1
2
Hz  
500  
UPDATE CYCLE  
read valid time and date information. If this inter-  
rupt is used, the IRQF bit (Register C; Bit 7) should  
be cleared before leaving the interrupt routine.  
The M48T86 executes an update cycle once per  
second regardless of the SET bit (Register B; Bit  
7). When the SET bit is asserted, the user copy of  
the double buffered time, calendar, and alarm  
bytes is frozen and will not update as the time in-  
crements. However, the time countdown chain  
continues to update the internal copy of the buffer.  
This feature allows accurate time to be main-  
tained, independent of reading and writing the  
time, calendar, and alarm buffers. This also guar-  
antees that the time and calendar information will  
be consistent. The update cycle also compares  
each alarm byte with the corresponding time byte  
and issues an alarm if a match or if a "don't care"  
code is present in all three positions.  
There are three methods of accessing the real  
time clock that will avoid any possibility of obtain-  
ing inconsistent time and calendar data. The first  
method uses the update-ended interrupt. If en-  
abled, an interrupt occurs after every update cycle  
which indicates that over 999ms are available to  
A second method uses the Update-In-Progress  
(UIP) bit (Register A; Bit 7) to determine if the up-  
date cycle is in progress. The UIP bit will pulse  
once per second. After the UIP bit goes high, the  
update transfer occurs 244µs later. If a low is read  
on the UIP bit, the user has at least 244µs before  
the time/calendar data will be changed. Therefore,  
the user should avoid interrupt service routines  
that would cause the time needed to read valid  
time/calendar data to exceed 244µs.  
The third method uses a periodic interrupt to deter-  
mine if an update cycle is in progress. The UIP bit  
is set high between the setting of the PF bit (Reg-  
ister C; Bit 6). Periodic interrupts that occur at a  
rate greater than t  
allow valid time and date in-  
BUC  
formation to be reached at each occurrence of the  
periodic interrupt.The reads should be completed  
within 1/(t  
+ t  
) to ensure that data is not  
PL/2  
BUC  
read during the update cycle.  
13/23  
M48T86  
Figure 12. Update Period Timing and UIP  
UPDATE PERIOD (1sec)  
UIP  
tBUC  
tUC  
AI01651  
Figure 13. Update-ended/Periodic Interrupt Relationship  
UPDATE PERIOD (1sec)  
UIP  
tBUC  
tUC  
tPI  
tPI  
tPI  
PF  
UF  
AI01652B  
14/23  
M48T86  
REGISTER A  
MSB  
BIT7  
UIP  
BIT6  
BIT5  
BIT4  
BIT3  
RS3  
BIT2  
RS2  
BIT1  
RS1  
BIT0  
RS0  
OSC2  
OSC1  
OSC0  
UIP. Update in Progress  
RS3, RS2, RS1, RS0  
The Update in Progress (UIP) bit is a status flag  
that can be monitored. When the UIP bit is one,  
the update transfer will soon occur. When UIP isa  
zero, the update transfer will not occur for at least  
244µs. The time, calendar, and alarm information  
in RAM is fully available for access when the UIP  
bit is zero. The UIP bit is read only and is not af-  
fected by RST. Writing the SET bit in Register B to  
a "1" inhibits any update transfer and clears the  
UIP status bit.  
These four rate-selection bits select one of the 13  
taps on the 15-stage divider or disable the divider  
output. The tap selected may be used to generate  
an output square wave (SQW pin) and/or a period-  
ic interrupt. The user may do one of the following:  
1. Enable the interrupt with the PIE bit;  
or  
2. Enable the SQW output with the SQWE bit;  
or  
OSC0, OSC1, OSC2. Oscillator Control  
3. Enable both at the same time and same rate;  
These three bits are used to control the oscillator  
and reset the countdown chain. A pattern of "010"  
enables operation by turning on the oscillator and  
enabling the divider chain. A pattern of 11X turns  
the oscillator on, but keeps the frequency divider  
disabled. When "010" is written, the first update  
begins after 500ms.  
or  
4. Enable neither.  
Table 10 lists the periodic interrupt rates and the  
square wave frequencies that may be chosen with  
the RS bits. These four read/write bits are not af-  
fected by RST.  
15/23  
M48T86  
REGISTER B  
MSB  
BIT7  
SET  
BIT6  
PIE  
BIT5  
AIE  
BIT4  
UIE  
BIT3  
BIT2  
DM  
BIT1  
BIT0  
DSE  
SQWE  
24/12  
SET  
SQWE. Square Wave Enable  
When the SET bit is a zero, the update transfer  
functions normally by advancing the counts once  
per second. When the SET bit is written to a one,  
any update transfer is inhibited and the program  
may initialize the time and calendar bytes without  
an update occurring. Read cycles can be executed  
in a similar manner. SET is a read/write bit which  
is not modified by RST or internal functions of the  
M48T86.  
When the Square Wave Enable (SQWE) bit is set  
to a one, a square wave signal is driven out on the  
SQW pin. The frequency is determined by the  
rate-selection bits RS3-RS0. When the SQWE bit  
is set to zero, the SQW pin is held low. The SQWE  
bit is cleared by the RST pin. SQWE is a read/write  
bit.  
DM. Data Mode  
The Data Mode (DM) bit indicates whether time  
and calendar information are in binary or BCD for-  
mat. The DM bit is set by the program to the appro-  
priate format and can be read as required. This bit  
is not modified by internal function or RST. A one  
in DM signifies binary data and a zero specifies Bi-  
nary Coded Decimal (BCD) data.  
PIE. Periodic Interrupt Enable  
The Periodic Interrupt Enable bit (PIE) is a read/  
write bit which allows the Periodic Interrupt Flag  
(PF) bit Register C to cause the IRQ pin to be driv-  
en low. When the PIE bit is set to one, periodic in-  
terrupts are generated by driving the IRQ pin low  
at a rate specified by the RS3-RS0 bits of Register  
A. A zero in the PIE bit blocks the IRQ output from  
being driven by a periodic interrupt, but the Period-  
ic Flag (PF) bit is still set at the periodic rate. PIE  
is not modified by any internal M48T86 functions,  
but is cleared to zero on RST.  
24/12  
The 24/12 control bit establishes the format of the  
hours byte.A one indicates the 24-hour mode and  
a zero indicates the 12-hour mode. This bit is read/  
write and is not affected by internal functions or  
RST.  
AIE. Alarm Interrupt Enable  
DSE. Daylight Savings Enable  
The Alarm Interrupt Enable (AIE) bit is a Read/  
Write bit which, when set to a one, permits the  
Alarm Flag (AF) bit in Register C to assert IRQ. An  
alarm interrupt occurs for each second that the  
three time bytes equal the three alarm bytes in-  
cluding a "don’t care" alarm code of binary  
1XXXXXXX. When the AIE bit is set to zero, the  
AF bit does not initiate the IRQ signal. The RST  
pin clears AIE to zero. The internal functions of the  
M48T86 do not affect the AIE bit.  
The Daylight Savings Enable (DSE) bit is a read/  
write bit which enables two special updates when  
set to a one. On the first Sunday in April, the time  
increments from 1:59:59AM to 3:00:00 AM. On the  
last Sunday in October, when the time reaches  
1:59:59 AM, it changes to 1:00:00 AM. These spe-  
cial updates do not occur when the DSE bit is a ze-  
ro. This bit is not affected by internal functions or  
RST.  
UIE. Update Ended Interrupt Enable  
The Update Ended Interrupt Enable (UIE) bit is a  
read/write bit which enables the Update End Flag  
(UF) bit in Register C to assert IRQ. A transition  
low on the RST pin or the SET bit going high clears  
the UIE bit.  
16/23  
M48T86  
REGISTER C  
MSB  
BIT7  
BIT6  
PF  
BIT5  
AF  
BIT4  
UF  
BIT3  
0
BIT2  
0
BIT1  
0
BIT0  
0
IRQF  
IRQF. Interrupt Request Flag  
AF. Alarm Flag  
The Interrupt Request Flag (IRQF) bit is set to a  
one when one or more of the following are true:  
PF = PIE = 1  
AF = AIE = 1  
UF = UIE = 1  
A one in the AF (Alarm Interrupt Flag) bit indicates  
that the current time has matched the alarm time.  
If the AIE bit is also a one, the IRQ pin will go low  
and a one will appear in the IRQF bit. A RST or a  
read of Register C will clear AF.  
UF. Update Ended Interrupt Flag  
(i.e. IRQF = PF*PIE+AF*AIE+UF*UIE)  
PF. Periodic Interrupt Flag  
The Update Ended Interrupt Flag (UF) bit is set af-  
ter each update cycle. When the UIE bit is set to a  
one, the one in the UF bit causes the IRQF bit to  
be a one. This will assert the IRQ pin. UF is  
cleared by reading Register C or an RST.  
BIT 0 through 3. Unused Bits  
Bit 3-Bit 0 are unused. These bits always read  
zero and cannot be written.  
The Periodic Interrupt Flag (PF) is a read-only bit  
which is set to a one when an edge is detected on  
the selected tap of the divider chain. The RS3-RS0  
bits establish the periodic rate. PF is set to a one  
independent of the state of the PIE bit. The IRQ  
signal is active and will set the IRQF bit. The PF bit  
is cleared by a RST or a software read of Register  
C.  
REGISTER D  
MSB  
BIT7  
VRT  
BIT6  
0
BIT5  
0
BIT4  
0
BIT3  
0
BIT2  
0
BIT1  
0
BIT0  
0
VRT. Valid Ram And Time  
BIT 0 through 6. Unused Bits  
The Valid RAM and Time (VRT) bit is set to the  
one state by STMicroelectronics prior to shipment.  
This bit is not writable and should always be a one  
when read. If a zero is ever present, an exhausted  
internal lithium cell is indicated and both the con-  
tents of the RTC data and RAM data are question-  
able. This bit is unaffected by RST.  
The remaining bits of Register D are not usable.  
They cannot be written and when read, they will al-  
ways read zero.  
17/23  
M48T86  
POWER SUPPLY DECOUPLING  
and UNDERSHOOT PROTECTION  
Figure 14. Supply Voltage Protection  
I
transients, including those produced by output  
CC  
switching, can produce voltage fluctuations, re-  
sulting in spikes on the V bus. These transients  
CC  
can be reduced if capacitors are used to store en-  
ergy, which stabilizes the V  
bus. The energy  
CC  
V
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  
14) is recommended in order to provide the need-  
ed filtering.  
CC  
V
CC  
0.1µF  
DEVICE  
In addition to transients that are caused by normal  
SRAM operation, power cycling can generate neg-  
V
ative voltage spikes on V  
that drive it to values  
SS  
CC  
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 con-  
AI02169  
nect a schottky diode from V  
to V (cathode  
CC  
SS  
connected to V , anode to V ). Schottky diode  
CC  
SS  
1N5817 is recommended for through hole and  
MBRS120T3 is recommended for surface mount.  
18/23  
M48T86  
Table 11. Ordering Information Scheme  
Example:  
M48T86  
MH  
1
TR  
Device Type  
M48T  
Package  
PC = PCDIP24  
(1)  
MH  
= SOH28  
Temperature Range  
1 = 0 to 70 °C  
Shipping Method for SOIC  
blank = Tubes  
TR = Tape & Reel  
Note: 1. The SOIC package (SOH28) requires the battery/crystal package (SNAPHAT) which is ordered separately under the part number  
"M4T28-BR12SH1" in plastic tube or "M4T28-BR12SH1TR" in Tape & Reel form.  
Caution: Do not place the SNAPHAT battery/crystal package "M4T28-BR12SH1" in conductive 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 de-  
vice, please contact the ST Sales Office nearest to you.  
Table 12. Revision History  
Date  
March 1999  
05/04/00  
Revision Details  
First Issue  
Page layout changed  
19/23  
M48T86  
Table 13. PCDIP24 - 24 pin Plastic DIP, battery CAPHAT, Package Mechanical Data  
mm  
Min  
inches  
Min  
Symb  
Typ  
Max  
9.65  
0.76  
8.89  
053  
Typ  
Max  
A
A1  
A2  
B
8.89  
0.38  
8.36  
0.38  
1.14  
0.20  
34.29  
17.83  
2.29  
25.15  
15.24  
3.05  
24  
0.3500  
0.0150  
0.3291  
0.0150  
0.0449  
0.0079  
1.3500  
0.7020  
0.0902  
0.9902  
0.6000  
0.1201  
24  
0.3799  
0.0299  
0.3500  
0.0209  
0.0701  
0.0122  
1.3701  
0.7220  
0.1098  
1.2098  
0.6299  
0.1500  
B1  
C
1.78  
0.31  
34.80  
18.34  
2.79  
30.73  
16.00  
3.81  
D
E
e1  
e3  
eA  
L
N
Figure 15. PCDIP28 - 28 pin Plastic DIP, battery CAPHAT, Package Outline  
A2  
A
L
A1  
e1  
C
B1  
B
eA  
e3  
D
N
1
E
PCDIP  
Drawing is not to scale.  
20/23  
M48T86  
Table 14. SOH28 - 28 lead Plastic Small Outline, 4-socket battery SNAPHAT, Package Mechanical Data  
mm  
Min  
inches  
Min  
Symb  
Typ  
Max  
3.05  
0.36  
2.69  
0.51  
0.32  
18.49  
8.89  
Typ  
Max  
0.1201  
0.0142  
0.1059  
0.0201  
0.0126  
0.7280  
0.3500  
A
A1  
A2  
B
0.05  
2.34  
0.36  
0.15  
17.71  
8.23  
0.0020  
0.0921  
0.0142  
0.0059  
0.6972  
0.3240  
C
D
E
e
1.27  
0.0500  
eB  
H
3.20  
11.51  
0.41  
0°  
3.61  
12.70  
1.27  
8°  
0.1260  
0.4531  
0.0161  
0°  
0.1421  
0.5000  
0.0500  
8°  
L
α
N
28  
28  
CP  
0.10  
0.0039  
Figure 16. SOH28 - 28 lead Plastic Small Outline, 4-socket battery SNAPHAT, Package Outline  
A2  
A
C
eB  
B
e
CP  
D
N
E
H
A1  
α
L
1
SOH-A  
Drawing is not to scale.  
21/23  
M48T86  
Table 15. M4T28-BR12SH - SNAPHAT Housing for 48 mAh Battery & Crystal, Package Mechanical Data  
mm  
Min  
inches  
Min  
Symb  
Typ  
Max  
9.78  
7.24  
6.99  
0.38  
0.56  
21.84  
14.99  
15.95  
3.61  
2.29  
Typ  
Max  
A
A1  
A2  
A3  
B
0.3850  
0.2850  
0.2752  
0.0150  
0.0220  
0.8598  
0.5902  
0.6280  
0.1421  
0.0902  
6.73  
6.48  
0.2650  
0.2551  
0.46  
21.21  
14.22  
15.55  
3.20  
0.0181  
0.8350  
0.5598  
0.6122  
0.1260  
0.0799  
D
E
eA  
eB  
L
2.03  
Figure 17. M4T28-BR12SH - SNAPHAT Housing for 48 mAh Battery & Crystal, Package Outline  
A2  
A1  
A
A3  
L
eA  
D
B
eB  
E
SH  
Drawing is not to scale.  
22/23  
M48T86  
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 of patents or other rights of third parties which may 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 all information 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  
© 2000 STMicroelectronics - All Rights Reserved  
All other names are the property of their respective owners.  
STMicroelectronics GROUP OF COMPANIES  
Australia - Brazil - China - Finland - France - Germany - Hong Kong - India - Italy - Japan - Malaysia - Malta - Morocco -  
Singapore - Spain - Sweden - Switzerland - United Kingdom - U.S.A.  
http://www.st.com  
23/23  

M48TMH1 相关器件

型号 制造商 描述 价格 文档
M48TMH1TR STMICROELECTRONICS 5V PC REAL TIME CLOCK 获取价格
M48TPC1 STMICROELECTRONICS 5V PC REAL TIME CLOCK 获取价格
M48TPC1TR STMICROELECTRONICS 5V PC REAL TIME CLOCK 获取价格
M48TV-70MH1 STMICROELECTRONICS 3.3V-5V TIMEKEEPER CONTROLLER 获取价格
M48TV-70MH1TR STMICROELECTRONICS 3.3V-5V TIMEKEEPER CONTROLLER 获取价格
M48TV-70PM1 STMICROELECTRONICS 3.3V-5V 1 Mbit 128Kb x8 TIMEKEEPER SRAM 获取价格
M48TV-85MH1 STMICROELECTRONICS 3.3V-5V TIMEKEEPER CONTROLLER 获取价格
M48TV-85MH1TR STMICROELECTRONICS 3.3V-5V TIMEKEEPER CONTROLLER 获取价格
M48TV-85PM1 STMICROELECTRONICS 3.3V-5V 1 Mbit 128Kb x8 TIMEKEEPER SRAM 获取价格
M48TY-70MH1 STMICROELECTRONICS 3.3V-5V TIMEKEEPER CONTROLLER 获取价格

M48TMH1 相关文章

  • Bourns 密封通孔金属陶瓷微调电位计产品选型手册(英文版)
    2024-09-20
    6
  • Bourns 精密环境传感器产品选型手册(英文版)
    2024-09-20
    9
  • Bourns POWrTher 负温度系数(NTC)热敏电阻手册 (英文版)
    2024-09-20
    8
  • Bourns GMOV 混合过压保护组件产品选型手册(英文版)
    2024-09-20
    6