Professional Documents
Culture Documents
Microprocessor
3
8086 Microprocessor
Salient Features of 8086
4
8086 Microprocessor
Salient Features of 8086
5
Pins and signals
8086 Microprocessor
Pins and Signals Common signals
AD0-AD15 (Bidirectional)
Address/Data bus
7
8086 Microprocessor
Pins and Signals Common signals
MN/ MX
MINIMUM / MAXIMUM
READY
RESET (Input)
CLK
11
8086 Microprocessor
Pins and Signals Minimum mode signals
13
8086 Microprocessor
Pins and Signals Maximum mode signals
14
8086 Microprocessor
Pins and Signals Maximum mode signals
15
8086 Microprocessor
Pins and Signals Maximum mode signals
16
8086 Architecture
8086 Microprocessor
Architecture
18
8086 Microprocessor
Architecture
Segment
Registers
21
8086 Microprocessor
Architecture Bus Interface Unit (BIU)
22
8086 Microprocessor
Architecture Bus Interface Unit (BIU)
23
8086 Microprocessor
Architecture Bus Interface Unit (BIU)
24
8086 Microprocessor
Architecture Bus Interface Unit (BIU)
25
8086 Microprocessor
Architecture Bus Interface Unit (BIU)
26
8086 Microprocessor
Architecture Bus Interface Unit (BIU)
Instruction queue
A group of First-In-First-
Out (FIFO) in which up to
6 bytes of instruction
code are pre fetched
from the memory ahead
of time.
27
8086 Microprocessor
Architecture Execution Unit (EU)
EU decodes and
executes instructions.
A decoder in the EU
control system
translates instructions.
and
Some of the 16 bit registers can be
Index registers (Source used as two 8 bit registers as :
Index, Destination Index)
each of 16-bits AX can be used as AH and AL
BX can be used as BH and BL
CX can be used as CH and CL 28
DX can be used as DH and DL
8086 Microprocessor
Architecture Execution Unit (EU)
29
8086 Microprocessor
Architecture Execution Unit (EU)
30
8086 Microprocessor
Architecture Execution Unit (EU)
Example:
31
8086 Microprocessor
Architecture Execution Unit (EU)
EU
Registers
32
8086 Microprocessor
Architecture Execution Unit (EU)
33
8086 Microprocessor
Architecture Execution Unit (EU)
34
8086 Microprocessor
Architecture Execution Unit (EU)
35
8086 Microprocessor
Concept of the Pipelining
IF Instruction Fetch
ID Instruction Decode
OF Operand Fetch
OE Operand Execute
RS Result Store
IF ID OF OE RS
IF ID OF OE RS
IF ID OF OE RS
Ex of Non Pipelining
36
8086 Microprocessor
Concept of the Pipelining
IF Instruction Fetch
ID Instruction Decode
OF Operand Fetch
OE Operand Execute
RS Result Store
IF ID OF OE RS
IF ID OF OE RS
IF ID OF OE RS
Ex of Pipelining
37
8086 Microprocessor
Architecture Execution Unit (EU)
Auxiliary Carry Flag
Carry Flag
Flag Register This is set, if there is a carry from the
This flag is set, when there is
lowest nibble, i.e, bit three during
addition, or borrow for the lowest a carry out of MSB in case of
nibble, i.e, bit three, during addition or a borrow in case
subtraction. of subtraction.
This flag is set, when the This flag is set, if the result of This flag is set to 1, if the lower
result of any computation the computation or comparison byte of the result contains even
is negative performed by an instruction is number of 1’s ; for odd number
zero of 1’s set to zero.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
OF DF IF TF SF ZF AF PF CF
Tarp Flag
Over flow Flag If this flag is set, the processor
This flag is set, if an overflow occurs, i.e, if the result of a signed
enters the single step execution
operation is large enough to accommodate in a destination
mode by generating internal
register. The result is of more than 7-bits in size in case of 8-bit
signed operation and more than 15-bits in size in case of 16-bit interrupts after the execution of
sign operations, then the overflow will be set. each instruction
8086 registers
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
categorized
into 4 groups OF DF IF TF SF ZF AF PF CF
41
8086 Microprocessor
Memory organization in 8086
43
8086 Microprocessor
Interfacing SRAM and EPROM
44
8086 Microprocessor
Interfacing SRAM and EPROM
45
8086 Microprocessor
Interfacing SRAM and EPROM
46
8086 Microprocessor
Interfacing SRAM and EPROM
Monitor Programs
Programing 8279 for keyboard scanning and display
refreshing
Initialization of stack
47
8086 Microprocessor
Interfacing I/O and peripheral devices
I/O devices
For communication between microprocessor and
outside world
Ports / Buffer IC’s
Microprocessor I/ O devices
(interface circuitry)
Interrupt driven I/ O
I/O device interrupts the
processor and initiate data
transfer
Direct memory access
Data transfer is achieved by 48
bypassing the microprocessor