English
Language : 

PCA9535A Datasheet, PDF (11/38 Pages) NXP Semiconductors – Low-voltage 16-bit I2C-bus I/O port with interrupt
NXP Semiconductors
PCA9535A
Low-voltage 16-bit I2C-bus I/O port with interrupt
7.2 Reading the port registers
In order to read data from the PCA9535A, the bus master must first send the PCA9535A
address with the least significant bit set to a logic 0 (see Figure 4 “PCA9535A device
address”). The command byte is sent after the address and determines which register will
be accessed. After a restart, the device address is sent again, but this time the least
significant bit is set to a logic 1. Data from the register defined by the command byte is
sent by the PCA9535A (see Figure 9, Figure 10 and Figure 11). Data is clocked into the
register on the falling edge of the acknowledge clock pulse. After the first byte is read,
additional bytes may be read but the data now reflects the information in the other register
in the pair. For example, if Input Port 1 is read, the next byte read is Input Port 0. There is
no limit on the number of data bytes received in one read transmission, but on the final
byte received the bus master must not acknowledge the data.
After a subsequent restart, the command byte contains the value of the next register to be
read in the pair. For example, if Input Port 1 was read last before the restart, the register
that is read after the restart is the Input Port 0.
slave address
command byte
SDA S 0 1 0 0 A2 A1 A0 0 A 0 0/1 0 0 0/1 0/1 0/1 0/1 A (cont.)
START condition
R/W
acknowledge
from slave
slave address
acknowledge
from slave
data from lower or
upper byte of register
MSB
LSB
(cont.) S 0 1 0 0 A2 A1 A0 1 A
DATA (first byte)
A
data from upper or
lower byte of register
MSB
LSB
DATA (last byte)
NA P
(repeated)
START condition
R/W
acknowledge
from slave
acknowledge
from master
no acknowledge STOP
from master condition
at this moment master-transmitter becomes master-receiver
and slave-receiver becomes slave-transmitter
002aah374
Remark: Transfer can be stopped at any time by a STOP condition.
Fig 9. Read from register
PCA9535A
Product data sheet
All information provided in this document is subject to legal disclaimers.
Rev. 1 — 11 September 2012
© NXP B.V. 2012. All rights reserved.
11 of 38