8086/8088 Hardware Specifications
8086/8088 Hardware Specifications
Chapter 9
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Objectives
• Describe the functions of all 8086/8088 pins
• Understand DC characteristics and fan out
• Using the clock generator 8284A chip
• Connect buffers and latches to the buses
• Interpret timing diagrams
• Describe wait states and design their circuits
• Explain difference between minimum and
maximum modes of using the 8086/8088
• Introduce the 8087 floating point processor
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
The 8086/8088
• Fairly old microprocessors, but still considered
a good way to introduce the Intel family
• Both microprocessors use 16-bit registers and
20-bit address bus (supporting 1 MB memory),
but:
- The 8086 (1978): 16-bit external data bus
- The 8088 (1979): 8-bit external data bus
• Still used in embedded systems (cost is less
than $1)
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Maximum mode Minimum mode
2 Modes: Operation with a
8/9 pins have Math Coprocessor
Different
Basic
Functions
Operation
Depending
On the mode
n budget:
086, Min mode:
I/P Selects
Min/Max Mode
0 Address
1 Data
0 Control & Status
3 Power
9 Total
40 pins available
Use multiplexing
8086 8088
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
DC Pin Characteristics: Voltages
Standard TTL Output and Input Voltage Levels
Vcc 5.0 V
11Logic
Logic
Level
Level
“1”-Level
Noise Margin
Guaranteed Forbidden Accepted
Output Levels Forbidden
Region Input Levels
“0”-Level
00 Logic
Logic Level
Level Noise Margin
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
DC Pin Characteristics: Currents
Fan out for a standard TTL output
How many inputs can an output support?
For the 0 logic Level: (output “sinks” current)
0-level Fanout = Maximum number of inputs that the output can support
= 16 mA/1.6 mA = 10
For the 1 logic Level: (output “sources” current)
-
# * *
#
* = 16 mA for standard 74 TTL * = 1.6 mA for standard 74 TTL
# = 0.40 V for standard 74 TTL # = 40 A for standard 74 TTL
0 level noise margin = 0.8 – 0.45 = 0.35 V (P)
8086/88 p does not strictly comply P but = 0.8 – 0.40 = 0.40 V
with the DC characteristics Standard ’74 TTL (for standard 74 TTL O/P)
Gate
of the TTL family
0 level fan-out to TTL gate = 2 1.6 1 (8086/88 P)
but = 16 1.6 = 10
A processor output can drive: (for standard 74 TTL O/P)
• One Standard 74XX input, or
• One 74SXX input, or
• Five 74LSXX inputs, or +: Current into pin (sink)
Two problems:
• Ten 74ALSXX inputs, or - : Current out of pin (source) - Lower fanout
• Ten 74HCXX inputs - Lower noise margin
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
8088/86 Pin Characteristics: DC
• Input pins are TTL compatible and source(0)/sink(1) only ±10μA
of current (actually better than TTL!)
• Output pins are TTL fully compatible at logic “1”, but have
problems at logic 0:
- A higher maximum logic 0 voltage of 0.45 V (instead of the
TTL standard of 0.4 V)
This reduces logic 0 noise margin from 400 mV to 350 mV…
be careful with long wiring from output pins
- A lower logic 0 sink current of 2.0 mA (instead of the 16 mA
for the standard 74 TTL)
This reduces fan out capability for standard TTL loads…
better use 74LS, AL, or HC circuits for interfacing, or
use buffers
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
The Buses: Address & Data
• Address, A (for memory & I/O) Data, D
Control lines Status, S
Some functions are multiplexed on the same pins to reduce chip pin count
Address Data
AD15-0 Write Cycle
Pins - 86
Latch address
ALE: Latch to a buffer
address o/ps to a buffer 86 88
• For both Ps: Address bus signals
are A0-A19 (20 lines) for 1M byte of
addressing space
• Data bus signals are
- D0-D7 for the 8088
- D0-D15 for the 8086
• The address & data pins
are multiplexed as:
- AD0-AD7 (8088)
- or AD0-AD15 (8086)
• Address/Status pins are MUXed
- A/S for A16-19 (both Ps)
• The ALE O/P signal is used to demultiplex the address/data (AD) bus and
the address/status (A/S) bus.
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
The Status (S) Bus 86: #S0-S2, S3-S7
88: #S0-S2, S3-S6, #SS0
• 86: Address bits A16-A19 & #BHE: muxed with the status bits S3-S7.
Status bits
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Multiprocessor System
Clock
Generator
Sync
Xtal
Clock
Generator
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
2. The 8/9 Signals that depend on mode: Their Max Mode States
For the processor to operate in the minimum mode, connect MN/#MX
input to ground.
• #S0,#S1,#S2 outputs: Status bits that
encode the type of the current bus cycle,
Used by the 8288 bus controller and the
8087 coprocessor (Table 9-6)
• #RQ/GT0, #RQ/GT1: Bidirectional lines
for requesting and granting access to a
shared bus (Request/Get). For use in
multiprocessor systems. The RG/GT0
line has higher priority
• #LOCK output: Activated for the duration
of P instructions having the LOCK
prefix. Can be used to prevent other
microprocessors from using the system
buses and accessing shared memory or
I/O for the duration of such instructions,
e.g.
LOCK:MOV AL,[SI] Table 9-6
• QS0, QS1 (Queue Status) outputs:
indicate the status of the internal
instruction queue (Table 9-7). For use by
the 8087 coprocessor
to keep in step with
the P.
Table
Brey: The Intel Microprocessors, 7e 9-7 © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Clock Generator (8284A)
Provides the following functions:
• Generates Clock signals:
- Generates a CLK signal for the 8086/8088
- Provides a CLK sync signal (OSC) for use
by slave processors on a multiprocessor
8086/8088 systems
- Provides a TTL-level peripheral clock signal
(PCLK)
• Provides synchronization for external
input signals to the processor:
– The RESET input
– The READY input for wait state generation
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Clock Generator (8284A): Signals
Clocks & Clock Synchronization Signals
• X1 and X2: Crystal Oscillator pins. Connect a crystal
of the correct frequency between these two terminals
to generate the clock signal.
• EFI: External frequency input. Signal can be used as
the clocking source to the 8284A instead of the
crystal oscillator.
• F/#C input: Selects external EFI input (1) or the Crystal
crystal oscillator (0) as the clocking source for the
8284A
• CLK output: The clock signal produced for
connecting to the CLK input on the 8086/8088.
At 1/3 rd of the crystal or EFI input frequency with
1:3 duty cycle: fclock = fxtal/3 = fEFI/3
• OSC: Oscillator output. Same frequency as crystal or
EFI. Connect to EFIs on other 8284As in
multiprocessor systems (synchronized clocks)
fosc = fxtal= fEFI
• PCLK output: peripheral clock signal at 1/6 th of the OSC:
EFI To other Ps
crystal or EFI input frequency (1/2 clock freq) with 1:2
duty cycle. Use to drive peripheral equipment in the XTAL PCLK
system fpclk = fxtal/6 = fEFI/6 3 2 to Per
or EFI
• CSYNC input: Clock synchronization input. Should CLK
be used if EFI is used, otherwise must be grounded. to P
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Clock Generator (8284A): Signals
RESET Signals
• #RES Reset input: Active low. Usually
connected to an RC circuit to provide
automatic reset at power on.
• RESET output: Synchronized to Clk. Connect
to the 8086/8088 RESET input.
READY Signals
• #AEN1 and #AEN2 address enable inputs:
Used with RDY1 and RDY2 inputs to generate
the READY output. The READY output is
connected to the READY input on the
8086/8088 P to control memory wait states.
To P
• #ASYNC input: for READY output
synchronization. Selects 1 or 2 stages of
synchronization for the RDY1 and RDY2
inputs.
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Clock Generator (8284A): Block Diagram
• Starts 4 clock pulses max after power up
• Must be kept High for at least 50 s
Hysteresis to avoid
RESET
Schmitt trigger
jitter due to slowly
Switch/RC circuit varying inputs
Active High,
Synchronize to P
Crystal with – ive clock edge Inverting buffer
CLOCK & Sync
To processor
CLK input.
f = 1/3rd of
crystal or EFI
Frequency,
1:3 duty cycle
frequency, f f/3
2.5 MHz
PCLK
Grounded when f/6
Xtal Osc is used
OSC 15 MHz
f
RESET
R
Synced
To CLK
C
RC circuit for
Manual automatic Reset on power up 50 s Effective
Reset RC time constant large enough Minimum Digital
push button for 50 s min Reset pulse #RES Input
Switch at worst trigger conditions (1.05
Brey: The Intel Microprocessors, 7e V Threshold)
© 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Bus Demultiplexing and Buffering
• Demultiplexing:
The address/data and address/status buses are
multiplexed to reduce the device pin count. These
buses must be demultiplexed (separated) to obtain
the signals required for interfacing other circuits to
the P
– Use the ALE output from the microprocessor to latch the
address/status information that appear briefly on the
multiplexed bus
– This makes the latched address information available for
long enough time for correct interfacing, e.g. to memory
• Buffering:
Fan out is limited, so output signals should be
buffered in large systems
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Demultiplexing the 8088 Processor
Not
Muxed
Data
Latch (Transparent)
Delay
Demuxed
Latch Octal D-type
A0-A7
I/P Transparent Latch
Output
Enable (not edge triggered
Memory write cycle for the 8088
(non-muxed line are not shown)
Data and address lines must remain
valid and stable for the duration of the cycle
74373 is an Octal D-type transparent
Latch with 3-state outputs
Use as data bus, with #DEN active
Brey: The Intel Microprocessors, 7e Feature Not utilized! © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Demultiplexing the
8086 Processor
Address/Data bus
20-bit
16-bit
with
#DEN active
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
D O/P
Transparency
Last O/P
Maintained
(latched)
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Buffering
Since the microprocessor output pins provide minimum drive
current at the 0 logic level, buffering is often needed if more
TTL loads are connected to any bus signal: Consider 3 types
of signals
• For demuxed signals: Latches used for demuxing, e.g. ‘373,
can also provide the buffering for the demuxed lines:So, Fan out = ?
– 0-level output can sink up to 32 mA (20 x 1.6 mA loads) Which case
– 1-Level output can source up to 5.2 mA (1 load = 40 A) sets the limit?
• For non-demuxed unidirectional (always output) address and
control signals (e.g. A8-15 on the 8088), buffering is required-
often using the 74ALS244 (unidirectional) buffer.
• For non-demuxed bidirectional data signals (pin used for both
in and out), buffering is often accomplished with the 74ALS245
bidirectional bus buffer
Caution: Buffering introduces a small delay in the buffered
signals. This is acceptable unless memory or I/O devices
operate close to the maximum bus speed
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Fully DeMuxed
and buffered 8088
Non-DeMuxed
Address Lines
(unidirectional-
Always O/Ps)
244 Buffer
74244 is an Octal Buffer
with 3-state outputs
Feature Not utilized!
DeMuxed
Address Lines
(unidirectional-
Always O/Ps) A B isolation
Latch provides with G = 1
the buffering
Non-Demuxed
Bidirectional
Data Lines
74245 is an Octal Bus 245 Buffer
Transceiver with 3-state outputs
Enable external buffers DIR Direction
Feature utilized! 1: AB
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All0:Rights
ABReserved.
Fully DeMuxed and buffered 8086
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
(Not
Transceivers)
Use to determine
Fanout
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Brey: The Intel Microprocessors, 7e A-B: River,
© 2006 Pearson Education, Upper Saddle OpenNJcircuit, NoRights
07458. All connection
Reserved.
Bus Timing
Timing in General
• A data transfer operation to/from
Clock
the P occupies at least one Cycle
bus cycle
• Each bus cycle consists of
4 clock cycles, T1, T2, T3, T4,
each of period T
• With 5 MHz processor clock:
P strobes data in
HiZ
, #INTA
Data
IN
Buffer OUT
Direction
On the 8088:
- For memory, IO/#M = 0 P strobes
- For I/O: IO/#M = 1 Also DT/#R = 0
data in
To Device
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Detailed Memory READ Timing for the 8088 Standard Bus Cycle = 4T, No Wait States
t=0 Start of
T4
Valid Address
A15-A8 Not Muxed
A19-A16
Muxed
2. Latch/Buffer
Delay Time
Latch
1. Valid Address READY Timing
MUXed
Delay Time Address Lines Assume
3T for the processor No Waits Required
To get data from memory
3. Setup P strobes
Maximum allowed memory Max Memory Time data in Hold Time
access time Access Time
A7-A0 Muxed
Read
Controls
for a READ
operation
Upon accepting a hardware interrupt request from a device (on INTR), the processor
acknowledges this to the device and initiates an #INTA read cycle for the 1-byte interrupt
number which the processor reads and uses as a pointer to the interrupt service routine
to be executed
Brey: The Intel Microprocessors, 7e See©Fig. 9-12Education,
2006 Pearson for Detailed
Upper SaddleTiming Specifications
River, NJ 07458. All Rights Reserved.
Bus Timing
Basic Data Write Timing
Timing for a basic write cycle
On the 8088:
- For memory, IO/#M = 0
- For I/O: IO/#M = 1
Also DT/#R = 1
Device
strobes data in
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Detailed Write Timing for the 8088
Also DT/#R = 1
3 parts
of the address
Data should
1. Address established remain
2. Processor puts data on data bus valid for 88 ns
after #WR rise
Sample Then
at end Sample
of T2 at middle
35 ns of each TW
RDY
Input to 8284A
0 ns
8 ns
Inactive
(Not Ready)
READY
Output from 8284A
30 ns
(Input to 8086)
Active
(Ready)
118 ns
Internal Sync circuits
In the 8284A ensure that
READY output to processor meets the above timing requirements
QC
2W OR
1
…
CLR Shift Register
RD During T1
(Gated)
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Use of 8086 in the Minimum Mode
Microprocessor-based System
Address
Demultiplexing
Address
Decoding
Direction
Bidirectional
AD Bus Data Buffering
Prevents
Transceiver from
driving the AD bus
when interrupt
controller
Is using it
RAM ROM I/O
Interrupt
Here the Interrupt controller Handling Several Interrupt
accesses the AD bus before Requests
demultiplexing
Brey: - careful!
The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
8086 Maximum Mode
8288 Bus Controller chip: Necessary in this mode.
Generates essential control signals not provided directly by P
form the S0-S2 O/Ps
8086 Chipset
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
8288 Bus Controller
bus
20-Pin Chip
Familiar 8088/8086
Outputs
More specific Outputs,
Selects Replace #RD, #WR,
Mode: M/#IO
1. I/O Bus
2. System Bus
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
8288 Bus Controller: Pin Functions
• S0, S1, S2 inputs: Status bus bits • #IORC output: Input/Output read
from processor. Decoded by the 8288 control signal.
to produce the normal control signals • #IOWC output: Input/Output write
• CLK input: From the 8284A clock control signal.
generator • #AIOWC output: Advanced
• ALE output: Address latch enable Input/Output control signal.
output for demuxing address/data • #MRDC output: Memory read control
• DEN output: Data bus enable output signal.
to enable data bus buffer. Note • #MWTC output: Memory write control
opposite polarity to #DEN output in signal.
minimum mode.
• #AMWT output: Advanced Memory
• DT/#R output: Data transmit/Receive write control signal.
output to control direction of the
bi directional data bus. • MCE/#PDEN output: Master
• cascade/Peripheral data output.
#INTA output: Acknowledge a Selects cascade operation if IOB=0 or
hardware interrupt applied to the enables I/O bus transceivers if
INTR input of the processor. IOB=5V
• IOB input: I/O bus mode input.
Selects operation in either I/O bus
mode or system bus mode.
• #AEN input: Address Enable input.
Used by the 8288 to enable memory Effective only in the system bus mode
control signals. Supplied by a bus
arbiter in a multiprocessor system
• CEN input: Control Enable input.
Enables the generation of command
outputs from the 8288.
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
The Math Coprocessor: Chapter 14
(Numeric Data Processor (NDP))
• The 8086 performs integer math operations
• Floating point operations are needed, e.g. for Sqrt (X),
sin (x), etc.
• These are complex math operations that require large
registers, complex circuits, and large areas on the chip
• A general data processor avoids this much burden
and delegates such operations to a processor
designed specifically for this purpose -
e.g. math coprocessor (8087) for the 8086
• The 8086 and the 8087 coprocessors operate in
parallel and share the busses and memory resources
• The 8086 marks floating point operations as ESC
instructions, will ignore them and 8087 will pick them
up and execute them
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
The 8087 Coprocessor: Organization
• CU and NEU units
• Eight 80-bit FP Registers
• Supports 68 FP (ESC)
instructions
• Speeds up 8086
performance on FP
operations by a factor
of 50-100 time Top of
the data
• 8087 Tracks activities Stack
Can interrupt
the 8086
WAIT instructions
can be used to halt the
8086 to ensure that the
8087 has finished a crucial
step,
e.g. storing a result in
memory.
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Programming the 8087
Sequence of FP operations:
1. Operand data is loaded from memory into 8087
registers
2. Do the FP operation in the 8087
3. Store FP results from the 8087 to memory
• FP Instructions use the top of the 80-bit register data stack as the
default operand (needs not be mentioned), e.g.
FLDPI ; loads PI (= ) into the top of the stack
; i.e. into register ST(0)
• When something is put on top of the stack, a stack PUSH occurs
automatically
• When something is removed from the top of the stack, an
automatic stack POP occurs
Brey: The Intel Microprocessors, 7e © 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.
Programming the
Define
80387: Example
Double Two 5 x 4-byte array
Word
RAD
(radii)
AREA
;ECX, also used as loop counter
Instructions
Starting with . ST = Stack top which is also ST(0)
F are FP
Instructions
For the 80387
Results in stack
80386 Program after Instruction Execution