DS1685/DS1687
3 of 39
The DS1685/DS1687 power control circuitry allows the system to be powered on via an external
stimulus, such as a keyboard or by a time and date (wake-up) alarm. The PWR output pin can be
triggered by one or either of these events, and can be used to turn on an external power supply. The PWR
pin is under software control, so that when a task is complete, the system power can then be shut down.
The DS1685 is a clock/calendar chip with the features described above. An external crystal and battery
are the only components required to maintain time-of-day and memory status in the absence of power.
The DS1687 incorporates the DS1685 chip, a 32.768 kHz crystal, and a lithium battery in a complete,
self-contained timekeeping module. The entire unit is fully tested at Dallas Semiconductor such that a
minimum of 10 years of timekeeping and data retention in the absence of VCC is guaranteed.
OPERATION
The block diagram in Figure 1 shows the pin connections with the major internal functions of the
DS1685/DS1687. The following paragraphs describe the function of each pin.
SIGNAL DESCRIPTIONS
GND, V CC - DC power is provided to the device on these pins. VCC is the +3 volt or +5 volt input.
SQW (Square Wave Output) - The SQW pin will provide a 32 kHz square wave output, tREC, after a
power-up condition has been detected. This condition sets the following bits, enabling the 32 kHz output;
DV1=1, and E32K=1. A square wave will be output on this pin if either SQWE=1 or E32K=1. If
E32K=1, then 32 kHz will be 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 real time clock. The frequency of the SQW pin
can be changed by programming Register A as shown in Table 2. The SQW signal can be turned on and
off using the SQWE bit in register B or the E32K bit in extended register 4Bh. A 32 kHz SQW signal is
output when the Enable 32 kHz (E32K) bit in extended register 4Bh is a logic 1, and VCC is above VPF. A
32 kHz square wave is also available when VCC is less than VPF if E32K=1, ABE=1, and voltage is
applied to the VBAUX pin.
AD0-AD7 (Multiplexed Bidirectional Address/Data Bus) - Multiplexed buses save pins because
address information and data information time share the same signal paths. The addresses are present
during the first portion of the bus cycle and the same pins and signal paths are used for data in the second
portion of the cycle. Address/data multiplexing does not slow the access time of the DS1685 since the
bus change from address to data occurs during the internal RAM access time. Addresses must be valid
prior to the latter portion of ALE, at which time the DS1685/DS1687 latches the address. Valid write
data must be present and held stable during the latter portion of the WR pulse. In a read cycle the
DS1685/DS1687 outputs 8 bits of data during the latter portion of the RD pulse. The read cycle is
terminated and the bus returns to a high impedance state as RD transitions high. The address/data bus
also serves as a bidirectional data path for the external extended RAM.
ALE (RTC Address Strobe Input; active high) - A pulse on the address strobe pin serves to
demultiplex the bus.
The falling edge of ALE causes the RTC address to be latched within the
DS1685/DS1687.
RD
(RTC Read Input; active low) - RD identifies the time period when the DS1685/DS1687 drives the
bus with RTC read data. The RD signal is an enable signal for the output buffers of the clock.