Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 22

MPI TUT-8

8086 PIN OUT AND


MODES OF OPERATION
23/3/2023
Question 1

• What are the signals available on


the system bus?

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Solution
• A0- A19
• D0-D15
• IOR
• IOW
• MEMR
• MEMW
• …

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Question 2

• Whenever the 8086 microprocessors are reset, from which


memory location it will start the execution?

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Solution

• Reset value of CS = FFFFH

• Reset value of IP = 0000H

• Therefore, program execution starts from FFFF0H

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Question 3

• If an 8086 processor is working at 5 MHz – how much time


does 1 MEMR cycle take
– If there no wait states
– If there is 1 wait state

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Solution

MEMR takes at least 4 T-states => 4 x 0.2 s = 0.8 s

MEMR takes at least 4 T-states plus 1 T-state for 1 WAIT state => 5 x 0.2 s= 1 s

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Question 4

• What is the duration of the Bus Cycle in an 8086 based


microcomputer, if the clock frequency is 12 MHz and three
wait states are inserted?

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Solution

1T-state = 83 ns
4T (bus cycle) + 3T (WAIT states)= 581 ns

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Question 5

• Write a set of instructions to load a constant value FFH in first


2 locations in the data segment 2000H? (instruction should be
executed without any interruption)

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Solution

LOCK: MOV AX, 2000H


LOCK: MOV DS, AX
LOCK: MOV BX, 0000H
LOCK: MOV [BX], 0FFFFH

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Question 6

• If the crystal oscillator of 8284A is operating at 14 MHz then


what will be the PCLK output of the 8284A.

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Solution

• 14M/6
• 2.33 MHz

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Question 7

• How many MIPS is the 8086 capable of obtaining when


operated with a 10 MHz clock?

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Solution

• Here, and

• Therefore, 2.5 MIPS

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Question 8
Give the machine cycles that have to be carried out for the
following instructions for 8086
• Call AX
• RET (near)
• ADC AX,BX
• ADD AX,[BX]
• DEC WORD PTR [SI]
• MOV CX,DX
• MOV CL,DAT1
• ROL BYTE PTR [2000], CX (CX has a count of 7)

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Solution
a) 1 MEMR, I MEMW
b) 1 MEMR, I MEMR
c) 1 MEMR
d) 1 MEMR, 1 MEMR
e) 1 MEMR, 1 MEMR, 1 MEMW
f) 1 MEMR
g) 1 MEMR, 1 MEMR
h) 1 MEMR, 1 MEMR, 1 MEMR, 1 MEMW

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Question 9

• In a write cycle, in which T state does the WR line get


activated.

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Solution

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Solution

• As seen from the diagram, WR signal is activated in 2nd T-state

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Question 10

• What are the possible ways to disable the interrupt flag?

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION


Solution

• Reset the processor.


• CLI
• By writing some instructions to set the IF bit of flag register

PUSHF
POP AX
AND AX, 0FDFFH
PUSH AX
POPF

ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION

You might also like