SlideShare una empresa de Scribd logo
1 de 27
Introduction of Microprocessor
4/27/2014SISTec Bhopal
1
PRESENTED BY: ASST. PROF. HARSHIT SAXENA
8086 MICROPROCESSOR
Unit 1
4/27/2014
2
SISTec Bhopal
8086 MICROPROCESSOR
 It is a 16 bit μp.
 8086 has a 20 bit address bus can access
upto 220 memory locations ( 1 MB) .
 It can support upto 64K I/O ports.
 It provides 14, 16-bit registers.
 It has multiplexed address and data bus
AD0- AD15 and A16 – A19
4/27/2014
3
SISTec Bhopal
GENERAL PURPOSE REGISTER
 8086 CPU has 8 general purpose registers, each
register has its own name:
 AX - the accumulator register (divided into AH / AL).
 BX - the base address register (divided into BH / BL).
 CX - the count register (divided into CH / CL).
 DX - the data register (divided into DH / DL).
 SI - source index register.
 DI - destination index register.
 BP - base pointer.
 SP - stack pointer.
4/27/2014
4
SISTec Bhopal
SEGMENT REGISTER
 In 8086 size of memory is 1MB and divided into 16 logical
segments. Each segment contain 64Kbytes.
 CS - points at the segment containing the current
program.
 DS - generally points at segment where variables are
defined.
 ES - extra segment register, it's up to a coder to define its
usage.
 SS – points at the segment containing the stack.
 Segment registers work together with general purpose
register to access any memory value. For example if we
would like to access memory at the physical address
12345h (hexadecimal), we should set the DS = 1230h
and SI = 0045h.
4/27/2014
5
SISTec Bhopal
SPECIAL PURPOSE REGISTER
 IP - the instruction pointer.
 IP register always works together with CS
segment register and it points to currently
executing instruction.
 Flags Register - determines the current state
of the processor.
4/27/2014
6
SISTec Bhopal
ARCHITECTURE OF 8086
4/27/2014
7
SISTec Bhopal
INTERNAL ARCHITECTURE OF 8086
 8086 has two blocks BIU and EU.
 The BIU performs all bus operations such as
instruction fetching, reading and writing
operands for memory and calculating the
addresses of the memory operands.
 The instruction bytes are transferred to the
instruction Queue.
 EU executes instructions from the instruction
system byte queue.
4/27/2014
8
SISTec Bhopal
ARCHITECTURE OF 8086(CONT…)
 Both units operate asynchronously to give the
8086 an overlapping instruction fetch and
execution mechanism which is called as
Pipelining.
 BIU also contain the circuitry for physical
address calculation.
 Segment address:1005H
 Offset address: 5555H
 Shifted by 4 bit : 0001 0000 0000 0101 0000
 Offset address: 0101 0101 0101 0101
 Physical Address: 0001 0101 0101 1010 0101
4/27/2014
9
SISTec Bhopal
 Segment address is 1005H.
 Segment size is 64k i.e. offset starting
address is 0000 – FFFFH.
 Segment Register indicates that the base
address of a particular segment while offset
indicates the distance of the required
memory location.
 In 8085 once the opcode is fetched and
decoded the external bus remains free for
some time.
 This time is utilized in 8086 by overlapping
the fetch and execute cycle.
4/27/2014
10
SISTec Bhopal
 The EU contains the register set of 8086
except segment registers and IP.
 It has 16 bit ALU able to perform Arithmetic
and logical operation.
 16 bit flag register which shows the status of
microprocessor.
 The timing and control units derives the
necessary control signal to execute the
instruction opcode received from queue..
 EU pass the results to BIU for storing them in
memory.
4/27/2014
11
SISTec Bhopal
ARCHITECTURE OF 8086(CONT…)
 If the queue is empty, the EU waits for the next
instruction byte to be fetched and shifted to top
of the queue.
 When the EU executes a branch or jump
instruction, it transfers control to a location
corresponding to another set of sequential
instructions.
 Whenever this happens, the BIU automatically
resets the queue and then begins to fetch
instructions from this new location to refill the
queue.
4/27/2014
12
SISTec Bhopal
INSTRUCTION QUEUE
 Queue permits prefetch of up to six bytes of instruction
code. When ever the queue of the BIU is not full, it has
room for at least two more bytes instruction.
 These prefetching instructions are held in its FIFO queue.
With its 16 bit data bus, the BIU fetches two instruction
bytes in a single memory cycle.
 The EU accesses the queue from the output end. It reads
one instruction byte after the other from the output of the
queue.
 If the BIU is already in the process of fetching an
instruction when the EU request it to read or write
operands from memory or I/O, the BIU first completes the
instruction fetch bus cycle before initiating the operand
read / write cycle.
4/27/2014
13
SISTec Bhopal
FLAG REGISTER
 8086 has a 16 bit flag register and divided into
two parts
 Conditional code or status flag
 Machine control flags
 The conditional code flag register is the lower
bytes of the 16 bit flag register along with
overflow flag.
 The control flag register is the higher byte of the
flag register, contains direction flag(D), interrupt
flag(I), trap flag(T).
4/27/2014
14
SISTec Bhopal
FLAG REGISTER
X X X X O D I T S Z X Ac X P X Cy
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
O – Overflow Flag
D – Direction Flag
I – Interrupt Flag
T – Trap Flag
S – Sign Flag
Z – Zero Flag
Ac – Auxiliary carry Flag
P – Parity Flag
Cy – Carry Flag
X – Not used
4/27/2014
15
SISTec Bhopal
FLAG REGISTER (CONT….)
 Overflow Flag (OF) - set if the result is too large
positive number, or is too small negative number to fit
into destination operand.
 Direction Flag (DF) - if set then string manipulation
instructions will auto-decrement index registers. If cleared
then the index registers will be auto-incremented.
 Interrupt-enable Flag (IF) - setting this bit enables
maskable interrupts.
 Single-step Flag (TF) - if set then single-step interrupt
will occur after the next instruction.
 Sign Flag (SF) - set if the most significant bit of the
result is set.
 Zero Flag (ZF) - set if the result is zero.
4/27/2014
16
SISTec Bhopal
FLAG REGISTER (CONT….)
 Auxiliary carry Flag (AF) - set if there was
a carry from or borrow to bits 0-3 in the AL
register.
 Parity Flag (PF) - set if parity (the number
of "1“ its) in the low-order byte of the result
is even.
 Carry Flag (CF) - set if there was a carry
from or borrow to the most significant bit
during last result calculation.
4/27/2014
17
SISTec Bhopal
4/27/2014
18
SISTec Bhopal
MINIMUM AND MAXIMUM MODES:
 The minimum mode is selected by applying
logic 1 to the MN / MX# input pin. This is a
single microprocessor configuration.
 The maximum mode is selected by applying
logic 0 to the MN / MX# input pin. This is a
multi micro processors configuration.
4/27/2014
19
SISTec Bhopal
8086 SIGNALS ARE CLASSIFIED IN THREE
GROUPS
 First are the signals having common
functions in minimum as well as maximum
mode.
 Second are the signals which have special
functions for minimum mode.
 Third are the signals having special function
for maximum mode.
4/27/2014
20
SISTec Bhopal
4/27/2014
21
SISTec Bhopal
4/27/2014
22
SISTec Bhopal
MINIMUM MODE INTERFACE
 Address/Data Bus : these lines serve two
functions. As an address bus is 20 bits long
and consists of signal lines A0 through A19. A19
represents the MSB and A0 LSB. A 20bit
address gives the 8086 a 1Mbyte memory
address space.
 The 16 data bus lines D0 through D15 are
actually multiplexed with address lines A0
through A15 respectively. By multiplexed we
mean that the bus work as an address bus
during first machine cycle and as a data bus
during next machine cycles. D15 is the MSB
and D0 LSB.
4/27/2014
23
SISTec Bhopal
 Status signal : The four most significant
address lines A19 through A16 are also
multiplexed but in this case with status
signals S6 through S3. These status bits are
output on the bus at the same time that data
are transferred over the other bus lines.
 Bit S4 and S3 together form a 2 bit binary
code that identifies which of the 8086 internal
segment registers are used to generate the
physical address that was output on the
address bus during the current bus cycle.
4/27/2014
24
SISTec Bhopal
4/27/2014
25
SISTec Bhopal
 Status line S5 reflects the status of another
internal characteristic of the 8086. It is the
logic level of the interrupt enable flag. The
last status bit S6 is always at the logic 0
level.
 BUS HIGH ENABLE(BHE): Logic 0 on this
used as a memory enable signal for the most
significant byte half of the data bus D8
through D15.
 TEST : This input is examined by ‘WAIT’
Instruction. If the TEST# input goes low
execution will continue, else the processor
remains in an idle state.
4/27/2014
26
SISTec Bhopal
 ALE(Address latch enable): it shows the
availability of the valid address on the
address/data lines.
 DT/R# : used to decide the direction of data
flow through the transreceivers. This is
tristated during ‘HLDA’.
 DEN# : Indicates the availability of valid data
over the address/data bus.
 Lock#: This output pin indicates that other
system bus master will be prevented from
gaining the system bus while the LOCK#
signal is low.
4/27/2014
27
SISTec Bhopal

Más contenido relacionado

La actualidad más candente

Risc cisc Difference
Risc cisc DifferenceRisc cisc Difference
Risc cisc Difference
Sehrish Asif
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
9840596838
 

La actualidad más candente (20)

Micro programmed control
Micro programmed  controlMicro programmed  control
Micro programmed control
 
Stack Operations
Stack Operations Stack Operations
Stack Operations
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
 
Risc cisc Difference
Risc cisc DifferenceRisc cisc Difference
Risc cisc Difference
 
Buses in a computer
Buses in a computerBuses in a computer
Buses in a computer
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 
M6800
M6800M6800
M6800
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
 
Chapter 6 hardware structure of 8086
Chapter 6  hardware structure of 8086Chapter 6  hardware structure of 8086
Chapter 6 hardware structure of 8086
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
 
Instruction sets of 8086
Instruction sets of 8086Instruction sets of 8086
Instruction sets of 8086
 
Addressing modes of 8085
Addressing modes of 8085Addressing modes of 8085
Addressing modes of 8085
 
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
COMPUTER INSTRUCTIONS & TIMING & CONTROL.COMPUTER INSTRUCTIONS & TIMING & CONTROL.
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
 
Memory interfacing of microprocessor 8085
Memory interfacing of microprocessor 8085Memory interfacing of microprocessor 8085
Memory interfacing of microprocessor 8085
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
Memory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/OMemory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/O
 
Stack in 8085 microprocessor
Stack in 8085 microprocessorStack in 8085 microprocessor
Stack in 8085 microprocessor
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
 

Destacado

Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Swati Watve-Phadke
 
Microprocessor and Application (8085)
Microprocessor and Application (8085)Microprocessor and Application (8085)
Microprocessor and Application (8085)
ufaq kk
 
Microprocessor in washing machine
Microprocessor in washing machineMicroprocessor in washing machine
Microprocessor in washing machine
Sandeep Kamath
 
Washing machine
Washing  machineWashing  machine
Washing machine
Eng Eng
 
Automatic temperature control using 8085 microprocessor
Automatic temperature control using 8085 microprocessorAutomatic temperature control using 8085 microprocessor
Automatic temperature control using 8085 microprocessor
subhradeep mitra
 

Destacado (14)

MICROPROCESSOR,BASICS AND MEMORY CONCEPT
MICROPROCESSOR,BASICS AND MEMORY CONCEPTMICROPROCESSOR,BASICS AND MEMORY CONCEPT
MICROPROCESSOR,BASICS AND MEMORY CONCEPT
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02
 
8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish Nagar8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish Nagar
 
8086 architecture By Er. Swapnil Kaware
8086 architecture By Er. Swapnil Kaware8086 architecture By Er. Swapnil Kaware
8086 architecture By Er. Swapnil Kaware
 
8086 addressing modes
8086 addressing modes8086 addressing modes
8086 addressing modes
 
VLSI industry - Digital Design Engineers - draft version
VLSI industry - Digital Design Engineers - draft versionVLSI industry - Digital Design Engineers - draft version
VLSI industry - Digital Design Engineers - draft version
 
Microprocessor and Application (8085)
Microprocessor and Application (8085)Microprocessor and Application (8085)
Microprocessor and Application (8085)
 
Applications of microprocessor
Applications of microprocessorApplications of microprocessor
Applications of microprocessor
 
Microprocessor in washing machine
Microprocessor in washing machineMicroprocessor in washing machine
Microprocessor in washing machine
 
Washing machine
Washing  machineWashing  machine
Washing machine
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORTRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
 
Microprocessor based Temperature Controller
Microprocessor based Temperature ControllerMicroprocessor based Temperature Controller
Microprocessor based Temperature Controller
 
Automatic temperature control using 8085 microprocessor
Automatic temperature control using 8085 microprocessorAutomatic temperature control using 8085 microprocessor
Automatic temperature control using 8085 microprocessor
 

Similar a 8086 microprocessor

26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture
Saurabh Jain
 
Unit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptxUnit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptx
DrVikasMahor
 
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
Manasa Mona
 
3 organization of intel 8086
3 organization of intel 80863 organization of intel 8086
3 organization of intel 8086
ELIMENG
 

Similar a 8086 microprocessor (20)

Intel Microprocessors 8086 Documentation
Intel Microprocessors 8086 DocumentationIntel Microprocessors 8086 Documentation
Intel Microprocessors 8086 Documentation
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture
 
physical_address segmentation.pdf
physical_address segmentation.pdfphysical_address segmentation.pdf
physical_address segmentation.pdf
 
8086
80868086
8086
 
8086
80868086
8086
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Presentation on 8086 microprocessor
Presentation on 8086 microprocessorPresentation on 8086 microprocessor
Presentation on 8086 microprocessor
 
lec 2.pptx
lec 2.pptxlec 2.pptx
lec 2.pptx
 
Unit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptxUnit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptx
 
8086 PPt-2021.pptx
8086 PPt-2021.pptx8086 PPt-2021.pptx
8086 PPt-2021.pptx
 
8086ppt
8086ppt8086ppt
8086ppt
 
Arch 8086
Arch 8086Arch 8086
Arch 8086
 
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
 
introduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's applicationintroduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's application
 
Microprocessor Architecture.pptx
Microprocessor Architecture.pptxMicroprocessor Architecture.pptx
Microprocessor Architecture.pptx
 
8086
8086 8086
8086
 
3 organization of intel 8086
3 organization of intel 80863 organization of intel 8086
3 organization of intel 8086
 
8086
80868086
8086
 
microprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdfmicroprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdf
 

Último

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Último (20)

Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 

8086 microprocessor

  • 1. Introduction of Microprocessor 4/27/2014SISTec Bhopal 1 PRESENTED BY: ASST. PROF. HARSHIT SAXENA
  • 3. 8086 MICROPROCESSOR  It is a 16 bit μp.  8086 has a 20 bit address bus can access upto 220 memory locations ( 1 MB) .  It can support upto 64K I/O ports.  It provides 14, 16-bit registers.  It has multiplexed address and data bus AD0- AD15 and A16 – A19 4/27/2014 3 SISTec Bhopal
  • 4. GENERAL PURPOSE REGISTER  8086 CPU has 8 general purpose registers, each register has its own name:  AX - the accumulator register (divided into AH / AL).  BX - the base address register (divided into BH / BL).  CX - the count register (divided into CH / CL).  DX - the data register (divided into DH / DL).  SI - source index register.  DI - destination index register.  BP - base pointer.  SP - stack pointer. 4/27/2014 4 SISTec Bhopal
  • 5. SEGMENT REGISTER  In 8086 size of memory is 1MB and divided into 16 logical segments. Each segment contain 64Kbytes.  CS - points at the segment containing the current program.  DS - generally points at segment where variables are defined.  ES - extra segment register, it's up to a coder to define its usage.  SS – points at the segment containing the stack.  Segment registers work together with general purpose register to access any memory value. For example if we would like to access memory at the physical address 12345h (hexadecimal), we should set the DS = 1230h and SI = 0045h. 4/27/2014 5 SISTec Bhopal
  • 6. SPECIAL PURPOSE REGISTER  IP - the instruction pointer.  IP register always works together with CS segment register and it points to currently executing instruction.  Flags Register - determines the current state of the processor. 4/27/2014 6 SISTec Bhopal
  • 8. INTERNAL ARCHITECTURE OF 8086  8086 has two blocks BIU and EU.  The BIU performs all bus operations such as instruction fetching, reading and writing operands for memory and calculating the addresses of the memory operands.  The instruction bytes are transferred to the instruction Queue.  EU executes instructions from the instruction system byte queue. 4/27/2014 8 SISTec Bhopal
  • 9. ARCHITECTURE OF 8086(CONT…)  Both units operate asynchronously to give the 8086 an overlapping instruction fetch and execution mechanism which is called as Pipelining.  BIU also contain the circuitry for physical address calculation.  Segment address:1005H  Offset address: 5555H  Shifted by 4 bit : 0001 0000 0000 0101 0000  Offset address: 0101 0101 0101 0101  Physical Address: 0001 0101 0101 1010 0101 4/27/2014 9 SISTec Bhopal
  • 10.  Segment address is 1005H.  Segment size is 64k i.e. offset starting address is 0000 – FFFFH.  Segment Register indicates that the base address of a particular segment while offset indicates the distance of the required memory location.  In 8085 once the opcode is fetched and decoded the external bus remains free for some time.  This time is utilized in 8086 by overlapping the fetch and execute cycle. 4/27/2014 10 SISTec Bhopal
  • 11.  The EU contains the register set of 8086 except segment registers and IP.  It has 16 bit ALU able to perform Arithmetic and logical operation.  16 bit flag register which shows the status of microprocessor.  The timing and control units derives the necessary control signal to execute the instruction opcode received from queue..  EU pass the results to BIU for storing them in memory. 4/27/2014 11 SISTec Bhopal
  • 12. ARCHITECTURE OF 8086(CONT…)  If the queue is empty, the EU waits for the next instruction byte to be fetched and shifted to top of the queue.  When the EU executes a branch or jump instruction, it transfers control to a location corresponding to another set of sequential instructions.  Whenever this happens, the BIU automatically resets the queue and then begins to fetch instructions from this new location to refill the queue. 4/27/2014 12 SISTec Bhopal
  • 13. INSTRUCTION QUEUE  Queue permits prefetch of up to six bytes of instruction code. When ever the queue of the BIU is not full, it has room for at least two more bytes instruction.  These prefetching instructions are held in its FIFO queue. With its 16 bit data bus, the BIU fetches two instruction bytes in a single memory cycle.  The EU accesses the queue from the output end. It reads one instruction byte after the other from the output of the queue.  If the BIU is already in the process of fetching an instruction when the EU request it to read or write operands from memory or I/O, the BIU first completes the instruction fetch bus cycle before initiating the operand read / write cycle. 4/27/2014 13 SISTec Bhopal
  • 14. FLAG REGISTER  8086 has a 16 bit flag register and divided into two parts  Conditional code or status flag  Machine control flags  The conditional code flag register is the lower bytes of the 16 bit flag register along with overflow flag.  The control flag register is the higher byte of the flag register, contains direction flag(D), interrupt flag(I), trap flag(T). 4/27/2014 14 SISTec Bhopal
  • 15. FLAG REGISTER X X X X O D I T S Z X Ac X P X Cy 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 O – Overflow Flag D – Direction Flag I – Interrupt Flag T – Trap Flag S – Sign Flag Z – Zero Flag Ac – Auxiliary carry Flag P – Parity Flag Cy – Carry Flag X – Not used 4/27/2014 15 SISTec Bhopal
  • 16. FLAG REGISTER (CONT….)  Overflow Flag (OF) - set if the result is too large positive number, or is too small negative number to fit into destination operand.  Direction Flag (DF) - if set then string manipulation instructions will auto-decrement index registers. If cleared then the index registers will be auto-incremented.  Interrupt-enable Flag (IF) - setting this bit enables maskable interrupts.  Single-step Flag (TF) - if set then single-step interrupt will occur after the next instruction.  Sign Flag (SF) - set if the most significant bit of the result is set.  Zero Flag (ZF) - set if the result is zero. 4/27/2014 16 SISTec Bhopal
  • 17. FLAG REGISTER (CONT….)  Auxiliary carry Flag (AF) - set if there was a carry from or borrow to bits 0-3 in the AL register.  Parity Flag (PF) - set if parity (the number of "1“ its) in the low-order byte of the result is even.  Carry Flag (CF) - set if there was a carry from or borrow to the most significant bit during last result calculation. 4/27/2014 17 SISTec Bhopal
  • 19. MINIMUM AND MAXIMUM MODES:  The minimum mode is selected by applying logic 1 to the MN / MX# input pin. This is a single microprocessor configuration.  The maximum mode is selected by applying logic 0 to the MN / MX# input pin. This is a multi micro processors configuration. 4/27/2014 19 SISTec Bhopal
  • 20. 8086 SIGNALS ARE CLASSIFIED IN THREE GROUPS  First are the signals having common functions in minimum as well as maximum mode.  Second are the signals which have special functions for minimum mode.  Third are the signals having special function for maximum mode. 4/27/2014 20 SISTec Bhopal
  • 23. MINIMUM MODE INTERFACE  Address/Data Bus : these lines serve two functions. As an address bus is 20 bits long and consists of signal lines A0 through A19. A19 represents the MSB and A0 LSB. A 20bit address gives the 8086 a 1Mbyte memory address space.  The 16 data bus lines D0 through D15 are actually multiplexed with address lines A0 through A15 respectively. By multiplexed we mean that the bus work as an address bus during first machine cycle and as a data bus during next machine cycles. D15 is the MSB and D0 LSB. 4/27/2014 23 SISTec Bhopal
  • 24.  Status signal : The four most significant address lines A19 through A16 are also multiplexed but in this case with status signals S6 through S3. These status bits are output on the bus at the same time that data are transferred over the other bus lines.  Bit S4 and S3 together form a 2 bit binary code that identifies which of the 8086 internal segment registers are used to generate the physical address that was output on the address bus during the current bus cycle. 4/27/2014 24 SISTec Bhopal
  • 26.  Status line S5 reflects the status of another internal characteristic of the 8086. It is the logic level of the interrupt enable flag. The last status bit S6 is always at the logic 0 level.  BUS HIGH ENABLE(BHE): Logic 0 on this used as a memory enable signal for the most significant byte half of the data bus D8 through D15.  TEST : This input is examined by ‘WAIT’ Instruction. If the TEST# input goes low execution will continue, else the processor remains in an idle state. 4/27/2014 26 SISTec Bhopal
  • 27.  ALE(Address latch enable): it shows the availability of the valid address on the address/data lines.  DT/R# : used to decide the direction of data flow through the transreceivers. This is tristated during ‘HLDA’.  DEN# : Indicates the availability of valid data over the address/data bus.  Lock#: This output pin indicates that other system bus master will be prevented from gaining the system bus while the LOCK# signal is low. 4/27/2014 27 SISTec Bhopal