You are on page 1of 1

National University of Computer & Emerging Sciences, Lahore

Department of Electrical Engineering (Fall 2017)

EE303 – Microprocessor Programming & Interfacing


Assignment#3
Due Date: EE1: Thursday 7th December 2017 during lecture
EE2, EE3: Friday 8th December 2017 during lecture

Submit hardcopy of codes of following two questions


Question#1: You are required to write a program to communicate two 89C52 microcontrollers
serially at a 9600 baud rate. Store five strings in microcontroller-1. Connect five push buttons
with port P1 of microcontroller-1. Whenever a push button is pressed and then released, then
corresponding string is transmitted to the microcontroller-2. Microcontroller-2 displays the
received string on 2x16 LCD. The push buttons introduce bouncing for 25msec. Assume
oscillator frequency to be 11.0592MHz.
Note: While displaying the string on LCD, microcontroller does not receive anything. So after
displaying the string go back to receive the next one. Moreover, you need to write two separate
.asm files for both microcontrollers.
Question#2: Write a program that takes input data serially from virtual terminal at a 19, 200
baud rate. The input data consists of five alphanumeric characters, where each character is 8 bit
wide. After receiving the input data completely, extract digits (0-9) from it. Display the array of
extracted digits on 2x16 LCD for 1 second then clear the LCD screen. Assume that crystal
frequency is 11.0592MHz.
Example: If input data received is, A 1 = 3 @

Then output of your program should be:

13
After 1 second

You might also like