Port Pin
†
P5.1
P5.2
P5.3
†††
P5.4
††
P5.5
††
P5.6
††
P5.7
P6.0
P6.1
†
P6.2
†
P6.3
P6.4
P6.5
P6.6
P6.7
†
This pin is not implemented on 8XC196J x and 87C196CA devices.
††
This pin is not implemented on 8XC196J x devices.
†††
P5.4/SLPINT is not implemented on 8XC196J x devices. P5.4 is
implemented on the 87C196CA as a low-speed input/output pin (but it is not
multiplexed with SLPINT).
Table 6-5 lists the registers associated with the bidirectional ports. Each port has three control reg-
isters (Px_MODE, Px_DIR, and Px_REG); they can be both read and written. The Px_PIN regis-
ter is a status register that returns the logic level present on the pins; it can only be read. The
registers for the standard ports are byte-addressable and can be windowed. The port 5 registers
must be accessed using 16-bit addressing and cannot be windowed. "Bidirectional Port Consid-
erations" on page 6-12 discusses special considerations for reading P2_REG.7 and P6_REG.7:4.
Table 6-5. Bidirectional Port Control and Status Registers
Mnemonic
Address
P1_DIR
1FD2H
P2_DIR
1FCBH
P5_DIR
1FF3H
P6_DIR
1FD3H
Table 6-4. Bidirectional Port Pins (Continued)
Special-function
Special-function
Signal(s)
INST
SLPCS#
WR#/WRL#
SLPWR#
RD#
SLPRD#
†††
SLPINT
BHE#/WRH#
READY
BUSWIDTH
EPA8
EPA9
T1CLK
T1DIR
SC0
SD0
SC1
SD1
Port x Direction
Each bit of P x _DIR controls the direction of the corresponding pin.
0 =complementary output (output only)
1 =input or open-drain output (input, output, or bidirectional)
Open-drain outputs require external pull-ups.
Associated
Signal Type
Peripheral
O
Bus controller
I
Slave port
O
Bus controller
I
Slave port
O
Bus controller
I
Slave port
O
Slave port
O
Bus controller
I
Bus controller
I
Bus controller
I/O
EPA
I/O
EPA
I
Timer 1
I
Timer 1
I/O
SSIO0
I/O
SSIO0
I/O
SSIO1
I/O
SSIO1
Description
I/O PORTS
6-5