CHAPTER 5

I/O PORTS

The I/O ports of the 8XC196Lx are functionally identical to those of the 8XC196Jx. However, on the 87C196LA and LB, the reset state level of all 41 general-purpose I/O pins has changed from a weak logic “1” (wk1) to a weak logic “0” (wk0). This chapter outlines the differences between the 87C196LA, LB and the 8XC196Kx controllers.

5.1I/O PORTS OVERVIEW

Table 5-1 provides an overview of the 8XC196Lx and 8XC196Kx I/O ports.

Table 5-1. Microcontroller Ports

 

Port

 

Pins

Type

Configuration

Associated Peripheral or

 

 

Options

System Function

 

 

 

 

 

 

 

 

 

 

 

 

Port 0

 

8

(Kx)

Standard

Input-only

A/D converter

 

6

(CA, Jx, Lx)

(not supported on LD)

 

 

 

 

 

 

 

 

 

 

 

Port 1

 

8

(Kx)

Standard

Complementary

EPA and timers

 

4

(CA, Jx, Lx)

Open-drain

 

 

 

 

 

 

 

 

 

 

 

 

 

8

(Kx)

 

Complementary

J1850 (LB only), SIO,

Port 2

 

Standard

interrupts, bus control, clock

 

6

(CA, Jx, Lx)

Open-drain

 

 

 

gen.

 

 

 

 

 

 

 

 

 

 

 

 

 

Port 3

 

8

 

Memory mapped

Complementary

Address/data bus

 

 

Open-drain

 

 

 

 

 

 

 

 

 

 

 

 

 

Port 4

 

8

 

Memory mapped

Complementary

Address/data bus

 

 

Open-drain

 

 

 

 

 

 

 

 

 

 

 

 

 

Port 5

 

8

(Kx)

Memory mapped

Complementary

Bus control, slave port

 

3

(CA, Jx, Lx)

Open-drain

 

 

 

 

 

 

 

 

 

 

 

Port 6

 

8

(Kx)

Standard

Complementary

EPA, SSIO

 

6

(CA, Jx, Lx)

Open-drain

 

 

 

 

 

 

 

 

 

 

 

5.2INTERNAL STRUCTURE FOR PORTS 1, 2, 5, AND 6 (BIDIRECTIONAL PORTS)

Figure 5-1 shows the logic for driving the output transistors, Q1 and Q2. Consult the datasheet for specifications on the amount of current that each port can source or sink.

In I/O mode (selected by clearing a port mode register bit), the port data output and the port di- rection registers are input to the multiplexers. These signals combine to drive the gates of Q1 and Q2 so that the output is high, low, or high impedance.

In special-function mode (selected by setting a port mode register bit), SFDIR and SFDATA are input to the multiplexers. These signals combine to drive the gates of Q1 and Q2 so that the output is high, low, or high impedance. Special-function output signals clear SFDIR; special-function

5-1

Page 45
Image 45
Intel 8XC196Lx, 8XC196Jx, 8XC196Kx, 87C196CA user manual Chapter Ports, I/O Ports Overview, Microcontroller Ports, EPA, Ssio