Intel 8XC196K Series User Manual page 578

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 (CA, J x )
7
x = 2 (CA, J x )
PIN7
7
x = 5 (CA)
7
x = 5 (J x )
7
x = 6 (CA, J x )
PIN7
7
x = 1, 2, 5, 6 (K x )
PIN7
Bit
Bit
Number
Mnemonic
7:0
PIN7:0
Table C-15. P x _DIR Addresses and Reset Values
Register
P1_DIR
P2_DIR
P5_DIR
P6_DIR
PIN6
PIN4
PIN6
PIN5
PIN4
PIN6
PIN5
PIN4
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
PIN2
PIN1
PIN3
PIN2
PIN3
PIN2
PIN1
PIN3
PIN2
PIN1
Function
Reset Value
FFH
7FH
FFH
FFH
REGISTERS
Px_DIR
Table C-15
0
PIN0
0
PIN0
0
PIN0
0
PIN0
0
PIN0
0
PIN0
C-51

Advertisement

Table of Contents
loading

Table of Contents