Microprocessor Vtu Notes
Microprocessor Vtu Notes
* If you have any study materials which may help other students or having any queries
contact us at : [email protected]
VTU Connect App Download Now from Google Play Store for Notes, QP's, Previous Sem Result and Lot More
VTU Connect
KLE App Download
Dr. M.S. SheshgiriNow from Google
College Play Store &
of Engineering forTechnology,
Notes, QP's, Previous
Library,Sem Result -and
Belagavi Lot More
590008
VTU Connect App Download Now from Google Play Store for Notes, QP's, Previous Sem Result and Lot More
VTU Connect
KLE App Download
Dr. M.S. SheshgiriNow from Google
College Play Store &
of Engineering forTechnology,
Notes, QP's, Previous
Library,Sem Result -and
Belagavi Lot More
590008
VTU Connect App Download Now from Google Play Store for Notes, QP's, Previous Sem Result and Lot More
'\
(i)~~~ \
~t1' ~U~'
15EC42
USN II I I I I I I I I I
Fourth Semester B.E. Degree Examination, June/July 2017
Microprocessor
Note: Answer FIVE full questions, choosing one full question from each module.
Module-1
1 a. Explain the internal architecture of 8086 with its neat block diagram. (08 Marks)
b. Explain briefly any 4 addressing modes of data of 8086 with an example for each. (06 Marks)
c. If CS= 1000 H, DS = 25AOH, SS= 3210H, ES= 5890H, BX= 43A9H, BP= 3400H, find
the physical address of the source data for the following instrnctions:
(i) MOV AL, [BX+1200H]
(ii) ADD BL, [BP+05] (02 Marks)
OR
2 a. Write down the instruction formats for the following two types of cases of 8086 and form
the opcode for the indicated instruction:
(i) Register to Register; ADD AX, BX
(ii) !mmec!.iate to Register; ADD CX, 1200 H. (06 Marks)
b. Write 8086 program to find the smallest number out of N 16 bit unsigned numbers stored in
a memory block starting with the address 2000 H. Store the result at word location 3000 H.
(08 Marks)
c. Briefly explain the following 8086 instructions:
(i) XLAT (ii) NEG (02 Marks)
Module-2
3 a. Write a complete assembly language program in 8086 which replaces all the occurances of
character'-' in a given"string by'*'. (08 Marks)
b. Verify whether any of the following instructions are wrong and correct them with reasons.
Assuming following is a program, what is the value of register BX and flags CY, Z, P, S at
the end.
(i) MOY BX, 0804H
(ii) INC [BX+02]
( iii) ADD 06H, AL
(iv) SHRDX, 02
(v) XOR BL, BL (08 Marks)
OR
4 a. Briefly explain the operations of the string instructions of 8086, indicating the initializations
required to use them. (06 Marks)
2
z0 b. Write a complete assembly language program for block move of a source data (10 bytes)
c present in a memory block sta11ing with address SOURCE to a destination block sta11ing
e
0 from address DSTN, using MOVS instruction. Consider overlapping ofblocks also.
a.
.§ (08 Marks)
c. Explain briefly any -1- :1ssembler directives. (02 Marks)
l of 2
/,;~ ~,'/ .
·,- ,: :_- i:.; ·~:' }f~ }\ i"~ .ft i . : 15EC42
:: .__" ;·_ :.,, . .:\:::.~-~~·!·
Module-3
5 a. (i) Ex:pla:in the stack structure of 8086 and the operations of PUSH and POP instructions.
(ii) Sketch the content of stack memory indicating the value of SP register before PUSH
BX operation and after the PUSH BX operation. Assume SS = 2500 H, BX = 432AH
and SP = I 000 H. (08 Marks)
b. Write a procedure in 8086 assembly language which computes the factorial of an 8 bit
number passed through AL register. The factorial value (maximum 8 bit) is returned through
AL register. (08 Marks)
OR
6 a. What are the sequence of actions taken by 8086 and the device, when a device interrupts
8086 over INTR line? Explain about the software and reserved internal interrupts of 8086.
(08 Marks)
b. What are the differences between a procedure and a macro? Create a macro that would find
the logical NANO value of two operands. (04 Marks)
c. What are the methods that can be used to pass parameters to a procedure? Explain any one
of them with an example. (04 Marks)
Module-4
7 a. Sketch the minimum mode configuration of 8086 and explain the operation briefly.
(08 Marks)
b. Interface two 4K x 8 EPROM and two 4K x 8 static RAM chips to 8086. The addresses of
RAM and ROM should start from FCOOOH and FEOOOH respectively. (08 Marks)
OR
8 a. Sketch the maximum mode configuration of 8086 and explain the operation briefly.
(08 Marks)
b. Interface a 7-segment LED to 8086 using a 74LS373 latch for 1/0 address OCH. Write a
program that simulates a single digit seconds counter on the LED digit. (Assume a one
second software delay is available) (08 Marks)
Module-5
9 a. Interface ADC 0808/0809 to 8086 using 8255 and write a program to convert the analog
voltage co1mected to the last channel. Store the digital value in the location 2000H.
(08 Marks)
b. Interface a stepper motor to 8086 using 8255 and write a program to rotate the motor in
clockwise direction 5 steps or in counter clockwise direction 10 steps, depending on whether
the content of memory location 2000H is OOH or FFH respectively. (08 Marks)
OR
10 a. Explain the architecture of NDP-8087 with its internal block diagram. (08 Marks)
b. Write a program in 8086 using DOS 21 H interrupt which waits for a key to be pressed from
the keyboard. If the key is 'G' display the message 'GOOD' on the CRT and display the
message 'VERY GOOD', if the key Vis pressed. Display 'NOT VALID' if any other key is
pressed. (05 Marks)
c. Explain mode-2 operation of 8254 timer briefly. What is the control word to be used to
operate counter-I in mode-2 binary? (03 Marks)
*****
2 of2