You are on page 1of 3

Course: Microprocessors & Interfacing

Semester: IV semester Year: June 2021 Scheme: RC 2019-20

SECOND TEST Total Marks: 25 Time: 2 hours

Instructions:
i) Write the answers in your own handwriting, scan and send the
pdf to nayana@gec.ac.in
ii) The answer sheet should have your roll no, name, page number
and signature.
iii) The scanned copy should reach me today i.e. 24/06/2021 by 4 pm
from your registered email id. Strictly no mails received after 4pm
will be evaluated.
iv) Only the first sent mail will be considered. Multiple emails are not
allowed.
v) Marks will be allotted based on the originality of the answers.
Copying from text-books, internet or friends is strictly prohibited.
Q. No Questions Marks CO Level
1 Write an assembly level language code for 8085 to 4 CO3 L5
implement a modulo 7 counter with one second
delay between counts . Assume clock frequency =1MHz
Show all the delay Calculations.

2 Develop a subroutine for 8085 microprocessor to store F7H 3 CO3 L5


in flag register of 8085 using only data transfer instructions.
Data in other registers should not alter upon execution of
this program. Comment the program in your own words.

3 Interface 8 switches and 8 Common cathode LED’s and a 7 CO4 L6


Common Anode 7-segment display to 8085 microprocessor
using suitable I/O ports. The port addresses are 83H, 85H and
87H respectively. Write a program to sense the switches
SW0-SW7 (Open switch should read a HIGH). The sensed
pattern is to be displayed on 8 LED’s (Turn ON the LED if
the switch is open) and display the total number of ON
switches on the 7-segment display. Design the hardware
efficiently and write the program for the same. Use 74LS138
for address decoding. Use simple latches and buffers as I/O
ports. Explain the program in your own words.

4 Analyse the figure given below, answer the following: 5 CO1 L2


i) What is the total size of the memory in the
circuit?
ii) Identify the memory map for R/WM1.
iii) Identify the memory map for R/WM2.
iv) Replace the two NAND gates in the circuit with
one 74LS138 decoder without changing the
memory size or the memory address.

Figure for Q4.


5 Sketch a neat timing diagram to show Port B in Mode1 2 CO2 L32
Input operation.

6 Assume an 8255 is interfaced with 8085 such that the 4 CO2 L4


address of its Control register is 8003H. 1 Seven Segment
display is connected to Port A and 8 switches are connected
to Port B. 1 LED is connected to Port C at PC0.
Write the instructions to configure the 8255 ports for the
above task. Also Write the instructions to toggle the LED
connected to PC0.

Course Outcomes:
1. Explain the concepts related to Microcomputer System and Semiconductor
Memories.
2. Understand the Architecture and Working of 8085 µP and Interfacing ICs such as
8255, 8259 and 8251.
3. Analyze the instruction set and the timing sequence of various instructions.
4. Create Assembly language programs for a given task & Design Interfacing of
Memory and I/O devices

Test Weightage CO1- 20% CO2- 24% CO3-28 % CO4- 28% TOTAL
Test paper-II 5 6 7 7 25 marks
Bloom’s Levels L1 L2 L3 L4 L5 L6
- 5 2 4 7 - 7 -

You might also like