0% found this document useful (0 votes)
186 views21 pages

MP 80865 PDF

The document discusses the architectural models of microprocessors and microcontrollers. It compares the 8086 microprocessor and microcontroller architectures. The 8086 microprocessor uses separate chips for the CPU, memory, I/O and timers while the 8051 microcontroller incorporates these onto a single chip. The document then describes the features of the 8086 microprocessor including its 16-bit data bus, 20-bit address bus, registers, memory segmentation and register organization.

Uploaded by

mine
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
186 views21 pages

MP 80865 PDF

The document discusses the architectural models of microprocessors and microcontrollers. It compares the 8086 microprocessor and microcontroller architectures. The 8086 microprocessor uses separate chips for the CPU, memory, I/O and timers while the 8051 microcontroller incorporates these onto a single chip. The document then describes the features of the 8086 microprocessor including its 16-bit data bus, 20-bit address bus, registers, memory segmentation and register organization.

Uploaded by

mine
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Microprocessors and Microcontrollers – 11EC311

Architectural Model of 8086


Microprocessor based System

Data Bus
CPU
General-
Serial
Purpose RAM ROM I/O Timer COM
Micro- Port
Port
processor
Address Bus

07/08/19 8086 Architectural Model - MPMC 2


Microcontroller based System

CPU RAM ROM

A single chip
Serial
I/O Port COM
Timer
Port

07/08/19 8086 Architectural Model - MPMC 3


Microprocessor vs Microcontroller

Microprocessor Microcontroller
CPU is stand-alone, RAM, ROM, CPU, RAM, ROM, I/O and timer
I/O, timer are separate are all on a single chip
Designer can decide on the Fixed amount of on-chip ROM,
amount of ROM, RAM and I/O RAM, I/O ports
ports.
Expensive Cheap
Used in Computers Used by Application Specific
Systems
General-purpose Single-purpose
Example : Intel’s x86, Motorola’s Example : Motorola’s 6811,
680x0 Intel’s 8051, Zilog’s Z8

07/08/19 8086 Architectural Model - MPMC 4


Features of 8086 Microprocessor


16-bit Microprocessor

Data Bus – 16-bit

Address Bus – 20-bit

Supports Memory upto 1MB

16 Bit Registers

2.5 MIPS(Million of Instructions per second)

16 Logical Segments (Max 64KB Each)

Maximum and Minimum Modes of Operation

07/08/19 8086 Architectural Model - MPMC 5


Memory Segmentation


Physical Address – 20 Bit (Wont fit in registers !!!)

Base Address / Segment Address – 16 Bit

Offset Address / Effective Address – 16 Bit

Code Segment

Data Segment

Extra Segment

Stack Segment

07/08/19 8086 Architectural Model - MPMC 6


Physical Address Calculation


Physical Address = Base Address * 16d + Offset Address

07/08/19 8086 Architectural Model - MPMC 7


Non-Overlapped vs Overlapped Segment

07/08/19 8086 Architectural Model - MPMC 8


Advantages of Segmentation


It allows the memory capacity to be 1MB even though the
actual addresses to be handled by instructions are 16-bits

It allows use of separate memory areas for program, data
& stack, thus the protection of these is possible.

For large programs , it can use multiple segments for
program code, Data & Stack.

Program relocation can be very easily done.

07/08/19 8086 Architectural Model - MPMC 9


Register Organization

07/08/19 8086 Architectural Model - MPMC 10


Register Organization


Special Operation of General Registers
AX – Accumulator

– BX – Base Register
– CX – Count Register
– DX – Destination Register

Segment Registers hold Base Address of Segments

Indexed and Pointer Registers are for Storing Offsets for
particular segments

Flag Register Holds Status and Control Flags

07/08/19 8086 Architectural Model - MPMC 11


Default Segment and Offset Registers

Segment Segment Offset Memory operation


Register Register
Code Segment CS IP Instruction fetch
Stack Segment SS SP,BP Stack operation

Data Segment DS BX/SI/DI General data access

Data Segment DS SI Source string data


access
Extra Segment ES DI Destination string
data access
07/08/19 8086 Architectural Model - MPMC 12
Pipelining Model vs Non Pipelining Model

07/08/19 8086 Architectural Model - MPMC 13


8086 Architecture

07/08/19 8086 Architectural Model - MPMC 14


Components of Architecture


BIU – Bus Interface Unit (Fetch)
–Segment Registers – CS,DS,ES,SS
– Instruction Pointers – IP
– Adder
– 6 Byte Prefetch Queue

EU – Execution Unit (Execute)
– ALU
– General, Indexed and Pointer Registers
– Flags

07/08/19 8086 Architectural Model - MPMC 15


Flag Register of 8086

6 Status Flags
3 Control Flags

07/08/19 8086 Architectural Model - MPMC 16


Status Flags


Controlled by ALU after execute operation

Carry Flag
– 1 : Carry out of MSB
– 0 : No Carry out of MSB

Auxillary Carry Flag
– 1 : Carry out of Nibble
– 0 : No Carry out of Nibble

Parity Flag
– 1 : Odd Parity (Odd Number of 1's in lower byte)
– 0 : Even Parity

07/08/19 8086 Architectural Model - MPMC 17


Status Flags


Zero Flag
– 1 : Result of Arithmetic or Logical Operation = 0
– 0 : Non-Zero Result

Sign Flag
– 1 : Result is Negative (MSB =1)
– 0 : Result is Positve

Overflow Flag
– 1 : Overflow Condition Occured
– 0 : No Overflow

07/08/19 8086 Architectural Model - MPMC 18


Control Flags


Can be Controlled by user

Trap Flag
– 1 : Single Step Mode for Debugging
– 0 : Normal Mode

Direction Flag
– 1 : Address Decrement in String Operations
– 0 : Address Increment in String Operations

Interrupt Flag
– 1 : Interrupts Enabled
– 0 : Interrupts Disabled

07/08/19 8086 Architectural Model - MPMC 19


References


https://www.sites.google.com/site/sripathroykoganti/my-forms

D.V.Hall “Microprocessor and Interfacing”, 2nd Edition Tata McGraw
Hill Publishing Company,2006.

A.K. Ray & K. M Bhurchandi, “Advanced Microprocessors &
peripherals”, Tata Mc Graw Hill Publishing Company 2002.

Rajkamal, “Microcontrollers - Architecture, Programming, Interfacing
& System Design”, 2 nd edition, Pearson Education.

07/08/19 8086 Architectural Model - MPMC 20


Thank You

07/08/19 8086 Architectural Model - MPMC 21

You might also like