Documente Academic
Documente Profesional
Documente Cultură
Presented By,
Er. Swapnil V. Kaware
(Assistant Professor)
svkaware@yahoo.co.in
B.E.(Electronics), M.E.( Electronics)
8086 Overview
• Introduced in 1978.
• Having Total 40 Pins.
• Having Address Bus of 20 bit.
• Having Data Bus of 16 bit.
• HMOS Microprocessor.
• Consumes Low Power (i.e. 360 mA on 5v).
• Clock Frequencies of 5,8 & 10 MHz.
• Contains About 29000 Transistors.
• Can Address up to 1 Mbytes of Memory.
• It has more than 20,000 instructions.
Microprocessor Notes By, Er. Swapnil
• Provides fourteen 16-Bit registers. Kaware
8086 Architecture
AX AH AL Accumulator
BX BH BL Base Register
CX CH CL Count Register
DX DH DL Data Register
SP Stack Pointer
BP Base Pointer
EU registers SI Source Index Register
16 bit arithmetic DI Destination Index Register
FLAGS
Microprocessor Notes By, Er. Swapnil
Kaware
Instruction Queue
• It is of 6 Bytes.
• To increase the execution speed, BIU fetches as
many as six instruction bytes ahead to time from
memory.
• It operates on the principle first in first out (FIFO).
• Then all bytes are given to EU one by one.
• This pre-fetching operation of BIU may be in
parallel with execution operation of EU.
• It improves the execution speed of the instruction.
Microprocessor Notes By, Er. Swapnil
Kaware
Registers of 8086
• AX
• BX
• CX
• DX
Microprocessor Notes By, Er. Swapnil
Kaware
General Purpose Registers
• Each of these 16-bit registers are further
subdivided into two 8-bit registers.
AX AH AL
BX BH BL
CX CH CL
DX DH DL
Microprocessor Notes By, Er. Swapnil
Kaware
General Purpose Registers
• AX Register: AX register is also known as accumulator
register that stores operands for arithmetic operation
like divided, rotate.
(1). Stack Pointer (SP) is a 16-bit register pointing to program Stack, also
contains 16-Bit offset address.
(2). Base Pointer (BP) is a 16-bit register pointing to data in stack segment. BP
register is usually used for based indexed or register indirect addressing.
(3). Source Index (SI) is a 16-bit register. SI is used for indexed, based indexed
and register indirect addressing, as well as a source data address in string
manipulation Instructions
(4). Destination Index (DI) is a 16-bit register. DI is used for indexed, based
indexed and register indirect addressing, as well as a destination data
address in string manipulation instructions.
• For e.g.:
• The code segment register points to the starting address
of the code segment.
• There are nine status flags and seven bit positions remain
unused.
Microprocessor Notes By, Er. Swapnil
Kaware
Flag Register (PSW)
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
OF DF IF TF SF ZF AF PF CF
Carry Flag
Undefined Parity Flag
Auxiliary Carry Flag
Zero Flag
Sign Flag
Trap Flag
Interrupt Flag
Direction Flag
Overflow Flag
Microprocessor Notes By, Er. Swapnil
Kaware
Flag Register (PSW)
• Parity Flag (PF): This flag is used to indicate the parity of result.
If lower order 8-bits of the result contains even number of 1’s,
the Parity Flag is set and for odd number of 1’s, the Parity flag
is reset. Microprocessor Notes By, Er. Swapnil
Kaware
Flag Register (PSW)
• Zero Flag (ZF): It is set; if the result of arithmetic or
logical operation is zero else it is reset.
8086
Pin Diagram
BHE (Bus High Enable) /S7: The bus high enable is used to indicate the transfer of data
over the higher order ( D15-D8 ) data bus as shown in table.
BHE Pin A0 Pin Indication
0 0 Whole Word
0 1 Upper Byte from/to odd address
1 0 Lower Byte from/to even address
1 1 None Microprocessor Notes By, Er. Swapnil
Kaware
Function Of Pins of 8086
(1). RD: This signal on low indicates the peripheral that the
processor is performing memory or I/O read operation.
(5). CLK- Clock Input: The clock input provides the basic
timing pulses for processor operation and bus control
activity.
• Minimum mode:
– Pull MN/MX to logic 1.
– Typically smaller systems and contains a single microprocessor.
• Maximum mode:
– Pull MN/MX logic 0.
– Larger systems with more than one microprocessor.
Microprocessor Notes By, Er. Swapnil
Kaware
Common Signals In Both Mode
(2). IO/M line: When low indicates I/O device is accessed &
When high indicates memory device is accessed.
(4). BHE (Bank High Enable) line : when goes low indicates that
there is transfer of data on lower order bus (D0-D7) & when
goes high indicates that there is transfer of data on higher
order bus (D8-D15). Microprocessor Notes By, Er. Swapnil
Kaware
Signals In Minimum Mode
(5). RD line: when goes low indicates the processor to
read data from memory or I/O devices.
1 0 Empty queue
(16). RQ/GT0 and RQ/GT1: These pins are used to force the
processor to release the local bus at the end of processors current
bus cycle. Microprocessor Notes By, Er. Swapnil
Kaware
Signals In Maximum Mode
(17). S2, S1, S0 – Status Lines: These are the status lines
which reflect the type of operation, being carried out by
the processor.
S0 S1 S2 Indication
0 0 0 Interrupt Acknowledge
0 0 1 Read I/O port
0 1 0 Write I/O port
0 1 1 Halt
1 0 0 Code Access
1 0 1 Read memory
1 1 0 Write memory
1 1 1 Passive
Microprocessor Notes By, Er. Swapnil
Kaware
Concept of Pipelining
• In this technique we can execute more than one instruction at the
same time.
”Tech_Guru Swapnil
Kaware”
(Thanks For Watching)
Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in)