16 Bit Microprocessor: Nitin Kr. Dhakad 12115063
16 Bit Microprocessor: Nitin Kr. Dhakad 12115063
Microprocessor
Nitin Kr. Dhakad
12115063
1
Intelligent Instrumentation
Facilitates communication and control
Automation
Features of 8086
16-Bit Processor
ALU, Registers work with 16 Bit binary word
It has a 16 bit data bus
Can read or write data to a memory/port either 16bits or 8 bit at a time.
Has a 20bit address bus meaning it can address up to 2 20 = 1MB memory location
Fourteen , 16-Bit Registers
Frequency range of 8086 is 6-10 MHz
Address ranges from 00000H to FFFFFH
3
Architecture of 8086
Functional Blocks
Two blocks BIU and EU.
The BIU handles all transactions of data and addresses on the buses for EU.
The BIU performs all bus operations such as
-Instruction fetching
-Reading and writing operands for memory
-Calculating the addresses of the memory operands
Both units operate asynchronously to give the 8086 an overlapping instruction fetch and execution mechanism which is called as Pipelining This results in efficient use of the system bus and system performance.
Memory
6-byte Instruction Queue (Q)
The Segment Registers (CS, DS, ES, SS).
The Instruction Pointer (IP).
The Address Summing block ()
Memory
The memory in an 8086 based system is organized as segmented memory.
The CPU 8086 is able to address 1Mbyte of memory.
The Complete physically available memory may be divided into a number of logical segments.
The size of each segment is 64 KB
A segment is an area that begins at any location which is divisible by 16.
The 4 segments are Code, Data, Extra and Stack segments.
Each of these segments can be used for a specific function.
Code segment is used for storing the instructions.
The stack segment is used as a stack and it is used to store the return address.
The data and extra segments are used for storing data byte.
7
Queue
The BIU uses a mechanism known as an instruction stream queue to implement a pipeline
architecture.
This queue permits pre-fetch of up to 6 bytes of instruction code.
These pre-fetching instructions are held in its FIFO queue. With its 16 bit data bus, the BIU
fetches two instruction bytes in a single memory cycle.
After a byte is loaded at the input end of the queue, it automatically shifts up through the
FIFO to the empty location nearest the output
The EU accesses the queue from the output end. It reads one instruction byte after the other
from the output of the queue.
The intervals of no bus activity, which may occur between bus cycles are known as Idle state.
8
Segment Registers
4 Segment registers
Code
Segment
register
Data Segment
register
Extra
Segment
register
Stack
Segment
register
9
Code segment
Stack segment
Data segment
Extra segment
The value of the instruction pointer is incremented after executing every instruction.
To form a 20bit address of the next instruction, the 16 bit address of the IP is added (by the address summing block) to the address contained in the
11
Execution Unit
Control Circuitry
Instruction decoder
ALU
Registers
12
16 bits
8 bits
8 bits
AH
AL
BH
BL
CH
CL
DH
DL
AX
BX
CX
DX
SP
Pointer
BP
SI
Index
DI
Accumulator
Base
Count
Data
Stack Pointer
Base Pointer
Source Index
Destination Index
13
Register
Purpose
AX
BX
CX
DX
14
Pointer
Index Register
Flag Register
A flag is a flip flop which indicates some conditions produced by the execution of an
instruction or controls certain operations of the EU .
15
Flag
Purpose
Carry (CF)
Parity (PF)
Auxiliary (AF)
Zero (ZF)
Sign (SF)
Flag
Purpose
Trap (TF)
A control flag.
Enables the trapping through an on-chip debugging
feature.
Interrupt (IF)
A control flag.
Controls the operation of the INTR (interrupt request)
I=0; INTR pin disabled. I=1; INTR pin enabled.
Direction (DF)
A control flag.
It selects either the increment or decrement mode for DI
and /or SI registers during the string instructions.
Overflow (OF)
Interrupt
s
INTR
NMI
Is a non-maskable interrupt.
Interrupt is processed in the same way as the INTR interrupt and has
higher priority then the maskable interrupt.
Software
interrupts
18
Applications of 8086
Patient Monitoring in Intensive Care Unit.
Pathological Analysis
Measurement of heart activity.
MRI scanning and CT scanning etc.
Instrumentation
Automation and
Control
Communication
Thank You !!