MAX6917
I
2
C-Compatible RTC with Microprocessor
Supervisor, Alarm, and NV RAM Controller
22 ______________________________________________________________________________________
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 10). MR has an internal pullup resistor, so
it can be left open if it is not used. Internal debounce
circuitry requires a minimum low time on the MR input
of 1µs with 35ns maximum glitch immunity.
Reset Output
A µPs reset input starts the µP in a known state. The
MAX6917s µ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, SDA, and
SCLare disabled.
The MAX6917EO30 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 MAX6917EO33 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 MAX6917EO50 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.1V (4.1V is just below 5.0V - 15%).
Negative-Going V
CC
Transients
The MAX6917 is relatively immune to short-duration nega-
tive transients (glitches) while issuing resets to the µP dur-
ing power-up, power-down, and brownout conditions.
Therefore, resetting the µP when V
CC
experiences only
small glitches is usually not recommended. Typically, a
V
CC
transient that goes 150mV below the reset threshold
and lasts for 90µ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 transient immunity.
MR
CE OUT
CE IN
RESET
t
RCE
t
RP
t
RP
Figure 10. Manual-Reset Timing Diagram
MAX6917
I
2
C-Compatible RTC with Microprocessor
Supervisor, Alarm, and NV RAM Controller
______________________________________________________________________________________ 23
Interfacing to µPs with Bidirectional
Reset Pins
Microprocessors with bidirectional reset pins, such as
the Motorola 68HC11 series, can contend with the
MAX6917 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 11. 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 MAX6917 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 12).
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 disables
the watchdog function, while a logic one enables it. The
POR state of WD EN is logic one, or the watchdog func-
tion is enabled. Disable the watchdog function by writ-
ing 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 13 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.
MAX6917
V
CC
GND
V
CC
GND
RESET RESET
BUFFER
4.7k
µP
V
CC
Figure 11. 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 12. Watchdog Timing Diagram
MAX6917
I
2
C-Compatible RTC with Microprocessor
Supervisor, Alarm, and NV RAM Controller
24 ______________________________________________________________________________________
Chip-Enable Gating
Internal gating of chip-enable (CE) signals prevents
erroneous data from corrupting external SRAM in the
event of an undervoltage condition. The MAX6917 uses
a transmission gate from CE_IN to CE_OUT (Figure 14).
During normal operation (RESET inactive), the transmis-
sion gate is enabled and passes all CE transitions.
When reset is asserted, this path becomes disabled,
preventing erroneous data from corrupting the external
SRAM. The short CE propagation delay from CE_IN to
CE_OUT enables the MAX6917 to be used with most
µPs. If CE_IN is low when reset asserts, CE_OUT
remains low for t
RCE
to permit completion of the current
write cycle.
Chip-Enable Input
The CE transmission gate is disabled and CE_IN is high
impedance (disabled mode) while RESET is active. During
a power-down sequence when V
CC
passes the reset
threshold, the CE transmission gate disables and CE_IN
immediately becomes high impedance if the voltage at
CE_IN is high. If CE_IN is low when RESET becomes
active, the CE transmission gate disables at the moment
CE_IN goes high or t
RCE
after RESET is active, whichever
occurs first (see the Chip-Enable Timing diagram). This
permits the current write cycle to complete during power-
down. The CE transmission gate remains disabled and
CE_IN remains high impedance (regardless of CE_IN
activity) for most of the reset-timeout period (t
RST
) any time
a RESET is generated. When the CE transmission gate is
enabled, the impedance of CE_IN appears as a 46 (typ)
load in series with the load at CE_OUT.
The propagation delay through the CE transmission
gate depends on V
CC
, the source impedance of the
driver connected to CE_IN, and the loading on
CE_OUT (see the Chip-Enable Propagation Delay vs.
CE_OUT Load Capacitance graph in the Typical
Operating Characteristics). For minimum propagation
delay, the capacitive load at CE_OUT should be mini-
mized, and a low-output-impedance driver should be
used on CE_IN (Figure 15).
START
SET WDI
HIGH
PROGRAM
CODE
SUBROUTINE OF
PROGRAM LOOP
SET WDI HIGH
RETURN
Figure 13. Watchdog Flow Diagram
MAX6917
CHIP-ENABLE
OUTPUT
CONTROL
RESET
GENERATOR
V
OUT
CE_OUTCE_IN
Figure 14. Chip-Enable Gating
MAX6917
25 EQUIVALENT
SOURCE IMPEDANCE
50 CABLE
50
3.6V
VCC
C
L
10pF
GND
V
CC
50
CE_IN CE_OUT
BATT
C
L
INCLUDES LOAD CAPACITANCE AND SCOPE PROBE CAPACITANCE.
Figure 15. Propagation Delay Test Circuit

MAX6917EO33+

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