SlideShare a Scribd company logo
1 of 42
MICROPROCESSOR (8086)
BY
M.PADMALATHA
Associate Professor
8086 FEATURES
 It is a 16 bit μp.
 It is manufactured with H-MOS technology.
 8086 has a 20 bit address bus can access up to 220 memory
locations ( 1 MB) .
 It has multiplexed address and data bus AD0- AD15 and A16 –
A19.
 It provides fourteen 16-bit registers.
 8086 is designed to operate in two modes, Minimum(single
processor) and Maximum(multi processor).
 It can pre fetches up to 6 instruction bytes from memory and
queues them in order to speed up instruction execution.
 It can support upto 64K I/O ports.
 It requires a +5V power supply
 It is enclosed with 40 pins DIP (dual in line package).
 8086 has two blocks BIU and EU
 BIU contains Instruction queue, Segment
registers,Instruction pointer, Address adder.
 EU contains Control circuitry, Instruction decoder,
ALU,Pointer and Index register, Flag register.
 The BIU performs all bus operations such as instruction
fetching, reading and writing operands for memory and
calculating the addresses of the memory operands.
 EU executes instructions from the instruction system byte
queue.
INSTRUCTION QUEUE
 To increase the execution speed, BIU fetches as many
as six instruction bytes ahead of time from memory.
 All six bytes are arranged in first in first out structure in a
6 byte register called instruction queue.
 The instructions from the queue are taken sequentially
for decoding.
 This pre fetching operation of BIU may be in parallel
with execution operation of EU, which improves the
speed execution of the instruction.
 While opcode is fetched by BIU, the EU executes
previously decoded instruction concurrently. Thus BIU
along with EU forms a pipeline.
PHYSICAL ADDRESS FORMATION
 Segment address: 1005 H
 Offset address : 5555 H
Segment address: 1005 H: 0001 0000 0000 0101
Shifted left by 4 bit po’s :0001 0000 0000 0101 0000
+
Offset address : 0101 0101 0101 0101
Physical address :0001 0101 0101 1010 0101
1 5 5 A 5 H
 Physical address= 10H* Segment address+ Offset
address
EXECUTION UNIT (EU)
 It has 16 bit ALU, able to perform all arithmetic and
logical operations.
 The 16-bit flag register reflects the results of execution
by ALU.
 The decoding unit decodes the opcode bytes.
 The timing and control unit derives the necessary
control signals to execute the instruction.
REGISTER ORGANIZATION
GENERAL PURPOSE REGISTERS
 AX: used as 16-bit accumulator, with the lower 8-
bits of AX designated as AL and higher 8-bits as
AH.
 BX: used as offset storage for forming physical
addresses in case of certain addressing modes.
 CX: used as a default counter in case of string and
loop instructions.
 DX: used as an implicit operand or destination in
case of a few instructions.
used to hold data for MUL & DIV operations
SEGMENT REGISTERS
 Code Segment (CS): The CS register is used for
addressing a memory location in the Code Segment of
the memory, where the executable program is stored.
 Data Segment (DS): The DS register is used for
addressing the Data Segment of the memory, where
the data is stored.
 Stack Segment (SS): The SS register is used for
addressing the Stack Segment of the memory, i.e. the
memory which is used to store stack data.
 Extra Segment (ES): ES is additional data segment.
The ES register is used for addressing the Extra
Segment of the memory, where the data is stored.
POINTERS AND INDEX REGISTERS
 The pointers stores offset addresses within the particular
segments
IP code segment
BP data segment
SP stack segment
o Source Index (SI): It is used for storing offset address of
source data in data segment. It is also used for indexed,
based indexed and register indirect addressing modes.
 Destination Index (DI): It is used for storing offset address of
destination data in data or extra segment. It is also used for
indexed, based indexed and register indirect addressing
modes.
FLAG REGISTER
STATUS/CONDITIONAL CODE FLAGS
 SF :sign flag is set when the result of
operation is negative.
 ZF: zero flag is set when the result of
operation is zero.
 AF: auxiliary carry flag is set when there is a
carry from lower nibble or lower four bits of
the operation.
 PF: parity flag is set if the result has even
no.of ones in the lower byte.
 CF: carry flag is set when there is a carry
from the result.
 OF:over flow flag is set when the result of
signed operation overflows into the sign bit.
CONTROL FLAGS
 TF: When trap flag is set, the processor enters
into single step execution mode . i.e. It executes
the program instruction by instruction.
 IF: It is an interrupt enable/disable flag. If it is
set, the maskable interrupts are recognized by
the processor otherwise they are ignored.
 DF:It is used in string operation.
If it is set, string bytes are accessed from
higher memory address to lower memory
address. i.e. auto decrementing mode.
When it is reset, the string bytes are accessed
from lower memory address to higher memory
address. i.e. auto incrementing mode.
MEMORY SEGMENTATION
 The size of address bus of8086 is 20 and is able to
address 1 Mbytes (220 ) of physical memory.
 The compete 1 Mbytes memory can be divided into 16
segments, each of 64 Kbytes size and is addressed by
one of the segment registers.
 The addresses of the segment may be assigned as
0000H to F000H respectively.
 An offset address is used to address a specific memory
location within the segment.
 The offset address values are from 0000H to FFFF H so
that the physical addresses range from 00000H to
FFFFF H.
NON OVERLAPPING SEGMENTS
OVERLAPPING SEGMENTS
ADVANTAGES
 Allows the memory capacity to be 1MB although the
actual addresses to be handled are of 16 bit size.
 Allows the placing of code, data and stack portions of
the same program in different parts of memory for
protection.
PIN DIAGRAM
 AD15-AD0 : These are the time multiplexed memory I/O
address and data lines. Address remains on the lines
during T1 state, while the data is available on the data bus
during T2, T3, Tw and T4.
 When the memory or I/O device is not able to respond
quickly during transfer, wait states (Tw) are inserted
between T3 and T4 by disabling the READY input of the
8086. The bus activity during wait state is same as during
T3.
 A19/S6,A18/S5,A17/S4,A16/S3 : These are the time
multiplexed address and status lines.
 The S4 and S3 combinely indicate which segment register is
presently being used for memory accesses .
 The status of interrupt enable flag bit is updated at the beginning of
each clock cycle and it is displayed on S5
 The status line s6 is always low.
 BHE/S7 : The bus high enable is used to indicate the
transfer of data over the higher order ( D15-D8 ) data bus
.
 BHE is low during T1 for read, write and interrupt
acknowledge cycles, whenever a byte is to be transferred
on higher byte of data bus.
 BHE and A0 indicates which byte of data is transferring.
 RD – Read : This signal on low indicates the peripheral
that the processor is performing memory or I/O read
operation.
 READY : This is the acknowledgement from the slow
device or memory that they have completed the data
transfer.
 INTR-Interrupt Request : This is a level triggered input.
This is sampled during the last clock cycle of each
instruction to determine the availability of the request. If
any interrupt request is pending, the processor enters
the interrupt acknowledge cycle.
 TEST : This input is examined by a ‘WAIT’ instruction. If
the TEST pin goes low, execution will continue, else the
processor remains in wait state.
 CLK- Clock Input : The clock input provides the basic
timing for processor operation and bus control activity.
Its an square wave.
 NMI: An edge triggered input, causes a type-2 interrupt.
NMI is not maskable internally by software. A transition
from a LOW to HIGH on this pin initiates the interrupt at
the end of the current instruction.
 Reset: Reset causes the processor to terminate the
present activity and start execution from FFFF0H. This
signal is active high and must be active for at least four
clock cycles.
 MN/MX = 1 for minimum mode
= 0 for maximum mode
 When the Minimum mode operation is selected, the
8086
provides all control signals needed to implement the
memory and I/O interface.
 M/IO = 1 for memory operation
= 0 for I/O operation
 INTA: Interrupt Acknowledge. It goes low, when the
processor has accepted the interrupt. It is active LOW
during T2, T3, and T4 of each interrupt acknowledge
cycle.
 DT/ R :DATA Transmit/Receive
DT/ R = 1 when the processor transmits data
 = 0 when the processor receives data
 ALE : Address Latch Enable
It indicates the availability of valid address over the
address/data lines. It is used to enable the latches to
separate the address from the multiplexed address/data
signal.
 DEN :Data Enable
 It indicates the availability of valid data over the
address/data lines. It is used to enable the transceivers
to separate the data from the multiplexed address/data
signal.
 HOLD & HLDA: When the HOLD line goes high, it
indicates that another master is requesting the bus
access. After receiving the HOLD request, it issues HLDA
signal in the middle of next clock cycle .
 If a DMA request is made while cpu executing a program,
it will release the bus during T4 provided
 1.the request occur on or before T2 of current cycle
 2.the current cycle is not operating over the lower byte of
a word.
 3.a Lock instruction is not being executed.
 When the 8086 is set for the maximum-mode operation, it
provides signals for implementing a multiprocessor /
coprocessor system environment.
 S2, S1, S0 : these status lines indicate the type of
operation being carried out by the processor.
 These pins are active during T4, T1 and T2 states and is
returned to passive state during T3 or Tw (when ready is
inactive).
 QS0, QS1 : Queue – Status
these lines give information about the status of instruction
byte queue.
 LOCK : it indicates that other system bus master will be
prevented from gaining the system bus.
 RQ/GT0 and RQ/GT1 (I/O): Request/Grant
These pins are used by other processors in a multi
processor organization to force the processor to release the
Local bus at the end of current cycle.

PHYSICAL MEMORY ORGANIZATION
 In 8086 the 1MB physical memory is organized as odd
and even banks, each of 512KB.
 A byte data with even address is transferred on D0-D7,
while byte data with odd address is transferred on D8-
D15.
 The processor provides BHE and A0 for the selection of
either odd or even or both the banks.
 The memory map of 8086 system starts at 00000H to
FFFFFH.
 The locations from FFFF0H to FFFFFH are reserved for
operations including jump to initialization program and
I/O processor initialization .
 The locations 00000H to 003FFH are reserved for
interrupt vector table.
INTERRUPTS
 While CPU is executing a program, an interrupt break the normal
sequence of execution of instructions,diverts its execution to some
other program called Interrupt Service Routine(ISR).
 After executing ISR ,the control is transferred back again to the
main program.
 Whenever a no.of devices interrupt a CPU at a time and if the
processor is able to handle them properly,it is said to have multiple
interrupt processing capability.
 8086 has two interrupt pins NMI and INTR.
 NMI :Non Maskable Interrupt
 Any interrupt at NMI cannot be masked or disabled.
 INTR interrupt may be masked using Interrupt Flag. INTR is of 256
types.
 The INTR types may be from 00 to FF H. If more than one type of
INTR interrupt occurs at a time,then an external chip called
Programmable Interrupt Controller is required to handle them.

TYPES OF INTERRUPTS
 External interrupt: due to an external device or a
signal interrupts the processor.
 ex: keyboard interrupt
 Internal interrupt: generated internally by the
processor circuit or by execution of an interrupt
instruction.
 Ex: divide by 0, overflow interrupts and interrupts
due to INT instructions.
INTERRUPT CYCLE OF 8086
 When an external device interrupts the CPU at NMI or INTR
pin, while executing a program
 The CPU first completes the execution of current instruction
and IP is incremented to point the next instruction.
 The contents of IP and CS are pushed to stack.
 The CPU then only acknowledges the requesting device
immediately on INTA if it is a NMI,TRAP or divide by 0.
 If it is INTR request, the CPU checks the IF flag.
 If IF flag is set then it acknowledges the device otherwise the
interrupt is ignored.
 After acknowledgement the CPU computes the vector
address from the type of interrupt. Then the control is
transferred to ISR for serving the interrupt device.
 The ISR address is available in Interrupt Vector Table.
 At the end of ISR last instruction should be IRET.
INTERRUPT VECTOR TABLE
INTERRUPT RESPONSE SEQUENCE
NESTED INTERRUPTS

More Related Content

What's hot

Presentation on 8086 microprocessor
Presentation on 8086 microprocessorPresentation on 8086 microprocessor
Presentation on 8086 microprocessorDiponkor Bala
 
8086 modes
8086 modes8086 modes
8086 modesPDFSHARE
 
8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish Nagar8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish NagarNitish Nagar
 
Detailed Explanation of Pin Description of 8085 microprocessor
Detailed Explanation of Pin Description of  8085 microprocessorDetailed Explanation of Pin Description of  8085 microprocessor
Detailed Explanation of Pin Description of 8085 microprocessorRamesh Dabhole
 
Pin Description and Register Organization of 8086 Microprocessor
Pin Description and Register Organization of 8086 MicroprocessorPin Description and Register Organization of 8086 Microprocessor
Pin Description and Register Organization of 8086 MicroprocessorMuthusamy Arumugam
 
8086 Microprocessor powerpoint
8086  Microprocessor  powerpoint8086  Microprocessor  powerpoint
8086 Microprocessor powerpointRandhir Kumar
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set Deepak John
 
MICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSMICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSGeorge Thomas
 
PIN Specification of 8086 Microprocessor
PIN Specification of 8086 MicroprocessorPIN Specification of 8086 Microprocessor
PIN Specification of 8086 MicroprocessorNikhil Kumar
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Jismy .K.Jose
 
8085 microprocessor Architecture and pin description
8085 microprocessor Architecture and pin description 8085 microprocessor Architecture and pin description
8085 microprocessor Architecture and pin description Vijay Kumar
 
Flags registor of 8086 processor
Flags registor of 8086 processorFlags registor of 8086 processor
Flags registor of 8086 processorFazle Akash
 

What's hot (20)

Presentation on 8086 microprocessor
Presentation on 8086 microprocessorPresentation on 8086 microprocessor
Presentation on 8086 microprocessor
 
8086 modes
8086 modes8086 modes
8086 modes
 
Module 1 8086
Module 1 8086Module 1 8086
Module 1 8086
 
8086 Introduction
8086 Introduction8086 Introduction
8086 Introduction
 
8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish Nagar8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish Nagar
 
Detailed Explanation of Pin Description of 8085 microprocessor
Detailed Explanation of Pin Description of  8085 microprocessorDetailed Explanation of Pin Description of  8085 microprocessor
Detailed Explanation of Pin Description of 8085 microprocessor
 
8086
80868086
8086
 
Pin Description and Register Organization of 8086 Microprocessor
Pin Description and Register Organization of 8086 MicroprocessorPin Description and Register Organization of 8086 Microprocessor
Pin Description and Register Organization of 8086 Microprocessor
 
Viva
VivaViva
Viva
 
Chapter5
Chapter5Chapter5
Chapter5
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
 
8086 Microprocessor powerpoint
8086  Microprocessor  powerpoint8086  Microprocessor  powerpoint
8086 Microprocessor powerpoint
 
Pin8086
Pin8086Pin8086
Pin8086
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set
 
MICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSMICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONS
 
PIN Specification of 8086 Microprocessor
PIN Specification of 8086 MicroprocessorPIN Specification of 8086 Microprocessor
PIN Specification of 8086 Microprocessor
 
Microprocessors 1-8086
Microprocessors 1-8086Microprocessors 1-8086
Microprocessors 1-8086
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086
 
8085 microprocessor Architecture and pin description
8085 microprocessor Architecture and pin description 8085 microprocessor Architecture and pin description
8085 microprocessor Architecture and pin description
 
Flags registor of 8086 processor
Flags registor of 8086 processorFlags registor of 8086 processor
Flags registor of 8086 processor
 

Similar to Mpmc

Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086Waleed Khan
 
Chapter 2_1(8086 System configuration).pptx
Chapter 2_1(8086 System configuration).pptxChapter 2_1(8086 System configuration).pptx
Chapter 2_1(8086 System configuration).pptxmelaku76
 
digital communication,micro processor,pulse and digital circuits
digital communication,micro processor,pulse and digital circuitsdigital communication,micro processor,pulse and digital circuits
digital communication,micro processor,pulse and digital circuitsManasa Mona
 
26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architectureSaurabh Jain
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollersgomathy S
 
microprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdfmicroprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdfssuserd21262
 
3 L pin diagram.pptx
3 L pin diagram.pptx3 L pin diagram.pptx
3 L pin diagram.pptxPoonamarora73
 
Introduction to 8085 Microprocessor
Introduction to 8085 MicroprocessorIntroduction to 8085 Microprocessor
Introduction to 8085 MicroprocessorRavi Anand
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxGowrishankar C
 
INTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORINTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORSagar Kuntumal
 
8086-microprocessor-architecture.ppt
8086-microprocessor-architecture.ppt8086-microprocessor-architecture.ppt
8086-microprocessor-architecture.pptMadhan7771
 
8086 – CPU –Pin Diagram.pptx
8086 – CPU –Pin Diagram.pptx8086 – CPU –Pin Diagram.pptx
8086 – CPU –Pin Diagram.pptx5G8Rajendra
 
Microprocessor architecture
Microprocessor architectureMicroprocessor architecture
Microprocessor architectureparsh33
 
Pin Diagram and block diagram 8085 .pptx
Pin Diagram and block diagram 8085 .pptxPin Diagram and block diagram 8085 .pptx
Pin Diagram and block diagram 8085 .pptxYashArya40
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01destaw belay
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01Siva Raman
 

Similar to Mpmc (20)

unit 4 mc.pdf
unit 4 mc.pdfunit 4 mc.pdf
unit 4 mc.pdf
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
Chapter 2_1(8086 System configuration).pptx
Chapter 2_1(8086 System configuration).pptxChapter 2_1(8086 System configuration).pptx
Chapter 2_1(8086 System configuration).pptx
 
digital communication,micro processor,pulse and digital circuits
digital communication,micro processor,pulse and digital circuitsdigital communication,micro processor,pulse and digital circuits
digital communication,micro processor,pulse and digital circuits
 
26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollers
 
microprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdfmicroprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdf
 
3 L pin diagram.pptx
3 L pin diagram.pptx3 L pin diagram.pptx
3 L pin diagram.pptx
 
Introduction to 8085 Microprocessor
Introduction to 8085 MicroprocessorIntroduction to 8085 Microprocessor
Introduction to 8085 Microprocessor
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptx
 
INTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORINTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSOR
 
8086-microprocessor-architecture.ppt
8086-microprocessor-architecture.ppt8086-microprocessor-architecture.ppt
8086-microprocessor-architecture.ppt
 
8086 – CPU –Pin Diagram.pptx
8086 – CPU –Pin Diagram.pptx8086 – CPU –Pin Diagram.pptx
8086 – CPU –Pin Diagram.pptx
 
Arch 8086
Arch 8086Arch 8086
Arch 8086
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
Microprocessor architecture
Microprocessor architectureMicroprocessor architecture
Microprocessor architecture
 
Pin Diagram and block diagram 8085 .pptx
Pin Diagram and block diagram 8085 .pptxPin Diagram and block diagram 8085 .pptx
Pin Diagram and block diagram 8085 .pptx
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01
 

Recently uploaded

APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 

Recently uploaded (20)

APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 

Mpmc

  • 2. 8086 FEATURES  It is a 16 bit μp.  It is manufactured with H-MOS technology.  8086 has a 20 bit address bus can access up to 220 memory locations ( 1 MB) .  It has multiplexed address and data bus AD0- AD15 and A16 – A19.  It provides fourteen 16-bit registers.  8086 is designed to operate in two modes, Minimum(single processor) and Maximum(multi processor).  It can pre fetches up to 6 instruction bytes from memory and queues them in order to speed up instruction execution.  It can support upto 64K I/O ports.  It requires a +5V power supply  It is enclosed with 40 pins DIP (dual in line package).
  • 3.
  • 4.  8086 has two blocks BIU and EU  BIU contains Instruction queue, Segment registers,Instruction pointer, Address adder.  EU contains Control circuitry, Instruction decoder, ALU,Pointer and Index register, Flag register.  The BIU performs all bus operations such as instruction fetching, reading and writing operands for memory and calculating the addresses of the memory operands.  EU executes instructions from the instruction system byte queue.
  • 5. INSTRUCTION QUEUE  To increase the execution speed, BIU fetches as many as six instruction bytes ahead of time from memory.  All six bytes are arranged in first in first out structure in a 6 byte register called instruction queue.  The instructions from the queue are taken sequentially for decoding.  This pre fetching operation of BIU may be in parallel with execution operation of EU, which improves the speed execution of the instruction.  While opcode is fetched by BIU, the EU executes previously decoded instruction concurrently. Thus BIU along with EU forms a pipeline.
  • 6. PHYSICAL ADDRESS FORMATION  Segment address: 1005 H  Offset address : 5555 H Segment address: 1005 H: 0001 0000 0000 0101 Shifted left by 4 bit po’s :0001 0000 0000 0101 0000 + Offset address : 0101 0101 0101 0101 Physical address :0001 0101 0101 1010 0101 1 5 5 A 5 H  Physical address= 10H* Segment address+ Offset address
  • 7. EXECUTION UNIT (EU)  It has 16 bit ALU, able to perform all arithmetic and logical operations.  The 16-bit flag register reflects the results of execution by ALU.  The decoding unit decodes the opcode bytes.  The timing and control unit derives the necessary control signals to execute the instruction.
  • 9. GENERAL PURPOSE REGISTERS  AX: used as 16-bit accumulator, with the lower 8- bits of AX designated as AL and higher 8-bits as AH.  BX: used as offset storage for forming physical addresses in case of certain addressing modes.  CX: used as a default counter in case of string and loop instructions.  DX: used as an implicit operand or destination in case of a few instructions. used to hold data for MUL & DIV operations
  • 10. SEGMENT REGISTERS  Code Segment (CS): The CS register is used for addressing a memory location in the Code Segment of the memory, where the executable program is stored.  Data Segment (DS): The DS register is used for addressing the Data Segment of the memory, where the data is stored.  Stack Segment (SS): The SS register is used for addressing the Stack Segment of the memory, i.e. the memory which is used to store stack data.  Extra Segment (ES): ES is additional data segment. The ES register is used for addressing the Extra Segment of the memory, where the data is stored.
  • 11. POINTERS AND INDEX REGISTERS  The pointers stores offset addresses within the particular segments IP code segment BP data segment SP stack segment o Source Index (SI): It is used for storing offset address of source data in data segment. It is also used for indexed, based indexed and register indirect addressing modes.  Destination Index (DI): It is used for storing offset address of destination data in data or extra segment. It is also used for indexed, based indexed and register indirect addressing modes.
  • 13.
  • 14. STATUS/CONDITIONAL CODE FLAGS  SF :sign flag is set when the result of operation is negative.  ZF: zero flag is set when the result of operation is zero.  AF: auxiliary carry flag is set when there is a carry from lower nibble or lower four bits of the operation.  PF: parity flag is set if the result has even no.of ones in the lower byte.  CF: carry flag is set when there is a carry from the result.  OF:over flow flag is set when the result of signed operation overflows into the sign bit.
  • 15. CONTROL FLAGS  TF: When trap flag is set, the processor enters into single step execution mode . i.e. It executes the program instruction by instruction.  IF: It is an interrupt enable/disable flag. If it is set, the maskable interrupts are recognized by the processor otherwise they are ignored.  DF:It is used in string operation. If it is set, string bytes are accessed from higher memory address to lower memory address. i.e. auto decrementing mode. When it is reset, the string bytes are accessed from lower memory address to higher memory address. i.e. auto incrementing mode.
  • 16. MEMORY SEGMENTATION  The size of address bus of8086 is 20 and is able to address 1 Mbytes (220 ) of physical memory.  The compete 1 Mbytes memory can be divided into 16 segments, each of 64 Kbytes size and is addressed by one of the segment registers.  The addresses of the segment may be assigned as 0000H to F000H respectively.  An offset address is used to address a specific memory location within the segment.  The offset address values are from 0000H to FFFF H so that the physical addresses range from 00000H to FFFFF H.
  • 19. ADVANTAGES  Allows the memory capacity to be 1MB although the actual addresses to be handled are of 16 bit size.  Allows the placing of code, data and stack portions of the same program in different parts of memory for protection.
  • 21.  AD15-AD0 : These are the time multiplexed memory I/O address and data lines. Address remains on the lines during T1 state, while the data is available on the data bus during T2, T3, Tw and T4.  When the memory or I/O device is not able to respond quickly during transfer, wait states (Tw) are inserted between T3 and T4 by disabling the READY input of the 8086. The bus activity during wait state is same as during T3.  A19/S6,A18/S5,A17/S4,A16/S3 : These are the time multiplexed address and status lines.
  • 22.  The S4 and S3 combinely indicate which segment register is presently being used for memory accesses .  The status of interrupt enable flag bit is updated at the beginning of each clock cycle and it is displayed on S5  The status line s6 is always low.
  • 23.  BHE/S7 : The bus high enable is used to indicate the transfer of data over the higher order ( D15-D8 ) data bus .  BHE is low during T1 for read, write and interrupt acknowledge cycles, whenever a byte is to be transferred on higher byte of data bus.  BHE and A0 indicates which byte of data is transferring.
  • 24.  RD – Read : This signal on low indicates the peripheral that the processor is performing memory or I/O read operation.  READY : This is the acknowledgement from the slow device or memory that they have completed the data transfer.  INTR-Interrupt Request : This is a level triggered input. This is sampled during the last clock cycle of each instruction to determine the availability of the request. If any interrupt request is pending, the processor enters the interrupt acknowledge cycle.  TEST : This input is examined by a ‘WAIT’ instruction. If the TEST pin goes low, execution will continue, else the processor remains in wait state.
  • 25.  CLK- Clock Input : The clock input provides the basic timing for processor operation and bus control activity. Its an square wave.  NMI: An edge triggered input, causes a type-2 interrupt. NMI is not maskable internally by software. A transition from a LOW to HIGH on this pin initiates the interrupt at the end of the current instruction.  Reset: Reset causes the processor to terminate the present activity and start execution from FFFF0H. This signal is active high and must be active for at least four clock cycles.  MN/MX = 1 for minimum mode = 0 for maximum mode
  • 26.  When the Minimum mode operation is selected, the 8086 provides all control signals needed to implement the memory and I/O interface.  M/IO = 1 for memory operation = 0 for I/O operation  INTA: Interrupt Acknowledge. It goes low, when the processor has accepted the interrupt. It is active LOW during T2, T3, and T4 of each interrupt acknowledge cycle.  DT/ R :DATA Transmit/Receive DT/ R = 1 when the processor transmits data  = 0 when the processor receives data
  • 27.  ALE : Address Latch Enable It indicates the availability of valid address over the address/data lines. It is used to enable the latches to separate the address from the multiplexed address/data signal.
  • 28.  DEN :Data Enable  It indicates the availability of valid data over the address/data lines. It is used to enable the transceivers to separate the data from the multiplexed address/data signal.
  • 29.  HOLD & HLDA: When the HOLD line goes high, it indicates that another master is requesting the bus access. After receiving the HOLD request, it issues HLDA signal in the middle of next clock cycle .  If a DMA request is made while cpu executing a program, it will release the bus during T4 provided  1.the request occur on or before T2 of current cycle  2.the current cycle is not operating over the lower byte of a word.  3.a Lock instruction is not being executed.
  • 30.  When the 8086 is set for the maximum-mode operation, it provides signals for implementing a multiprocessor / coprocessor system environment.  S2, S1, S0 : these status lines indicate the type of operation being carried out by the processor.  These pins are active during T4, T1 and T2 states and is returned to passive state during T3 or Tw (when ready is inactive).
  • 31.  QS0, QS1 : Queue – Status these lines give information about the status of instruction byte queue.
  • 32.  LOCK : it indicates that other system bus master will be prevented from gaining the system bus.  RQ/GT0 and RQ/GT1 (I/O): Request/Grant These pins are used by other processors in a multi processor organization to force the processor to release the Local bus at the end of current cycle. 
  • 33. PHYSICAL MEMORY ORGANIZATION  In 8086 the 1MB physical memory is organized as odd and even banks, each of 512KB.  A byte data with even address is transferred on D0-D7, while byte data with odd address is transferred on D8- D15.  The processor provides BHE and A0 for the selection of either odd or even or both the banks.  The memory map of 8086 system starts at 00000H to FFFFFH.
  • 34.
  • 35.  The locations from FFFF0H to FFFFFH are reserved for operations including jump to initialization program and I/O processor initialization .  The locations 00000H to 003FFH are reserved for interrupt vector table.
  • 36. INTERRUPTS  While CPU is executing a program, an interrupt break the normal sequence of execution of instructions,diverts its execution to some other program called Interrupt Service Routine(ISR).  After executing ISR ,the control is transferred back again to the main program.  Whenever a no.of devices interrupt a CPU at a time and if the processor is able to handle them properly,it is said to have multiple interrupt processing capability.  8086 has two interrupt pins NMI and INTR.  NMI :Non Maskable Interrupt  Any interrupt at NMI cannot be masked or disabled.  INTR interrupt may be masked using Interrupt Flag. INTR is of 256 types.  The INTR types may be from 00 to FF H. If more than one type of INTR interrupt occurs at a time,then an external chip called Programmable Interrupt Controller is required to handle them. 
  • 37. TYPES OF INTERRUPTS  External interrupt: due to an external device or a signal interrupts the processor.  ex: keyboard interrupt  Internal interrupt: generated internally by the processor circuit or by execution of an interrupt instruction.  Ex: divide by 0, overflow interrupts and interrupts due to INT instructions.
  • 38. INTERRUPT CYCLE OF 8086  When an external device interrupts the CPU at NMI or INTR pin, while executing a program  The CPU first completes the execution of current instruction and IP is incremented to point the next instruction.  The contents of IP and CS are pushed to stack.  The CPU then only acknowledges the requesting device immediately on INTA if it is a NMI,TRAP or divide by 0.  If it is INTR request, the CPU checks the IF flag.  If IF flag is set then it acknowledges the device otherwise the interrupt is ignored.  After acknowledgement the CPU computes the vector address from the type of interrupt. Then the control is transferred to ISR for serving the interrupt device.  The ISR address is available in Interrupt Vector Table.  At the end of ISR last instruction should be IRET.
  • 41.