NXP Semiconductors
PCF8574; PCF8574A
Remote 8-bit I/O expander for I
2
C-bus with interrupt
8.3 Reading from a port (Input mode)
The port must have been previously written to logic 1, which is the condition after
power-on reset. To enter the Read mode the master (microcontroller) addresses the slave
device and sets the last bit of the address byte to logic 1 (address byte read). The slave
will acknowledge and then send the data byte to the master. The master will NACK and
then send the STOP condition or ACK and read the input register again.
The read of any pin being used as an output will indicate HIGH or LOW depending on the
actual state of the pin.
If the data on the input port changes faster than the master can read, this data may be
lost. The DATA 2 and DATA3 are lost because these data did not meet the setup time and
hold time (see
slave address
SDA S A6 A5 A4 A3 A2 A1 A0 1
START condition
read from
port
R/W
A
data from port
DATA 1
A
data from port
DATA 4
no acknowledge
from master
1
P
STOP
condition
acknowledge
from slave
acknowledge
from master
DATA 2
data at
port
INT
t
v(INT)
t
rst(INT)
t
rst(INT)
002aah383
DATA 1
t
h(D)
DATA 3
t
su(D)
DATA 4
A LOW-to-HIGH transition of SDA while SCL is HIGH is defined as the STOP condition (P). Transfer of data can be stopped at
any moment by a STOP condition. When this occurs, data present at the last acknowledge phase is valid (output mode). Input
data is lost.
Fig 9.
Read mode (input)
Simple code for Read mode:
<S> <slave address + read> <ACK> <data
in>
<ACK> ... <data
in>
<ACK> <data
in>
<NACK> <P>
Remark:
Bold type = generated by slave device.
8.4 Power-on reset
When power is applied to V
DD
, an internal Power-On Reset (POR) holds the
PCF8574/74A in a reset condition until V
DD
has reached V
POR
. At that point, the reset
condition is released and the PCF8574/74A registers and I
2
C-bus/SMBus state machine
will initialize to their default states of all I/Os to inputs with weak current source to V
DD
.
Thereafter V
DD
must be lowered below V
POR
and back up to the operation voltage for
power-on reset cycle.
PCF8574_PCF8574A
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2013. All rights reserved.
Product data sheet
Rev. 5 — 27 May 2013
9 of 33