8XC196MC, MD, MH USER’S MANUAL

Px_DIR

Px_DIR

x = 2, 5 (8XC196MC)

x = 2, 5, 7 (8XC196MD) x = 1, 2, 5 (8XC196MH)

Address: Table C-6 Reset State:

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 (Px_DIR) register determines the I/O direction 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 Px_REG be set.

 

7

 

 

 

 

 

 

 

 

 

 

0

x = 1 (MH)

 

 

 

 

PIN3

 

PIN2

PIN1

PIN0

 

 

7

 

 

 

 

 

 

 

 

 

 

0

x = 2, 5 (Mx)

 

 

 

 

 

 

 

 

 

 

 

 

 

PIN7

PIN6

PIN5

 

PIN4

 

PIN3

 

PIN2

PIN1

PIN0

 

 

7

 

 

 

 

 

 

 

 

 

 

0

x = 7 (MD)

 

 

 

 

 

 

 

 

 

 

 

 

 

PIN7

PIN6

PIN5

 

PIN4

 

PIN3

 

PIN2

PIN1

PIN0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

 

Bit

 

 

 

 

 

Function

 

 

 

Number

Mnemonic

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7:0

PIN7:0

Port x Pin y Direction

 

 

 

 

 

 

 

 

 

 

This bit selects the Px.y direction:

 

 

 

 

 

 

0 =

complementary output (output only)

 

 

 

 

 

 

1 =

input or open-drain output (input, output, or bidirectional open-

 

 

 

 

drain outputs require external pull-ups.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The bits shown as dashes (—) are reserved; for compatibility with future devices, write ones to these bits.

Table C-6. Px_DIR Addresses and Reset Values

Register

Address

Reset Value

 

 

 

P1_DIR (8XC196MH)

1F9BH

FFH

 

 

 

P2_DIR (8XC196Mx)

1FD2H

FFH

 

 

 

P5_DIR (8XC196Mx)

1FF3H

FFH

 

 

 

P7_DIR (8XC196MD)

1FD3H

FFH

 

 

 

C-30

Page 507
Image 507
Intel 8XC196MD, 8XC196MH, 8XC196MC manual Table C-6. PxDIR Addresses and Reset Values, = 1 MH, = 2, 5 M, = 7 MD