DS12885/DS12887/DS12887A/DS12C887/DS12C887A
Real-Time Clocks
____________________________________________________________________ 13
The three alarm bytes can be used in two ways. First,
when the alarm time is written in the appropriate hours,
minutes, and seconds alarm locations, the alarm inter-
rupt 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 (Table 2A and 2B). Writing
the 0 bits in the alarm and/or time registers to 1 can
result in undefined operation.
The second use condition is to insert a “don’t care”
state in one or more of the three 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
condition when at logic 1. An alarm is 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.
The don’t-care codes in all three alarm bytes create an
interrupt every second.
All 128 bytes can be directly written or read, except for
the following:
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 2A. 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
00H 0 10 Seconds Seconds Seconds 00–59
01H 0 10 Seconds Seconds Seconds Alarm 00–59
02H 0 10 Minutes Minutes Minutes 00–59
03H 0 10 Minutes Minutes Minutes Alarm 00–59
AM/PM 0 10 Hours
04H
0
0
10 Hours
Hours Hours
1–12 +AM/PM
00–23
AM/PM 0 10 Hours
05H
0
0
10 Hours
Hours Hours Alarm
1–12 +AM/PM
00–23
06H 0 0 0 0 0 Day Day 01–07
07H 0 0 10 Date Date Date 01–31
08H 0 0 0 10 Months Month Month 01–12
09H 10 Years Year Year 00–99
0AH UIP DV2 DV1 DV0 RS3 RS2 RS1 RS0 Control
0BH SET PIE AIE UIE SQWE DM 24/12 DSE Control
0CH IRQF PF AF UF 0 0 0 0 Control
0DH VRT 0 0 0 0 0 0 0 Control
0EH-31H X X X X X X X X RAM
32H 10 Century Century Century* 00–99
33H-7FH X X X X X X X X RAM
X = Read/Write Bit.
*
DS12C887, DS12C887A only. General-purpose RAM on DS12885, DS12887, and DS12887A.
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 may be modified when the clock updates. 0 bits should always be
written to 0 except for alarm mask bits.
DS12885/DS12887/DS12887A/DS12C887/DS12C887A
Real-Time Clocks
14 ____________________________________________________________________
Table 2B. 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
00H 0 0 Seconds Seconds 00–3B
01H 0 0 Seconds Seconds Alarm 00–3B
02H 0 0 Minutes Minutes 00–3B
03H 0 0 Minutes Minutes Alarm 00–3B
AM/PM 0 Hours
04H
0
00
Hours
Hours
01–0C +AM/PM
00–17
AM/PM 0 Hours
05H
0
0
0
Hours
Hours Alarm
01–0C +AM/PM
00–17
06H 0 0 0 0 0 Day Day 01–07
07H 0 0 0 Date Date 01–1F
08H 0 0 0 0 Month Month 01–0C
09H 0 Year Year 00–63
0AH UIP DV2 DV1 DV0 RS3 RS2 RS1 RS0 Control
0BH SET PIE AIE UIE SQWE DM 24/12 DSE Control
0CH IRQF PF AF UF 0 0 0 0 Control
0DH VRT 0 0 0 0 0 0 0 Control
0EH-31H X X X X X X X X RAM
32H N/A N/A Century*
33H-7FH X X X X X X X X RAM
X = Read/Write Bit.
*
DS12C887, DS12C887A only. General-purpose RAM on DS12885, DS12887, and DS12887A.
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 may be modified when the clock updates. 0 bits should always be
written to 0 except for alarm mask bits.
DS12885/DS12887/DS12887A/DS12C887/DS12C887A
Real-Time Clocks
____________________________________________________________________ 15
Bit 7: Update-In-Progress (UIP). This bit is a status
flag that can be monitored. When the UIP bit is a 1, the
update transfer occurs soon. When UIP is a 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 and is not affected by RESET. Writing the
SET bit in Register B to a 1 inhibits any update transfer
and clears the UIP status bit.
Bits 6, 5, and 4: DV2, DV1, DV0. These three bits are
used to turn the oscillator on or off and to reset the
countdown chain. A pattern of 010 is the only combina-
tion of bits that turn the oscillator on and allow 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 010 is written to DV0,
DV1, and DV2.
Bits 3 to 0: Rate Selector (RS3, RS2, RS1, 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:
1) Enable the interrupt with the PIE bit;
2) Enable the SQW output pin with the SQWE bit;
3) Enable both at the same time and the same rate;
or
4) Enable neither.
Table 3 lists the periodic interrupt rates and the square-
wave frequencies that can be chosen with the RS bits.
These four read/write bits are not affected by RESET.
BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
UIP DV2 DV1 DV0 RS3 RS2 RS1 RS0
Control Register A
Control Registers
The real-time clocks have four control registers that are
accessible at all times, even during the update cycle.
MSB LSB

DS12887A+

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Real Time Clock RTC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union