SCPS292 July 2025 TCA9539A-Q1
PRODUCTION DATA
Following the successful acknowledgment of the address byte, the bus controller sends a command byte (shown in Table 7-4) that is stored in the control register in the TCA9539-Q1. Three bits of this data byte state the operation (read or write) and the internal register (input, output, Polarity Inversion or Configuration) that is affected. This register can be written or read through the I2C bus. The command byte is sent only during a write transmission.
| CONTROL REGISTER BITS | COMMAND BYTE (HEX) | REGISTER | PROTOCOL | POWER-UP DEFAULT | ||
|---|---|---|---|---|---|---|
| B2 | B1 | B0 | ||||
| 0 | 0 | 0 | 0x00 | Input Port 0 | Read byte | XXXX XXXX |
| 0 | 0 | 1 | 0x01 | Input Port 1 | Read byte | XXXX XXXX |
| 0 | 1 | 0 | 0x02 | Output Port 0 | Read-write byte | 1111 1111 |
| 0 | 1 | 1 | 0x03 | Output Port 1 | Read-write byte | 1111 1111 |
| 1 | 0 | 0 | 0x04 | Polarity Inversion Port 0 | Read-write byte | 0000 0000 |
| 1 | 0 | 1 | 0x05 | Polarity Inversion Port 1 | Read-write byte | 0000 0000 |
| 1 | 1 | 0 | 0x06 | Configuration Port 0 | Read-write byte | 1111 1111 |
| 1 | 1 | 1 | 0x07 | Configuration Port 1 | Read-write byte | 1111 1111 |
When a command byte has been sent, the register pair that was addressed continues to be accessed by reads until a new command byte has been sent. Figure 7-7 shows the control register bits.