PCA8575_2 © NXP B.V. 2007. All rights reserved.
Product data sheet Rev. 02 — 21 March 2007 7 of 30
NXP Semiconductors
PCA8575
Remote 16-bit I/O expander for I
2
C-bus with interrupt
8. I/O programming
8.1 Quasi-bidirectional I/O architecture
The PCA8575’s 16 ports (see Figure 2) are entirely independent and can be used either
as input or output ports. Input data is transferred from the ports to the microcontroller in
the Read mode (see Figure 12). Output data is transmitted to the ports in the Write mode
(see Figure 11).
Every data transmission from the PCA8575 must consist of an even number of bytes, the
first byte will be referred to as P07 to P00, and the second byte as P17 to P10. The third
will be referred to as P07 to P00, and so on.
This quasi-bidirectional I/O can be used as an input or output without the use of a control
signal for data directions. At power-on the I/Os are HIGH. In this mode only a current
source (I
OH
) to V
DD
is active. An additional strong pull-up to V
DD
(I
trt(pu)
) allows fast rising
edges into heavily loaded outputs. These devices turn on when an output is written HIGH,
and are switched off by the negative edge of SCL. The I/Os should be HIGH before being
used as inputs. After power-on, as all the I/Os are set HIGH, all of them can be used as
inputs. Any change in setting of the I/Os as either inputs or outputs can be done with the
Write mode.
Remark: If a HIGH is applied to an I/O which has been written earlier to LOW, a large
current (I
OL
) will flow to V
SS
.
8.2 Writing to the port (Output mode)
To write, the master (microcontroller) first addresses the slave device. By setting the last
bit of the byte containing the slave address to logic 0 the Write mode is entered. The
PCA8575 acknowledges and the master sends the first data byte for P07 to P00. After the
first data byte is acknowledged by the PCA8575, the second data byte P17 to P10 is sent
by the master. Once again, the PCA8575 acknowledges the receipt of the data. Each 8-bit
data is presented on the port lines after it has been acknowledged by the PCA8575.
The number of data bytes that can be sent successively is not limited. After every two
bytes, the previous data is overwritten.
The first data byte in every pair refers to Port 0 (P07 to P00), whereas the second data
byte in every pair refers to Port 1 (P17 to P10). See Figure 10.
Fig 10. Correlation between bits and ports
A
002aab634
06 05 04 03 02 01 00
first byte
07
P06 P05 P04 P03 P02 P01 P00P07
A16 15 14 13 12 11 10
second byte
17
P16 P15 P14 P13 P12 P11 P10P17
PCA8575_2 © NXP B.V. 2007. All rights reserved.
Product data sheet Rev. 02 — 21 March 2007 8 of 30
NXP Semiconductors
PCA8575
Remote 16-bit I/O expander for I
2
C-bus with interrupt
8.3 Reading from a port (Input mode)
All ports programmed as input should be set to logic 1. To read, the master
(microcontroller) first addresses the slave device after it receives the interrupt. By setting
the last bit of the byte containing the slave address to logic 1 the Read mode is entered.
The data bytes that follow on the SDA are the values on the ports.
If the data on the input port changes faster than the master can read, this data may be
lost.
Fig 11. Write mode (output)
A5 A4 A3 A2 A1 A0 0 ASA6
slave address
START condition R/W
acknowledge
from slave
002aab632
P
06
1
P
07
data to port 0
A
acknowledge
from slave
12345678SCL 9
SDA
A
acknowledge
from slave
write to port
data output from port
t
v(Q)
P05
data to port 1
data A0 and B0 valid
P16 output voltage
I
trt(pu)
I
OH
t
d(rst)
P16 pull-up output current
INT
P
04
P
03
P
02
P
01
P
00
P
17
P
14
P
13
P
12
P
11
P
10
1
P16
P
15
t
v(Q)
data A0 and B0 valid
P05 output voltage
I
trt(pu)
I
OH
P05 pull-up output current
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx
xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx
PCA8575_2 © NXP B.V. 2007. All rights reserved.
Product data sheet Rev. 02 — 21 March 2007 9 of 30
NXP Semiconductors
PCA8575
Remote 16-bit I/O expander for I
2
C-bus with interrupt
Transfer of data can be stopped at any moment by a STOP condition. When this occurs, data present at the latest acknowledge phase is valid (output mode).
Fig 12. Read input port register, scenario 1
1 0 0 A2 A1 A0 1 AS0
START condition R/W
acknowledge
from slave
002aab810
A
acknowledge
from master
SCL
SDA
A
read from port 0
data into port 0
INT
A 1
no acknowledge
from master
P
DATA 10 DATA 12
t
v(D)
t
d(rst)
987654321
P0x
DATA 00
acknowledge
from master
P1x
DATA 11
P0x
DATA 00
acknowledge
from master
P1x
DATA 12
data into port 1
DATA 00
read from port 1
DATA 11

PCA8575PW,112

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
Interface - I/O Expanders 16-BIT I2C FM QB
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union