MAX6902
SPI-Compatible RTC in a TDFN
_______________________________________________________________________________________ 7
REGISTER ADDRESS REGISTER DEFINITION
FUNCTION A7 A6 A5 A4 A3 A2 A1 A0 VALUE D7 D6 D5 D4 D3 D2 D1 D0
RAM
RAM 0 RD 1 0 0 0 0 0 1 RAM DATA 0 xxxxxxxx
/W
••
••
••
••
••
••
RAM 30 RD 1 1 1 1 1 0 1 RAM DATA 30 xxxxxxxx
/W
RAM BURST RD 1111111
/W
Note: *POR STATE defines power-on reset state of register contents.
Figure 2. Register Address Definition (Sheet 3 of 3)
Table 2. Register Address and Description
WRITE (HEX) READ (HEX) DESCRIPTION POR CONTENTS (HEX)
01 81 Seconds 00
03 83 Minutes 00
05 85 Hours 00
07 87 Date 01
09 89 Month 01
0B 8B Day 01
0D 8D Year 70
0F 8F Control 00
13 93 Century 19
15 95 Alarm Configuration 00
17 97 Reserved 07
19 99 Seconds Alarm Threshold 7F
1B 9B Minutes Alarm Threshold 7F
1D 9D Hours Alarm Threshold BF
1F 9F Date Alarm Threshold 3F
21 A1 Month Alarm Threshold 1F
23 A3 Day Alarm Threshold 07
25 A5 Year Alarm Threshold FF
3F BF Clock Burst Not applicable
MAX6902
SPI-Compatible RTC in a TDFN
8 _______________________________________________________________________________________
Table 2. Register Address and Description (continued)
WRITE (HEX) READ (HEX) DESCRIPTION POR CONTENTS (HEX)
41 C1 RAM 0 Indeterminate
43 C3 RAM 1 Indeterminate
45 C5 RAM 2 Indeterminate
47 C7 RAM 3 Indeterminate
49 C9 RAM 4 Indeterminate
4B CB RAM 5 Indeterminate
4D CD RAM 6 Indeterminate
4F CF RAM 7 Indeterminate
51 D1 RAM 8 Indeterminate
53 D3 RAM 9 Indeterminate
55 D5 RAM 10 Indeterminate
57 D7 RAM 11 Indeterminate
59 D9 RAM 12 Indeterminate
5B DB RAM 13 Indeterminate
5D DD RAM 14 Indeterminate
5F DF RAM 15 Indeterminate
61 E1 RAM 16 Indeterminate
63 E3 RAM 17 Indeterminate
65 E5 RAM 18 Indeterminate
67 E7 RAM 19 Indeterminate
69 E9 RAM 20 Indeterminate
6B EB RAM 21 Indeterminate
6D ED RAM 22 Indeterminate
6F EF RAM 23 Indeterminate
71 F1 RAM 24 Indeterminate
73 F3 RAM 25 Indeterminate
75 F5 RAM 26 Indeterminate
77 F7 RAM 27 Indeterminate
79 F9 RAM 28 Indeterminate
7B FB RAM 29 Indeterminate
7D FD RAM 30 Indeterminate
7F FF RAM Burst Not applicable
MAX6902
SPI-Compatible RTC in a TDFN
_______________________________________________________________________________________ 9
Command and Control
Address/Command Byte
Each data transfer into or out of the MAX6902 is initiated
by an Address/Command byte. The Address/Command
byte specifies which registers are to be accessed, and
if the access is a read or a write. Figure 2 shows the
Address/Command bytes and their associated regis-
ters, and Table 2 lists the hex codes for all read and
write operations. The Address/Command bytes are
input MSB (bit 7) first. Bit 7 specifies a write (logic 0) or
read (logic 1). Bit 6 specifies register data (logic 0) or
RAM data (logic 1). Bits 5–1 specify the designated reg-
ister to be written or read. The LSB (bit 0) must be logic
1. If the LSB is a zero, writes to the MAX6902 are dis-
abled.
Clock Burst Mode
Sending the Clock Burst Address/Command (3Fh for
Write and BFh for Read), specifies burst-mode opera-
tion. In this mode, multiple bytes are read or written
after a single Address/Command. The first seven
clock/calendar registers (Seconds, Minutes, Hours,
Date, Month, Day, and Year) and the Control register
are consecutively read or written, starting with the MSB
of the Seconds register. When writing to the clock reg-
isters in burst mode, all seven clock/calendar registers
and the Control register must be written in order for the
data to be transferred. See Example: Setting the Clock
with a Burst Write.
RAM Burst Mode
Sending the RAM Burst Address/Command (F7h for
Write, FFh for Read) specifies burst-mode operation. In
this mode, the 31 RAM locations can be consecutively
read or written, starting at 41h for Writes, and C1h for
Reads. A Burst Read outputs all 31 bytes of RAM.
When writing to RAM in burst mode, it is not necessary
to write all 31 bytes for the data to transfer; each com-
plete byte written is transferred to RAM. When reading
from RAM, data are output until all 31 bytes have been
read, or until CS is driven high.
Setting the Clock
Writing to the Timekeeping Registers
The time and date are set by writing to the timekeeping
registers (Seconds, Minutes, Hours, Date, Month, Day,
Year, and Century). During a write operation, an input
buffer accepts the new time data while the timekeeping
registers continue to increment normally, based on the
crystal counter. The buffer also keeps the timekeeping
registers from changing as the result of an incomplete
write operation, and collision-detection circuitry
ensures that a Time Write does not occur coincident
with a Seconds register increment. The updated time
data are loaded into the timekeeping registers after the
rising edge of CS, at the end of the SPI write operation.
An incomplete write operation aborts the update proce-
dure, and the contents of the input buffer are discard-
ed. The timekeeping registers reflect the new time
beginning with the first Seconds register increment
after the rising edge of CS.
Although both Single Writes and Burst Writes are possi-
ble, the best way to write to the timekeeping registers is
with a Burst Write. With a Burst Write, the main time-
keeping registers (Seconds, Minutes, Hours, Date,
Month, Day, Year) and the Control register are written
sequentially following the Address/Command byte.
They must be written as a group of eight registers, with
8 bits each, for proper execution of the Burst Write
function. All seven timekeeping registers are simultane-
ously loaded into the clock counters by the rising edge
of CS, at the end of the SPI write operation. For a nor-
mal burst data transfer, the worst-case error that can
occur between the actual time and the written time
update is 1s.
If single write operations are used to enter data into the
timekeeping registers, error checking is required. If not
writing to the Seconds register, begin by reading the
Seconds register and save it as initial-seconds. Then
write to the required timekeeping registers, and finally
read the Seconds register again (final-seconds). Check
to see that final-seconds is equal to initial-seconds. If
not, repeat the write process. If writing to the Seconds
register, update the Seconds register first, and then
read it back and store its value (initial-seconds).
Update the remaining timekeeping registers and then
read the Seconds register again (final-seconds). Check
to see that final-seconds is equal to initial-seconds. If
not, repeat the write process.
Note: After writing to any time or date register, no read
or write operations are allowed for 45µs.
AM/PM and 12Hr/24Hr Mode
Bit 7 of the Hours register selects 12hr or 24hr mode.
When high, 12hr mode is selected. In 12hr mode, bit 5 is
the AM/PM bit, logic high for PM. In 24hr mode, bit 5 is
the second 10hr bit, logic high for hours 20 through 23.
Write-Protect Bit
Bit 7 of the Control register is the Write-Protect bit.
When high, the Write-Protect bit prevents write opera-
tions to all registers except itself. After initial settings
are written to the timekeeping registers, set the Write-
Protect bit to logic 1 to prevent erroneous data from
entering the registers during power glitches or inter-
rupted serial transfers. The lower 7 bits (bits 0–6) are

MAX6902ETA+T

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
IC RTC CLK/CALENDAR SPI 8-TDFN
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet