DS1388 Maxim, DS1388 Datasheet - Page 17

no-image

DS1388

Manufacturer Part Number
DS1388
Description
The DS1388 I²C real-time clock (RTC), supervisor, and EEPROM is a multifunction device that provides a clock/calendar, programmable watchdog timer, power-supply monitor with reset, and 512 bytes of EEPROM
Manufacturer
Maxim
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DS1388Z-3+
Manufacturer:
Vishay
Quantity:
701
Part Number:
DS1388Z-33
Quantity:
1 881
Part Number:
DS1388Z-33
Manufacturer:
MAX
Quantity:
20 000
Part Number:
DS1388Z-33+
Manufacturer:
Maxim
Quantity:
7 784
Company:
Part Number:
DS1388Z-33+
Quantity:
15 000
Part Number:
DS1388Z-33+T&R
Manufacturer:
MAXIM
Quantity:
13 000
Part Number:
DS1388Z-33+T&R
Manufacturer:
MAXIM
Quantity:
500
Part Number:
DS1388Z-33+T&R
0
Part Number:
DS1388Z-5+
Manufacturer:
ALLEGRO
Quantity:
11 493
Part Number:
DS1388Z-5+
0
Since the DS1388 does not acknowledge during an
EEPROM write cycle, acknowledge polling can be used
to determine when the cycle is complete (this feature
can be used to maximize bus throughput). Once the
master issues the STOP condition for a write command,
the DS1388 initiates the internally timed write cycle.
ACK polling can be initiated immediately. This involves
the master sending a START condition, followed by the
slave address byte for a write command (R/W = 0) to
the EEPROM. If the device is still busy with the write
cycle, then a NACK is returned. If the cycle is com-
plete, then the device returns the ACK and the master
can then proceed with the next read or write command.
The RTC registers in block 0 are accessible during an
EEPROM write cycle.
Read operations are initiated in the same way as write
operations with the exception that the R/W bit of the
slave address is set to 1. There are three basic types of
read operations: current address read, random read,
and sequential read.
The DS1388 contains an address pointer that main-
tains the last address accessed, internally increment-
ed by 1. Therefore, if the previous access (either a
read or write operation) was to address n, the next cur-
rent address read operation would access data from
address n + 1. Upon receipt of the slave address with
the R/W bit set to 1, the DS1388 issues an acknowl-
edge and transmits the 8-bit data byte. The master
issues a NACK followed by a STOP condition, and the
DS1388 discontinues transmission.
Figure 7. Data Write—Slave Receiver Mode
S - START
A - ACKNOWLEDGE (ACK)
P - STOP
R/W - READ/WRITE OR DIRECTION BIT ADDRESS
S
ADDRESS>
1101000
<SLAVE
I
2
Acknowledge Polling
C RTC/Supervisor with Trickle Charger
0
<R/W>
Current Address Read
A
<WORD ADDRESS (n)>
Read Operation
XXXXXXXX
SLAVE TO MASTER
____________________________________________________________________
A
XXXXXXXX
<DATA (n)>
MASTER TO SLAVE
and 512 Bytes EEPROM
Random read operations allow the master to access any
memory location in a random manner. To perform this
type of read operation, first the word address must be
set. This is done by sending the word address to the
DS1388 as part of a write operation. After the word
address is sent, the master generates a START condi-
tion following the acknowledge. This terminates the write
operation, but not before the internal address pointer is
set. Then the master issues the slave address byte
again but with the R/W bit set to 1. The DS1388 then
issues an acknowledge and transmits the 8-bit data
byte. The master issues a NACK followed by a STOP
condition, and the DS1388 discontinues transmission.
Sequential reads are initiated in the same way as a ran-
dom read except that after the DS1388 transmits the
first data byte, the master issues an acknowledge as
opposed to a STOP condition in a random read. This
directs the DS1388 to transmit the next sequentially
addressed 8-bit byte. To provide sequential reads, the
DS1388 contains an internal address pointer, which is
incremented by one at the completion of each opera-
tion. This allows the entire memory contents of the
block specified in the slave address to be serially read
during one operation. The master terminates the read
by generating a NACK followed by a STOP condition.
No page boundaries exist for read operations. When
the address pointer reaches the end of an EEPROM
block (FFh), the address pointer wraps to the beginning
(00h) of the same block.
The DS1388 can operate in the two modes illustrated in
Figures 7 and 8.
A
(X + 1 BYTES + ACKNOWLEDGE)
<DATA (n + 1)>
XXXXXXXX
DATA TRANSFERRED
A
...
<DATA (n + X)
XXXXXXXX
Sequential Read
Random Read
A
P
17

Related parts for DS1388