microprocessor vs. microcontroller

15
Agenda: 6/13/22 Internal Architecture of 8086 1 Microprocessor Vs Microcontroller Block diagram of 8086 Internal Architecture of 8086 Memory Organization

Upload: aviban

Post on 10-Jun-2015

289 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Microprocessor vs. microcontroller

Thursday, April 13, 2023 Internal Architecture of 8086 1

Agenda: Microprocessor Vs Microcontroller

Block diagram of 8086

Internal Architecture of 8086

Memory Organization

Page 2: Microprocessor vs. microcontroller

Thursday, April 13, 2023 Internal Architecture of 8086 2

Microprocessor Microcontroller

CPU is stand alone, RAM,ROM, I/O & timer are separate.

CPU, RAM,ROM, I/O & timer all are on single chip.

Designer can decide amount of RAM,ROM, & I/O ports.

Fixed amount of on-chip RAM,ROM, & I/O ports.

High processing power Low processing power

High power consumption Low power consumption

Typically 32/64 bit 8/16 bit

General purpose Single purpose(control oriented)

Less reliable Highly reliable

Eg.- 8086,8085 8051

Page 3: Microprocessor vs. microcontroller

Thursday, April 13, 2023 Internal Architecture of 8086 3Fig 3 : Block diagram of Intel 8086

Indicates

conditions

produced

due to

execution

of instruction

s

Page 4: Microprocessor vs. microcontroller

Thursday, April 13, 2023 Internal Architecture of 8086 4

Internal Architecture of 8086

Independent & share work of CPU (viz. speed up processing & reduced proc’g time)

Pipeline

Page 5: Microprocessor vs. microcontroller

Thursday, April 13, 2023 Prerequisite Of Microprocessor Architecture practical

5

Page 6: Microprocessor vs. microcontroller

Thursday, April 13, 2023 Prerequisite Of Microprocessor Architecture practical

6

Page 7: Microprocessor vs. microcontroller

Thursday, April 13, 2023 Internal Architecture of 8086 7

Bus Interface Unit(BIU) Execution Unit (EU)

Transmit out addresses Gives information to BIU, from where to fetch the instruction or data

Instructions are fetched from memory. Decodes the fetched instructions.

R/W data from memory & ports. Executes decoded instructions.

Takes care of all addresses & data transform on the buses.

Takes care of performing operations on the data.

Called External world interface of the processor.

Called execution heart of the processor.

Page 8: Microprocessor vs. microcontroller

Thursday, April 13, 2023 Internal Architecture of 8086 8

8086 Memory organizationES

CSSSDSIP

AHBHCHDH

ALBLCLDL

SPBPSIDI

FLAGS

AXBXCXDX

Extra SegmentCode Segment

Stack SegmentData SegmentInstruction Pointer

Accumulator

Base RegisterCount RegisterData RegisterStack PointerBase Pointer

Source Index RegisterDestination Index Register

BIU registers

(20 bit adder)

EU registers

16 bit arithmetic

16 General Purpose Registers

16 Byte 8 0Byte

Page 9: Microprocessor vs. microcontroller

Thursday, April 13, 2023 Internal Architecture of 8086 9

8086 Memory organization

CODE

DATA

STACK

EXTRA

0100H

0B200H

0CF00H

0FF00H

DS:

SS:

ES:

CS

001000H

0B2000H

0CF000H

0FF000H

10FFFH

0C1FFFH

0DEFFFH

0FFFFFH

000000HSegment Registers

Memory Segments

Segments are < or = 64K and can overlap.

Code segment is < 64K since 0FFFFFH is the highest address.

Page 10: Microprocessor vs. microcontroller

Thursday, April 13, 2023 Internal Architecture of 8086 10

Memory Segmentation

additional data segment used by some instructions to hold destination data.

Holds programs and Procedures(CODE) used By the microprocessor.

defines the area of memory used for the stack.

data used by a program

Page 11: Microprocessor vs. microcontroller

Thursday, April 13, 2023 Internal Architecture of 8086 11

Allow the memory capacity to be 1Mb even though the addresses associated with the individual instructions are only 16 bits wide.

Facilitate the use of separate memory areas for the program, its data and the stack.

Multitasking becomes easy.

Advantages Of Memory Segmentation

Page 12: Microprocessor vs. microcontroller

Allow the memory capacity to be 1Mb even though the addresses associated with the individual instructions are only 16 bits wide.

Facilitate the use of separate memory areas for the program, its data and the stack.

Multitasking becomes easy.

Advantages of memory segmentation

Page 13: Microprocessor vs. microcontroller

Thursday, April 13, 2023 Internal Architecture of 8086 13

The EU also contains the Flag Register which is a collection of condition bits and control bits. The condition bits are set or cleared by the execution of an instruction. The control bits are set by instructions to control some operation of the CPU.

Bit 0 - CF Carry Flag - Set by carry out of msbBit 2 - PF Parity Flag - Set if result has even parityBit 4 - AF Auxiliary Flag - for BCD arithmeticBit 6 - ZF Zero Flag - Set if result is zeroBit 7 - SF Sign Flag = msb of resultBit 8 - TF Single Step Trap FlagBit 9 - IF Interrupt Enable FlagBit 10 - DF String Instruction Direction FlagBit 11 - OF Overflow Flag

Bits 1, 3, 5, 12-15 are undefined.

Page 14: Microprocessor vs. microcontroller

Thursday, April 13, 2023 Internal Architecture of 8086 14

Page 15: Microprocessor vs. microcontroller

Thursday, April 13, 2023 Internal Architecture of 8086 15