DS17487-5+ [MAXIM]

Real-Time Clocks; 实时时钟
DS17487-5+
型号: DS17487-5+
厂家: MAXIM INTEGRATED PRODUCTS    MAXIM INTEGRATED PRODUCTS
描述:

Real-Time Clocks
实时时钟

计时器或实时时钟 微控制器和处理器 外围集成电路 光电二极管
文件: 总31页 (文件大小:324K)
中文:  中文翻译
下载:  下载PDF数据表文档文件
19-5222; Rev 1; 4/10  
Real-Time Clocks  
245/DS187  
General Description  
Features  
The DS17285, DS17485, DS17885, DS17287, DS17487,  
and DS17887 real-time clocks (RTCs) are designed to be  
successors to the industry-standard DS12885 and  
DS12887. The DS17285, DS17485, and DS17885 (here-  
after referred to as the DS17x85) provide a real-time  
clock/calendar, one time-of-day alarm, three maskable  
interrupts with a common interrupt output, a programma-  
ble square wave, and 114 bytes of battery-backed NV  
SRAM. The DS17x85 also incorporates a number of  
enhanced functions including a silicon serial number,  
power-on/off control circuitry, and 2k, 4k, or 8kbytes of  
battery-backed NV SRAM. The DS17287, DS17487, and  
DS17887 (hereafter referred to as the DS17x87) integrate  
a quartz crystal and lithium energy source into a 24-pin  
encapsulated DIP package. The DS17x85 and DS17x87  
power-control circuitry allows the system to be powered  
on by an external stimulus such as a keyboard or by a  
time-and-date (wake-up) alarm. The PWR output pin is  
triggered by one or either of these events, and is used to  
turn on an external power supply. The PWR pin is under  
software control, so that when a task is complete, the sys-  
tem power can then be shut down.  
Incorporates Industry-Standard DS12887 PC  
Clock Plus Enhanced Functions  
RTC Counts Seconds, Minutes, Hours, Day, Date,  
Month, and Year with Leap Year Compensation  
Through 2099  
Optional +3.0V or +5.0V Operation  
SMI Recovery Stack  
64-Bit Silicon Serial Number  
Power-Control Circuitry Supports System Power-  
On from Date/Time Alarm or Key Closure  
Crystal Select Bit Allows Operation with 6pF or  
12.5pF Crystal  
12-Hour or 24-Hour Clock with AM and PM in  
12-Hour Mode  
114 Bytes of General-Purpose, Battery-Backed NV  
SRAM  
Extended Battery-Backed NV SRAM  
2048 Bytes (DS17285/DS17287)  
4096 Bytes (DS17485/DS17487)  
8192 Bytes (DS17885/DS17887)  
For all devices, the date at the end of the month is auto-  
matically adjusted for months with fewer than 31 days,  
including correction for leap years. It also operates in  
either 24-hour or 12-hour format with an AM/PM indicator.  
A precision temperature-compensated circuit monitors  
RAM Clear Function  
the status of V . If a primary power failure is detected,  
CC  
Interrupt Output with Six Independently Maskable  
the device automatically switches to a backup supply. A  
Interrupt Flags  
lithium coin cell battery can be connected to the V  
BAT  
Time-of-Day Alarm Once per Second to Once per  
input pin on the DS17x85 to maintain time and date oper-  
ation when primary power is absent. The DS17x85 and  
Day  
DS17x87 include a V  
input used to power auxiliary  
BAUX  
End of Clock Update Cycle Flag  
Programmable Square-Wave Output  
Automatic Power-Fail Detect and Switch Circuitry  
functions such as PWR control. The device is accessed  
through a multiplexed byte-wide interface.  
Applications  
Available in PDIP, SO, or TSOP Package  
Embedded Systems  
Utility Meters  
(DS17285, DS17485, DS17885)  
Optional Encapsulated DIP (EDIP) Package with  
Integrated Crystal and Battery (DS17287,  
DS17487, DS17887)  
Security Systems  
Network Hubs, Bridges, and Routers  
Optional Industrial Temperature Range Available  
Underwriters Laboratory (UL) Recognized  
Ordering Information, Pin Configurations, and Typical  
Operating Circuit appear at end of data sheet.  
______________________________________________ Maxim Integrated Products  
1
For pricing, delivery, and ordering information, please contact Maxim Direct at 1-888-629-4642,  
or visit Maxim’s website at www.maxim-ic.com.  
Real-Time Clocks  
ABSOLUTE MAXIMUM RATINGS  
Voltage Range on V  
Pin Relative to Ground ....-0.3V to +6.0V  
Lead Temperature (soldering, 10s) .................................+260°C  
(Note: EDIP is hand or wave-soldered only.)  
CC  
Operating Temperature Range (Noncondensing)  
Commercial.........................................................0°C to +70°C  
Industrial..........................................................-40°C to +85°C  
Storage Temperature Range  
Soldering Temperature (reflow) .......................................+260°C  
EDIP.................................................................-40°C to +85°C  
PDIP, SO, TSOP.............................................-55°C to +125°C  
Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional  
operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to  
absolute maximum rating conditions for extended periods may affect device reliability.  
DC ELECTRICAL CHARACTERISTICS  
(V  
CC  
= +4.5V to +5.5V, or V  
= +2.7V to +3.7V, T = Over the operating temperature range, unless otherwise noted. Typical  
CC A  
values are with T = +25°C, V  
A
= 5.0V or 3.0V and V  
= 3.0V, unless otherwise noted.) (Note 2)  
CC  
BAT  
PARAMETER  
SYMBOL  
CONDITIONS  
MIN  
TYP  
5.0  
3.0  
3.0  
3.0  
MAX  
5.5  
3.7  
3.7  
UNITS  
(-5)  
4.5  
2.7  
2.5  
2.5  
Supply Voltage (Note 3)  
V
V
V
V
CC  
(-3)  
V
V
Input Voltage  
V
(Note 3)  
(-5)  
BAT  
BAT  
5.2  
3.7  
Input Voltage (Note 3)  
V
BAUX  
BAUX  
(-3)  
V
+
CC  
0.3  
(-5)  
(-3)  
2.2  
2.0  
Input Logic 1 (Note 3)  
Input Logic 0 (Note 3)  
V
V
IH  
V
+
CC  
0.3  
(-5)  
(-3)  
(-5)  
(-3)  
(-5)  
(-3)  
-0.3  
-0.3  
+0.8  
+0.6  
50  
V
V
IL  
25  
15  
V
Power-Supply Current  
CC  
I
mA  
mA  
CC1  
CCS  
(Note 4)  
30  
1.0  
0.5  
3.0  
V
Standby Current (Notes 4, 5)  
I
CC  
2.0  
Input Leakage  
I/O Leakage  
I
-1.0  
-1.0  
2.4  
+1.0  
+1.0  
µA  
µA  
IL  
I
(Note 6)  
OL  
(-5), -1.0mA  
(-3), -0.4mA  
(-5), +2.1mA  
(-3), +0.8mA  
(-5), +10mA  
(-3), +4mA  
(-5)  
Output Logic 1 Voltage (Note 3)  
V
V
V
V
OH  
2.4  
0.4  
0.4  
0.4  
0.4  
4.5  
2.7  
Output Logic 0 Voltage  
AD0–AD7, IRQ, SQW (Note 3)  
V
V
OL  
OL  
Output Logic 0 Voltage  
PWR (Note 3)  
4.25  
2.5  
4.37  
2.6  
Power-Fail Voltage (Note 3)  
VRT Trip Point  
V
V
V
PF  
(-3)  
VRT  
(Note 3)  
1.3  
TRIP  
245/DS187  
2
_____________________________________________________________________  
Real-Time Clocks  
245/DS187  
DC ELECTRICAL CHARACTERISTICS  
(V  
CC  
= 0V, V = 3.0V, T = Over the operating range, unless otherwise noted.) (Note 1)  
BAT A  
PARAMETER  
or V Current (Oscillator  
BAUX  
SYMBOL  
CONDITIONS  
MIN  
TYP  
MAX  
UNITS  
V
BAT  
I
(Note 7)  
(Note 7)  
500  
700  
nA  
BAT  
On); T = +25°C, V  
= 3.0V  
BAT  
A
V
or V  
Current  
BAUX  
BAT  
I
50  
400  
nA  
BATDR  
(Oscillator Off)  
AC ELECTRICAL CHARACTERISTICS  
(V  
CC  
= +4.5V to +5.5V, T = Over the operating range, unless otherwise noted.) (Note 2)  
A
PARAMETER  
SYMBOL  
CONDITIONS  
MIN  
240  
120  
80  
TYP  
MAX  
UNITS  
ns  
Cycle Time  
t
DC  
CYC  
Pulse Width, RD or WR Low  
Pulse Width, RD or WR High  
Input Rise and Fall  
PW  
ns  
RWL  
RWH  
PW  
R
ns  
t , t  
30  
50  
ns  
F
Chip-Select Setup Time Before  
RD or WR  
t
20  
ns  
CS  
Chip-Select Hold Time  
t
0
ns  
ns  
ns  
ns  
ns  
CH  
Read-Data Hold Time  
t
10  
0
DHR  
Write-Data Hold Time  
t
DHW  
Address Setup Time to ALE Fall  
Address Hold Time to ALE Fall  
t
20  
10  
ASL  
AHL  
t
RD or WR High Setup to ALE  
Rise  
t
25  
ns  
ASD  
Pulse Width ALE High  
PW  
40  
30  
20  
30  
ns  
ns  
ns  
ns  
µs  
ASH  
Delay Time ALE Low to RD Low  
Output Data Delay Time from RD  
Data Setup Time  
t
ASED  
t
(Note 8)  
120  
2
DDR  
DSW  
t
IRQ Release from RD  
t
IRD  
_____________________________________________________________________  
3
Real-Time Clocks  
AC ELECTRICAL CHARACTERISTICS  
(V  
CC  
= +2.7V to +3.7V, T = Over the operating range, unless otherwise noted.) (Note 2)  
A
PARAMETER  
SYMBOL  
CONDITIONS  
MIN  
360  
200  
150  
TYP  
MAX  
UNITS  
ns  
Cycle Time  
t
DC  
CYC  
Pulse Width, RD or WR Low  
Pulse Width, RD or WR High  
Input Rise and Fall  
PW  
ns  
RWL  
RWH  
PW  
R
ns  
t , t  
30  
90  
ns  
F
Chip-Select Setup Time Before  
RD or WR  
t
20  
ns  
CS  
Chip-Select Hold Time  
t
0
ns  
ns  
ns  
ns  
ns  
CH  
Read-Data Hold Time  
t
10  
0
DHR  
Write-Data Hold Time  
t
DHW  
Address Setup Time to ALE Fall  
Address Hold Time to ALE Fall  
t
40  
10  
ASL  
AHL  
t
RD or WR High Setup to ALE  
Rise  
t
30  
ns  
ASD  
Pulse Width ALE High  
PW  
40  
30  
20  
70  
ns  
ns  
ns  
ns  
µs  
ASH  
Delay Time ALE Low to RD Low  
Output Data Delay Time from RD  
Data Setup Time  
t
ASED  
t
(Note 8)  
200  
2
DDR  
DSW  
t
IRQ Release from RD  
t
IRD  
Write Timing  
t
CYC  
AS  
PW  
ASH  
t
t
ASD  
RD  
t
ASED  
ASD  
PW  
RWL  
WR  
CS  
PW  
RWH  
t
CH  
t
CS  
t
t
t
ASL  
DSW  
t
DHW  
AHL  
AD0–AD7  
WRITE  
245/DS187  
4
_____________________________________________________________________  
Real-Time Clocks  
245/DS187  
Read Timing  
t
CYC  
ALE  
PW  
ASH  
t
t
ASD  
t
ASED  
RD  
PW  
RWH  
PW  
RWL  
ASD  
WR  
t
CH  
t
CS  
CS  
t
t
t
t
DHR  
ASL  
AHL  
DDR  
AD0–AD7  
IRQ  
t
IRD  
Power-Up/Power-Down Timing  
V
CC  
V
PF(MAX)  
V
PF(MIN)  
t
F
t
R
t
REC  
DON'T CARE  
RECOGNIZED  
VALID  
RECOGNIZED  
VALID  
CS, WR, RD  
AD0–AD7  
HIGH IMPEDANCE  
_____________________________________________________________________  
5
Real-Time Clocks  
POWER-UP/POWER-DOWN CHARACTERISTICS  
(T = -40°C to +85°C) (Note 2)  
A
PARAMETER  
SYMBOL  
CONDITIONS  
MIN  
TYP  
MAX  
UNITS  
Recovery at Power-Up  
t
(Note 9)  
20  
150  
ms  
REC  
V
V
Fall Time, V  
to  
to  
CC  
PF(MAX)  
t
300  
0
µs  
µs  
F
PF(MIN)  
V
V
Fall Time, V  
PF(MIN)  
CC  
PF(MAX)  
t
R
DATA RETENTION (DS17x87 ONLY)  
(T = +25°C)  
A
PARAMETER  
SYMBOL  
CONDITIONS  
CONDITIONS  
MIN  
TYP  
TYP  
MAX  
UNITS  
Expected Data Retention  
t
(Note 9)  
10  
Years  
DR  
CAPACITANCE  
(T = +25°C) (Note 10)  
A
PARAMETER  
SYMBOL  
MIN  
MAX  
UNITS  
Capacitance on All Input Pins  
Except X1  
C
C
(Note 10)  
(Note 10)  
12  
pF  
IN  
IO  
Capacitance on IRQ, SQW, and  
DQ0–DQ7 Pins  
12  
pF  
AC TEST CONDITIONS  
PARAMETER  
CONDITIONS  
Input Pulse Levels:  
0 to 3.0V  
Output Load Including Scope and Jig:  
50pF + 1TTL Gate  
Input and Output Timing Measurement Reference Levels:  
Input Pulse Rise and Fall Times:  
Input/Output: V max and V min  
IL IH  
5ns  
WARNING: Negative undershoots below -0.3V while the part is in battery-backed mode can cause loss of  
data.  
Note 1: RTC modules can be successfully processed through conventional wave-soldering techniques as long as temperature  
exposure to the lithium energy source contained within does not exceed +85°C. However, post-solder cleaning with water-  
washing techniques is acceptable, provided that ultrasonic vibrations not used to prevent damage to the crystal.  
Note 2: Limits at -40°C are guaranteed by design and not production tested.  
Note 3: All voltages are referenced to ground.  
Note 4: All outputs are open.  
Note 5: Specified with CS = RD = WR = V , ALE, AD0–AD7 = 0.  
CC  
Note 6: Applies to the AD0–AD7 pins, IRQ, and SQW when each is in a high-impedance state.  
Note 7: Measured with a 32.768kHz crystal attached to X1 and X2.  
Note 8: Measured with a 50pF capacitance load plus 1TTL gate.  
Note 9: If the oscillator is disabled in software, or if the countdown chain is in reset, t  
is bypassed, and the part becomes  
REC  
immediately accessible.  
245/DS187  
Note 10: Guaranteed by design. Not production tested.  
6
_____________________________________________________________________  
Real-Time Clocks  
245/DS187  
Typical Operating Characteristics  
(V  
CC  
= +3.3V, T = +25°C, unless otherwise noted.)  
A
SUPPLY CURRENT  
vs. INPUT VOLTAGE  
SUPPLY CURRENT  
vs. TEMPERATURE  
OSCILLATOR FREQUENCY  
vs. SUPPLY VOLTAGE  
400  
32768.7  
32768.6  
32768.5  
32768.4  
32768.3  
32768.2  
32768.1  
32768.0  
400  
350  
300  
250  
V
= 0V  
CC  
V
BAT  
= 3.0V  
350  
300  
250  
200  
2.5  
2.8  
3.0  
3.3  
(V)  
3.5  
3.8  
5
20 35 50 65 80  
2.5  
3.0  
3.5  
4.0  
4.5  
5.0  
5.5  
-40 -25 -10  
V
SUPPLY VOLTAGE (V)  
TEMPERATURE (°C)  
BAT  
Pin Description  
PIN  
NAME  
FUNCTION  
24  
28  
Active-Low Power-On Reset. This open-drain output pin is intended for use as an on/off  
control for the system power. With V voltage removed from the device, PWR can be  
CC  
automatically activated from a kickstart input by the KS pin or from a wake-up interrupt.  
Once the system is powered on, the state of PWR can be controlled by bits in the control  
registers. The PWR pin can be connected through a pullup resistor to a positive supply. For  
5V operation, the voltage of the pullup supply should be no greater than 5.7V. For 3V  
operation, the voltage on the pullup supply should be no greater than 3.9V.  
1
8
PWR  
Connections for Standard 32.768kHz Quartz Crystal. The internal oscillator circuitry is  
designed for operation with a crystal having a specified load capacitance (C ) of 6pF or  
L
12.5pF. Pin X1 is the input to the oscillator and can optionally be connected to an external  
32.768kHz oscillator. The output of the internal oscillator, pin X2, is left unconnected if an  
external oscillator is connected to pin X1. These pins are missing (N.C.) on the EDIP  
package.  
2, 3  
9, 10  
X1, X2  
Multiplexed Bidirectional Address/Data Bus. The addresses are presented during the first  
portion of the bus cycle and latched into the device by the falling edge of ALE. Write data is  
AD0–AD7 latched by the rising edge of WR. In a read cycle, the device outputs data during the latter  
portion of the RD low. The read cycle is terminated and the bus returns to a high-impedance  
state as RD transitions high.  
12–17,  
19, 20  
4–11  
12, 16  
21, 22, 26  
GND  
Ground  
_____________________________________________________________________  
7
Real-Time Clocks  
Pin Description (continued)  
PIN  
NAME  
FUNCTION  
24  
28  
Active-Low Chip-Select Input. This pin must be asserted low during a bus cycle for the  
device to be accessed. CS must be kept in the active state during RD and WR. Bus cycles  
that take place without asserting CS latch addresses, but no access occurs.  
13  
23  
CS  
Address Latch Enable Input, Active High. This input pin is used to demultiplex the  
address/data bus. The falling edge of ALE causes the address to be latched within the  
device.  
14  
24  
ALE  
Active-Low Write Input. This pin defines the period during which data is written to the  
addressed register.  
15  
17  
25  
27  
WR  
RD  
Active-Low Read Input. This pin identifies the period when the device drives the bus with  
read data. It is an enable signal for the output buffers of the device.  
Active-Low Kickstart Input. When V is removed from the device, the system can be  
CC  
powered on in response to an active-low transition on the KS pin, as might be generated  
from a key closure. V  
set to 1 if the kickstart function is used, and the KS pin must be pulled up to the V  
must be present and auxiliary-battery-enable bit (ABE) must be  
BAUX  
18  
28  
KS  
BAUX  
supply. While V is applied, the KS pin can be used as an interrupt input. If not used, KS  
CC  
must be grounded and ABE set to 0.  
Active-Low Interrupt Request. This pin is an active-low output that can be used as an  
interrupt 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. To clear the IRQ  
pin, the application software must clear all enabled flag bits contributing to the pin’s active  
state. When no interrupt conditions are present, the IRQ level is in the high-impedance  
state. Multiple interrupting devices can be connected to an IRQ bus, provided that they are  
19  
20  
1
2
IRQ  
all open drain. The IRQ pin requires an external pullup resistor to V  
.
CC  
Connection for Primary Battery. This supply input is used to power the normal clock  
functions when V is absent. Diodes placed in series between V and the battery can  
CC  
BAT  
V
BAT  
prevent proper operation. If V  
is not required, the pin must be grounded. UL recognized  
BAT  
to ensure against reverse charging current when used with a lithium battery (www.maxim-  
ic.com/qa/info/ul). This pin is missing (N.C.) on the EDIP package.  
245/DS187  
8
_____________________________________________________________________  
Real-Time Clocks  
245/DS187  
Pin Description (continued)  
PIN  
NAME  
FUNCTION  
24  
28  
Active-Low RAM Clear Input. This pin is used to clear (set to logic 1) all the 114 bytes of  
general-purpose RAM but does not affect the RAM associated with the real time clock or  
extended RAM. RCLR may be invoked while the part is powered from any supply. The  
RCLR function is designed to be used via a human interface (shorting to ground manually  
or by a switch) and not to be driven with external buffers. This pin is internally pulled up. Do  
not use an external pullup resistor on this pin.  
21  
3
RCLR  
Auxiliary Battery Input. Required for kickstart and wake-up functions. This input also  
supports clock/calendar and user RAM if V  
is at lower voltage or is not used. A standard  
BAT  
+3V lithium cell or other energy source can be used. Diodes placed in series between  
and the battery may prevent proper operation. UL recognized to ensure against  
V
BAUX  
22  
4
V
BAUX  
reverse charging current when used with a lithium battery (www.maxim-ic.com/qa/info/ul/).  
For 3V V operation, V must be held between +2.5V and +3.7V. For 5V V operation,  
CC  
BAUX  
CC  
V
BAUX  
must be held between +2.5V and +5.2V. If V  
is not used it should be grounded  
BAUX  
and the auxiliary-battery-enable bit bank 1, register 4BH, should = 0.  
Square-Wave Output. When V rises above V , bits DV1 and E32k are set to 1. This  
CC  
PF  
condition enables a 32kHz square-wave output. A square wave is output if either SQWE = 1  
or E32k = 1. If E32k = 1, then 32kHz is output regardless of the other control bits. If E32k =  
0, then the output frequency is dependent on the control bits in Register A. The SQW pin  
can output a signal from one of 13 taps provided by the 15 internal divider stages of the  
RTC. The frequency of the SQW pin can be changed by programming Register A, as shown  
in Table 3. The SQW signal can be turned on and off using the SQWE bit in Register B or the  
23  
24  
5
SQW  
E32k bit in extended register 4Bh. A 32kHz square wave is also available when V is less  
CC  
than V if E32k = 1, ABE = 1, and voltage is applied to the V  
pin. When disabled,  
BAUX  
PF  
SQW is high impedance when V is below V  
.
PF  
CC  
DC Power Pin for Primary Power Supply. When V is applied within normal limits, the  
CC  
6, 7  
V
CC  
device is fully accessible and data can be written and read. When V is below V reads  
CC PF  
and writes are inhibited.  
2, 3, 16,  
20  
(DS17x87  
only)  
11, 18  
N.C.  
No Connection  
_____________________________________________________________________  
9
Real-Time Clocks  
X1  
DIVIDE  
BY 8  
DIVIDE BY  
64  
DIVIDE BY  
64  
OSCILLATOR  
X2  
DS17x87  
ONLY  
16:1 MUX  
V
BAT  
SQUARE-  
SQW  
IRQ  
WAVE  
GENERATOR  
GND  
POWER  
CONTROL  
IRQ  
GENERATOR  
V
CC  
V
BAUX  
PWR  
KS  
REGISTERS A, B, C, D  
CLOCK/CALENDAR  
UPDATE LOGIC  
CLOCK/CALENDAR AND  
ALARM REGISTERS  
CS  
WR  
RD  
BUS  
INTERFACE  
BUFFERED CLOCK/  
CALENDAR AND ALARM  
REGISTERS  
ALE  
RAM  
CLEAR  
LOGIC  
USER RAM  
114 BYTES  
RLCR  
AD0–AD7  
SELECT  
EXTENDED  
USER RAM  
2k/4k/8k  
BYTES  
EXTENDED RAM ADDR/  
DATA REGISTERS  
EXTENDED CONTROL/  
STATUS REGISTERS  
64-BIT SERIAL NUMBER  
CENTURY COUNTER  
DATE ALARM  
DS17x85/87  
RTC ADDRESS-2  
RTC ADDRESS-3  
Figure 1. Functional Diagram  
245/DS187  
10  
____________________________________________________________________  
Real-Time Clocks  
245/DS187  
Table 1. Crystal Specifications* (DS17x85  
Only)  
Detailed Description  
The DS17x85 is a successor to the DS1285 real-time  
clock (RTC). The device provides 18 bytes of real-time  
clock/calendar, alarm, and control/status registers and  
114 bytes of nonvolatile battery-backed RAM. The  
device also provides additional extended RAM in either  
2k/4k/8kbytes (DS17285/DS17485/DS17885). A time-  
of-day alarm, six maskable interrupts with a common  
interrupt output, and a programmable square-wave  
output are available. It also operates in either 24-hour  
or 12-hour format with an AM/PM indicator. A precision  
temperature-compensated circuit monitors the status of  
PARAMETER SYMBOL MIN  
TYP  
MAX UNITS  
Nominal  
f
32.768  
kHz  
O
Series  
Resistance  
ESR  
50  
kΩ  
Load  
Capacitance  
6 or  
12.5  
C
pF  
L
*The crystal, traces, and crystal input pins should be isolated  
from RF generating signals. Refer to Application Note 58:  
Crystal Considerations for Dallas Real-Time Clocks for addi-  
tional specifications.  
V
CC  
. If a primary power-supply failure is detected, the  
device automatically switches to a backup supply. The  
backup supply input supports a primary battery, such  
as a lithium coin cell. The device is accessed by a mul-  
tiplexed address/data bus.  
Oscillator Circuit  
COUNTDOWN  
CHAIN  
The DS17x85 uses an external 32.768kHz crystal. The  
oscillator circuit does not require any external resistors  
or capacitors to operate. Table 1 specifies several  
crystal parameters for the external crystal, and Figure 2  
shows a functional schematic of the oscillator circuit.  
The oscillator is controlled by an enable bit in the con-  
trol register. Oscillator startup times are highly depen-  
dent upon crystal characteristics, PC board leakage,  
and layout. High ESR and excessive capacitive loads  
are the major contributors to long startup times. A cir-  
cuit using a crystal with the recommended characteris-  
tics and proper layout usually starts within one second.  
C 1  
L
C 2  
L
RTC REGISTERS  
DS17285/87  
DS17485/87  
DS17885/87  
X1  
X2  
CRYSTAL  
An external 32.768kHz oscillator can also drive the  
DS17x85. In this configuration, the X1 pin is connected  
to the external oscillator signal and the X2 pin is left  
unconnected.  
Figure 2. Oscillator Circuit Showing Internal Bias Network  
Clock Accuracy  
LOCAL GROUND PLANE (TOP LAYER)  
The accuracy of the clock is dependent upon the accu-  
racy of the crystal and the accuracy of the match  
between the capacitive load of the oscillator circuit and  
the capacitive load for which the crystal was trimmed.  
Additional error will be added by crystal frequency drift  
caused by temperature shifts. External circuit noise  
coupled into the oscillator circuit may result in the clock  
running fast. Figure 3 shows a typical PC board layout  
for isolation of the crystal and oscillator from noise.  
Refer to Application Note 58: Crystal Considerations  
with Dallas Real-Time Clocks for detailed information.  
X1  
CRYSTAL  
X2  
NOTE: AVOID ROUTING SIGNAL LINES  
IN THE CROSSHATCHED AREA  
(UPPER LEFT QUADRANT) OF  
THE PACKAGE UNLESS THERE IS  
A GROUND PLANE BETWEEN THE  
SIGNAL LINE AND THE DEVICE PACKAGE.  
GND  
Clock Accuracy (DS17287,  
DS17487, and DS17887)  
The encapsulated DIP (EDIP) modules are trimmed at  
the factory to 1 minute per month accuracy at 25°C.  
Figure 3. Layout Example  
____________________________________________________________________ 11  
Real-Time Clocks  
Power-Down/Power-Up  
Time, Calendar, and Alarm  
Locations  
Considerations  
The RTC function continues to operate, and all the  
RAM, time, calendar, and alarm memory locations  
The time and calendar information is obtained by read-  
ing the appropriate register bytes. The time, calendar,  
and alarm are set or initialized by writing the appropri-  
ate register bytes. The contents of the 12 time, calen-  
dar, and alarm bytes can be either binary or  
binary-coded decimal (BCD) format. Tables 3A and 3B  
show the BCD and binary formats of the 12 time, date,  
and alarm registers, control registers A to D, plus the  
two extended registers that reside in bank 1 only (bank  
0 and bank 1 switching is explained later in this text).  
remain nonvolatile regardless of the level of the V  
CC  
input. V  
or V  
must remain within the minimum  
BAT  
BAUX  
and maximum limits when V  
is not applied. When  
CC  
V
falls below V , the device inhibits all access,  
CC  
PF  
putting the part into a low-power mode. When V  
is  
CC  
applied and exceeds V  
device becomes accessible after t  
(power-fail trip point), the  
PF  
, if the oscillator  
REC  
is running and the oscillator countdown chain is not in  
reset (Register A). This time period allows the system to  
stabilize after power is applied. If the oscillator is not  
enabled, the oscillator enable bit is enabled on power-  
up, and the device becomes immediately accessible.  
The day-of-week register increments at midnight, incre-  
menting from 1 through 7. The day-of-week register is  
used by the daylight saving function, and so the value  
1 is defined as Sunday. The date at the end of the  
month is automatically adjusted for months with fewer  
than 31 days, including correction for leap years.  
Power Control  
The power control function is provided by a precise,  
temperature-compensated voltage reference and a  
Before writing the internal time, calendar, and alarm  
registers, the SET bit in Register B should be written to  
logic 1 to prevent updates from occurring while access  
is being attempted. In addition to writing the 12 time,  
calendar, and alarm registers in a selected format  
(binary or BCD), the data mode bit (DM) of Register B  
must be set to the appropriate logic level. All 12 time,  
calendar, and alarm bytes must use the same data  
mode. The set bit in Register B should be cleared after  
the data mode bit has been written to allow the real  
time clock to update the time and calendar bytes. Once  
initialized, the real time clock makes all updates in the  
selected mode. The data mode cannot be changed  
without reinitializing the 12 data bytes. Tables 3A and  
3B show the BCD and binary formats of the 12 time,  
calendar, and alarm locations.  
comparator circuit that monitors the V  
level. The  
CC  
device is fully accessible and data can be written and  
read when V is greater than V . However, when  
CC  
PF  
V
falls below V , the device inhibits read and write  
CC  
PF  
access. If V is less than V  
, the device power is  
BAT  
to the higher of V  
PF  
switched from V  
or V  
BAT BAUX  
CC  
when V  
drops below V . If V is greater than the  
CC  
PF PF  
higher of V  
or V  
, the device power is switched  
BAT  
BAUX  
from V  
to the higher of V  
or V  
when V  
BAUX CC  
CC  
BAT  
drops below the higher backup source. The registers  
are maintained from the V or V source until  
BAT  
BAUX  
V
is returned to nominal levels. After V  
above V , read and write access is allowed after t  
returns  
CC  
CC  
.
PF  
REC  
Table 2. Power Control  
The 24-12 bit cannot be changed without reinitializing  
the hour locations. When the 12-hour format is selected,  
the high order bit of the hours byte represents PM when  
it is logic 1. The time, calendar, and alarm bytes are  
always accessible because they are double-buffered.  
Once per second, the eight bytes are advanced by one  
second and checked for an alarm condition.  
READ/WRITE  
ACCESS  
SUPPLY CONDITION  
POWERED BY  
V
V
V
V
< V , V  
<
>
<
>
CC  
(V  
PF CC  
No  
V
or V  
BAT BAUX  
| V  
BAUX  
)
BAT  
< V , V  
CC  
(V  
PF CC  
No  
Yes  
Yes  
V
V
V
CC  
CC  
CC  
| V  
BAUX  
)
BAT  
If a read of the time and calendar data occurs during  
an update, a problem exists where seconds, minutes,  
hours, etc., may not correlate. The probability of read-  
ing incorrect time and calendar data is low. Several  
methods of avoiding any possible incorrect time and  
calendar reads are covered later in this text.  
> V , V  
CC  
(V  
PF CC  
| V  
BAUX  
)
BAT  
> V , V  
CC  
(V  
PF CC  
| V  
BAUX  
)
BAT  
245/DS187  
12  
____________________________________________________________________  
Real-Time Clocks  
245/DS187  
The alarm bytes can be used in two ways. First, when  
the alarm time is written in the appropriate hours, min-  
utes, and seconds alarm locations, the alarm interrupt  
is initiated at the specified time each day, if the alarm  
enable bit is high. In this mode, the “0” bits in the alarm  
registers and the corresponding time registers must  
always be written to 0 (see Table 3A and 3B). Writing  
the 0 bits in the alarm and/or time registers to 1 can  
result in undefined operation.  
condition when at logic 1. An alarm will be generated  
each hour when the “don’t care” bits are set in the  
hours byte. Similarly, an alarm is generated every  
minute with don’t care codes in the hours and minute  
alarm bytes. An alarm is generated every second with  
don’t care codes in the hours, minutes, and seconds  
alarm bytes.  
All 128 bytes can be directly written or read except for  
the following:  
The second use condition is to insert a “don’t care”  
state in one or more of the alarm bytes. The don’t care  
code is any hexadecimal value from C0 to FF. The two  
most significant bits of each byte set the don’t care  
1) Registers C and D are read-only.  
2) Bit 7 of register A is read-only.  
3) The MSB of the seconds byte is read-only.  
Table 3A. Time, Calendar, and Alarm Data Modes—BCD Mode (DM = 0)  
ADDRESS  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
FUNCTION  
RANGE  
00–59  
00–59  
00–59  
00–59  
00h  
0
10 Seconds  
10 Seconds  
10 Minutes  
10 Minutes  
0
Seconds  
Seconds  
01h  
0
Seconds  
Minutes  
Minutes  
Seconds Alarm  
Minutes  
02h  
0
03h  
0
AM/PM  
0
Minutes Alarm  
10 Hour  
10 Hour  
1–12 +AM/PM  
04h  
05h  
0
0
Hours  
Hours  
Hours  
00–23  
10 Hour  
AM/PM  
0
0
0
1–12 +AM/PM  
Hours Alarm  
00–23  
0
0
0
10 Hour  
06h  
07h  
0
0
0
0
Day  
Day  
01–07  
01–31  
10 Date  
Date  
Month  
Year  
Date  
08h  
09h  
0
0
10 Month  
Month  
Year  
01–12  
00–99  
10 Year  
0Ah  
UIP  
SET  
IRQF  
VRT  
DV2  
PIE  
PF  
0
DV1  
AIE  
AF  
0
DV0  
UIE  
UF  
0
RS3  
RS2  
RS1  
24/12  
0
RS0  
DSE  
0
Control  
Control  
Control  
Control  
Century  
Date Alarm  
0Bh  
SQWE  
DM  
0
0Ch  
0
0
0Dh  
0
0
0
Bank 1, 48h  
Bank 1, 49h  
10 Century  
10 Date  
Century  
Date  
00–99  
01–31  
Note: Unless otherwise specified, the state of the registers is not defined when power is first applied. Except for the seconds regis-  
ter, 0 bits in the time and date registers can be written to 1, but can be modified when the clock updates. 0 bits should always be  
written to 0 except for alarm mask bits.  
____________________________________________________________________ 13  
Real-Time Clocks  
Table 3B. Time, Calendar, and Alarm Data Modes—Binary Mode (DM = 1)  
ADDRESS  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
FUNCTION  
RANGE  
00–3B  
00–3B  
00–3B  
00–3B  
00h  
0
0
0
0
0
Seconds  
Seconds  
01h  
0
Seconds  
Minutes  
Minutes  
Seconds Alarm  
Minutes  
02h  
0
03h  
0
Minutes Alarm  
AM/PM  
0
0
0
0
Hours  
Hours  
Hours  
Hours  
1–0C +AM/PM  
00–17  
04h  
05h  
0
0
0
0
Hours  
0
AM/PM  
0
1–0C +AM/PM  
00–17  
Hours Alarm  
06h  
07h  
0
0
0
0
0
0
0
0
Day  
Day  
Date  
01–07  
01–1F  
01–0C  
00–63  
0
Date  
08h  
0
Month  
Month  
09h  
0
Year  
RS3  
SQWE  
0
Year  
0Ah  
UIP  
SET  
IRQF  
VRT  
DV2  
PIE  
PF  
0
DV1  
AIE  
AF  
0
DV0  
UIE  
UF  
0
RS2  
DM  
0
RS1  
24/12  
0
RS0  
DSE  
0
Control  
Control  
Control  
Control  
Century  
Date Alarm  
0Bh  
0Ch  
0Dh  
0
0
0
0
Bank 1, 48h  
Bank 1, 49h  
10 Century  
10 Date  
Century  
Date  
00–63  
01–1F  
Note: Unless otherwise specified, the state of the registers is not defined when power is first applied. Except for the seconds regis-  
ter, 0 bits in the time and date registers can be written to 1, but can be modified when the clock updates. 0 bits should always be  
written to 0 except for alarm mask bits.  
both bank 0 and bank 1. These registers are accessi-  
ble at all times, even during the update cycle.  
Control Registers  
The four control registers (A, B, C, and D) reside in  
Register A (0Ah)  
MSB  
LSB  
BIT 7  
UIP  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
DV2  
DV1  
DV0  
RS3  
RS2  
RS1  
RS0  
Bit 7: Update In Progress (UIP). This bit is a status  
flag that can be monitored. When the UIP bit is 1, the  
update transfer will soon occur. When UIP is 0, the  
update transfer does 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 0. The UIP bit is  
read-only. Writing the SET bit in Register B to 1 inhibits  
any update transfer and clears the UIP status bit.  
Bits 6, 5, and 4: DV2, DV1, and DV0. These bits are  
used to turn the oscillator on or off and to reset the  
countdown chain. A pattern of 01X is the only combina-  
tion of bits that turns the oscillator on and allows the RTC  
to keep time. A pattern of 11X enables the oscillator but  
holds the countdown chain in reset. The next update  
occurs at 500ms after a pattern of 01X is written to DV0,  
DV1, and DV2. DV0 is used to select bank 0 or bank 1 as  
defined in Table 5. When DV0 is set to 0, bank 0 is  
selected. When DV0 is set to 1, bank 1 is selected.  
245/DS187  
14  
____________________________________________________________________  
Real-Time Clocks  
245/DS187  
Bits 3 to 0: Rate Selector Bits (RS3 to RS0). These  
four rate-selection bits select one of the 13 taps on the  
15-stage divider or disable the divider output. The tap  
selected can be used to generate an output square  
wave (SQW pin) and/or a periodic interrupt. The user  
can do one of the following:  
2) Enable the SQW output pin with the SQWE or E32k  
bits;  
3) Enable both at the same time and the same rate; or  
4) Enable neither.  
Table 4 lists the periodic interrupt rates and the square-  
wave frequencies that can be chosen with the RS bits.  
1) Enable the interrupt with the PIE bit;  
Table 4. Periodic Interrupt Rate and Square-Wave Output Frequency  
EXT REG B  
SELECT BITS REGISTER A  
t
PERIODIC INTERRUPT  
RATE  
PI  
SQW OUTPUT FREQUENCY  
E32K  
RS3  
0
RS2  
0
RS1  
0
RS0  
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
None  
3.90625ms  
7.8125ms  
122.070µs  
244.141µs  
488.281µs  
976.5625µs  
1.953125ms  
3.90625ms  
7.8125ms  
15.625ms  
31.25ms  
62.5ms  
None  
256Hz  
128Hz  
8.192kHz  
4.096kHz  
2.048kHz  
1.024kHz  
512Hz  
256Hz  
128Hz  
64Hz  
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
0
1
0
1
0
1
1
0
0
1
1
1
1
0
0
0
1
0
0
1
1
0
1
0
1
0
1
1
32Hz  
1
1
0
0
16Hz  
1
1
0
1
125ms  
8Hz  
1
1
1
0
250ms  
4Hz  
1
1
1
1
500ms  
2Hz  
X
X
X
X
*
32.768kHz  
*RS3 to RS0 determine periodic interrupt rates as listed for E32K = 0.  
____________________________________________________________________ 15  
Real-Time Clocks  
Register B (0Bh)  
MSB  
LSB  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
SET  
PIE  
AIE  
UIE  
SQWE  
DM  
24/12  
DSE  
Bit 7: SET. When the SET bit is 0, the update transfer  
functions normally by advancing the counts once per  
second. When the SET bit is written to 1, any update  
transfer is inhibited, and the program can initialize the  
time and calendar bytes without an update occurring in  
the midst of initializing. Read cycles can be executed in  
a similar manner. SET is a read/write bit and is not  
affected by any internal functions of the DS17x85.  
Bit 3: Square-Wave Enable (SQWE). When this bit is  
set to 1 and E32k = 0, a square-wave signal at the fre-  
quency set by RS3–RS0 is driven out on the SQW pin.  
When the SQWE bit is set to 0 and E32k = 0, the SQW  
pin is held low. SQWE is a read/write bit. SQWE is set  
to 1 when V  
is powered up.  
CC  
Bit 2: Data Mode (DM). This bit indicates whether time  
and calendar information is in binary or BCD format.  
The program sets the DM bit to the appropriate format  
and can be read as required. This bit is not modified by  
internal functions. A 1 in DM signifies binary data, while  
a 0 in DM specifies binary-coded decimal (BCD) data.  
Bit 6: Periodic Interrupt Enable (PIE). This bit is a  
read/write bit that allows the periodic interrupt flag (PF)  
bit in Register C to drive the IRQ pin low. When PIE is  
set to 1, periodic interrupts are generated by driving  
the IRQ pin low at a rate specified by the RS3–RS0 bits  
of Register A. A 0 in the PIE bit blocks the IRQ output  
from being driven by a periodic interrupt, but the PF bit  
is still set at the periodic rate. PIE is not modified by  
any internal DS17x85 functions.  
Bit 1: 24/12 Control (24/12). This bit establishes the  
format of the hours byte. A 1 indicates the 24-hour  
mode and a 0 indicates the 12-hour mode. This bit is  
read/write and is not affected by internal functions.  
Bit 0: Daylight Saving Enable (DSE). This bit is a  
read/write bit that enables two daylight saving adjust-  
ments when DSE is set to 1. On the first Sunday in  
April, the time increments from 1:59:59AM to  
3:00:00AM. On the last Sunday in October when the  
time first reaches 1:59:59AM, it changes to 1:00:00AM.  
When DSE is enabled, the internal logic tests for the  
first/last Sunday condition at midnight. If the DSE bit is  
not set when the test occurs, the daylight saving func-  
tion does not operate correctly. These adjustments do  
not occur when the DSE bit is zero. This bit is not  
affected by internal functions.  
Bit 5: Alarm Interrupt Enable (AIE). This bit is a  
read/write bit that, when set to 1, 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, including a don’t care alarm  
code of binary 11XXXXXX. When the AIE bit is set to 0,  
the AF bit does not initiate the IRQ signal. The internal  
functions of the DS17x285/87 do not affect the AIE bit.  
Bit 4: Update-Ended Interrupt Enable (UIE). This bit is  
a read/write bit that enables the update-end flag (UF)  
bit in Register C to assert IRQ. The SET bit going high  
clears the UIE bit.  
245/DS187  
16  
____________________________________________________________________  
Real-Time Clocks  
245/DS187  
Register C (0Ch)  
MSB  
LSB  
BIT 7  
BIT 6  
PF  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
IRQF  
AF  
UF  
0
0
0
0
Bit 7: Interrupt Request Flag (IRQF). This bit is set to  
of the state of the PIE bit. When both PF and PIE are 1s,  
the IRQ signal is active and sets the IRQF bit. Reading  
Register C clears this bit.  
1 when any of the following are true:  
PF = PIE = 1  
AF = AIE = 1  
UF = UIE = 1  
WF = WIE = 1  
KF = KSE = 1  
RF = RIE = 1  
Bit 5: Alarm Interrupt Flag (AF). A 1 in this bit indicates  
that the current time has matched the alarm time. If the  
AIE bit is also 1, the IRQ pin goes low and a 1 appears in  
the IRQF bit. Reading Register C clears this bit.  
Any time the IRQF bit is 1, the IRQ pin is driven low.  
Flag bits PF, AF, and UF are cleared after reading  
Register C.  
Bit 4: Update-Ended Interrupt Flag (UF). This bit is  
set after each update cycle. When the UIE bit is set to  
1, the 1 in UF causes the IRQF bit to be 1, which  
asserts IRQ. Reading Register C clears this bit.  
Bit 6: Periodic Interrupt Flag (PF). This is a read-only  
bit that is set to 1 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 1 independent  
Bits 3 to 0: Unused. These unused bits always read 0  
and cannot be written.  
Register D (0Dh)  
MSB  
LSB  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
VRT  
0
0
0
0
0
0
0
ever present, an exhausted internal lithium energy  
source is indicated and both the contents of the RTC  
data and RAM data are questionable.  
Register D (0Dh)  
Bit 7: Valid RAM and Time (VRT). This bit indicates  
the condition of the battery connected to the V and  
BAT  
V
pin. If either supply is above the internal voltage  
BAUX  
Bits 6 to 0: Unused. These bits cannot be written and,  
threshold, VRT  
, the bit will be high. This bit is not  
TRIP  
when read, always read 0.  
writeable and should always be a 1 when read. If a 0 is  
____________________________________________________________________ 17  
Real-Time Clocks  
implemented on these bits so that set bits remain sta-  
ble throughout the read cycle. All bits that were set are  
cleared when read and new interrupts that 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 used flag bit should be exam-  
ined when read to ensure that no interrupts are lost.  
Nonvolatile RAM  
The user RAM bytes are not dedicated to any special  
function within the DS17x85. They can be used by the  
processor program as battery-backed memory and are  
fully available during the update cycle.  
The user RAM is divided into two separate memory  
banks. When the bank 0 is selected, the 14 real-time  
clock registers and 114 bytes of user RAM are accessi-  
ble. When bank 1 is selected, an additional 2kbytes,  
4kbytes, or 8kbytes of user RAM are accessible  
through the extended RAM address and data registers.  
The flag bits in Extended Register 4A are not automati-  
cally cleared following a read. Instead, each flag bit  
can be cleared to 0 only by writing 0 to that bit.  
When using the flag bits with fully enabled interrupts,  
the IRQ line is driven low when an interrupt flag bit is  
set and its corresponding enable bit is also set. IRQ is  
held low as long as at least one of the six possible  
interrupt sources has its flag and enable bits both set.  
The IRQF bit in Register C is 1 whenever the IRQ pin is  
being driven low as a result of one of the six possible  
active sources. Therefore, determination that the  
DS17x85/DS17x87 initiated an interrupt is accom-  
plished by reading Register C and finding IRQF = 1.  
IRQF remains set until all enabled interrupt flag bits are  
cleared to 0.  
Interrupts  
The RTC includes six separate, fully automatic sources  
of interrupt for a processor:  
1) Alarm Interrupt  
2) Periodic Interrupt  
3) Update-Ended Interrupt  
4) Wake-Up Interrupt  
5) Kickstart Interrupt  
6) RAM Clear Interrupt  
Oscillator Control Bits  
The conditions that generate each of these indepen-  
dent interrupt conditions are described in detail in other  
sections of this data sheet. This section describes the  
overall control of the interrupts.  
A pattern of 01X in bits 4 to 6 of Register A turns the  
oscillator on and enables the countdown chain. A pat-  
tern of 11X (DV2 = 1, DV1 = 1, DV0 = X) turns the oscil-  
lator on, but holds the countdown chain of the oscillator  
in reset. All other combinations of bits 4 to 6 keep the  
oscillator off.  
The application software can select which interrupts, if  
any, are to be used. There are 6 bits, including 3 bits in  
Register B and 3 bits in Extended Register 4B, that  
enable the interrupts. The extended register locations  
are described later. Writing logic 1 to an interrupt-  
enable bit permits that interrupt to be initiated when the  
event occurs. A logic 0 in the interrupt-enable bit pro-  
hibits the IRQ pin from being asserted from that interrupt  
condition. If an interrupt flag is already set when an  
interrupt is enabled, IRQ is immediately set at an active  
level, although the event initiating the interrupt condition  
might have occurred much earlier. Therefore, there are  
cases where the software should clear these earlier  
generated interrupts before first enabling new interrupts.  
When the DS17x87 is shipped from the factory, the  
internal oscillator is turned off. This feature prevents the  
lithium energy cell from being used until it is installed in  
a system.  
Square-Wave Output Selection  
Thirteen of the 15 divider taps are made available to a  
1-of-16 multiplexer, as shown in Figure 1. The square  
wave and periodic interrupt generators share the out-  
put of the multiplexer. The RS0–RS3 bits in Register A  
establish the output frequency of the multiplexer. These  
frequencies are listed in Table 4. Once the frequency is  
selected, the output of the SQW pin can be turned on  
and off under program control with the square-wave  
enable bit (SQWE).  
When an interrupt event occurs, the relating flag bit is  
set to logic 1 in Register C or in Extended Register 4A.  
These flag bits are set regardless of the setting of the  
corresponding enable bit located either in Register B or  
in Extended Register 4B. The flag bits can be used in a  
polling mode without enabling the corresponding  
enable bits.  
If E32K = 0, the square-wave output is determined by  
the RS3 to RS0 bits. If E32K = 1, a 32kHz square wave  
is output on the SQW pin, regardless of the RS3 to RS0  
bits’ state. If E32K = ABE = 1 and a valid voltage is  
However, care should be taken when using the flag bits  
of Register C as they are automatically cleared to 0  
immediately after they are read. Double latching is  
applied to V  
SQW when V  
, a 32kHz square wave is output on  
BAUX  
is below V  
.
CC  
TP  
245/DS187  
18  
____________________________________________________________________  
Real-Time Clocks  
245/DS187  
an alarm if a match or if a don’t care code is present in  
all alarm locations.  
Periodic Interrupt Selection  
The periodic interrupt causes 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 inter-  
rupt, which can be output from once per second to  
once per day. The periodic interrupt rate is selected  
using the same Register A bits that select the square-  
wave frequency (see Table 4). Changing the Register A  
bits affects both the square-wave frequency and the  
periodic interrupt output. However, each function has a  
separate enable bit in Register B. The SQWE and E32k  
bits control the square-wave output. Similarly, the peri-  
odic interrupt is enabled by the PIE bit in Register B.  
The periodic interrupt can be used with software coun-  
ters to measure inputs, create output intervals, or await  
the next needed software function.  
There are three methods that can handle access of the  
RTC that avoid any possibility of accessing inconsistent  
time and calendar data. The first method uses the  
update-ended interrupt. If enabled, an interrupt occurs  
after every update cycle that indicates that over 999ms  
are available to read valid time and date information. If  
this interrupt is used, the IRQF bit in Register C should  
be cleared before leaving the interrupt routine.  
A second method uses the update-in-progress (UIP) bit  
in Register A to determine if the update cycle is in  
progress. The UIP bit pulses 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 is changed.  
Therefore, the user should avoid interrupt service rou-  
tines that would cause the time needed to read valid  
time/calendar data to exceed 244µs.  
Update Cycle  
The DS17x85 executes an update cycle once per sec-  
ond regardless of the SET bit in Register B. When the  
SET bit in Register B is set to 1, the user copy of the  
double-buffered time, calendar, and alarm bytes is  
frozen and does not update as the time increments.  
However, the time countdown chain continues to  
update the internal copy of the buffer. This feature  
allows time to maintain accuracy independent of read-  
ing or writing the time, calendar, and alarm buffers, and  
also guarantees that time and calendar information is  
consistent. The update cycle also compares each  
alarm byte with the corresponding time byte and issues  
The third method uses a periodic interrupt to determine  
if an update cycle is in progress. The UIP bit in Register  
A is set high between the setting of the PF bit in  
Register C (see Figure 4). Periodic interrupts that occur  
at a rate of greater than t  
allow valid time and date  
BUC  
information to be reached at each occurrence of the  
periodic interrupt. The reads should be complete within  
1 (t  
+ t  
) to ensure that data is not read during  
PI/2  
BUC  
the update cycle.  
1 SECOND  
UIP  
t
BUC  
UF  
PF  
t
t
PI/2  
PI/2  
t
PI  
t
= DELAY TIME BEFORE UPDATE CYCLE = 244μs.  
BUC  
Figure 4. UIP and Periodic Interrupt Timing  
____________________________________________________________________ 19  
Real-Time Clocks  
• Kickstart  
Extended Functions  
• RAM Clear Control/Status  
• Extended RAM Access  
The extended functions provided by the DS17x85/  
DS17x87 that are new to the RAMified RTC family are  
accessed by a software-controlled bank-switching  
scheme, as illustrated in Table 5. In bank 0, the  
clock/calendar registers and 50 bytes of user RAM are  
in the same locations as for the DS1287. As a result,  
existing routines implemented within BIOS, DOS, or  
application software packages can gain access to the  
DS17x85/DS17x87 clock registers with no changes.  
Also in bank 0, an extra 64 bytes of RAM are provided  
at addresses just above the original locations for a total  
of 114 directly addressable bytes of user RAM.  
The bank selection is controlled by the state of the DV0  
bit in register A. To access bank 0 the DV0 bit should  
be written to a 0. To access bank 1, DV0 should be  
written to 1. Register locations designated as reserved  
in the bank 1 map are reserved for future use by Dallas  
Semiconductor. Bits in these locations cannot be writ-  
ten and return a 0 if read.  
Silicon Serial Number  
A unique 64-bit lasered serial number is located in  
bank 1, registers 40h–47h. This serial number is divid-  
ed into three parts. The first byte in register 40h con-  
tains a model number to identify the device type of the  
DS17x85/DS17x87. Registers 41h–46h contain a  
unique binary number. Register 47h contains a CRC  
byte used to validate the data in registers 40h–46h. The  
CRC polynomial is X8 + X5 + X4 + 1. See Figure 5. All 8  
bytes of the serial number are read-only registers. The  
DS17x85/DS17x87 is manufactured such that no two  
devices contain an identical number in locations  
41h–47h.  
When bank 1 is selected, the clock/calendar registers  
and the original 50 bytes of user RAM still appear as  
bank 0. However, the extended registers that provide  
control and status for the extended functions are  
accessed in place of the additional 64 bytes of user  
RAM. The major extended functions controlled by the  
extended registers are listed below:  
• 64-Bit Silicon Serial Number  
• Century Counter  
• RTC Write Counter  
• Date Alarm  
DEVICE  
MODEL NUMBER  
• Auxiliary Battery Control/Status  
• Wake-Up  
DS17285/87  
DS17485/87  
DS17885/87  
72h  
74h  
78h  
8
5
4
POLYNOMIAL = X + X + X + 1  
6TH  
STAGE  
7TH  
STAGE  
8TH  
STAGE  
1ST  
STAGE  
2ND  
STAGE  
3RD  
STAGE  
4TH  
STAGE  
5TH  
STAGE  
0
1
2
3
4
5
6
7
8
X
X
X
X
X
X
X
X
X
INPUT DATA  
Figure 5. CRC Polynomial  
245/DS187  
20  
____________________________________________________________________  
Real-Time Clocks  
245/DS187  
Table 5. Extended Bank Register Bank Definition  
Bank 0  
Bank 1  
DV0 = 0  
DV0 = 1  
00h  
00h  
Timekeeping and Control  
50 Bytes – User RAM  
Timekeeping and Control  
50 Bytes – User RAM  
0Dh  
0Eh  
0Dh  
0Eh  
3Fh  
40h  
3Fh  
40h  
41h  
42h  
43h  
44h  
45h  
46h  
47h  
48h  
49h  
4Ah  
4Bh  
4Ch  
4Dh  
4Eh  
4Fh  
50h  
51h  
52h  
53h  
54h  
55h  
56h  
57h  
58h  
59h  
5Ah  
5Bh  
5Ch  
5Dh  
5Eh  
5Fh  
Model Number Byte  
1st Byte Serial Number  
2nd Byte Serial Number  
3rd Byte Serial Number  
4th Byte Serial Number  
5th Byte Serial Number  
6th Byte Serial Number  
CRC Byte  
Century Byte  
Date Alarm  
Extended Control Register 4A  
Extended Control Register 4B  
Reserved  
Reserved  
RTC Address – 2  
RTC Address – 3  
Extended RAM Address LSB  
Extended RAM Address MSB  
Reserved  
64 Bytes – User RAM  
Extended RAM Data Port  
Reserved  
Reserved  
Reserved  
Reserved  
Reserved  
Reserved  
Reserved  
Reserved  
Reserved  
Reserved  
RTC Write Counter  
Reserved  
7Fh  
7Fh  
Note: Reserved bits can be written to any value, but always read back as zeros.  
____________________________________________________________________ 21  
Real-Time Clocks  
As a result, system power can be applied upon such  
events as a key closure or modem ring-detect signal.  
Century Counter  
A register has been added in bank 1, location 48H, to  
keep track of centuries. The value is read in either bina-  
ry or BCD according to the setting of the DM bit.  
To use either the wake-up or the kickstart functions, the  
DS17x85/DS17x87 must have an auxiliary battery con-  
nected to the V  
pin, the oscillator must be running,  
BAUX  
RTC Write Counter  
and the countdown chain must not be in reset (Register  
A DV2, DV1, DV0 = 01X). If DV2 and DV1 are not in this  
required state, the PWR pin is not driven low in  
response to a kickstart or wake-up condition while in  
battery-backed mode.  
An 8-bit counter located in extended register bank 1,  
5Eh, counts the number of times the RTC is written to.  
This counter is incremented on the rising edge of the  
WR signal every time that the CS signal qualifies it. This  
counter is a read-only register and rolls over after 256  
RTC write pulses. This counter can be used to deter-  
mine if and how many RTC writes have occurred since  
the last time this register was read.  
The wake-up feature is controlled through the wake-up  
interrupt-enable bit in Extended Control Register 4B (WIE,  
bank 1, 04BH). Setting WIE to 1 enables the wake-up fea-  
ture, clearing WIE to 0 disables it. Similarly, the kickstart  
interrupt-enable bit in Extended Control Register 4B  
(KSE, bank 1, 04BH) controls the kickstart feature.  
Auxiliary Battery  
input is provided to supply power from an  
The V  
BAUX  
A wake-up sequence occurs as follows: When wake-up  
is enabled through WIE = 1 while the system is pow-  
auxiliary battery for the DS17x85/DS17x87 kickstart,  
wake-up, and SQW output in the absence of V func-  
CC  
ered down (no V  
voltage), the clock/calendar moni-  
CC  
tions. This power source must be available to use these  
auxiliary functions when no V is applied to the device.  
CC  
tors the current date for a match condition with the date  
alarm register (bank 1, register 049H). With the date  
alarm register, the hours, minutes, and seconds alarm  
bytes in the clock/calendar register map (bank 0, regis-  
ters 05H, 03H, and 01H) are also monitored. As a  
result, a wake-up occurs at the date and time specified  
by the date, hours, minutes, and seconds alarm regis-  
ter values. This additional alarm occurs regardless of  
the programming of the AIE bit (bank 0, register B,  
0BH). When the match condition occurs, the PWR pin is  
automatically driven low. This output can be used to  
turn on the main system power supply that provides  
The auxiliary battery enable (ABE; bank 1, register  
04BH) bit in Extended Control Register 4B is used to  
turn the auxiliary battery on and off for the above func-  
tions in the absence of V . When set to 1, V  
bat-  
CC  
BAUX  
tery power is enabled; when cleared to 0, V  
battery power is disabled to these functions.  
BAUX  
In the DS17x85/DS17x87, this auxiliary battery can be  
used as the primary backup power source for maintain-  
ing the clock/calendar, user RAM, and extended exter-  
nal RAM functions. This occurs if the V  
pin is at a  
BAT  
V
voltage to the DS17x85/DS17x87 as well as the  
CC  
lower voltage than V  
. If the DS17x85 is to be  
BAUX  
other major components in the system. Also at this  
time, the wake-up flag (WF, bank 1, register 04AH) is  
set, indicating that a wake-up condition has occurred.  
backed up using a single battery with any auxiliary  
functions enabled, then V should be used and  
BAUX  
V
BAT  
should be grounded. If V  
is not to be used, it  
BAUX  
should be grounded and ABE should be cleared to 0.  
A kickstart sequence occurs when kickstarting is  
enabled through KSE = 1. While the system is powered  
down, the KS input pin is monitored for a low-going  
Wake-Up/Kickstart  
The DS17x85/DS17x87 incorporates a wake-up feature  
that powers on the system at a predetermined date and  
time through activation of the PWR output pin. In addi-  
tion, the kickstart feature allows the system to be pow-  
ered up in response to a low-going transition on the KS  
transition of minimum pulse width t . When such a  
KSPW  
transition is detected, the PWR line is pulled low, as it is  
for a wake-up condition. Also at this time, the kickstart  
flag (KF, bank 1, register 04AH) is set, indicating that a  
kickstart condition has occurred.  
pin, without operating voltage applied to the V  
pin.  
CC  
245/DS187  
22  
____________________________________________________________________  
Real-Time Clocks  
245/DS187  
The timing associated with both the wake-up and kick-  
starting sequences is illustrated in the Wake-  
Up/Kickstart Timing Diagram (Figure 6). The timing  
associated with these functions is divided into five inter-  
vals, labeled 1 to 5 on the diagram.  
remains tri-stated. The interrupt flag bit (either WF or KF)  
associated with the attempted power-on sequence  
remains set until cleared by software during a subse-  
quent system power-on.  
If V  
is applied within the timeout period, then the sys-  
CC  
The occurrence of either a kickstart or wake-up condition  
causes the PWR pin to be driven low, as described  
above. During interval 1, if the supply voltage on the  
tem power-on sequence continue as shown in intervals  
2 to 5 in the timing diagram. During interval 2, PWR  
remains active and IRQ is driven to its active-low level,  
indicating that either WF or KF was set in initiating the  
power-on. In the diagram KS is assumed to be pulled  
DS17x85/DS17x87 V  
pin rises above the greater of  
CC  
V
BAT  
or V before the power-on timeout period (t  
)
CC  
PF  
POTO  
expires, then PWR remains at the active-low level. If V  
up to the V  
supply. Also at this time, the PAB bit is  
BAUX  
does not rise above the greater of V  
or V in this  
automatically cleared to 0 in response to a successful  
power-on. The PWR line remains active as long as the  
PAB remains cleared to 0.  
BAT  
PF  
time, then the PWR output pin is turned off and returns to  
its high-impedance level. In this event, the IRQ pin also  
V
V
BAT  
PF  
*CONDITION  
VPF < VBAT  
0V  
V
V
PF  
BAT  
*CONDITION  
VBAT > VPF  
0V  
t
POTP  
WF/KF  
(INTERNAL)  
t
KSPW  
V
IH  
KS  
V
IL  
V
IH  
PWR  
HIGH-IMPEDANCE  
V
IL  
V
IH  
IRQ HIGH-IMPEDANCE  
V
IL  
4
5
1
3
2
*THIS CONDITION CAN OCCUR WITH THE 3V DEVICE.  
NOTE: THE TIME INTERVALS SHOWN ABOVE ARE REFERENCED IN THE WAKE-UP/KICKSTART SECTION.  
Figure 6. Wake-Up/Kickstart Timing Diagram  
Table 6. Wake-Up/Kickstart Timing  
(T =+25°C)  
A
PARAMETER  
SYMBOL  
CONDITIONS  
MIN  
TYP  
MAX  
UNITS  
Kickstart-Input Pulse Width  
t
2
µs  
KSPW  
Wake-Up/Kickstart Power-On  
Timeout  
t
2
s
POTO  
Note: Wake-up/kickstart timeout is generated only when the oscillator is enabled and the countdown chain is not reset.  
____________________________________________________________________ 23  
Real-Time Clocks  
At the beginning of interval 3, the system processor has  
begun code execution and clears the interrupt condi-  
tion of WF and/or KF by writing zeros to both of these  
control bits. As long as no other interrupt within the  
DS17x85/DS17x87 is pending, the IRQ line is taken  
inactive once these bits are reset. Execution of the  
application software can proceed. During this time, the  
wake-up and kickstart functions can be used to gener-  
ate status and interrupts. WF is set in response to a  
date, hours, minutes, and seconds match condition. KF  
is set in response to a low-going transition on KS. If the  
associated interrupt-enable bit is set (WIE and/or KSE),  
the IRQ line is driven active low in response to enabled  
event. In addition, the other possible interrupt sources  
within the DS17885/DS17887 can cause IRQ to be dri-  
ven low. While system power is applied, the on-chip  
logic always attempts to drive the PWR pin active in  
response to the enabled kickstart or wake-up condition.  
This is true even if PWR was previously inactive as the  
result of power being applied by some means other  
than wake-up or kickstart.  
completed. If V  
is present at the time of the RAM  
CC  
clear and RIE = 1, the IRQ line is also driven low upon  
completion. Writing a zero to the RF bit clears the inter-  
rupt condition. The IRQ line then returns to its inactive  
high level, provided there are no other pending inter-  
rupts. Once the RCLR pin is activated, all read/write  
accesses are locked out for a minimum recover time,  
specified as t  
in Electrical Characteristics.  
REC  
When RCE is cleared to 0, the RAM clear function is  
disabled. The state of the RCLR pin has no effect on  
the contents of the user RAM, and transitions on the  
RCLR pin have no effect on RF.  
Extended RAM  
The DS17x85/DS17x87 provide 2k, 4k, or 8k x 8 of on-  
chip SRAM that is controlled as nonvolatile storage sus-  
tained from a lithium battery. On power-up, the RAM is  
taken out of write-protect status by the internal power-  
OK signal (POK) generated from the write-protect cir-  
cuitry. The on-chip SRAM is accessed through the  
eight multiplexed address/data lines AD7 to AD0. Three  
on-chip latch registers control access to the SRAM.  
Two registers are used to hold the SRAM address, and  
the other register is used to hold read/write data.  
The system can be powered down under software con-  
trol by setting the PAB bit to logic 1. This causes the  
open-drain PWR pin to be placed in a high-impedance  
state, as shown at the beginning of interval 4 in the tim-  
Access to the extended RAM is controlled by three of  
the registers shown in Table 5. The extended registers  
in bank 1 must first be selected by setting the DV0 bit  
in register A to logic 1. The address of the RAM loca-  
tion to be accessed must be loaded into the extended  
RAM address registers located at 50h and 51h. The  
least significant address byte should be written to loca-  
tion 50h, and the most significant bits (right-justified)  
should be loaded in location 51h. Data in the  
addressed location can be read by performing a read  
operation from location 53h, or written to by performing  
a write operation to location 53h. Data in any  
addressed location can be read or written repeatedly  
without changing the address in location 50h and 51h.  
ing diagram. As V  
voltage decays, the IRQ output  
CC  
pin is placed in a high-impedance state when V  
CC  
goes below V . If the system is to be again powered  
PF  
on in response to a wake-up or kickstart, then the WF  
and KF flags should be cleared, and WIE and/or KSE  
should be enabled prior to setting the PAB bit.  
During interval 5, the system is fully powered down.  
Battery backup of the clock calendar and NV RAM is in  
effect and IRQ is tri-stated, and monitoring of wake-up  
and kickstart takes place. If PRS = 1, PWR stays active;  
otherwise, if PRS = 0, PWR is high impedance.  
RAM Clear  
The DS17x85/DS17x87 provide a RAM clear function  
for the 114 bytes of user RAM. When enabled, this  
function can be performed regardless of the condition  
To read or write consecutive extended RAM locations,  
a burst mode feature can be enabled to increment the  
extended RAM address. To enable the burst mode fea-  
ture, set the BME bit in the Extended Control Register  
4Ah to logic 1. With burst mode enabled, write the  
extended RAM starting address location to registers  
50h and 51h. Then read or write the extended RAM  
data from/to register 53h. The extended RAM address  
locations are automatically incremented on the rising  
edge of RD or WR only when register 53h is being  
accessed. See the Burst Mode Timing Waveform.  
of the V  
pin.  
CC  
The RAM clear function is enabled or disabled through  
the RAM clear-enable bit (RCE; bank 1, register 04BH).  
When this bit is set to logic 1, the 114 bytes of user RAM  
is cleared (all bits set to 1) when an active-low transition  
is sensed on the RCLR pin. This action has no effect on  
either the clock/calendar settings or the contents of the  
extended RAM. The RAM clear flag (RF, bank 1, register  
04AH) is set when the RAM clear operation has been  
245/DS187  
24  
____________________________________________________________________  
Real-Time Clocks  
245/DS187  
AS  
CS  
AD0-7  
53H  
DATA  
DATA  
PW  
RWL  
PW  
RWH  
DS OR R/W  
ADDRESS + 1  
ADDRESS + 2  
Figure 7. Burst Mode Timing Waveform  
ignated as Extended Control Registers 4A and 4B, and  
are located in register bank 1, locations 04AH and  
04BH, respectively. The functions of the bits within  
these registers are described as follows.  
Extended Control Registers  
Two extended control registers are provided to supply  
control and status information for the extended func-  
tions offered by the DS17x85/DS17x87. These are des-  
Extended Control Register (4Ah)  
MSB  
LSB  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
VRT2  
INCR  
BME  
*
PAB  
RF  
WF  
KF  
*Reserved bit. This bit is reserved for future use. It can be read and written, but has no effect on operation.  
Bit 7: Valid RAM and Time 2 (VRT2). This status bit  
gives the condition of the auxiliary battery. It is set to  
logic 1 condition when the external lithium battery is  
Bit 3: Power Active-Bar Control (PAB). When this bit  
is 0, the PWR pin is in the active low state. When this bit  
is 1, the PWR pin is in the high-impedance state. The  
user can write this bit to logic 1 or 0. If either WF and  
WIE = 1 or KF and KSE = 1, the PAB bit is cleared to 0.  
connected to the V  
. If this bit is read as logic 0,  
BAUX  
the external battery should be replaced.  
Bit 6: Increment in Progress Status (INCR). This bit is  
set to 1 when an increment to the time/date registers is  
in progress and the alarm checks are being made.  
INCR is set to 1 at 122µs before the update cycle starts  
and is cleared to 0 at the end of each update cycle.  
Bit 2: RAM Clear Flag (RF). This bit is set to logic 1  
when a high-to-low transition occurs on the RCLR input  
if RCE = 1. Writing this bit to logic 0 clears it. This bit  
can also be written to logic 1 to force an interrupt con-  
dition.  
Bit 5: Burst Mode Enable (BME). The burst mode  
enable bit allows the extended user RAM address reg-  
isters to automatically increment for consecutive reads  
and writes. When BME is set to logic 1, the automatic  
incrementing is enabled and when BME is set to a logic  
0, the automatic incrementing is disabled.  
Bit 1: Wake-Up Alarm Flag (WF). This bit is set to 1  
when a wake-up alarm condition occurs or when the  
user writes it to 1. WF is cleared by writing it to 0.  
Bit 0: Kickstart Flag (KF). This bit is set to 1 when a  
kickstart condition occurs or when the user writes it to  
1. This bit is cleared by writing it to logic 0.  
____________________________________________________________________ 25  
Real-Time Clocks  
Extended Control Register (4Bh)  
MSB  
LSB  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
ABE  
E32k  
CS  
RCE  
PRS  
RIE  
WIE  
KSE  
Bit 7: Auxiliary Battery Enable (ABE). When written to  
Bit 2: RAM Clear Interrupt Enable (RIE). When RIE is  
set to 1, the IRQ pin is driven low when a RAM clear  
function is completed.  
logic 1, this bit enables the V  
functions.  
pin for extended  
BAUX  
Bit 6: Enable 32.768kHz Output (E32k). When written  
to logic 1, this bit enables the 32.768kHz oscillator fre-  
quency to be output on the SQW pin. E32k is set to 1  
Bit 1: Wake-Up Alarm Interrupt Enable (WIE). When  
V
CC  
voltage is absent and WIE is set to 1, the PWR pin  
is driven active low when a wake-up condition occurs,  
causing the WF bit to be set to 1. When V is then  
when V  
is powered up.  
CC  
CC  
applied, the IRQ pin is also driven low. If WIE is set  
while system power is applied, both IRQ and PWR are  
driven low in response to WF being set to 1. When WIE  
is cleared to 0, the WF bit has no effect on the PWR or  
IRQ pins.  
Bit 5: Crystal Select (CS). When CS is set to 0, the  
oscillator is configured for operation with a crystal that  
has a 6pF specified load capacitance. When CS = 1,  
the oscillator is configured for a 12.5pF crystal. CS is  
disabled in the DS17x87 module and should be set to  
CS = 0.  
Bit 0: Kickstart Interrupt Enable (KSE). When V  
CC  
voltage is absent and KSE is set to 1, the PWR pin is  
driven active low when a kickstart condition occurs (KS  
pulsed low), causing the KF bit to be set to 1. When  
Bit 4: RAM Clear Enable (RCE). When set to 1, this bit  
enables a low level on RCLR to clear all 114 bytes of  
user RAM. When RCE = 0, RCLR and the RAM clear  
function are disabled.  
V
CC  
is then applied, the IRQ pin is also driven low. If  
KSE is set to 1 while system power is applied, both IRQ  
and PWR are driven low in response to KF being set to  
1. When KSE is cleared to 0, the KF bit has no effect on  
the PWR or IRQ pins.  
Bit 3: PAB Reset Select (PRS). When set to 0, the  
PWR pin is set high impedance when the DS17x85  
goes into power fail. When set to 1, the PWR pin  
remains active upon entering power fail.  
245/DS187  
26  
____________________________________________________________________  
Real-Time Clocks  
245/DS187  
1) The RTC address is latched.  
System Maintenance Interrupt  
(SMI) Recovery Stack  
An SMI recovery register stack is located in the extend-  
ed register bank, locations 4Eh and 4Fh. This register  
stack, shown below, can be used by the BIOS to recov-  
er from an SMI occurring during an RTC read or write.  
2) An SMI is generated before an RTC read or write  
occurs.  
3
RTC address 0Ah is latched and the address from 1  
is pushed to the “RTC Address–1” stack location.  
This step is necessary to change the bank select bit,  
DV0 = 1.  
The RTC address is latched on the falling edge of the  
ALE signal. Each time an RTC address is latched, the  
register address stack is pushed. The stack is only four  
registers deep, holding the three previous RTC  
addresses in addition to the current RTC address being  
accessed. Figure 8 illustrates how the BIOS could  
recover the RTC address when an SMI occurs.  
4) RTC address 4Eh is latched and the address from 1  
is pushed to location 4Eh, “RTC Address–2” while  
0Ah is pushed to the “RTC Address–1” location. The  
data in this register, 4Eh, is the RTC address lost due  
to the SMI.  
RTC ADDRESS  
RTC ADDRESS-1  
4Eh RTC ADDRESS-2  
4Fh RTC ADDRESS-3  
SMI Recovery Stack  
7
6
5
4
3
2
1
0
DV0  
AD6  
AD5  
AD4  
AD3  
AD2  
AD1  
AD0  
REGISTER BIT DEFINITION  
ALE  
1
3
4
2
Figure 8. ALE Waveform  
____________________________________________________________________ 27  
Real-Time Clocks  
Pin Configurations  
TOP VIEW  
PWR  
X1  
1
2
3
4
5
6
7
8
9
24  
23 SQW  
22  
21 RCLR  
20  
V
PWR  
N.C.  
N.C.  
AD0  
AD1  
AD2  
AD3  
AD4  
AD5  
1
2
3
4
5
6
7
8
9
24  
V
CC  
CC  
23 SQW  
X2  
V
BAUX  
22  
21  
V
BAUX  
AD0  
AD1  
AD2  
AD3  
AD4  
AD5  
RCLR  
V
BAT  
20 N.C.  
19 IRQ  
18 KS  
17 RD  
16 N.C.  
15 WR  
14 ALE  
13 CS  
DS17285  
DS17485  
DS17885  
DS17287  
DS17487  
DS17887  
19 IRQ  
18 KS  
17 RD  
16 GND  
15 WR  
14 ALE  
13 CS  
AD6 10  
AD7 11  
GND 12  
AD6 10  
AD7 11  
GND 12  
SO, PDIP  
EDIP  
1
2
IRQ  
28  
27  
26  
25  
24  
23  
22  
21  
20  
19  
18  
17  
16  
15  
KS  
RD  
V
BAT  
3
RCLR  
GND  
WR  
4
V
BAUX  
5
SQW  
ALE  
CS  
6
V
CC  
DS17285  
DS17485  
DS17885  
7
GND  
GND  
AD7  
AD6  
N.C.  
AD5  
AD4  
AD3  
V
CC  
8
PWR  
X1  
9
10  
11  
12  
13  
14  
X2  
N.C.  
AD0  
AD1  
AD2  
TSOP  
245/DS187  
28  
____________________________________________________________________  
Real-Time Clocks  
245/DS187  
Ordering Information  
PART  
TEMP RANGE  
0°C to +70°C  
0°C to +70°C  
0°C to +70°C  
0°C to +70°C  
-40°C to +85°C  
0°C to +70°C  
0°C to +70°C  
-40°C to +85°C  
-40°C to +85°C  
0°C to +70°C  
0°C to +70°C  
0°C to +70°C  
0°C to +70°C  
0°C to +70°C  
0°C to +70°C  
0°C to +70°C  
0°C to +70°C  
-40°C to +85°C  
0°C to +70°C  
-40°C to +85°C  
0°C to +70°C  
-40°C to +85°C  
0°C to +70°C  
0°C to +70°C  
0°C to +70°C  
0°C to +70°C  
-40°C to +85°C  
0°C to +70°C  
0°C to +70°C  
-40°C to +85°C  
0°C to +70°C  
-40°C to +85°C  
0°C to +70°C  
-40°C to +85°C  
PIN-PACKAGE  
TOP MARK*  
DS17285-3  
DS17285-3+  
DS17285-5+  
24 PDIP  
24 PDIP  
DS17285-5  
DS17285E-3+  
DS17285E-5+  
DS17285EN-3+  
DS17285S-3+  
DS17285S-5+  
DS17285SN-3+  
DS17285SN-5+  
DS17287-3+  
DS17287-5+  
28 TSOP  
DS17285E3  
28 TSOP  
DS17285E5  
28 TSOP  
DS17285E3  
24 SO (300 mils)  
24 SO (300 mils)  
24 SO (300 mils)  
24 SO (300 mils)  
24 EDIP  
DS17285S-3  
DS17285S-5  
DS17285SN3  
DS17285SN5  
DS17287-3  
24 EDIP  
DS17287-5  
DS17485-3+  
DS17485-5+  
24 PDIP  
DS17485-3  
24 PDIP  
DS17485-5  
DS17485E-3+  
DS17485E-5+  
DS17485S-3+  
DS17485S-5+  
DS17485SN-5+  
DS17487-3+  
DS17487-3IND+  
DS17487-5+  
28 TSOP  
DS17485E3  
28 TSOP  
DS17485E5  
24 SO (300 mils)  
24 SO (300 mils)  
24 SO (300 mils)  
24 EDIP  
DS17485S-3  
DS17485S-5  
DS17485SN5  
DS17487-3  
24 EDIP  
DS17487-3 REAL TIME IND  
DS17487-5  
24 EDIP  
DS17487-5IND+  
DS17885-3+  
DS17885-5+  
24 EDIP  
DS17487-5 REAL TIME IND  
DS17885-3  
24 PDIP  
24 PDIP  
DS17885-5  
DS17885E-3+  
DS17885E-5+  
DS17885EN-3+  
DS17885S-3+  
DS17885S-5+  
DS17885SN-3+  
DS17887-3+  
DS17887-3IND+  
DS17887-5+  
28 TSOP  
DS17885E3  
28 TSOP  
DS17885E5  
28 TSOP  
DS17885E3  
24 SO (300 mils)  
24 SO (300 mils)  
24 SO (300 mils)  
24 EDIP  
DS17885S-3  
DS17885S-5  
DS17885SN3  
DS17887-3  
24 EDIP  
DS17887-3 REAL TIME IND  
DS17887-5  
24 EDIP  
DS17887-5IND+  
24 EDIP  
DS17887-5 REAL TIME IND  
+Denotes a lead(Pb)-free/RoHS-compliant package.  
*A “+” anywhere on the top mark denotes a lead(Pb)-free package. An “N” or “IND” denotes an industrial temperature range package.  
Note: A “-5” suffix denotes a V = 5V 10ꢀ device, and a “-3” suffix denotes a V = 3V 10ꢀ device.  
CC  
CC  
____________________________________________________________________ 29  
Real-Time Clocks  
Typical Operating Circuit  
Thermal Information  
CRYSTAL  
PACKAGE  
DIP  
THETA-JA (°C/W)  
THETA-JC (°C/W)  
V
V
CC  
CC  
75  
30  
22  
SO  
105  
X1  
X2  
V
CC  
IRQ  
Chip Information  
SQW  
ALE  
SUBSTRATE CONNECTED TO GROUND  
WR  
RD  
CS  
DS17285  
DS17485  
DS17885  
PROCESS: CMOS  
RCLR  
KS  
DS83C520  
Package Information  
AD0–AD7  
For the latest package outline information and land patterns,  
go to www.maxim-ic.com/packages. Note that a “+”, “#”, or  
“-” in the package code indicates RoHS status only. Package  
drawings may show a different suffix character, but the drawing  
pertains to the package regardless of RoHS status.  
V
SB  
V
BAUX  
SUPPLY  
V
PWR  
BAT  
CONTROL  
CIRCUIT  
GND  
PACKAGE TYPE  
24 PDIP (600 mils)  
24 SO (300 mils)  
24 EDIP  
DOCUMENT NO.  
21-0044  
V
CC  
21-0042  
21-0241  
28 TSOP  
21-0273  
245/DS187  
30  
____________________________________________________________________  
Real-Time Clocks  
245/DS187  
Revision History  
REVISION REVISION  
PAGES  
CHANGED  
DESCRIPTION  
Initial release of revised data sheet template  
NUMBER  
DATE  
0
4/06  
Updated the storage temperature ranges, added the lead temperature, and updated  
the soldering temperature for all packages in the Absolute Maximum Ratings;  
removed the leaded parts from the Ordering Information table; updated the Document  
No. for the Package Information table.  
1
4/10  
2, 29, 30  
Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are  
implied. Maxim reserves the right to change the circuitry and specifications without notice at any time.  
Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600 ____________________ 31  
© 2010 Maxim Integrated Products  
Maxim is a registered trademark of Maxim Integrated Products, Inc.  
is a registered trademark of Maxim Integrated Products, Inc.  

相关型号:

DS17487-5IND

Real-Time Clocks
MAXIM

DS17487-5IND+

Real-Time Clocks
MAXIM

DS17487B-3

3V/5V Real-Time Clock
DALLAS

DS17487B-5

3V/5V Real-Time Clock
DALLAS

DS17487BN-3

3V/5V Real-Time Clock
DALLAS

DS17487BN-5

3V/5V Real-Time Clock
DALLAS

DS17487N-3

3V/5V Real-Time Clock
DALLAS

DS17487N-5

3V/5V Real-Time Clock
DALLAS

DS17488

3V/5V Real-Time Clock
DALLAS

DS1750AB-100

Non-Volatile SRAM Module, 512KX8, 100ns, CMOS, PDMA32,
DALLAS

DS1750AB-70

Non-Volatile SRAM Module, 512KX8, 70ns, CMOS, PDMA32,
DALLAS

DS1750D5S

DIESEL GENERATOR SET
MTU