MAX6916
SPI-Compatible RTC with Microprocessor
Supervisor, Alarm, and NV RAM Controller
10 ______________________________________________________________________________________
Detailed Description
Functional Description
The MAX6916 contains eight 8-bit timekeeping registers,
seven 8-bit alarm threshold registers, one status register,
one control register, one alarm-configuration register, and
96 x 8 bits of SRAM. In addition to single-byte reads and
writes to registers and RAM, there is a burst timekeeping
register read/write command, a burst RAM read/write
command, and a battery-test command that allows soft-
ware-commanded testing of the backup battery at any
time. An SPI-bus-compatible interface allows serial com-
munication with a microprocessor. When V
CC
is less than
the reset threshold, the serial interface is disabled to pre-
vent erroneous data from being written to the MAX6916.
A microprocessor supervisory section and an NVRAM
controller are provided for ease of implementation with
microprocessor-based systems. A crystal-fail-detect cir-
cuit and a data-valid bit can be used to guarantee RAM
data integrity and valid timekeeping data. Time and cal-
endar data are stored in a binary-coded decimal (BCD)
format. Figure 1 shows the functional diagram of the
MAX6916.
Real-Time Clock
The RTC provides seconds, minutes, hours, day, date,
month, and year information. The end of the months is
automatically adjusted for months with fewer than 31
days, including corrections for leap years through 2099.
Crystal Oscillator
The MAX6916 uses an external, standard 6pF load
watch crystal. No other external components are
required for this timekeeping oscillator. Power-up oscil-
lator start time is dependent mainly upon applied V
CC
and ambient temperature. The MAX6916, because of
its low timekeeping current, exhibits a typical startup
time of 1s to 2s.
SPI-Compatible Interface
Interface the MAX6916 to a microcontroller using a
4-wire, serial peripheral interface (SPI). The SPI is a
synchronous bus for address and data transfer and is
used when interfacing with Motorola and other micro-
controllers with an SPI port. Four connections are
required for the interface: DOUT (serial data out), DIN
(serial data in), SCLK (serial clock), and CS (chip
select). The MAX6916 acts as a slave device and the
Pin Description (continued)
PIN NAME FUNCTION
11 DIN SPI Serial Bus Data Input
12 CS SPI Serial Bus Chip-Select Input. Drive CS low to initiate a data transfer.
13 DOUT SPI Serial Bus Data Output
14 SCLK SPI Serial Bus Clock Input
15 ALM
Open-Drain, Active-Low Alarm Output. ALM goes low when RTC time matches alarm thresholds set in
the alarm threshold registers. ALM stays low until cleared by reading or writing to the alarm configuration
register or to any of the alarm threshold registers.
16
CE_OUT
Chip-Enable Output. CE_OUT goes low only when CE_IN is low and RESET is not asserted. If CE_IN is
low when RESET is asserted, CE_OUT remains low for t
RCE
or until CE_IN goes high, whichever occurs
first. CE_OUT is pulled to V
OUT
.
17
BATT_LO
Open-Drain, Battery-Low Indicator. BATT_LO is active low when the V
BATT
input is tested below V
BTP
if
the internal trip is selected in the control register (POR default). If external trip is selected in the control
register, then BATT_LO is active low when TRIP is less than V
TRIP
.
18 RESET
Open-Drain, Active-Low Reset Output. RESET pulses low for t
RP
when triggered, and stays low
whenever V
CC
is below the reset threshold or when MR is logic-low. RESET remains low for t
RP
after
either V
CC
rises above the reset threshold or MR goes from low to high.
19 V
CC
Main Supply Input. Connect a 0.1µF bypass capacitor from V
CC
to GND.
20 V
BATT
Backup-Battery Input. When V
CC
falls below the reset threshold and V
BATT
, V
OUT
switches from V
CC
to
V
BATT
. When V
CC
rises above V
BATT
or the reset threshold, V
OUT
reconnects to V
CC
. V
BATT
may exceed
V
CC
. Connect V
BATT
to GND if no backup-battery supply is used. Connect a 0.1µF low-leakage bypass
capacitor from V
BATT
to GND.
MAX6916
SPI-Compatible RTC with Microprocessor
Supervisor, Alarm, and NV RAM Controller
______________________________________________________________________________________ 11
WATCHDOG
TIMER
DEBOUNCE
CIRCUIT
RESET
LOGIC
RESET
CE
CONTROL
CE_OUT
OSCILLATOR
32.768kHz
CRYSTAL-
FAIL
DETECT
DIVIDERS
SECONDS
MINUTES
HOURS
DATE
MONTH
DAY
YEAR
CONTROL
CENTURY
ALARM
CONFIG
BATT
TEST
STATUS
CONFIG
ALARM
THRESHOLDS
CLOCK
BURST
RAM
BURST
POWER
CONTROL
AND
MONITOR
CONTROL
LOGIC
INPUT-
SHIFT
REGISTERS
ADDRESS
REGISTER
96 x 8
RAM
DATA
VALID
LOGIC
ALARM
CONTROL
LOGIC
XTAL FAIL
MAX6916
WDI
MR
X1
X2
CE_IN
TEST
TRIP
GND
V
BATT
V
OUT
V
CC
BATT_LO
BATT_ON
SCLK
CS
DIN
DOUT
ALM
Figure 1. Functional Diagram
MAX6916
SPI-Compatible RTC with Microprocessor
Supervisor, Alarm, and NV RAM Controller
12 ______________________________________________________________________________________
microcontroller acts as the master in an SPI application.
CS is asserted low by the microcontroller to initiate a
transfer and deasserted high to terminate a transfer.
DIN transfers input data to the MAX6916 from the
microcontroller, and DOUT transfers output data from
the MAX6916 to the microcontroller. SCLK is used to
synchronize data movement between the microcon-
troller and the MAX6916. SCLK, which is generated by
the microcontroller, is active only during address and
data transfer to any device on the SPI bus. The inactive
clock polarity is usually programmable on the micro-
controller side of the SPI interface. For the MAX6916,
input data (DIN) is latched on the positive edge and
output data (DOUT) is shifted out on the negative edge.
There is one clock for each bit transferred. Address
and data bits are transferred in groups of eight. Figure
2 shows an SPI bus timing diagram.
The SPI protocol allows for one of four combinations of
serial clock phase and polarity from the microcontroller,
through a 2-bit selection in its SPI control register. The
clock polarity is specified by the CPOL control bit,
which selects active-high or active-low clock, and has
no significant effect on the transfer format. The clock-
phase control bit, CPHA, selects one of two different
transfer formats. The clock phase and polarity must be
identical for the master and the slave. For the
MAX6916, set the control bits to CPHA = 1 and CPOL =
1. This setting configures the system for data to be
launched on the negative edge of SCLK and sampled
on the positive edge. With CPHA equal to 1, CS can
remain low between successive data byte transfers,
allowing burst-mode data transfers to occur.
Address and data bytes are shifted, most significant bit
(MSB) first, into the serial data input DIN of the
MAX6916 and out of the serial data output DOUT. Data
is shifted out at the negative edge of SCLK and shifted
in or sampled at the positive edge of SCLK. Any trans-
fer requires the address of the byte to be followed by 1
or more bytes of data. Data is transferred out of DOUT
for a read operation and into DIN for a write operation.
When not transferring data out, DOUT is put into a high-
impedance state (Figure 2).
To maximize battery life and prevent erroneous data
from being entered into the MAX6916, the serial bus
interface is disabled when V
CC
is below V
RST
or when
RESET is active.
In order to initiate SPI communications with the
MAX6916, CS needs to be driven low, after which an
address/command byte must be input. The
address/command byte specifies the register to or from
which information is to be transferred, as well as the
nature of the transfer (read or write). After the
address/command byte, 1 or more data bytes can be
written or read. For a single-byte transfer, 1 byte is writ-
ten or read and then CS is driven high by the microcon-
troller (Figures 3 and 5). For a multiple-byte transfer,
however, multiple bytes can be read or written to the
MAX6916 after the address/command byte has been
written (Figures 4 and 6). In the case of burst operation,
each read or write cycle causes the RTC register or
RAM address to automatically increment. Incrementing
continues (maximum value is 96 for RAM and 8 for reg-
ister bank) until SPI transmission is terminated. To ter-
minate the SPI transmission, drive CS high.
CS
SCLK
DIN
DOUT
t
CSS
t
CH
t
DH
t
DS
D7 D6 D5 D0
D7 D0
t
CP
t
DO
t
CSW
t
CSH
t
CSZ
t
CL
Figure 2. SPI Bus 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