MAX6916
SPI-Compatible RTC with Microprocessor
Supervisor, Alarm, and NV RAM Controller
______________________________________________________________________________________ 19
trigger on a minutes match (i.e., once every hour).
Writing a 4Fh (0100 1111) to the alarm configuration
register causes the alarm to be triggered on a specific
second, of a specific minute, of a specific hour, of a
specific date, of a specific year.
When setting the alarm-threshold registers, ensure that
Table 2. Hex Register Address and Description
WRITE ADDRESS/COMMAND
(HEX)
READ ADDRESS/COMMAND
(HEX)
DESCRIPTION
POR SETTING
(HEX)
00 80 Clock burst N/A
01 81 Seconds 00
02 82 Minutes 00
03 83 Hour 00
04 84 Date 01
05 85 Month 01
06 86 Day 01
07 87 Year 70
08 88 Control 48
09 89 Century 19
0A 8A Alarm configuration 00
0C 8C Status 00
0D N/A Battery test N/A
0E 8E Seconds alarm threshold 7F
0F 8F Minutes alarm threshold 7F
10 90 Hours alarm threshold BF
11 91 Date alarm threshold 3F
12 92 Month alarm threshold 1F
13 93 Day alarm threshold 07
14 94 Year alarm threshold FF
15 95 Test configuration 00
1F 9F RAM 0 Indeterminate
20 A0 RAM 1 Indeterminate
21 A1 RAM 2 Indeterminate
22 A2 RAM 3 Indeterminate
23 A3 RAM 4 Indeterminate
••••
••••
••••
7A FA RAM 91 Indeterminate
7B FB RAM 92 Indeterminate
7C FC RAM 93 Indeterminate
7D FD RAM 94 Indeterminate
7E FE RAM 95 Indeterminate
7F FF RAM BURST N/A
MAX6916
SPI-Compatible RTC with Microprocessor
Supervisor, Alarm, and NV RAM Controller
20 ______________________________________________________________________________________
both the hour-timekeeping register and the hour-alarm-
threshold register are using the same hour format
(either 12hr or 24hr format).
The alarm function as well as the ALM output are oper-
ational in both V
CC
and battery-backup mode.
Crystal-Fail Detect
The crystal-fail detect circuit looks for a loss of oscillation
from the 32.768kHz oscillator for 30 cycles (typ) or more.
Both the control register and the status register are used
in the crystal-failure detection scheme (Table 1).
The crystal-fail detect circuit sets the XTAL FAIL bit in
the status register to one for a crystal failure and to zero
for normal operation. Once the status register is read,
the XTAL FAIL bit is reset to zero, if it was previously
one. If the crystal-fail-detect circuit continues to sense
a failed crystal, then the XTAL FAIL bit is set again.
On initial power-up, the crystal-fail detect circuit is
enabled. Since it takes a while for the low-power,
32.768kHz oscillator to start, the XTAL FAIL bit in the
status register can be set to one, indicating a crystal
failure. The XTAL FAIL bit should be polled a number of
times to see if it is set to zero for successive polls. If the
polling is far enough apart, a few polled results could
guarantee that a maximum of 10s had elapsed since
power-on, at which time the oscillator would be consid-
ered truly failed if the XTAL FAIL bit remains one.
On subsequent power-ups, when XTAL EN is set to
one, if XTAL FAIL is set to one, time data should be
considered suspect.
The crystal-fail-detection circuit functions in both V
CC
and V
BATT
modes when the XTAL EN bit is set in the
control register.
Manual Reset Input
A logic-low on MR asserts RESET. RESET remains
asserted while MR is low, and for t
RP
after it returns
high (Figure 7). MR has an internal pullup resistor, so it
can be left open if it is not used. Internal debounce cir-
cuitry requires a minimum low time on the MR input of
1µs with 35ns maximum glitch immunity.
Reset Output
A microprocessors (µPs) reset input starts the µP in a
known state. The MAX6916s µP supervisory circuit
asserts a reset to prevent code-execution errors during
power-up, power-down, and brownout conditions. The
RESET output is guaranteed to be active for 0V < V
CC
< V
RST
, provided V
BATT
is greater than V
BATT
(min). If
V
CC
drops below and then exceeds the reset threshold,
an internal timer keeps RESET active for the reset
timeout period t
RP
; after this interval, RESET becomes
inactive high. This condition occurs at either power-up
or after a V
CC
brownout.
The RESET output is also activated when the watchdog
interrupt function is enabled but no transition is detect-
ed on the WDI input. In this case, RESET is active for
the period t
RP
before becoming inactive again. When
RESET is active, all inputsWDI, MR, CE_IN, DIN, CS,
and SCLKare disabled. DOUT is also disabled.
The MAX6916EO30 is optimized to monitor 3.0V ±10%
power supplies. Except when MR is asserted, RESET is
not active until V
CC
falls below 2.7V (3.0V - 10%), but is
guaranteed to occur before the power supply falls
below 2.5V (3.0V - 15%).
The MAX6916EO33 is optimized to monitor 3.3V ±10%
power supplies. Except when MR is asserted, RESET is
not active until V
CC
falls below 3.0V (3.0V is just above
3.3V - 10%), but is guaranteed to occur before the
power supply falls below 2.8V (3.3V - 15%).
The MAX6916EO50 is optimized to monitor 5.0V ±10%
power supplies. Except when MR is asserted, RESET is
not active until V
CC
falls below 4.5V (5.0V - 10%), but is
guaranteed to occur before the power supply falls
below 4.2V (4.2V is just below 5.0V - 15%).
Negative-Going V
CC
Transients
The MAX6916 is relatively immune to short-duration
negative transients (glitches) while issuing resets to the
µP during power-up, power-down, and brownout condi-
tions. Therefore, resetting the µP when V
CC
experi-
ences only small glitches is usually not recommended.
Typically, a V
CC
transient that goes 150mV below the
reset threshold and lasts for 50µs or less does not
cause a reset pulse to be issued. A 0.1µF capacitor
mounted close to the V
CC
pin provides additional tran-
sient immunity.
MR
CE OUT
CE IN
RESET
t
RCE
t
RP
t
RP
Figure 7. Manual Reset Timing Diagram
MAX6916
SPI-Compatible RTC with Microprocessor
Supervisor, Alarm, and NV RAM Controller
______________________________________________________________________________________ 21
Interfacing to Microprocessors with
Bidirectional Reset Pins
Microprocessors with bidirectional reset pins, such as
the Motorola 68HC11 series, can contend with the
MAX6916 RESET output. If, for example, the RESET
output is driven high and the µP wants to pull it low,
indeterminate logic levels can result. To correct this,
connect a 4.7k resistor between the RESET output
and the µP reset I/O as shown in Figure 8. Buffer the
RESET output to other system components.
Battery-On Output
The battery-on output, BATT_ON, is an open-drain out-
put that indicates when the MAX6916 is powered from
the backup-battery input, V
BATT
. When V
CC
falls below
the reset threshold, V
RST
, and below V
BATT
, V
OUT
switches from V
CC
to V
BATT
and BATT_ON becomes
low. When V
CC
rises above the reset threshold, V
RST
,
V
OUT
reconnects to V
CC
and BATT_ON becomes high
(open-drain output with pullup resistor). If desired, the
BATT_ON output can be register selected, through the
BATT ON BLINK bit in the control register, to toggle on
and off (0.5s on, 0.5s off) when active. The POR default
is logic zero for no blink.
Watchdog Input
The watchdog circuit monitors the µPs activity. If the
µP does not toggle the watchdog input (WDI) within the
register-selectable watchdog-timeout period, RESET is
asserted for t
RP
. At the same time, the WD EN and WD
TIME bits in the control register (Table 1) are reset to
zero and can only be set again by writing the appropri-
ate command to the control register. Thus, once a
RESET is asserted due to a watchdog timeout, the
watchdog function is disabled (Figure 9).
WDI can detect pulses as short as t
WDI
. Data bit D2
in the control register controls the selection of the watch-
dog-timeout period. The power-up default is 1.6s
(D2 = 0). A reset condition returns the timeout to 1.6s
(D2 = 0). If D2 is set to one, then the watchdog-timeout
period is changed to 200ms. Data bit D3 in the control
register is the watchdog-enable function. A logic zero dis-
ables the watchdog function, while a logic one enables it.
The POR state of WD EN is logic one, or the watchdog
function is enabled. Disable the watchdog function by
writing a zero to the WD EN bit in the control register,
within the 1.6s POR default timeout after power-up.
WDI does not include a pulldown or pullup feature. For
this reason, WDI should not be left floating. When the
WD EN bit in the control register is set to zero, WDI
should be connected to V
CC
or GND. WDI is disabled
and does not draw cross-conduction current when V
CC
falls below V
RST
.
Watchdog Software Considerations
There is a way to help the watchdog-timer monitor soft-
ware execution more closely, which involves setting and
resetting the watchdog input at different points in the
program rather than pulsing the watchdog input. This
technique avoids a stuck loop, in which the watchdog
timer would continue to be reset within the loop, keeping
the watchdog from timing out. Figure 10 shows an
example of a flow diagram where the I/O driving the
watchdog input is set high at the beginning of the pro-
gram, set low at the beginning of every subroutine or
loop, then set high again when the program returns to
the beginning. If the program should hang in any sub-
routine, the problem would quickly be corrected since
the I/O is continually set low and the watchdog timer is
allowed to time out, causing a reset to be issued.
MAX6916
V
CC
GND
V
CC
GND
RESET RESET
BUFFER
4.7k
µP
V
CC
Figure 8. Interfacing to µP with Bidirectional Reset I/O
V
RST
V
CC
RESET
WDI
t
RP
t
RP
t
WD
t
WD
WD EN AND WD TIME ARE SET
TO ZERO AND THE WATCHDOG
FUNCTION IS DISABLED.
Figure 9. Watchdog Timing Diagram

MAX6916EO50+T

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