Question

For 8051 microcontroller, write a C-language program for 8051 to serial transfer message "KFUPM" to the...

For 8051 microcontroller, write a C-language program for 8051 to serial transfer message "KFUPM" to the serial port pf PC continiously. Asume XTAL=11.059, baud rate of 4800, 8-bit data with 1 start and 1 stop bit. Your program should initialy store "KFUPM".
0 0
Add a comment Improve this question Transcribed image text
Answer #1

#include<reg51.h>

void main(void)

{

SBUF = 'KFUPM';// Initially taking value is KFUPM

TMOD=0x20;// Timer 1 and 8 bit

TH1=0xFA;//4800 bound rate

while(1)

{

SBUF='KFUPM';

while(TI==0);

TI=0;// Set serial interrupt to 0

}

}

Add a comment
Know the answer?
Add Answer to:
For 8051 microcontroller, write a C-language program for 8051 to serial transfer message "KFUPM" to the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT