Professional Documents
Culture Documents
ENGINEERING
DEPARTMENT OF COMPUTER
SCIENCE AND ENGG.
Bachelor of Engineering (Computer Science & Engineering)
Microprocessor & Interfacing (CST-282/ITT-282)
Prepared by: Er. Virender Kumar
COURSE OUTCOMES
CO Title Level
Number
CO1
INTRODUCTION
In 1978 , Intel released its first 16 bit microprocessor i.e. 8086 which executes the
instructions at 2.5 MIPS(million /s) [1]
• The execution time is 400 ns.
• An 8086 has 20 bit address bus, so it can access 2^20 =66Kb of memory.
• Width of the data bus of 8086 is 8 bit.
PIN DIAGRAM OF 8086
1. Minimum : All control signals for memory and I/O are generated by 8086.
It is a uniprocessor configuration.
2. Maximum : Some control signals are generated externally which requires
the addition of external bus controller such as 8288 to 8086. It is a
multiprocessor configuration.
Figure: Block Diagram of MIN mode OF 8086 [3]
Figure: Block Diagram of MAX mode OF 8086 [3]
Various Pins of 8086
• Pins common to Minimum and Maximum modes:
• AD15-AD0
• A19/S6
• A18/S5
• A17/S4
• A16/S4
• BHE/S7
• RD
• READY
• INTR
• TEST
• CLK
• MN/MX
Pins for the minimum mode operation
• M/IO
• INTA
• ALE
• DT/R
• DEN
• HOLD/HLDA
Pins applicable for maximum mode operation
of 8086
• S2, S1, S0
• LOCK
• QS1, QS0QS1 QS0 Indication
0 0 No operation
17
• Bus Interface Unit : It consists of
• Adder for address calculations
• Four 16 bit segment registers
• A 16 bit Instruction pointer
• A 6 byte long instruction queue
• Control logic
BIU and EU has been shown in the block diagram in the next slide
18
Figure: Internal block diagram of 8086 [4]
19
Internal architecture of 8086
21
INTRODUCTION
In 1978 , Intel released its first 16 bit microprocessor i.e. 8086 which executes the
instructions at 2.5 MIPS(million /s) [1]
• The execution time is 400 ns.
• An 8086 has 20 bit address bus, so it can access 2^20 =66Kb of memory.
• Width of the data bus of 8086 is 8 bit.
EXECUTION UNIT – General Purpose Registers
16 bits
8 bits 8 bits
AH AL Accumulator
AX
BX BH BL Base
CX CH CL Count
DX DH DL
Data
SP
Stack Pointer
Pointer BP Base Pointer
SI
Source Index
Index
DI
Destination Index
23
EXECUTION UNIT – General Purpose Registers
Register Purpose
AX Word multiply, word divide, word I /O
AL Byte multiply, byte divide, byte I/O, decimal arithmetic
24
How to find base address?
• Base address of any segment can be obtained by adding four binary 0’s to the
right portion of the content of corresponding segment register
• It is like shifting the content of the segment registers to the right by 4 bits.
25
• The following examples shows the CS:IP scheme of address formation:
34BA0(CS)+
8AB4(IP)
3 D 6 5 4 (next address)
44B9F
26
• Example For Address Calculation (segment: offset)
• If the data segment starts at location 2000h and a data reference contains
the address 48h where is the actual data?
27
28
Physical Memory
1 MB
00000H to FFFFFH Extra segment (64KB)
FFFFF
29
MEMORY
00000
BIU
Segment Registers 34BA0
CODE (64k)
44B9F
CSR 34BA
44EB0
DATA (64K)
MB
1
44EB 54EAF
DSR
54EB0
ESR 54EB EXTRA (64K)
64EAF
695E 695E0
SSR
STACK (64K)
795DF
Each segment register store the upper 16 bit of the starting address
of the segments
30
Addressing modes
• Addressing modes : Addressing modes indicates the way in which the
operand (data/ address) for an instruction is accessed and the way in which
microprocessor calculated the branch address for jump or call or return
instruction [6]
I. Register addressing mode : Data presented in register is moved or
manipulated and result is stored in register.
MOV AL ,BL
MOV BX,AX
register register
II. Immediate addressing mode: The data ( 8 bit / 16 bit ) is directly given in
the instruction.
e.g: MOV AL, 50 H
MOV BX, 23A0 H
III. DATA ADDRESSING MODE : The term effective address means the offset
address of the data within the segment which is obtained by different
methods depending upon the mode
• Direct address mode
MOV AL,[1000]
MOV BX, [2000]
3F03 - 80x86 assembler
• Base addressing mode: In this mode EA is the content of BX or BP
• When BX register is present in the instruction, data is taken from
the data segment and when BP is present, data is taken from the
stack segment.
MOV AX,[BX]
• Base Relative Address:
MOV AX, [BX+5]
MOVCH,[BX-100]
• Base Relative plus Index Addressing mode :
MOV CX, [BX+SI+50H]
For queries
Email: virenderkumar.cse@cumail.in