- This topic has 6 replies, 4 voices, and was last updated 13 years, 8 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › May anyone help me to interface rs232 with 8051 to recieve data from PC and to again send it to PC
I just copied and pasted the programe that is given in engineer garage site to interface rs232 with pc. I also configured hyperterminal as that is given in the video. But as i press small letters from the keyboard, capital letters are not getting on the hyperterminal. Only the small letters that i pressing on the keyboard are displaying on the hyperterminal window. Capital letters are not displaying.
May anyone help me.
are you doing this in real hardware of in simulation?
Yes, i am trying to do this practical on hardware. I made a circuit on breadboard and i am tested that circuit. But whenever i wrote programmes to send, that programe worked. But when i used the programe that is written on the site, project did not work.
hello amit
are you doing in assembly language plz paste the code here there may be a bug……
hi amit send the link which you following…
Dear sir,
I am sending link for RS232 interfacing.
void recieve() //Function to receive serial data
{
unsigned char value;
while(RI==0);
SBUF=value;
P1=SBUF;
RI=0;
}
void transmit() // Funtion to transmit serial data
{
P2=P1-32;
SBUF=P2;
while(TI==0);
TI=0;
SBUF=P1;
while(TI==0);
TI=0;
}
actually the description of this project is not correct...
the authot must edit his post..
check the code above there is no fucntion to
convert small letters to capital its only receive and transmit function.
you can make your own function to do that..
study the ASCII equivalents.. here’s the example you want
A = 65 in ASCII
a = 97 in ASCII
actually you just need to add 32H to have the lowe case equivalent or vice versa..