COMSATS Institute of Information Technology Lahore

You might also like

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

COMSATS - Lancaster Dual Degree Programme

COMSATS Institute of Information Technology Lahore

Instructor
Semester

Cours
Credit
EEE342
e
Hours
Code
Program
BSTE

Microprocessor Systems and


Interfacing

Course Title

Engr. Usman Rafique


6th

Batc
h

SP13

Sectio
n

A+B

Date

December 09, 2015

Submission
December 21, 2015 (During class time) Marks
Date

40

Assignment 3
Instructions:
Follow the guidelines for assignment submission as given in course
hand book.
Add front title to the solution as described in the class room.
No solution shall be accepted after due date and time.
Question 1:

20 Marks

Figure 1 shows a 4x3 matrix keypad interfaced with 8088 CPU using 8255 PPI. You are
required to write an assembly language program that scans all the keys on keypad
and writes the ASCII of the pressed key to PORTB of PPI.
Your program must include subroutines and it must be well-commented.

Figure 1
Page 1 of 2

COMSATS - Lancaster Dual Degree Programme

COMSATS Institute of Information Technology Lahore


Question 2:

20 Marks

A square wave of 115KHz is to be generated using any counter on 8254. 8254 is


required to be interfaced with 8088 CPU at CD9CH and above. Clock signal of 8254 is
running at 500KHz. You are required to provide:
i.

Counter your used in your design

ii.

Mode in which the counter is configured

iii. Initializing value of the counter

02 Marks
02 Marks
02 Marks

iv.

Schematics of timer with CPU interface

07 Marks

v.

Assembly language program that generates the required waveform

07 Marks

Note: Show complete working of your answer.

Page 2 of 2

You might also like