|
AMIS-30624_13 Datasheet, PDF (39/52 Pages) ON Semiconductor – I2C Micro-stepping Motor Driver | |||
|
◁ |
AMISâ30624, NCV70624
Transferring Data
Byte Format
Every byte put on the SDA line must be 8âbits long. The
number of bytes that can be transmitted per transfer to
AMISâ30624/NCV70624 is restricted to eight. Each byte
has to be followed by an acknowledge bit. Data is transferred
SDA
START
with the most significant bit (MSB) first (See Figure 25). If
a slave canât receive or transmit another complete byte of
data, it can hold the clock line SCK LOW to force the master
into a wait state. Data transfer then continues when the slave
is ready for another byte of data and releases clock line SCK.
STOP
SCK
MSB
Acknowledgement
signal from slave
Clock line held
low by slave
1
2
START
condition
7
8
9
Aknowledge related
clock puse from master
1
2
3â8
9
ACK
STOP
condition
Figure 25. Data Transfer on the I2Câbus
Acknowledge
Data transfer with acknowledge is obligatory. The
acknowledgeârelated clock pulse is generated by the master.
The transmitter releases the SDA line (HIGH) during the
acknowledge clock pulse. The receiver must pull down the
SDA line during the acknowledge clock pulse so that it
remains stable LOW during the HIGH period of this clock
pulse (see Figure 26). Of course, setâup and hold times must
also taken into account (see Table 6). When
AMISâ30624/NCV60624 doesnât acknowledge the slave
address, the data line will be left HIGH. The master can than
generate either a STOP condition to abort the transfer, or a
repeated START condition to start a new transfer.
If AMISâ30624/NCV60624 as slaveâreceiver does
acknowledge the slave address but later in the transfer
cannot receive any more data bytes, this is indicated by
generating a notâacknowledge on the first byte to follow.
The master generates than a STOP or a repeated START
condition.
If a masterâreceiver is involved in the transfer, it must
signal the end of data to the slaveâtransmitter by not
generating an acknowledge on the last byte that was clocked
out of the slave. AMISâ30624/NCV70624 as
slaveâtransmitter shall release the data line to allow the
master to generate STOP or repeated START condition.
SDA by master
transmitter
START
Master releases the Data line
MSB
SDA by slave
receiver
Not acknowledged
SCK from
master
1
START
condition
Acknowledged
2
8
Slave pulls data line
low if Acknowledged
9
Aknowledge related
clock puse from master
Figure 26. Acknowledge on the I2Câbus
http://onsemi.com
39
|
▷ |