pca9655e ON Semiconductor, pca9655e Datasheet - Page 11

no-image

pca9655e

Manufacturer Part Number
pca9655e
Description
Pca9655e Remote 16-bit I/o Expander For I2c Bus With Interrupt
Manufacturer
ON Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
pca9655eDTR2G
Manufacturer:
FREESCALE
Quantity:
1 000
Part Number:
pca9655eDWR2G
Manufacturer:
ON Semiconductor
Quantity:
500
Writing to the Port Registers
first send the device address with the least significant bit set
to logic 0 (see Figure 5 “PCA9655E device address”). The
command byte is sent after the address and determines
which registers will receive the data following the command
byte.
registers are configured to operate as four register pairs:
Reading the Port Registers
first send the PCA9655E address with the least significant
bit set to logic 0 (see Figure 5 “PCA9655E device address”).
The command byte is sent after the address and determines
which register will be accessed.
this time, the least significant bit is set to logic 1. Data from
the register defined by the command byte will then be sent
write to port
SDA
SCL
from port 0
from port 1
To transmit data to the PCA9655E, the bus master must
There are eight registers within the PCA9655E. These
To read data from the PCA9655E, the bus master must
After a restart, the device address must be sent again, but
data out
data out
SDA
S A6
SCL
START condition
1
S A6
START condition
A5 A4 A3
2
1
slave address
3
A5 A4 A3
2
4
slave address
3
5
A2 A1 A0 0
4
6
5
A2 A1 A0 0
7
6
R/W acknowledge
8
7
R/W acknowledge
9
A
from slave
8
9
0
A
from slave
Figure 7. Write to Configuration Registers
0
0
Figure 6. Write to Output Port Registers
command byte
0
0
command byte
0
0
0
0
BUS TRANSACTIONS
0
1
http://onsemi.com
0
1
1
0
0
A
acknowledge
from slave
11
MSB
A
acknowledge
from slave
Input Ports, Output Ports, Polarity Inversion Ports, and
Configuration Ports. Data bytes are sent alternately to each
register in a register pair (see Figures 6 and 7). For example,
if one byte is sent to Output Port 1 (register 3), then the next
byte will be stored in Output Port 0 (register 2). There is no
limitation on the number of data bytes sent in one write
transmission. In this way, each 8−bit register may be updated
independently of the other registers.
by the PCA9655E (see Figures 8, 9 and 10). 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 with data alternately coming from each register in
the pair. For example, if you read Input Port 1, then the next
byte read would be Input Port 0. There is no limitation on the
number of data bytes received in one read transmission but
the bus master must not acknowledge the data for the final
byte received.
0.7
data to register
data to port 0
DATA 0
DATA 0
t
v(Q)
LSB
0.0
A
acknowledge
from slave
A
acknowledge
from slave
MSB
1.7
data to register
data to port 1
DATA 1
DATA 1
DATA VALID
t
v(Q)
LSB
1.0
A
A
condition
condition
STOP
STOP
P
P

Related parts for pca9655e