Intel 8XC196NT User Manual page 532

Table of Contents

Advertisement

P x _DIR
x = 1, 2, 5, 6
Each pin of port x can operate in any of the standard I/O modes of operation: complementary output,
open-drain output, or high-impedance input. The port x I/O direction (P x _DIR) register determines the
I/O mode for each port x pin. The register settings for an open-drain output or a high-impedance input
are identical. An open-drain output configuration requires an external pull-up. A high-impedance input
configuration requires that the corresponding bit in P x _REG be set.
7
x = 1, 2, 5, 6
PIN7
Bit
Bit
Number
Mnemonic
7:0
PIN7:0
Table C-8. P x _DIR Addresses and Reset Values
Register
P1_DIR
P2_DIR
P5_DIR
P6_DIR
PIN6
PIN5
PIN4
Port x Pin y Direction
This bit selects the P x . y direction:
1 = input/open-drain output (input, output, or bidirectional)
0 = complementary output (output only)
Address
1FD2H
1FCBH
1FF3H
1FD3H
Address:
Reset State:
PIN3
PIN2
PIN1
Function
Reset Value
FFH
7FH
FFH
FFH
REGISTERS
Px_DIR
Table C-8
0
PIN0
C-37

Advertisement

Table of Contents
loading

Table of Contents