CHAPTER 5

I/O PORTS

5.1PORT 0 AND EPORT

The I/O ports of the 87C196CB are functionally identically to those of the 8XC196NT. However, the 87C196CB implements all eight pins of port 0, and the 100-pin 87C196CB also implements all eight pins of the EPORT. The associated registers have been modified to include bits corre- sponding to the upper nibble of the ports. Table 5-1 provides an overview of the 8XC196CB’s I/O ports. Figure 5-1 illustrates the port 0 pin state register, and Figures 5-2 through 5-5 illustrate the EPORT registers.

Table 5-1. 87C196CB Input/Output Ports

Port

 

Bits

Type

Direction

Associated Peripheral(s)

 

 

 

 

 

 

 

Port 0

8

 

Standard

Input-only

A/D converter

 

 

 

 

 

 

 

 

Port 1

8

 

Standard

Bidirectional

EPA and timers

 

 

 

 

 

 

 

Port 2

8

 

Standard

Bidirectional

SIO, interrupts, bus control, clock gen.

 

 

 

 

 

 

 

Port 3

8

 

Memory-mapped

Bidirectional

Address/data bus

 

 

 

 

 

 

 

 

Port 4

8

 

Memory-mapped

Bidirectional

Address/data bus

 

 

 

 

 

 

 

 

Port 5

8

 

Memory-mapped

Bidirectional

Bus control, slave port

 

 

 

 

 

 

 

 

Port 6

8

 

Standard

Bidirectional

EPA, SSIO

 

 

 

 

 

 

 

 

EPORT

4

(84-pin CB)

Memory mapped

Bidirectional

Extended address lines

 

8

(100-pin CB)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P0_PIN

 

 

 

 

Address:

1FDAH

 

 

 

 

 

Reset State:

XXH

Each bit of the port 0 pin input (P0_PIN) register reflects the current state of the corresponding pin, regardless of the pin configuration.

7

PIN7

PIN6

PIN5

PIN4

 

 

 

 

0

PIN3

PIN2

PIN1

PIN0

 

 

 

 

Bit

Bit

Function

Number

Mnemonic

 

 

 

 

7:0

PIN7:0

Port 0 Pin x Input Value

 

 

This bit contains the current state of P0.x.

 

 

 

Figure 5-1. Port x Pin Input (Px_PIN) Register

5-1

Page 50
Image 50
Intel 87C196CB, 8XC196NT user manual Chapter Ports, Port 0 and Eport, C196CB Input/Output Ports, P0PIN

8XC196NT, 87C196CB specifications

The Intel 87C196CB and 8XC196NT are microcontrollers from the C196 family, which was designed to meet the demands of embedded control technology. These microcontrollers are popular in various applications due to their robust architecture, extensive I/O capabilities, and specialized functionality, making them ideal for automotive, industrial, and communication systems.

The 87C196CB is distinguished by its 16-bit architecture, offering a balance of processing power and efficiency. It features a 16-bit data bus, which allows for fast data processing, and a 16-bit address bus, supporting up to 64KB of program memory. The microcontroller integrates on-chip memory, including 2KB of ROM and 128 bytes of RAM, which facilitates faster execution of programs and data handling.

One of the standout features of the 87C196CB is its versatility in I/O operations. It comes equipped with 32 general-purpose I/O lines that can be configured for various functions, including input, output, and interrupt handling. This flexibility enables developers to optimize the microcontroller for their specific application needs.

The 8XC196NT builds on the capabilities of its predecessor, offering advanced functionalities such as an enhanced instruction set and integrated peripherals. It includes additional features like timers, serial communication interfaces, and analog-to-digital converters, which expand its usability in complex embedded systems. The 8XC196NT supports multiple addressing modes, allowing for more efficient programming and memory management.

Both microcontrollers utilize innovative technologies that improve performance and power efficiency. The on-chip operating system support aids in real-time processing and multitasking, making them suitable for time-sensitive applications. Power management features are also incorporated, allowing these microcontrollers to operate in low-power modes, which is crucial for battery-operated devices.

The 87C196CB and 8XC196NT microcontrollers are characterized by their reliability and long service life, meeting the stringent demands of industrial applications. Their ability to perform tasks rapidly, combined with their diverse peripheral support, makes them popular choices among engineers and developers designing embedded systems. Overall, the Intel 87C196CB and 8XC196NT microcontrollers remain relevant in the rapidly evolving landscape of embedded technology, facilitating innovative solutions across various industries.