X24C04
It should be noted that the ninth clock cycle of the read
operation is not a “don’t care.” To terminate a read
Page Write
The X24C04 is capable of a sixteen byte page write
operation. It is initiated in the same manner as the byte
operation, the master must either issue a stop condition
during the ninth cycle or hold SDA HIGH during the ninth
write operation, but instead of terminating the write cycle after
the first data word is transferred, the master can
clock cycle and then issue a stop condition.
transmit up to fifteen more words. After the receipt of each
word, the X24C04 will respond with an acknowledge.
Flow 1. ACK Polling Sequence
After the receipt of each word, the four low order address bits
are internally incremented by one. The high order five
WRITE OPERATION
COMPLETED
ENTER ACK POLLING
bits of the address remain constant. If the master should
transmit more than sixteen words prior to generating the
stop condition, the address counter will “roll over” and the
previously written data will be overwritten. As with the byte
ISSUE
START
write operation, all inputs are disabled until completion of the
internal write cycle. Refer to Figure 6 for the address,
acknowledge and data transfer sequence.
ISSUE SLAVE
ISSUE STOP
ADDRESS AND R/W = 0
Acknowledge Polling
The disabling of the inputs can be used to take advan- tage
of the typical 5 ms write cycle time. Once the stop
ACK
RETURNED?
NO
condition is issued to indicate the end of the host’s write
operation the X24C04 initiates the internal write cycle.
ACK polling can be initiated immediately. This involves
issuing the start condition followed by the slave address
YES
for a write operation. If the X24C04 is still busy with the write
operation no ACK will be returned. If the X24C04
NEXT
OPERATION
A WRITE?
NO
has completed the write operation an ACK will be
returned and the host can then proceed with the next
read or write operation. Refer to Flow 1.
YES
READ OPERATIONS
ISSUE BYTE
ADDRESS
ISSUE STOP
PROCEED
Read operations are initiated in the same manner as write
operations with the exception that the R/W bit of the
slave address is set to a one. There are three basic read
operations: current address read, random read and
PROCEED
sequential read.
3839 FHD F12
Figure 6. Page Write
S
T
A
R
T
S
T
SLAVE
ADDRESS
WORD
ADDRESS (n)
BUS ACTIVITY:
MASTER
DATA n
DATA n+1
DATA n+15
O
P
SDA LINE
S
P
A
C
K
A
C
K
A
C
K
A
C
K
A
C
K
BUS ACTIVITY:
X24C04
3839 FHD F11
NOTE: In this example n = xxxx 000 (B); x = 1 or 0
6