Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

8086 microprocessor, Study notes of Microprocessors

It's an informative pdf about 8086 microprocessor

Typology: Study notes

2011/2012
On special offer
30 Points
Discount

Limited-time offer


Uploaded on 09/21/2012

ananya_kallankudlu
ananya_kallankudlu 🇮🇳

4

(1)

6 documents

1 / 85

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
M. Krishna Kumar MM/M1/LU3/V1/2004 1
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-AD
15
and A16 –A
19.
8086 Microprocessor (cont..)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
Discount

On special offer

Partial preview of the text

Download 8086 microprocessor and more Study notes Microprocessors in PDF only on Docsity!

M. Krishna Kumar

MM/M1/LU3/V1/

•^

It is a 16 bit μp.

-^

8086 has a 20 bit address bus can access upto 2

20

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 AD

- AD 0

15

and A

16

– A

19

8086 Microprocessor (cont..)

M. Krishna Kumar

MM/M1/LU3/V1/

•^

It requires single phase clock with 33% duty cycle toprovide internal timing.

-^

8086 is designed to operate in two modes, Minimum andMaximum.

-^

It can prefetches upto 6 instruction bytes from memory andqueues them in order to speed up instruction execution.

-^

It requires +5V power supply.

-^

A 40 pin dual in line package.

8086 Microprocessor (cont..)

M. Krishna Kumar

MM/M1/LU3/V1/

4

AH^

AL

BH^

BL

CH^

CL

DH^

DL SPBPSI DI

ESCSSSDSIP

1

ADDRESS BUS( 20 )BITS DATA BUS( 16 )BITS

BUS CONTROLLOGIC

8 0 8 6 BUS

2

3

4

6 5

INSTRUCTION QUEUE

8 BIT Q BUS

ALU DATA BUS16 BITS EUCONTROLSYSTEM

TEMPORARY REGISTERS

ALU FLAGS

GENERALREGISTERS

EXECUTION UNIT ( EU )

BUS INTERFACE UNIT

( BIU)

Fig:

8086 Microprocessor (cont..)

M. Krishna Kumar

MM/M1/LU3/V1/

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

40 39 38 37 36 35 34 33 32 31 30 29 28 272625 24 23 22 21

8086 CPU

GNDAD NMIINTRCLKGND

14 AD

13 AD

12 AD

11 AD

10 AD

9 AD

8 AD

7 AD

6 AD

5 AD

4 AD

3 AD

2 AD

1 AD

0

V RESET CCAD^15 A16 /^

S^3 A^17

/ S 4 ____ A^19 MN/MX___RD _______LOCK

/S 6

___(WR)

QS______TESTREADY

1

____S^2

___S^1

_____(DEN)

(ALE)

A^18

/ S 5 _____BHE / S

7



RQ / GT

( HOLD) 0

___^


RQ / GT

( HLDA) 1


(M / IO )


(DT / R) ___ S^0

QS

0

________(INTA)

Pin Diagram of 8086

M. Krishna Kumar

MM/M1/LU3/V1/

•^

8086 has two blocks BIU and EU.

-^

The BIU performs all bus operations such as instructionfetching, reading and writing operands for memory andcalculating the addresses of the memory operands.

-^

The instruction bytes are transferred to the instructionqueue.

-^

EU executes instructions from the instruction system bytequeue.

Internal Architecture of 8086

M. Krishna Kumar

MM/M1/LU3/V1/

•^

Both units operate asynchronously to give the 8086 anoverlapping instruction fetch and execution mechanismwhich is called as Pipelining. This results in efficient useof the system bus and system performance.

-^

BIU contains Instruction queue, Segment registers,Instruction pointer, Address adder.

-^

Internal Architecture of 8086 (cont..)EU contains Control circuitry, Instruction decoder, ALU,Pointer and Index register, Flag register.

M. Krishna Kumar

MM/M1/LU3/V1/

•^

This queue permits prefetch of up to six bytes ofinstruction code. When ever the queue of the BIU is notfull, it has room for at least two more bytes and at the sametime the EU is not requesting it to read or write operandsfrom memory, the BIU is free to look ahead in the programby prefetching the next sequential instruction.

-^

These prefetching instructions are held in its FIFO queue.With its 16 bit data bus, the BIU fetches two instructionbytes in a single memory cycle.

-^

Internal Architecture of 8086 (cont..)After a byte is loaded at the input end of the queue, itautomatically shifts up through the FIFO to the emptylocation nearest the output.

M. Krishna Kumar

MM/M1/LU3/V1/

•^

The EU accesses the queue from the output end. It readsone instruction byte after the other from the output of thequeue. If the queue is full and the EU is not requestingaccess to operand in memory.

-^

These intervals of no bus activity, which may occurbetween bus cycles are known as

Idle state

•^

Internal Architecture of 8086 (cont..)If the BIU is already in the process of fetching aninstruction when the EU request it to read or writeoperands from memory or I/O, the BIU first completes theinstruction fetch bus cycle before initiating the operandread / write cycle.

M. Krishna Kumar

MM/M1/LU3/V1/

•^

EXECUTION UNIT

: The Execution unit is responsible

for decoding and executing all instructions.

-^

The EU extracts instructions from the top of the queue inthe BIU, decodes them, generates operands if necessary,passes them to the BIU and requests it to perform the reador write bys cycles to memory or I/O and perform theoperation specified by the instruction on the operands.

-^

Internal Architecture of 8086 (cont..)During the execution of the instruction, the EU tests thestatus and control flags and updates them based on theresults of executing the instruction.

M. Krishna Kumar

MM/M1/LU3/V1/

•^

If the queue is empty, the EU waits for the next instructionbyte to be fetched and shifted to top of the queue.

-^

When the EU executes a branch or jump instruction, ittransfers control to a location corresponding to another setof sequential instructions.

-^

Internal Architecture of 8086 (cont..)Whenever this happens, the BIU automatically resets thequeue and then begins to fetch instructions from this newlocation to refill the queue.

M. Krishna Kumar

MM/M1/LU3/V1/

Minimum Mode Signals

( MN/ MX

= Vcc

)

Name

Function

Type

HOLD

Hold Request

Input

HLDA

Hold Acknowledge

Output

WR

Write Control

Output

,

3- state

M/IO

Memory or IO Control

Output

, 3-State

DT/R

Data Transmit

/

Receiver

Output

, 3- State

DEN

Date Enable

Output

,

3-State

ALE

Address Latch Enable

Output

INTA

Interrupt Acknowledge

Output

(^

/^

=^

)

HLDA

Write Control

,

M/IO

,

DT/R

, 3- State

DEN

,

3-State

ALE INTA

Internal Architecture of 8086 (cont..)

M. Krishna Kumar

MM/M1/LU3/V1/

Maximum mode signals ( MN / MX = GND )Name

Function

Type

RQ / GT1, 0

Request / Grant BusAccess Control

Bidirectional

LOCK

Bus Priority Lock Control

Output,3- StateOutput,3- StateOutput

S^2

  • S

0

Bus Cycle Status

QS1, QS

Instruction Queue Status

Internal Architecture of 8086 (cont..)

M. Krishna Kumar

MM/M1/LU3/V1/

•^

The 16 data bus lines D

0

through D

15

are actually

multiplexed with address lines A

0

through A

15

respectively. By multiplexed we mean that the bus work asan address bus during first machine cycle and as a data busduring next machine cycles. D

15

is the MSB and D

0

LSB.

•^

When acting as a data bus, they carry read/write data formemory, input/output data for I/O devices, and interrupttype codes from an interrupt controller.

Minimum Mode Interface ( cont..)

M. Krishna Kumar

MM/M1/LU3/V1/ Vcc

GND

A-A^0

,A 15

/S 16

  • A 3

/S 19 6

Address / data bus D^0

  • D

15

ALEBHE / S

7

M / IODT / RRD WR DENREADY

CLK clock

MN / MX

Vcc

Mode select

INTRINTA TEST NMI RESET HOLDHLDA

8086 MPU

Interruptinterface DMAinterface

MemoryI/O controls

Minimum Mode Interface ( cont..)^ Block Diagram of the Minimum Mode 8086 MPU