PCA9671 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved.
Product data sheet Rev. 3 — 29 September 2011 13 of 33
NXP Semiconductors
PCA9671
Remote 16-bit I/O expander for Fm+ I
2
C-bus with reset
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 14. Write mode (output)
A5 A4 A3 A2 A1 A0 0 ASA6
slave address
START condition R/W
acknowledge
from slave
002aac250
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
P16 pull-up output current
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
PCA9671 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved.
Product data sheet Rev. 3 — 29 September 2011 14 of 33
NXP Semiconductors
PCA9671
Remote 16-bit I/O expander for Fm+ I
2
C-bus with reset
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 15. Read input port register, scenario 1
1 0 0 A2 A1 A0 1 AS0
START condition R/W
acknowledge
from slave
002aac251
A
acknowledge
from master
SCL
SDA
A
read from port 0
data into port 0
A 1
no acknowledge
from master
P
DATA 10 DATA12
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
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
PCA9671 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved.
Product data sheet Rev. 3 — 29 September 2011 15 of 33
NXP Semiconductors
PCA9671
Remote 16-bit I/O expander for Fm+ I
2
C-bus with reset
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 16. Read input port register, scenario 2
1 0 0 A2 A1 A0 1 AS0
START condition R/W
acknowledge
from slave
002aac252
A
acknowledge
from master
SCL
SDA
A
read from port 0
data into port 0
A 1
no acknowledge
from master
P
DATA 10 DATA12
987654321
P0x
DATA 00
acknowledge
from master
P1x
DATA 10
P0x
DATA 03
acknowledge
from master
P1x
DATA 12
data into port 1
DATA 00
read from port 1
DATA 11
t
h(D)
DATA 01
t
h(D)
DATA 02
t
su(D)
DATA 03
t
su(D)

6-102203-1

Mfr. #:
Manufacturer:
TE Connectivity / AMP Connectors
Description:
Headers & Wire Housings SHROUDED RA SNGL 14 with standoffs
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union