0% found this document useful (0 votes)
36 views1 page

Up Assignment - 3 - Fall 2017

This document contains instructions for an assignment involving microprocessor programming and interfacing. It includes two questions: 1) Write a program for two microcontrollers to communicate serially at 9600 baud, with one sending strings from buttons to the other's LCD display. 2) Write a program to receive 5-character serial input at 19200 baud, extract digits to an array, display on LCD for 1 second, then clear. Students must submit code for both questions by the given due dates.

Uploaded by

Umair Hameed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views1 page

Up Assignment - 3 - Fall 2017

This document contains instructions for an assignment involving microprocessor programming and interfacing. It includes two questions: 1) Write a program for two microcontrollers to communicate serially at 9600 baud, with one sending strings from buttons to the other's LCD display. 2) Write a program to receive 5-character serial input at 19200 baud, extract digits to an array, display on LCD for 1 second, then clear. Students must submit code for both questions by the given due dates.

Uploaded by

Umair Hameed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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