Uploaded by Ahad Mughal

CPE-342 MicroprocessorSystemsandInterfacing BCE-A B Theory SI SP21

advertisement
COMSATS University Islamabad, Lahore Campus
Department of Electrical and Computer Engineering
■ Sessional-1 □ Sessional-II
□ Terminal Examination
Course Title:
Microprocessor System and Interfacing
Course Instructor: Dr. M. Naeem Shehzad, Dr. Abbas Javed
Semester:
6th
Batch: FA17, FA18 Section:
Time Allowed:
60 Minutes
Student’s Name:
Important Instructions / Guidelines:
•
•
•
•
– SPRING 2021
Course Code: CPE/EEE 342 Credit Hours: 4(3,1)
Program Name: BCE/BSEE
A&B
Date:
April 03, 2021
20
Maximum Marks:
Reg. No.
CIIT/
/LHR
The exam is online. The time limit to solve this exam is 1-hour and extra 15 mins are given to
upload your exam.
Write your name and registration number in the above-mentioned space using Microsoft Word.
Solve the questions on your notebook and insert the images of your solution at the end of the
question paper.
Save your exam file in the following format and submit your exam file on CUonline:
XXE342-S-I-FA1X-00X.PDF
Question 1:
[CLO1-C5-PLO3] [10]
Write an assembly language program to solve the following equation:
𝐶 +5∗𝐷
𝐹 = 3 ∗ (𝐴 + 𝐵) +
𝐸
Where A is your registration number (For a student with roll number Fa18-BCE-086, value of A will be 86H),
content of B is stored at memory location DS:[BX+DI+10], C is stored at DS:100, value of D is 1000 and E is 10.
Suppose DS is AB12H, DI is 2021H. For rest of the registers, you can suppose any value except 0H. Write down
the content of the registers after execution of each instruction. Compare the value of F with 700, if F is greater than
700 call the sub-routine to decrement the value to 700 by using a decrement instruction in Loop, If F is less than
700, call the sub-routine to increment the value to 700 by using an increment instruction in Loop.
Question 2:
[CLO2-C5-PLO3][10]
Integrate 128 KB SRAM with 8088 microprocessors using NAND gate decoder decoding technique. Whereas the
available RAM memory chips are of 32KB. You are required to provide the completely labeled schematic diagram
of each chip. The starting address of first chip is X8000H where X is the least significant number in your roll
number. (For a student with roll number is Fa18-BSEE-25, the starting address will be 58000H)
End of Paper
Page | 1
Download