Question: cricket ? 5:19 PM a mail-attachment.googleusercontent.c C CS 343 LAB7 - Using the 8051 Serial Port and Interrupts Overview The purpose of this lab is

 cricket ? 5:19 PM a mail-attachment.googleusercontent.c C CS 343 LAB7 -
Using the 8051 Serial Port and Interrupts Overview The purpose of this

cricket ? 5:19 PM a mail-attachment.googleusercontent.c C CS 343 LAB7 - Using the 8051 Serial Port and Interrupts Overview The purpose of this lab is to control and program the serial port of the micro-controller in a given sequence. Two switches SW1 and SW2 are connected to the micro-controller input port bits P1.1 and P1.2. The two switches define the required Baud rate requirements for the serial communication as follows: Baud 1200 2400 4800 SW1 Steps First, write a subroutine "BCODE" (Baud Code) starting at code address 30H to detect the setting of SW1 and SW2 and return a value in accumulator B (0 for 1200, 1 for 2400, 2 for 4800, and 3 for 9600 Baud). It also setup the TH1 register for the requested BAUD rate Second, write a subroutine "CONFIG" (Timers Interrupts, and Serial Configuration) starting at code address 80H to configure the serial port for Mode 1, timer 0 for mode 1, and timer 1 for

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!