X24164
READ OPERATIONS
The read operation is terminated by the master; by not
responding with an acknowledge and by issuing a stop
condition. RefertoFigure7forthesequenceofaddress,
acknowledge and data transfer.
Readoperationsareinitiatedinthesamemanneraswrite
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 se-
quential read.
Random Read
Randomreadoperationsallowthemastertoaccessany
memory location in a random manner. Prior to issuing
the slave address with the R/W bit set to one, the master
must first perform a “dummy” write operation. The mas-
ter issues the start condition, and the slave address
followed by the word address it is to read. After the word
addressacknowledge,themasterimmediatelyreissues
thestartconditionandtheslaveaddresswiththeR/W bit
set to one. This will be followed by an acknowledge from
the X24164 and then by the eight bit word. The read
operationisterminatedbythemaster;bynotresponding
with an acknowledge and by issuing a stop condition.
RefertoFigure8fortheaddress, acknowledgeanddata
transfer sequence.
It should be noted that the ninth clock cycle of the read
operation is not a “don’t care.” To terminate a read
operation, the master must either issue a stop condition
duringtheninthcycleorholdSDAHIGHduringtheninth
clock cycle and then issue a stop condition.
Current Address Read
Internally the X24164 contains an address counter that
maintains the address of the last word accessed,
incremented by one. Therefore, if the last access (either
areadorwrite)wastoaddressn,thenextreadoperation
would access data from address n + 1. Upon receipt of
the slave address with the R/W set to one, the X24164
issues an acknowledge and transmits the eight bit word.
Figure 7. Current Address Read
S
T
A
R
T
S
T
O
P
SLAVE
ADDRESS
BUS ACTIVITY:
MASTER
SDA LINE
S
P
A
C
BUS ACTIVITY:
X24164
DATA
K
3846 FHD F14
Figure 8. Random Read
S
T
A
R
T
S
T
A
R
T
S
T
O
P
SLAVE
ADDRESS
WORD
ADDRESS n
SLAVE
ADDRESS
BUS ACTIVITY:
MASTER
SDA LINE
S
S
P
A
C
K
A
C
K
A
C
K
BUS ACTIVITY:
X24164
DATA n
3846 FHD F15
7