SCPS275A July 2021 – December 2021 TCA9536
PRODUCTION DATA
The Input Port register (register 0) reflects the incoming logic levels of the pins, regardless of whether the pin is defined as an input or an output by the Configuration register. It only acts on read operation. Writes to these registers have no effect. The default value, X, is determined by the externally applied logic level. See Table 8-3.
Before a read operation, a write transmission is sent with the command byte to instruct the I2C device that the Input Port register will be accessed next.
BIT | I7 | I6 | I5 | I4 | I3 | I2 | I1 | I0 |
Not Used | ||||||||
DEFAULT | 1 | 1 | 1 | 1 | X | X | X | X |
The Output Port register (register 1) shows the outgoing logic levels of the pins defined as outputs by the Configuration register. Bit values in this register have no effect on pins defined as inputs. In turn, reads from this register reflect the value that is in the flip-flop controlling the output selection, not the actual pin value. See Table 8-4.
BIT | O7 | O6 | O5 | O4 | O3 | O2 | O1 | O0 |
Not Used | ||||||||
DEFAULT | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
The Polarity Inversion register (register 2) allows polarity inversion of pins defined as inputs by the Configuration register. If a bit in this register is set (written with 1), the corresponding port pin's polarity is inverted. If a bit in this register is cleared (written with a 0), the corresponding port pin's original polarity is retained. See Table 8-5.
BIT | N7 | N6 | N5 | N4 | N3 | N2 | N1 | N0 |
Not Used | ||||||||
DEFAULT | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
The Configuration register (register 3) configures the directions of the I/O pins. If a bit in this register is set to 1, the corresponding port pin is enabled as an input with high-impedance output driver. If a bit in this register is cleared to 0, the corresponding port pin is enabled as an output. See Table 8-6.
BIT | C7 | C6 | C5 | C4 | C3 | C2 | C1 | C0 |
Not Used | ||||||||
DEFAULT | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
The Special Function register (register 0x50) configures the directions of the I/O pins. If P3 as INT is set to 1, the function of P3 will change to an INT output. If PU Disabled is set to 1, all the internal pull-up resistors on the P ports are disabled, this includes the P3 port if it's configured as an INT output. See Table 8-6.
BIT | S7 | S6 | S5 | S4 | S3 | S2 | S1 | S0 |
P3 as INT | PU Disabled | Not Used | ||||||
DEFAULT | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |