JAJSVR9K December 2005 – December 2024 PCA9557
PRODUCTION DATA
Following the successful acknowledgment of the address byte, the bus controller sends a command byte that is stored in the control register in the PCA9557. Two bits of this data byte state the operation (read or write) and the internal registers (input, output, polarity inversion or configuration) that is affected. This register is written or read through the I2C bus. The command byte is sent only during a write transmission.
Once a new command byte has been sent, the register that was addressed continues to be accessed by reads until a new command byte has been sent. Figure 7-8 shows the PCA9557 control register bits.
Figure 7-8 Control Register BitsTable 7-3 shows the PCA9557 command byte.
| CONTROL REGISTER BITS | COMMAND BYTE (HEX) | REGISTER | PROTOCOL | POWER-UP DEFAULT | |
|---|---|---|---|---|---|
| B1 | B0 | ||||
| 0 | 0 | 0×00 | Input Port | Read byte | ×××× ×××× |
| 0 | 1 | 0×01 | Output Port | Read/write byte | 0000 0000 |
| 1 | 0 | 0×02 | Polarity Inversion | Read/write byte | 1111 0000 |
| 1 | 1 | 0×03 | Configuration | Read/write byte | 1111 1111 |