Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

Z8622912SSC View Datasheet(PDF) - Zilog

Part Name
Description
MFG CO.
'Z8622912SSC' PDF : 52 Pages View PDF
ZiLOG
<
065% .KPG  %%& &GEQFGT
A write command to the Z86229 should always be preceded
by executing a Status read to verify that the Z86229 is not
busy. The Status register data is output immediately fol-
lowing the reception of the Slave Address Read. If the RDY
bit is set, the master device can initiate its write sequence,
always beginning with the Start condition. The first byte of
a two-byte command is always written first.
An example of the masters sequence for writing a two-byte
command (after RDY had been checked) would be:
Start
Slave Address Write/Slave ACK
CMD (master)/ Slave ACK
DATA (master)/Slave ACK
Stop
I2CTwo-Byte Write (Command & Data)
STRT
SLAVE
ADDR
WRITE
CMD
(WRITE=28h)
I2C One-Byte Write (Command)
WRITE
DATA
STOP
Caution: If the DAV bit is not set, the I2C master device should
not attempt to read any data bytes. Attempting to read
data bytes from the I2C master device may cause a loss
of data from the Z86229 output registers.
The number of data bytes available is indicated by the state
of the RD2 bit of the serial status. In a typical read operation,
the status byte is read, and the DAV and RD2 bits are ex-
amined. If one or two data bytes are available, the data is
read in sequence, separated by acknowledges.
Note: In all I2C Read operations (one, two, and three byte as de-
fined in Figure 10) the most recent byte read from the
Z86229 should be acknowledged by the master with a
NACK (Not ACKnowledge). It is also necessary to read
all available data in a read operation to clear the DAV bit
and permit subsequent reads. The DAV is cleared by the
master clocking out of the eighth bit of the most recent
data-byte read. The DAV is never cleared by just reading
the SSB (one-byte read) alone. All data is first output as
MSB.
STRT
SLAVE
ADDR
(WRITE=28h)
WRITE
CMD
STOP
Note: A Status Register RDY bit must be read and checked prior to
the STRT condition of either WRITE sequence above. See the One-
Byte Read (Status Only) in Figure 10 for more information on reading
the Status Register.
Figure 9. I2C Bus WRITE (Command)
The slaves sequence for reading two data bytes (total of
three bytes including SSB) from the Z86229 is given as:
Start
Slave Address Read/Slave ACK
SS Byte/Master ACK
Byte (slave)/Master ACK
Byte (slave)/Master NACK
Stop
Reading Data Using the I2C Bus
With the exception of the Serial Status (SS) register, which
may be read at any time, each read operation must be set
up before the data can be read from the serial output registers
of the Z86229. Data is set up for a read operation either au-
tomatically or manually. The XDS data reads are set up au-
tomatically upon recovery by setting a valid XDS FILTER
register selection. All other data read operations must be set
up manually using the READ SELECT commands RDS1
and RDS2. These commands load the selected data byte or
pair of bytes into the serial output register(s), setting the SS
register RD2 bit according to the number of data bytes re-
quested. The SS register DAV bit is also set at that time to
indicate the availability of data.
The Z86229 I2C Bus supports one-, two-, and three-byte
read sequences. All read sequences output the SS register
as the first output byte. If the serial status DAV bit is set, a
two or three byte read sequence can then be initiated, be-
ginning with a new STRT condition.
I2C One-Byte Read (Status Only)
STRT
SLAVE
ADDR
SERIAL
STATUS
STOP
(READ=29h)
(SSB)
NACK
I2C Two-Byte Read (Status & Data1)
STRT
SLAVE
ADDR
SERIAL
STATUS
READ
DATA1
STOP
(READ=29h)
(SSB)
NACK
I2C Three-Byte Read (Status, Data1, & Data2)
STRT
SLAVE
ADDR
SERIAL
STATUS
READ
DATA1
READ
DATA2
STOP
(READ=29h)
(SSB)
NACK
Note: In all I2C Read operations defined herein, the last byte read
from the Z86229 must be acknowledged by the master with a
NACK (Not ACKnowledge).
Figure 10. I2C Bus READ (Command)
&5 
24'.+/+0#4;

Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]