Question
Lab 4 Serial Port Assignment Design, write, and debug an MC8051 assembly program which does the following: 1. Configure the serial port to mode 1
Lab 4
Serial Port Assignment
Design, write, and debug an MC8051 assembly program which does the following:
1. Configure the serial port to mode 1 with enabled reception and 9600 BAUD rate for the DS89S420 microcontroller. Also configure Timer 1 for mode 2.
2. Configure port P1 for input and port P2 for output.
3. Configure Timer 0 for mode 1 maximum delay.
4. The serial port operation will wait for an ASCII character to be entered from the serial terminal (Keil simulated), increment it, and output the resulting ASCII character to the serial terminal.
5. The input port (P1) is red after each timer 0 overflow, the value get complemented, and output to port P2.
6. Timer 0 and the serial port operations are all accomplished through polling of TF0, RI, and TI respectively. Initially you need to start Timer 0 and Timer 1 for the full operation to take place.
7. Document your report and attach the list file along with the used Keil debugger interface shots or screen.
Please, I need the code and the output on printscreen form.
Thanks!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started