8086 Pin Configuration
8086 Pin Configuration
8086 Pin Configuration
Power
Connections
GND
40
8086
CLK
19
GND
20
VCC
Pin Description:
GND Pin no. 1, 20
Ground
CLK Pin no. 19 Type I
Clock: provides the basic
timing for the processor and
bus
controller.
It
is
asymmetric with a 33% duty
cycle to provide optimized
internal timing.
VCC Pin no. 40
VCC: +5V power supply pin
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
39
AD15
8086
Continued
Pin Description
AD15-AD0 Pin no. 2-16, 39 Type I/O
Address Data bus: These lines constitute the time multiplexed
memory/ IO address (T1) and data (T2, T3, TW, T4) bus. A0 is
analogous to BHE* for the lower byte of the data bus, pins D7D0. It is low when a byte is to be transferred on the lower portion
of the bus in memory or I/O operations. Eight bit oriented
devices tied to the lower half would normally use A0 to condition
chip select functions. These lines are active HIGH
Address Lines
A14
A13
A12
A11
A10
A9
A8
A7
A6
A5
A4
A3
A2
A1
A0
2
3
4
39
5
6
7
8
9
10
11
12
13
14
15
16
8086
A15
38
A16
37
A17
36
A18
35
A19
Continued
A17/S4
A16/S3
Characteristic
s
0 (LOW)
Alternate Data
Stack
1(HIGH)
Code or None
Data
S6 is 0 (LOW)
This information indicates which relocation register is presently
being used for data accessing.
8086
37
S4
36
S5
35
S6
34
S7
28
S2
(M/I O )
27
S1
(DT/ R )
26
S 0 ( DEN)
Continued
Pin Description
S 2 , S1 , S 0
Continued
Interrupt acknowledge
Halt
1(HIGH) 0
Code Access
Read Memory
Write Memory
Passive
Continued
Status Details
0
0
0
0
1
1
1
1
S0
S1
S2
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
Indication
Interrupt Acknowledge
Read I/O port
Write I/O port
Halt
Code access
Read memory
Write memory
Passive
Continued
S4
S3
Indications
Alternate data
Stack
Code or none
Data
Continued
S5
S6
S7
Interrup
ts
8086
NMI
17
INTR
18
Pin Description:
NMI Pin no. 17 Type I
Non Maskable Interrupt: an edge
triggered input which causes 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
a LOW to HIGH initiates the interrupt at
the end of the current instruction. This
input is internally synchronized.
Continued
Min mode
signals 33
8086
VCC MN/ MX
31
HOLD
30
HLDA
29
WR
28
M/I O
27
DT/ R
26
DEN
25
ALE
24
INTA
Continued
Pin
Description
HOLD, HLDA Pin no. 31, 30 Type I/O
HOLD: indicates that another master is requesting a local
bus hold. To be acknowledged, HOLD must be active
HIGH. The processor receiving the hold request will
issue HLDA (HIGH) as an acknowledgement in the middle
of a T1 clock 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.
The same rules as apply regarding when the local bus will
be released.
HOLD is not an asynchronous input. External
synchronization should be provided if the system can not
otherwise guarantee the setup time.
Continued
Continued
Max mode
signals33
GND
8086
31
RQ/ GT0
30
RQ/ GT1
29
LOCK
28
S2
27
S1
26
S0
25
QS0
24
QS1
Continued
Pin Description:
RQ*/GT0*, RQ*/GT1* - Pin no. 30, 31 Type I/O
Request /Grant: pins are used by other local bus
masters to force the processor to release the local bus
at the end of the processors current bus cycle. Each pin
is bidirectional with RQ*/GT0* having higher priority
than RQ*/GT1*. RQ*/GT* has an internal pull up resistor
so may be left unconnected. The request/grant
sequence is as follows:
Continued
QS1
QS0
Characteristics
0(LOW)
No operation
1 (HIGH)
Common Signals
Continued
Pin Description:
RD* - Pin no. 34, Type O
Read: Read strobe indicates that the processor is performing a memory of I/O read
cycle, depending on the state of the S2 pin. This signal is used to read devices
which reside on the 8086 local bus. RD* is active LOW during T 2, T3 and TW of
any read cycle, and is guaranteed to remain HIGH in T2 until the 8086 local bus
has floated.
This signal floats to 3-state OFF in hold acknowledge.
READY Pin no. 22, Type I
READY: is the acknowledgement from the addressed memory or I/O 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.
Continued
A0
Characteristics
Whole word
None
Continued
MRD
MWR
IORD
IOWR
Memory Read
timing in
Maximum Mode
Memory Write
Timing in
Maximum Mode
Request / Grant pin may appear that both signals are active low.
But in reality, Request signal goes low first (input to processor),
and then the processor grants the request by outputting a low on
the same pin.
8284 Clock
Generator
The
clock Generator 8284 performs
the following tasks in addition to
generating the system clock for the
8086/8088.
Generating the Ready signal for h
8086/8088
Generating the Reset signal for h
8086/8088
8284 Block
Diagram
TANK
CSYNC
F/ C
X1
X2
EFI
OSC
CLOCK
LOGIC
PCLK
READY
LOGIC
READY
CLK
RDY1
AEN1
RDY2
AEN2
RES
RESET LOGIC
RESET
8284 Pin
Diagram
CSYNC
18
VCC
PCLK
17
X2
AEN1
16
X1
RDY1
15
TANK
READY
14
EFI
RDY2
13
F/ C
AEN2
12
OSC
CLK
11
RES
GND
10
RESET
8284
Clock Logic
Continued
The clock logic generates the three output signals OSC, CLOCK,
and PCLK.
OSC:
OSC is a TTL clock signal generated by the crystal oscillator in
8284. Its frequency is same as the frequency of the crystal connected
between X1 and X2 pins of 8284. In a PC, a crystal of 14.31 MHz is
connected between X1 and X2. thus OSC output frequency will be
14.31MHz. This signal is used by the Color Graphics Adapter
(CGA). The Tank input is used by the crystal oscillator only if the
crystal is an overtone type crystal. An LC circuit is connected to the
TANK input to tune the oscillator to the overtone frequency of the
crystal. Generally, in PCs, the TANK input is connected to ground,
as fundamental type crystal is used in a PC.
Continued
Clock:
The Clock output of 8284 is used as the system clock for the
8086/8088, 8087, and the bus controller 8288. It is having a duty
cycle of 33%. It is derived from the OSC frequency generated by the
crystal oscillator, or from an External Frequency Input (EFI). These
two signals are inputs to a multiplexer. The F/C* (external
frequency/crystal) input to the multiplexer decides this aspect. If
F/C*=0, OSC frequency is used for deriving Clock. If F/C*=1, EFI
input is used for deriving clock. The output of the multiplexer,
which is OSC or EFI, is divided by 3 to provide the Clock output.
Thus, if F/C*=0, clock frequency will be 14.31MHz/3=4.77MHz.
Continued
Continued
PCLK:
PCLK frequency output is obtained by dividing clock
frequency by 2. PCLK is used by dividing clock frequency
by 2. PCLK is used by support chips like 8254 timer,
which need a lower frequency for their operation.
Continued
Pin functions of
8284A:
X1
and X2
The Crystal Oscillator pins connect to an external
crystal used as the timing source for the clock
generator and all its functions.
EFI
F/C*
CSYNC
OSC
CLK
PCLK
Clock
Generator
(8284A
and
the
8086/8088
microprocessor illustrating the connection for the clock
and reset signals (A 15MHz crystal provides the 5MHz
clock for the microprocessor)
Ready Logic
The Ready Logic generates the Ready signal for the 8086/8088. If
the Ready signal is made low by this circuit during T2 state of a
machine cycle, the microprocessor introduces a wait state between
T3 and T4 states of the machine cycle.
Continued
Reset Logic
Continued
Reset Logic
The Reset logic generates the Reset input signal for the
8086/8088. When the RESET* pin goes low, the Reset
output is generated by the 8284 when the next clock
transition takes place.
In PCs, the RES* input is activated by one of the following.
From the manual Reset button on the front panel.
From the Power on Reset circuit, which uses RC
components.
If the Power Good signal from the SMPS is not active.
RD
WR
A0
A1
A2
A3
A4
A5
A6
D3
D3
D0
RAM3
D3
D0
RAM4
D3
RD
WR
Y0
Y1
CS
ACOE255
RAM2
Address
Selection
D0
CS
RD
WR
CS
RD
WR
CS
RD
WR
D0
CS
Y2
Y3
2X4 DEC.
Microprocessors I - Frederick
University
61
Memory Maps
A5
A6
A5
A6
00 - 07
RAM
08 - 0F
RAM
10 - 17
RAM
18 - 1F
RAM
20 - 3F
40 - 5F
60 - 7F
Not
Used
Not
Used
Not
Used
00 - 1F
A5
A6
Not
Used
20 - 27
RAM
28 - 2F
RAM
30 - 37
RAM
38 - 3F
RAM
40 - 5F
60 - 7F
Microprocessors I - Frederick
University
Not
Used
Not
Used
A5
A6
00 - 1F
Not
Used
20 - 3F
Not
Used
40 - 47
RAM
48 - 4F
RAM
50 - 57
RAM
58 - 5F
RAM
60 - 7F
Not
Used
00 - 1F
Not
Used
20 - 3F
Not
Used
40 - 5F
Not
Used
60 - 67
RAM
68 - 6F
RAM
70 - 77
RAM
78 - 7F
RAM
62
A5
A6
Address Selection
Circuit
A6
0
0
0
A5
0
0
0
A4
0
0
0
A3
0
0
1
A2
0
1
0
A1
0
1
0
A0
0
1
0
Address Selection
Circuit
A5
A6
A 6 A 5 A 4 A 3 A 2 A 1 A 0 Mem. Map
0 0 0 0 0 0 0 00
Not
Used
0 0 1 1 1 1 1 1F
0 0 1 0 1 1 1
0 0 1 1 0 0 0
0 0 1 1 1 1 1
Mem. Map
00
RAM1
07
08
RAM2
0F
10
RAM3
17
18
RAM4
1F
0 1 0 0 0 0 0
1 1 1 1 1 1 1
20
7F
0 0 0 1 1 1 1
0 0 1 0 0 0 0
ACOE255
Not
Used
A5
A6
Address Selection
Circuit
A6
0
0
1
A5
0
1
0
A4
0
1
0
A3
0
1
0
A2
0
1
0
A1
0
1
0
A0
0
1
0
A6
0
1
1
1 0 0 1 1 1 1
1 0 1 0 0 0 0
1 0 1 0 1 1 1
Mem. Map
00
Not
Used
3F
40
RAM1
47
48
RAM2
4F
50
RAM3
57
1 1 0 1 1 1 1
1 1 1 0 0 0 0
1 1 1 0 1 1 1
Mem. Map
00
Not
Used
5F
60
RAM1
67
68
RAM2
6F
70
RAM3
77
1 1 1 1 0 0 0
1 1 1 1 1 1 1
78
7F
0 1 0 0 0 0 0
20
0 1 0 0 1 1 1
0 1 0 1 0 0 0
0 1 0 1 1 1 1
27
28
2F
0 1 1 0 0 0 0
0 1 1 0 1 1 1
30
37
RAM3
0 1 1 1 0 0 0
0 1 1 1 1 1 1
38
3F
RAM4
1 0 1 1 0 0 0
1 0 1 1 1 1 1
58
5F
RAM4
1 0 0 0 0 0 0
1 1 1 1 1 1 1
40
7F
Not
Used
1 1 0 0 0 0 0
1 1 1 1 1 1 1
60
7F
Not
Used
RAM1
RAM2
A5
A6
Address Selection
Circuit
1 0 0 0 1 1 1
1 0 0 1 0 0 0
Microprocessors I - Frederick
University
A5
0
0
1
A4
0
1
0
A3
0
1
0
A2
0
1
0
A1
0
1
0
A0
0
1
0
1 1 0 0 1 1 1
1 1 0 1 0 0 0
RAM4
63
Example: (32X4 RAM module using 8X4 RAM chips - Assume an 8address line processor)
D3
D0
D3
D0
D3
D0
D3
D0
D3
D0
8x4 RAM 1
A0
8x4 RAM 2
A0
8x4 RAM 3
A0
8x4 RAM 4
A0
A2
A2
A2
A2
RD
WR
CS
RD
WR
CS
RD
WR
CS
RD
WR
CS
RD
WR
A0
A2
A3
A4
2X4 DEC.
A
B
A5
A6
Y0
Y1
Y2
CS
Y3
A7
ACOE255
Microprocessors I - Frederick
University
64
Address Selection
Circuit
A5
A6
A7
Address Selection
Circuit
A5
A6
A7
Address Selection
Circuit
A5
A6
A7
A7 A6 A5 A4 A3 A2 A1 A0 Mem. Map
0 0 0 0 0 0 0 0 00
RAM1
0 0 0 0 0 1 1 1 07
A7 A6 A5 A4 A3 A2 A1 A0 Mem. Map
0 0 0 0 0 0 0 0 00 Not
1 0 0 1 1 1 1 1 9F Used
A7 A6 A5 A4 A3 A2 A1 A0 Mem. Map
0 0 0 0 0 0 0 0 00 Not
1 1 0 1 1 1 1 1 DF Used
0 0 0 0 1 0 0 0 08
RAM2
0 0 0 0 1 1 1 1 0F
1 0 1 0 0 0 0 0 A0
RAM1
1 0 1 0 0 1 1 1 A7
1 1 1 0 0 0 0 0 E0
RAM1
1 1 1 0 0 1 1 1 E7
0 0 0 1 0 0 0 0 10
1 0 1 0 1 0 0 0 A8
1 1 1 0 1 0 0 0 E8
RAM3
0 0 0 1 0 1 1 1 17
0 0 0 1 1 0 0 0 18
RAM4
0 0 0 1 1 1 1 1 1F
1 0 1 0 1 1 1 1 AF
1 0 1 1 0 0 0 0 B0
RAM3
1 0 1 1 0 1 1 1 B7
RAM2
1 1 1 0 1 1 1 1 EF
1 1 1 1 0 0 0 0 F0
RAM3
1 1 1 1 0 1 1 1 F7
0 0 1 0 0 0 0 0 20
1 0 1 1 1 0 0 0 B8
1 1 1 1 1 0 0 0 F8
Not
1 1 1 1 1 1 1 1 FF Used
ACOE255
RAM2
RAM4
1 0 1 1 1 1 1 1 BF
1 1 0 0 0 0 0 0 C0 Not
1 1 1 1 1 1 1 1 FF Used
Microprocessors I - Frederick
University
1 1 1 1 1 1 1 1 FF
RAM4
65
Design Example:
Design an 8KX8 RAM module using 2KX8 RAM chips. The module should be
connected on an 8-bit processor with a 16-bit address bus, and occupy the address
range starting from the address A000. Show the circuit and the memory map.
Number of memory devices
needed = 8K/2K = 4
Decoder needed = 2X4
Number of address lines on each
2KX8 memory chip = 11
2m = 2K = 21 x 210 = 211
(A0..A10)
Decoder needed = 2X4
2 address lines are needed for
the decoder. (A11..A12)
Number of address lines needed
for the address selection circuit
= 16 - 11 - 2 = 3 (A13, A14
A15)
ACOE255
Microprocessors I - Frederick
University
66
Circuit Diagram
D7
D0
D7
2Kx8 RAM
D0
D0
D7
2Kx8 RAM
D0
D7
2Kx8 RAM
D0
2Kx8 RAM
A0
A0
A0
A0
A10
A10
A10
A10
RD
WR
CS
RD
WR
CS
RD
WR
D7
CS
RD
WR
CS
RD
WR
A0
2X4 DEC.
A11
A12
A13
A14
A15
ACOE255
A15
Y0
Y1
Y2
CS
Y3
Microprocessors I - Frederick
University
67
Address Decoding
The physical address space, or memory map, of a microprocessor
refers to the range of addresses of memory location that can
accessed by the microprocessor. The size of the address space
depends on the number of address lines of the microprocessor.
At least two memory devices are required in a microprocessor
system: one for the ROM and one for the RAM.
In an 8088/8086 the high addresses in the memory map should
always be occupied by a ROM, while the low addresses in the
memory map should always be occupied by a RAM.
Address decoding is required in order to enable the connection of
more than one memory devices on the microprocessor. Each
device will occupy a unique area in the memory map.
A memory system is not fully decoded if some of the address
lines are not used by the address decoding circuit or memory. In
this case a memory device will occupy more than one sections in
the memory map. This is referred as memory mirroring or
memory imaging.
ACOE255
Microprocessors I - Frederick
University
68
ACOE255
Microprocessors I - Frederick
University
69
A
A
A
A
A
0
14
MEM 1
CS
A
A
0
14
MEM 2
CS
19
18
17
16
15
14
Memory Map
28000H
2FFFFH
16
40000H
17
47FFFH
15
MEM1
MEM2
18
19
ACOE255
Microprocessors I - Frederick
University
70
DMA controller
Memoria
principala
UCP
HOLD
HOLDA
Magistrala de adrese
MA
Magistrala de date
MD
Magistrala de comenzi
MC
HRQ
HLDA
DRQ
DACK
Controler DMA
PI/E
Dispozitiv Periferic
A0-A15 BUSEN
HOLD
HOLDA
AEN
HRQ
HLDA
I8237A
ADSTB
DB0-DB7
DREQ0-3
CPU
CLOCK
RESET
MEMR#
MEMW#
IOR#
IOW#
D0-D7
Control buss
Sistem data buss
DACK0-3