Professional Documents
Culture Documents
MICROPROCESSOR
LEC -1
TOPIC:
Why 8086 was required?
EU(EXECUTION UNIT)
8086 Block Diagram
The 8086 hardware is internally divided into two functional parts:
They are
1. Bus Interface unit (BIU) 2. Execution Unit (EU)
BIU (Bus Interface Unit)
The BIU Contains following functional units
Prefetch Queue
Segment registers
Instruction pointer
0000 h 34 h
45 h
.
.
. Prefetch queue
Execution Unit
On going program
. 10 h
(44 h)
44 h B1 h
F3FF h 23 h
10 h
B1 h 40 h
23 h 22 h
33 h
40 h
22 h
FFFF h
Advantage of Prefetch Queue
0000 h 34 h
45 h
22 h
15 h
. Prefetch
queue1 Execution Unit
On going program
. 10 h
34 44 h
34
44 h B1
F3FF h 45 hh
10 h 23 hh
22
B1 h 40 hh
15
23 h 22 h
.. h
JMP 0000 h 40 h 33 h
.. h
22 h
FFFF h
Thank
you
For more Educational Videos, SUBSCRIBE to our channel Origin’s e-Shala
For downloading this PPT in Editable format, visit our blog
www.OriginsConglomerate.blogspot.com
Or check link in Description
8086
MICROPROCESSOR
LEC -4
TOPIC:
Pipelining
8085 Instruction Execution
In 8085 to run any instruction a fetch-decode-execute
cycle needs to be completed
But this cycle used to be performed only one at a
time for instructions due to which overall
performance of processor was slow.
T1 T2 T3 T4 T5 T6 T7 T8 T9
Fetch Decode Execute Fetch Decode Execute Fetch Decode Execute
T1 T2 T3 T4 T5 T6
Fetch Decode Execute
AH AX AL
BH BX BL
CH CX CL
DH DX DL
General Purpose Registers
AH is higher byte of AX register while AL is lower byte of AX
register. Same is for BX. CX and DX.
The AX Register is known as accumulator of 8086 and used
as default register in some instructions like multiplication and
division.
The BX register is called base register as it is frequently used
as Pointer to memory location.
The CX register is used as counter in looping and repeat
instructions and hence sometimes also known as counter
register.
The DX register is referred as data register as it is used as I/O
address pointer in IN and OUT Instructions.
Stack Pointers
A 16-bit register SP (stack pointer) is used to
store Offset address of top of stack where last
value is stored.
The 8086 has another stack pointer known as
BP (Base pointer).
It is also used with stack segment and very
useful in parameter passing and accessing
during subroutine execution.
Index Registers
The 8086 has two more 16-bit registers known as
index registers.
They are SI (Source Index) and DI (Destination
Index).
They can used only as 16-bit registers.
They can be used as general purpose registers or as
Index registers to keep track of index values in
arrays.
The Sl and DI registers are used inherently in string
instructions to point to source & destination strings
respectively.
Thank
you
For more Educational Videos, SUBSCRIBE to our channel Origin’s e-Shala
For downloading this PPT in Editable format, visit our blog
www.OriginsConglomerate.blogspot.com
Or check link in Description
8086
MICROPROCESSOR
LEC -6
TOPIC:
FLAG REGISTER OF 8086
Flag Registers
It is a 16-bit register and contains 9 flags.
They are divided into two categories as flags
Control flags:
Trap Flag (TF)
Interrupt Flag (IF)
Direction Flag (DF)
Conditional flags:
Carry Flag (CF)
Parity Flag (PF)
Auxiliary Carry Flag (AF)
Zero Flag (ZF),
Sign Flag ( SF),
Over flow Flag (OF)
Conditional flags
ZERO FLAG PARITY FLAG
1=Result Zero 1=Even Parity
0=Result Non-zero 0=Odd Parity
- - - - OF DI IF TF S Z - AC - PF - CF
TOPIC:
8086 MEMORY SEGMENTATION
8086 MEMORY SEGMENTATION
8086 MEMORY SEGMENTATION
TOPIC:
PIN DIAGRAM OF 8086
MINIMUM MODE
Pin Diagram of 8086
The 8086 microprocessor contains the 40 pins
The 8086 supports two hardware operating modes:
Minimum mode
Maximum mode
The operating mode of the 8086 is decided by the pin number
33 called MN/MX.
The functions of pins 24 to 31 are different in minimum and
maximum modes, The rests of the pins work in same way in
both the modes.
Pin Diagram of 8086(Minimum Mode)
GND 1 40 VCC
AD14 2 39 AD15
Vcc and GND pins are used to
AD13 3 38
connect the power source to
AD12 4 37
the microprocessor.
AD11 5 36
AD10 6 35
AD9 7 34
AD8 8 33 MN/MX’ MN/MX : This pin decides the
CLK: It is called clock input. It is
AD7 9 32 operating mode of the 8086
connected to the external INTEL
AD6 10 31 processor. If it is at Logic 1,
circuit providing clock input to 8086
AD5 11 MICROPROCESSOR 30 then the 8086 operates in
the 8086 microprocessor.
AD4 12 29 minimum mode and if it is at
AD15-AD0 : This is called AD3 13 28 Logic 0, then 8086 operates in
multiplexed address/data bus. AD2 14 27 maximum mode.
AD1 15 26
When ALE = 1, it is used as
AD0 16 25
address bus (lower 16 bits) and
17 24
when ALE = 0, it is used as 16-bit
18 23
data bus. CLK 19 22
GND 20 21
Pin Diagram of 8086(Minimum Mode)
S6, S5, S4, S3: These are
GND 1 40 VCC status lines and multiplexed
AD14 2 39 AD15 with upper 4 address bits
AD13 3 38 AD16/ S3 A19-A16. They are effective
AD12 4 37 AD17/ S4 when ALE = 0.
AD11 5 36 AD18/ S5 These pins are used to
AD10 6 35 AD19/S6 A19-A16 : These
indicate the four pins
processor
AD9 7 34 represents
status as: S6 theis upper
always40,bits
S5 of
AD8 8 33 MN/MX’ 20-bit address
gives status of when ALE=1.
interrupt flag
AD7 9 32 They are multiplexed
and S4,S3 together giveswith
INTEL
AD6 10 31 status linesofS6-
the status S3 and called
which
8086
AD5 11 MICROPROCESSOR 30 A19/S6-A16/S3
segment register is
AD4 12 29 currently used to generate
AD3 13 28 the address.
AD2 14
ALE : It is called Address Latch
27
AD1 15
Enable (ALE). When this pin is
26
AD0 16
high, the multiplexed
25 ALE
17
address/data bus work as
24
18
address bus and when it is low
23
CLK 19 22
address/bus work as data bus
GND 20 21 and status bus respectively.
Pin Diagram of 8086(Minimum Mode)
GND 1 40 VCC BHE/S7: The BHE (Bus High
AD14 2 39 AD15 Enable) pin acts as enable
AD13 3 38 AD16/ S3 signal for the odd memory
AD12 4 37 AD17/ S4 bank in 8086 system. It is also
AD11 5 36 AD18/ S5 multiplexed with the status
AD10 6 35 AD19/S6 signal S7.
AD9 7 34 BHE/S7
AD8 8 33 MN/MX’ RD/WR: These are known as
AD7 9 32 RD’ Read and Write control signals.
INTEL When RD= 0, the processor is
AD6 10 31
8086
AD5 11 MICROPROCESSOR 30 reading from memory or IO
AD4 12 29 WR’ device. When WR=0, the
AD3 13 28 M/IO’ processor is writing to memory
AD2 14 27 or IO device.
AD1 15 26
AD0 16
M/IO: It is called memory/IO
25 ALE
17
pin. When it is 1, processor
24
18
deals with memory and when
23
CLK 19
it is 0, processor deals with
22
GND 20 21
Input/Output devices.
Pin Diagram of 8086(Minimum Mode)
GND 1 40 VCC
AD14 2 39 AD15
AD13 3 38 AD16/ S3
NMI, INTR : These are AD12 4 37 AD17/ S4 HOLD, HLDA: These pins are
interrupt pins. The NMI and AD11 5 36 AD18/ S5 used to interface 8086 with
INTR are used by external AD10 6 35 AD19/S6 DMA (Direct Memory Access)
devices to send the interrupt AD9 7 34 BHE/S7 controller.
request. AD8 8 33 MN/MX’ The HOLD is an request from
The INTA indicates interrupt AD7 9 32 RD’ DMA controller for getting
acknowledgement. INTEL
AD6 10
8086
31 control
HOLD DT/R: It of buses Data
is called & HLDA (Hold
The NMI is non-maskable AD5 11 Acknowledgement) is used
MICROPROCESSOR 30 HLDA Transmit/Receive. When it isto1,
interrupt and can not be AD4 12 29 WR’ indicate the requestdata
is granted
processor transmits and
disabled, while INTR is AD3 13 28 by processor.
M/IO’ when it is 0, processor receives
maskable and can be disabled. AD2 14 27 DT/R’ data.
AD1 15 26 DEN’
AD0 16
DEN: It is called data enable
25 ALE
NMI 17
pin and goes low during read
24 INTA’
INTR 18
operation to enable the
23
CLK 19
memory.
22
GND 20 21
Pin Diagram of 8086(Minimum Mode)
GND 1 40 VCC
AD14 2 39 AD15
AD13 3 38 AD16/ S3
AD12 4 37 AD17/ S4
AD11 5 36 AD18/ S5
AD10 6 35 AD19/S6
AD9 7 34 BHE/S7
AD8 8 33 MN/MX’
AD7 9 32 RD’
INTEL TEST: It is used during the
AD6 10 31 HOLD
8086
AD5 11 MICROPROCESSOR 30 HLDA execution of WAIT instruction
AD4 12 29 WR’ to synchronize with external
AD3 13 28 M/IO’ hardware.
RESET: When processor
AD2 14 27 DT/R’ receives 0 on this pin, it resets
AD1 15 26 DEN’ itself.
READY: This is input signal and
AD0 16 25 ALE used to synchronize the
NMI 17 24 INTA’
processor with slow devices
INTR 18 23 TEST’
during external operations
CLK 19 22 READY
GND 20 21 RESE
Thank
you
For more Educational Videos, SUBSCRIBE to our channel Origin’s e-Shala
For downloading this PPT in Editable format, visit our blog
www.OriginsConglomerate.blogspot.com
Or check link in Description
8086
MICROPROCESSOR
LEC -10
TOPIC:
PIN DIAGRAM OF 8086
MAXIMUM MODE
Pin Diagram of 8086(Maximum Mode)
The 8086 microprocessor contains the 40 pins.
The operating mode of the 8086 is decided by the pin
number 33 called MN/MX.
When this pin MN/MX is 0 the 8086 works in
maximum mode.
The functions of pins 24 to 31 are different in
minimum and maximum modes, The rests of the pins
work in same way in both the modes.
Pin Diagram of 8086(Maximum Mode)
GND 1 40 VCC
AD14 2 39 AD15
AD13 3 38 AD16/ S3
AD12 4 37 AD17/ S4
AD11 5 36 AD18/ S5
AD10 6 35 AD19/S6
AD9 7 34 BHE/S7
AD8 8 33 MN/MX’
AD7 9 32 RD’
INTEL
AD6 10 31 HOLD
8086
AD5 11 MICROPROCESSOR 30 HLDA
AD4 12 29 WR’
AD3 13 28 M/IO’
AD2 14 27 DT/R’
AD1 15 26 DEN’
AD0 16 25 ALE
NMI 17 24 INTA’
INTR 18 23 TEST’
CLK 19 22 READY
GND 20 21 RESE
Pin Diagram of 8086(Maximum Mode)
GND 1 40 VCC
AD14 2 39 AD15
AD13 3 38 AD16/ S3
AD12 4 37 AD17/ S4
AD11 5 36 AD18/ S5
AD10 6 35 AD19/S6
RQ/GT1. RQ/GT0: The
AD9 7 34 BHE/S7
functions of HOLD and HLDA
AD8 8 33 MN/MX’ pins are replaced by RQ/GT
AD7 9 32 RD’ (Request//Grant) pins.
INTEL They are used by another
AD6 10 31 RQ’/GT0’
8086
AD5 11 MICROPROCESSOR 30 RQ’/GT1’
processor in system to gain the
AD4 12 29 LOCK’
control of system.
AD3 13 28 LOCK: This signal is used to
AD2 14 27 prevent another processor in
AD1 15 26 system to gain the control of
AD0 16 25 system.
NMI 17 24
INTR 18 23 TEST’
CLK 19 22 READY
GND 20 21 RESE
Pin Diagram of 8086(Maximum Mode)
GND 1 40 VCC
AD14 2 39 AD15
AD13 3 38 AD16/ S3
AD12 4 37 AD17/ S4
AD11 5 36 AD18/ S5
AD10 6 35 AD19/S6
AD9 7 34 BHE/S7
AD8 8 33 MN/MX’
AD7 9 32 RD’ S2, S1, S0: These are status
INTEL signals connected as input to
AD6 10 31 RQ’/GT0’
8086
AD5 11 MICROPROCESSOR 30 RQ’/GT1’ external bus controller 8288 as
AD4 12 29 LOCK’ 8086 does not generate status
AD3 13 28 S2’ signals directly in maximum
AD2 14
QS1,
mode.QS0: These queue status
27 S1’
AD1 15
signals are used
The control to provide
signals are the
26 S0’
AD0 16
status of internal
provided queue in
by the 8288
25 QS0
NMI 17
maximum mode.
controller in maximum mode.
24 QS1
INTR 18
23 TEST’
CLK 19 22 READY
GND 20 21 RESE
Thank
you
For more Educational Videos, SUBSCRIBE to our channel Origin’s e-Shala
For downloading this PPT in Editable format, visit our blog
www.OriginsConglomerate.blogspot.com
Or check link in Description