0% found this document useful (0 votes)
26 views

COMSATS Institute of Information Technology Lahore

This document provides instructions for Assignment 3 of the Microprocessor Systems and Interfacing course. It includes two questions. The first question asks students to write an assembly language program that scans all the keys on a 4x3 matrix keypad interfaced with an 8088 CPU using an 8255 PPI and writes the ASCII of the pressed key to PORTB of the PPI. The second question asks students to generate a 115KHz square wave using an 8254 counter interfaced with an 8088 CPU, and requires them to specify the counter used, its configuration mode and initializing value, provide a schematic of the timer interface, and write an assembly language program to generate the waveform. Students are instructed to follow guidelines for assignment submission

Uploaded by

AliImran
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

COMSATS Institute of Information Technology Lahore

This document provides instructions for Assignment 3 of the Microprocessor Systems and Interfacing course. It includes two questions. The first question asks students to write an assembly language program that scans all the keys on a 4x3 matrix keypad interfaced with an 8088 CPU using an 8255 PPI and writes the ASCII of the pressed key to PORTB of the PPI. The second question asks students to generate a 115KHz square wave using an 8254 counter interfaced with an 8088 CPU, and requires them to specify the counter used, its configuration mode and initializing value, provide a schematic of the timer interface, and write an assembly language program to generate the waveform. Students are instructed to follow guidelines for assignment submission

Uploaded by

AliImran
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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