Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

any good book for serial communication

Status
Not open for further replies.

sloven_1

Newbie level 5
Joined
Oct 29, 2007
Messages
10
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,329
books on serial communication

I WANA KNOW THAT HOW UC DO SERIAL COMMUNICATION? CAN I USE ANY SORT OF UC FOR IT? OR GIVE ME IDEA FOR ANY GOOD BOOKZ?
REGARDS
 

soft copy of 8051 in embedded by mazidi, janice

hi sloven1

go for search on forum, there are many post regarding you question, what you mean by any microcontroller? why dont you start with 8051 or pic its easy. there is a big topic Serial communication. I will seggest you to study mazidi book for 8051. it is the best book not only for serial communication but to understand how Microcontroller work, it is given very good example too. go and study this book you will get your answer.
 

    sloven_1

    Points: 2
    Helpful Answer Positive Rating
THNKZ SN_BURKI

YOU IDEA IS GOOD BUT I DONT HAVE THIS BOOK AVAILABLE HERE, IF U HAVE THE SOFT FORM OF THIS BOOK PLS UPLOAD. IF ANY 1 HAV THE SOFT COPY OF THIS BOOK PLS UPLOAD.
 

Some article for your reference.
**broken link removed**
 

simplest example (read & write from RS232 using Hyperterminal baud rate 1200) 8051

char getCharacter (void)
{
char chr; // variable to hold the new character
while (RI != 1) {;}
chr = SBUF;
RI = 0;
return(chr);
}


void send (char a)
{
SBUF = a;
while (TI != 1);
TI=0;
}




void main (void)
{




SCON = 0x50; // mode 1, 8-bit uart, enable receiver
TMOD = 0x20; // timer 1, mode 2, 8-bit reload
TH1 = 0XE6; // 1200
TL1 = 0XE6;
TR1 = 1;
TI = 0;
SBUF =0;


while (1)
{
your code



}//end of while
}//end of main
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top