Docsity

8086 and 8088 Microprocessors: Features, Modes, and Interfaces, Study notes of Microprocessors

Partial preview of the text

Download 8086 and 8088 Microprocessors: Features, Modes, and Interfaces and more Study notes Microprocessors in PDF only on Docsity!

Week 7

The 8088 and 8086 Microprocessors

8086 and 8088 Microprocessors

•^

8086 announced in 1978; 8086 is a 16 bitmicroprocessor with a 16 bit data bus

-^

8088 announced in 1979; 8088 is a 16 bitmicroprocessor with an 8 bit data bus

-^

Both manufactured using High-performanceMetal Oxide Semiconductor (HMOS) technology

-^

Both contain about 29000 transistors

-^

Both are packaged in 40 pin dual-in-line package (DIP)

-^

Address lines A0-A7 and Data lines D0-D7 are multiplexed in8088. These lines are labelled as AD0-AD7.–

By multiplexed we mean that the same pysical pin carries an addressbit at one time and the data bit another time

-^

Address lines A0-A15 and Data lines D0-D15 are multiplexed in8086. These lines are labelled as AD0-AD15.

Minimum-mode and Maximum-mode Systems •

8088 and 8086 microprocessors can be configured towork in either of the two modes: the minimum mode andthe maximum mode

Minimum mode:

Pull MN/MX to logic 1 ¾

Typically smaller systems and contains a single microprocessor ¾

Cheaper since all control signals for memory and I/O aregenerated by the microprocessor.

Maximum mode

Pull MN/

MX

logic 0

Larger systems with more than one processor (

designed to be

used when a coprocessor (8087) exists in the system)

PINs on microprocessor Signals common toboth minimum andmaximum systems

Ɔ

8088 Minimum-mode block diagram

8086 Minimum-mode block diagram

Minimum Mode Interface •

Address/Data bus: 20 bits/8 bits (AD0-AD7) multiplexed for 8088

-^

Address/Data bus: 20 bits/16 bits (AD0-AD15) multiplexed for 8086

-^

Status signals: A

-A 16

19

multiplexed with status signals S

-S 3

respectively 6

-^

S3 and S4 together

form a 2 bit binary code that identifies which of the internal

segment registers were used to generate the physical address that was output onthe address bus during the current bus cycle.

-^

S

is the logic level of the

IF

,

-^

S6 is always logic 0

. S0,S1,S2 used in maxmode (later)

S

S

Address status

Alternate(relative to ES

segment)

Stack (relative to SS Segment)

Code/None (relative to CSsegment or a default zero)

Data (relative to DS segment)

Minimum Mode Interface • Control Signals: (8088)

Address Latch Enable (ALE)

is a pulse to logic 1 that

signals external circuitry when a valid address is onthe bus. This address can be latched in externalcircuitry on the 1-to-0 edge of the pulse at ALE.

IO/M line:

memory or I/O transfer is selected

(complement for 8086)

DT/R line

: direction of data is selected

RD line: =

0 when a read cycle is in progress

WR line:

=0 when a write cyle is in progress

DEN line: (Data enable)

Enables the external devices

to supply data to the processor. Used when sharingmemory with another processor.

Minimum Mode Interface

9

BHE (Bank High Enable) line

(8086 only) :=0 for most significant byte of

data and also carries S

=1 7

Data Transfer

Bus Cycle and Time States

-^

A bus cycle (machine cycle) defines the basic operationthat a microprocessor performs to communicate withexternal devices

-^

Examples of bus cycles are memory read, memory write,input/output read and input/output write.

-^

A bus cycle corresponds to a sequence of events that startswith an address being output on the system bus followed bya read or write data transfer

-^

During these operations, a series of control signals are alsoproduced by the MPU to control the direction and timing ofthe bus.

-^

Each bus cycle consists of at least four clock periods: T1,T2, T3, and T4.

-^

These clock periods are also called the T-States

Bus Cycle and Time States T1 - start of bus cycle. Actions include setting control signals (or S0-S2status lines) to give the required values for ALE, DTR IO/M putting avalid address onto the address bus. T2 -

the RD or WR control signals are issued, DEN is asserted and in the case of a write, data is put onto the data bus. The DENturns on the data bus buffers to connect the CPU to the externaldata bus. The READY input to the CPU is sampled at the end of T2and if READY is low, a wait state T

W^

(one or more) is inserted

before T3 begins. T3 - this clock period is provided to allow memory to access the data. Ifthe bus cycle is a read cycle, the data bus is sampled at the end of T3. T4 -

all bus signals are deactivated in preparation for the next clock cycle. The 8088 also finishes sampling the data (in a readcycle) in this period. For the write cycle, the trailing edge of theWR signal transfers data to the memory or I/O, which activatesand write when WR returns to logic 1 level.

  • Read Cycle of the