Architecture Designed for Powerful
Assembly Language and Efficient High
Level Languages
Y
14 Word, by 16-Bit Register Set with
Symmetrical Operations
Y
24 Operand Addressing Modes
Y
Bit, Byte, Word, and Block Operations
Y
8 and 16-Bit Signed and Unsigned
Arithmetic in Binary or Decimal
Y
Range of Clock Rates:
5 MHz for 8086,
8 MHz for 8086-2,
10 MHz for 8086-1
Y
MULTIBUS System Compatible
Interface
Y
Available in EXPRESS
Ð Standard Temperature Range
Ð Extended Temperature Range
Y
Available in 40-Lead Cerdip and Plastic
Package
(See Packaging Spec. OrderÝ231369)
Including Multiply and Divide
The Intel 8086 high performance 16-bit CPU is available in three clock rates: 5, 8 and 10 MHz. The CPU is
implemented in N-Channel, depletion load, silicon gate technology (HMOS-III), and packaged in a 40-pin
CERDIP or plastic package. The 8086 operates in both single processor and multiple processor configurations
to achieve high performance levels.
40 Lead
Figure 2. 8086 Pin
Configuration
Figure 1. 8086 CPU Block Diagram
September 1990Order Number: 231455-005
231455– 1
231455– 2
8086
Table 1. Pin Description
The following pin function descriptions are for 8086 systems in either minimum or maximum mode. The ‘‘Local
Bus’’ in these descriptions is the direct multiplexed bus interface connection to the 8086 (without regard to
additional bus buffers).
SymbolPin No.TypeName and Function
AD15–AD02–16, 39I/OADDRESS DATA BUS: These lines constitute the time multiplexed
memory/IO address (T
analogous to BHE
LOW during T
of the bus in memory or I/O operations. Eight-bit oriented devices tied
1
to the lower half would normally use A
functions. (See BHE.) These lines are active HIGH and float to 3-state
), and data (T2,T3,TW,T4) bus. A0is
1
for the lower byte of the data bus, pins D7–D0.Itis
when a byte is to be transferred on the lower portion
to condition chip select
0
OFF during interrupt acknowledge and local bus ‘‘hold acknowledge’’.
A19/S6,35–38OADDRESS/STATUS: During T1these are the four most significant
A
18/S5
A
17/S4
A
16/S3
,
,
address lines for memory operations. During I/O operations these
lines are LOW. During memory and I/O operations, status information
is available on these lines during T
interrupt enable FLAG bit (S5) is updated at the beginning of each
2,T3,TW,T4
. The status of the
CLK cycle. A17/S4and A16/S3are encoded as shown.
This information indicates which relocation register is presently being
used for data accessing.
These lines float to 3-state OFF during local bus ‘‘hold acknowledge.’’
A17/S
4
A16/S
3
Characteristics
0 (LOW)0Alternate Data
01Stack
1 (HIGH)0Code or None
11Data
S6is 0
(LOW)
BHE/S
7
34OBUS HIGH ENABLE/STATUS: During T1the bus high enable signal
) should be used to enable data onto the most significant half of
(BHE
the data bus, pins D
half of the bus would normally use BHE to condition chip select
functions. BHE
is LOW during T1for read, write, and interrupt
. Eight-bit oriented devices tied to the upper
15–D8
acknowledge cycles when a byte is to be transferred on the high
portion of the bus. The S
T
, and T4. The signal is active LOW, and floats to 3-state OFF in
3
‘‘hold’’. It is LOW during T
BHEA
status information is available during T2,
7
for the first interrupt acknowledge cycle.
1
0
Characteristics
00Whole word
01Upper byte from/to odd address
10Lower byte from/to even address
11None
RD32OREAD: Read strobe indicates that the processor is performing a
memory or I/O read cycle, depending on the state of the S
signal is used to read devices which reside on the 8086 local bus. RD
pin. This
2
is active LOW during T2,T3and TWof any read cycle, and is
guaranteed to remain HIGH in T
until the 8086 local bus has floated.
2
This signal floats to 3-state OFF in ‘‘hold acknowledge’’.
2
8086
Table 1. Pin Description (Continued)
SymbolPin No.TypeName and Function
READY22IREADY: is the acknowledgement from the addressed memory or I/O
INTR18IINTERRUPT REQUEST: is a level triggered input which is sampled
TEST23ITEST: input is examined by the ‘‘Wait’’ instruction. If the TEST input is
NMI17INON-MASKABLE INTERRUPT: an edge triggered input which causes
RESET21IRESET: causes the processor to immediately terminate its present
CLK19ICLOCK: provides the basic timing for the processor and bus controller.
V
CC
40VCC:a5V power supply pin.
GND1, 20GROUND
MN/MX33IMINIMUM/MAXIMUM: indicates what mode the processor is to
device that it will complete the data transfer. The READY signal from
memory/IO is synchronized by the 8284A Clock Generator to form
READY. This signal is active HIGH. The 8086 READY input is not
synchronized. Correct operation is not guaranteed if the setup and hold
times are not met.
during the last clock cycle of each instruction to determine if the
processor should enter into an interrupt acknowledge operation. A
subroutine is vectored to via an interrupt vector lookup table located in
system memory. It can be internally masked by software resetting the
interrupt enable bit. INTR is internally synchronized. This signal is
active HIGH.
LOW execution continues, otherwise the processor waits in an ‘‘Idle’’
state. This input is synchronized internally during each clock cycle on
the leading edge of CLK.
a type 2 interrupt. A subroutine is vectored to via an interrupt vector
lookup table located in system memory. NMI is not maskable internally
by software. A transition from LOW to HIGH initiates the interrupt at the
end of the current instruction. This input is internally synchronized.
activity. The signal must be active HIGH for at least four clock cycles. It
restarts execution, as described in the Instruction Set description, when
RESET returns LOW. RESET is internally synchronized.
It is asymmetric with a 33% duty cycle to provide optimized internal
timing.
operate in. The two modes are discussed in the following sections.
The following pin function descriptions are for the 8086/8288 system in maximum mode (i.e., MN/MXeVSS).
Only the pin functions which are unique to maximum mode are described; all other pin functions are as
described above.
S2,S1,S026–28OSTATUS: active during T4,T1, and T2and is returned to the passive state
(1, 1, 1) during T
by the 8288 Bus Controller to generate all memory and I/O access control
signals. Any change by S
beginning of a bus cycle, and the return to the passive state in T
used to indicate the end of a bus cycle.
or during TWwhen READY is HIGH. This status is used
3
,orS0during T4is used to indicate the
2,S1
or TWis
3
3
8086
Table 1. Pin Description (Continued)
SymbolPin No.TypeName and Function
S2,S1,S
(Continued)
RQ/GT0,30, 31I/OREQUEST/GRANT: pins are used by other local bus masters to force
RQ
/GT
LOCK29OLOCK: output indicates that other system bus masters are not to gain
26–28OThese signals float to 3-state OFF in ‘‘hold acknowledge’’. These status
0
lines are encoded as shown.
S
2
S
1
S
0
Characteristics
0 (LOW)00Interrupt Acknowledge
001Read I/O Port
010Write I/O Port
011Halt
1 (HIGH)00Code Access
101Read Memory
110Write Memory
111Passive
1
the processor to release the local bus at the end of the processor’s
current bus cycle. Each pin is bidirectional with RQ/GT0having higher
priority than RQ
/GT1.RQ/GT pins have internal pull-up resistors and
may be left unconnected. The request/grant sequence is as follows
(see Page 2-24):
1. A pulse of 1 CLK wide from another local bus master indicates a local
bus request (‘‘hold’’) to the 8086 (pulse 1).
2. During a T4or T1clock cycle, a pulse 1 CLK wide from the 8086 to
the requesting master (pulse 2), indicates that the 8086 has allowed the
local bus to float and that it will enter the ‘‘hold acknowledge’’ state at
the next CLK. The CPU’s bus interface unit is disconnected logically
from the local bus during ‘‘hold acknowledge’’.
3. A pulse 1 CLK wide from the requesting master indicates to the 8086
(pulse 3) that the ‘‘hold’’ request is about to end and that the 8086 can
reclaim the local bus at the next CLK.
Each master-master exchange of the local bus is a sequence of 3
pulses. There must be one dead CLK cycle after each bus exchange.
Pulses are active LOW.
If the request is made while the CPU is performing a memory cycle, it
will release the local bus during T
conditions are met:
1. Request occurs on or before T
of the cycle when all the following
4
.
2
2. Current cycle is not the low byte of a word (on an odd address).
3. Current cycle is not the first acknowledge of an interrupt acknowledge
sequence.
4. A locked instruction is not currently executing.
If the local bus is idle when the request is made the two possible events
will follow:
1. Local bus will be released during the next clock.
2. A memory cycle will start within 3 clocks. Now the four rules for a
currently active memory cycle apply with condition number 1 already
satisfied.
control of the system bus while LOCK
is active LOW. The LOCK signal
is activated by the ‘‘LOCK’’ prefix instruction and remains active until the
completion of the next instruction. This signal is active LOW, and floats
to 3-state OFF in ‘‘hold acknowledge’’.
4
8086
Table 1. Pin Description (Continued)
SymbolPin No.TypeName and Function
QS1,QS024, 25OQUEUE STATUS: The queue status is valid during the CLK cycle after
which the queue operation is performed.
QS
and QS0provide status to allow external tracking of the internal
1
8086 instruction queue.
QS
1
QS
0
Characteristics
0 (LOW)0No Operation
01First Byte of Op Code from Queue
1 (HIGH)0Empty the Queue
11Subsequent Byte from Queue
The following pin function descriptions are for the 8086 in minimum mode (i.e., MN/MXeVCC). Only the pin
functions which are unique to minimum mode are described; all other pin functions are as described above.
M/IO28OSTATUS LINE: logically equivalent to S2in the maximum mode. It is used to
distinguish a memory access from an I/O access. M/IO
preceding a bus cycle and remains valid until the final T4of the cycle
the T
4
e
HIGH, IOeLOW). M/IO floats to 3-state OFF in local bus ‘‘hold
(M
becomes valid in
acknowledge’’.
WR29OWRITE: indicates that the processor is performing a write memory or write
I/O cycle, depending on the state of the M/IO
and TWof any write cycle. It is active LOW, and floats to 3-state OFF in
signal. WR is active for T2,T
3
local bus ‘‘hold acknowledge’’.
INTA24OINTA: is used as a read strobe for interrupt acknowledge cycles. It is active
LOW during T
and TWof each interrupt acknowledge cycle.
2,T3
ALE25OADDRESS LATCH ENABLE: provided by the processor to latch the
address into the 8282/8283 address latch. It is a HIGH pulse active during
T
of any bus cycle. Note that ALE is never floated.
1
DT/R27ODATA TRANSMIT/RECEIVE: needed in minimum system that desires to
use an 8286/8287 data bus transceiver. It is used to control the direction of
data flow through the transceiver. Logically DT/R
maximum mode, and its timing is the same as for M/IO
is equivalent to S1in the
.(TeHIGH, R
e
LOW.) This signal floats to 3-state OFF in local bus ‘‘hold acknowledge’’.
DEN26ODATA ENABLE: provided as an output enable for the 8286/8287 in a
minimum system which uses the transceiver. DEN is active LOW during
each memory and I/O access and for INTA cycles. For a read or INTA
it is active from the middle of T
it is active from the beginning of T
state OFF in local bus ‘‘hold acknowledge’’.
until the middle of T4, while for a write cycle
2
until the middle of T4. DEN floats to 3-
2
cycle
HOLD,31, 30I/OHOLD: indicates that another master is requesting a local bus ‘‘hold.’’ To be
HLDA
acknowledged, HOLD must be active HIGH. The processor receiving the
‘‘hold’’ request will issue HLDA (HIGH) as an acknowledgement in the
middle of a T4or Ticlock cycle. Simultaneous with the issuance of HLDA
the processor will float the local bus and control lines. After HOLD is
detected as being LOW, the processor will LOWer the HLDA, and when the
processor needs to run another cycle, it will again drive the local bus and
control lines. Hold acknowledge (HLDA) and HOLD have internal pull-up
resistors.
The same rules as for RQ
/GT apply regarding when the local bus will be
released.
HOLD is not an asynchronous input. External synchronization should be
provided if the system cannot otherwise guarantee the setup time.
5
8086
FUNCTIONAL DESCRIPTION
General Operation
The internal functions of the 8086 processor are
partitioned logically into two processing units. The
first is the Bus Interface Unit (BIU) and the second is
the Execution Unit (EU) as shown in the block diagram of Figure 1.
These units can interact directly but for the most
part perform as separate asynchronous operational
processors. The bus interface unit provides the functions related to instruction fetching and queuing, operand fetch and store, and address relocation. This
unit also provides the basic bus control. The overlap
of instruction pre-fetching provided by this unit
serves to increase processor performance through
improved bus bandwidth utilization. Up to 6 bytes of
the instruction stream can be queued while waiting
for decoding and execution.
The instruction stream queuing mechanism allows
the BIU to keep the memory utilized very efficiently.
Whenever there is space for at least 2 bytes in the
queue, the BIU will attempt a word fetch memory
cycle. This greatly reduces ‘‘dead time’’ on the
memory bus. The queue acts as a First-In-First-Out
(FIFO) buffer, from which the EU extracts instruction
bytes as required. If the queue is empty (following a
branch instruction, for example), the first byte into
the queue immediately becomes available to the EU.
The execution unit receives pre-fetched instructions
from the BIU queue and provides un-relocated operand addresses to the BIU. Memory operands are
passed through the BIU for processing by the EU,
which passes results to the BIU for storage. See the
Instruction Set description for further register set
and architectural descriptions.
MEMORY ORGANIZATION
The processor provides a 20-bit address to memory
which locates the byte being referenced. The memory is organized as a linear array of up to 1 million
bytes, addressed as 00000(H) to FFFFF(H). The
memory is logically divided into code, data, extra
data, and stack segments of up to 64K bytes each,
with each segment falling on 16-byte boundaries.
(See Figure 3a.)
All memory references are made relative to base addresses contained in high speed segment registers.
The segment types were chosen based on the addressing needs of programs. The segment register
to be selected is automatically chosen according to
the rules of the following table. All information in one
segment type share the same logical attributes (e.g.
code or data). By structuring memory into relocatable areas of similar characteristics and by automatically selecting segment registers, programs are
shorter, faster, and more structured.
Word (16-bit) operands can be located on even or
odd address boundaries and are thus not constrained to even boundaries as is the case in many
16-bit computers. For address and data operands,
the least significant byte of the word is stored in the
lower valued address location and the most significant byte in the next higher address location. The
BIU automatically performs the proper number of
memory accesses, one if the word operand is on an
even byte boundary and two if it is on an odd byte
boundary. Except for the performance penalty, this
double access is transparent to the software. This
performance penalty does not occur for instruction
fetches, only word operands.
Physically, the memory is organized as a high bank
(D
bytes addressed in parallel by the processor’s address lines A
is transferred on the D
dressed byte data (A
D
able signals, BHE
) and a low bank (D7–D0) of 512K 8-bit
15–D8
. Byte data with even addresses
19–A1
bus lines. The processor provides two en-
15–D8
and A0, to selectively allow read-
bus lines while odd ad-
7–D0
HIGH) is transferred on the
0
ing from or writing into either an odd byte location,
even byte location, or both. The instruction stream is
fetched from memory as words and is addressed
internally by the processor to the byte level as necessary.
MemorySegment RegisterSegment
Reference NeedUsedSelection Rule
InstructionsCODE (CS)Automatic with all instruction prefetch.
StackSTACK (SS)All stack pushes and pops. Memory references relative to BP
base register except data references.
Local DataDATA (DS)Data references when: relative to stack, destination of string
operation, or explicitly overridden.
External (Global) Data EXTRA (ES)Destination of string operations: explicitly selected using a
segment override.
6
231455– 3
Figure 3a. Memory Organization
In referencing word data the BIU requires one or two
memory cycles depending on whether or not the
starting byte of the word is on an even or odd address, respectively. Consequently, in referencing
word operands performance can be optimized by locating data on even address boundaries. This is an
especially useful technique for using the stack, since
odd address references to the stack may adversely
affect the context switching time for interrupt processing or task multiplexing.
8086
address FFFF0H through FFFFFH are reserved for
operations including a jump to the initial program
loading routine. Following RESET, the CPU will always begin execution at location FFFF0H where the
jump must be. Locations 00000H through 003FFH
are reserved for interrupt operations. Each of the
256 possible interrupt types has its service routine
pointed to by a 4-byte pointer element consisting of
a 16-bit segment address and a 16-bit offset address. The pointer elements are assumed to have
been stored at the respective places in reserved
memory prior to occurrence of interrupts.
MINIMUM AND MAXIMUM MODES
The requirements for supporting minimum and maximum 8086 systems are sufficiently different that
they cannot be done efficiently with 40 uniquely defined pins. Consequently, the 8086 is equipped with
a strap pin (MN/MX
figuration. The definition of a certain subset of the
pins changes dependent on the condition of the
strap pin. When MN/MX
8086 treats pins 24 through 31 in maximum mode.
An 8288 bus controller interprets status information
coded into S
control signals compatible with the MULTIBUS architecture. When the MN/MX
the 8086 generates bus control signals itself on pins
24 through 31, as shown in parentheses in Figure 2.
Examples of minimum mode and maximum mode
systems are shown in Figure 4.
BUS OPERATION
The 8086 has a combined address and data bus
commonly referred to as a time multiplexed bus.
This technique provides the most efficient use of
pins on the processor while permitting the use of a
standard 40-lead package. This ‘‘local bus’’ can be
buffered directly and used throughout the system
with address latching provided on memory and I/O
modules. In addition, the bus can also be demultiplexed at the processor with a single set of address
latches if a standard non-multiplexed bus is desired
for the system.
) which defines the system con-
pin is strapped to GND, the
0,S2,S2
to generate bus timing and
pin is strapped to VCC,
231455– 4
Figure 3b. Reserved Memory Locations
Certain locations in memory are reserved for specific
CPU operations (see Figure 3b). Locations from
Each processor bus cycle consists of at least four
CLK cycles. These are referred to as T
(see Figure 5). The address is emitted from the
T
4
processor during T
bus during T
ing the direction of the bus during read operations. In
and data transfer occurs on the
1
and T4.T2is used primarily for chang-
3
1,T2,T3
and
the event that a ‘‘NOT READY’’ indication is given
by the addressed device, ‘‘Wait’’ states (T
serted between T
state is of the same duration as a CLK cycle. Periods
Figure 4b. Maximum Mode 8086 Typical Configuration
8
8086
can occur between 8086 bus cycles. These are referred to as ‘‘Idle’’ states (T
The processor uses these cycles for internal house-
) or inactive CLK cycles.
i
keeping.
During T1of any bus cycle the ALE (Address Latch
Enable) signal is emitted (by either the processor or
the 8288 bus controller, depending on the MN/MX
strap). At the trailing edge of this pulse, a valid address and certain status information for the cycle
may be latched.
Status bits S
mode, by the bus controller to identify the type of
, and S2are used, in maximum
0,S1
bus transaction according to the following table:
S
S1S
2
0
Characteristics
0 (LOW)00Interrupt Acknowledge
001Read I/O
010Write I/O
011Halt
1 (HIGH)00Instruction Fetch
101Read Data from Memory
110Write Data to Memory
111Passive (no bus cycle)
Figure 5. Basic System Timing
231455– 8
9
Loading...
+ 21 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.