DS12R885/DS12CR887/DS12R887
RTCs with Constant-Voltage Trickle Charger
____________________________________________________________________ 13
An external 32.768kHz oscillator can also drive the
DS12R885. In this configuration, the X1 pin is connected
to the external oscillator signal and the X2 pin is left
unconnected.
Clock Accuracy
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 is added by crystal frequency drift
caused by temperature shifts. External circuit noise cou-
pled into the oscillator circuit can result in the clock run-
ning fast. Figure 2 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 (RTCs)
for more detailed information.
The DS12R887 and DS12CR887 are calibrated at the
factory to an accuracy of ±1 minute per month at
+25°C during data-retention time for the period t
DR
.
Power-Down/Power-Up
Considerations
The real-time clock continues to operate regardless of
the V
CC
input level, and the RAM and alarm memory
locations remain nonvolatile. V
BACKUP
must remain
within the minimum and maximum limits when V
CC
is
not applied. When V
CC
is applied and exceeds V
PF
(power-fail trip point), the device becomes accessible
after t
REC
—if the oscillator is running and the oscillator
countdown chain is not in reset (Register A). This time
allows the system to stablize after power is applied. If
the oscillator is not enabled, the oscillator-enable bit is
enabled on power-up, and the device becomes imme-
diately accessible.
Time, Calendar, and Alarm
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 10 time, calen-
dar, and alarm bytes can be either binary or
binary-coded decimal (BCD) format.
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, 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.
Before writing the internal time, calendar, and alarm reg-
isters, 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 10 time, calen-
dar, 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 10 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 RTC to update the time and
calendar bytes. Once initialized, the RTC makes all
updates in the selected mode. The data mode cannot be
changed without reinitializing the 10 data bytes. Tables
2A and 2B show the BCD and binary formats of the time,
calendar, and alarm locations.
The 24/12 bit cannot be changed without reinitializing the
hour locations. When the 12-hour format is selected, the
higher-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 seven 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. The probability of read-
ing incorrect time and calendar data is low. Several
LOCAL GROUND PLANE (LAYER 2)
CRYSTAL
GND
X2
X1
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.
Figure 2. Layout Example
DS12R885/DS12CR887/DS12R887
RTCs with Constant-Voltage Trickle Charger
14 ____________________________________________________________________
methods of avoiding any possible incorrect time and
calendar reads are covered later in this text.
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-7F X X X X X X X X RAM
X = Read/Write Bit.
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.
DS12R885/DS12CR887/DS12R887
RTCs with Constant-Voltage Trickle Charger
____________________________________________________________________ 15
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-7F X X X X X X X X RAM
X = Read/Write Bit.
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.

DS12CR887-5+

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

Products related to this Datasheet