Thapar University Patiala BE-EIC (V Semester) Make-Up Test Nov 2016

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Roll Number:

Thapar University Patiala


Department of Electrical & Instrumentation Engineering
BE-EIC (V Semester) MakeUEI 504: Microprocessor & Applications
Up Test
Nov 2016
Time: 02 Hours; MM: 75
Name of Faculty: MIS, SVG
Note:
ALL QUESTIONS ARE COMPULSORY.
MARKS ARE INDICATED AGAINST EACH QUESTION.
ASSUME ANY MISSING DATA IF REQUIRED.
Q1. Draw the flowchart and write down the program using 8085 for the following:
[20]
a. Square root of an 8 bit binary number
b. Factorial of a number between 0 to 8
Q2. Write a set of instructions to alter the contents of flag register in 8085.
[5]
Q3. Write an assembly language program to separate even numbers from the given list of 50
numbers and store them in the another list starting from 2300H. Assume starting address of
50 number list is 2200H.
[10]
Q4. Write a program to generate a delay of 0.4 sec if the crystal frequency is 5 MHz. Show
the necessary calculations.
[5]
Q5. Interface a 64-key matrix keyboard to the 8085 microprocessor using 8255. Write an
8085 assembly language program to initialize 8255 and to read the key code.
[10]
Q6. Interface an 8-digit 7 segment LED display using 8255 to the 8085 microprocessor
system and write an 8085 assembly language routine to display message on the display.
[10]
Q7. An ASCII character is being received on SID pin of 8085. Write a program in assembly
language of 8085 to assemble this character and store it in memory. Write comment for
each instruction.
[10]
Q8. Write a program to initialize 8255 in the configuration given below:
[10]
1.
2.
3.
4.

Port
Port
Port
Port

A: Simple input
B: Simple output
CL: Output
Cu: Input

Assume address of the control word register of 8255 as 83H.

Q9. Determine the problem in the program given below and suggest a suitable remedy for it.
[5]
LOOP: LXI H,2500 Hex
MOV A,M
INX H
ADD M
STA 2503 Hex
JMP LOOP

You might also like