English
Language : 

AMIS-30624 Datasheet, PDF (42/56 Pages) AMI SEMICONDUCTOR – I2C Microstepping Motordriver
AMIS-30624
15.6.1.2 Reading Data to AMIS-30624
When reading data from AMIS-30624 two transmissions are needed:
1) The first transmission consists of two bytes of data:
• The first byte contains the slave address and the write bit.
• The second byte contains the address of an internal register in the AMIS-30624. This internal register address is stored in the
circuit RAM.
S Slave Address R/W A Internal Address A P
"0" = WRITE
PC20070219.5
Figure 31: Master Reading Data from AMIS-30624: First Transmission is Addressing
2) The second transmission consists of the slave address and the read bit. Then the master can read the data bits on the SDA line on
every rising edge of signal SCK. After each byte of data the master has to acknowledge correct data reception by pulling SDA LOW.
The last byte is not acknowledged by the master and therefore the slave knows the end of transmission.
S Slave Address R/W A
Data
A
Data
AP
"0" = WRITE
N bytes + Acknowledge
Master to AMIS-30624
AMIS-30624 to Master
S = Start condition
P = Stop condition
A = Acknowledge (SDA = LOW)
A = No Acknowledge (SDA = HIGH)
PC20070219.3
Figure 32: Master Reading Data from AMIS-30624: Second Transmission is Reading Data
Notes:
(1)
(2)
(3)
Each byte is followed by an acknowledgment bit as indicated by the A or Ā in the sequence.
I2C-bus compatible devices must reset their bus logic on receipt of a START condition such that they all anticipate the sending of a slave address, even if these
START conditions are not positioned according to the proper format.
A START condition immediately followed by a STOP condition (void message) is an illegal format.
15.7 7-bit Addressing
The addressing procedure for the I2C-bus is such that the first byte after the START condition usually determines which slave will be
selected by the master. The exception is the general call address which can call all devices. When this address is used all devices
should respond with an acknowledge. The second byte of the general call address then defines the action to be taken.
15.7.1. Definition of Bits in the First Byte
The first seven bits of the first byte make up the slave address. The eighth bit is the least significant bit (LSB). It determines the
direction of the message. If the LSB is a “zero” it means that the master will write information to a selected slave. A “one” in this position
means that the master will read information from the slave. When an address is sent, each device in a system compares the first seven
bits after the START condition with its address. If they match, the device considers itself addressed by the master as a slave-receiver or
slave-transmitter, depending on the R/ W bit.
MSB
LSB
R/W
SLAVE ADDRESS
PC20070219.2
Figure 33: First Byte after START Procedure
Rev. 4 | Page 42 of 56 | www.onsemi.com