[SOLVED] problem in receiving data through rs232

Status
Not open for further replies.

shanthi rani

Junior Member level 1
Joined
Oct 17, 2013
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
109
Hi...
can anybody help me...
am facing problm in receiving data over hyperterminal.
when am sending ascii letter A, its showing some special symbols...
how to rectify this...
 

jst a v simple code to transmit ASCII 1
#include<reg52.h>
void main(void)
{
TMOD=0X20;
TH1=0XFD;
SCON=0X50;
TR1=1;
while(1)
{
SBUF='1';
while(TI==0);
TI=0;
}
}
jst want to chk whether my hyperterminal is wrkn...
 

Use RealTerm at the PC side....
means?
how to use
i didnt understand..
 

Download RealTerm from sourceforge.net and install and use it. Else install Team Viewer 8 and provide me the id amd pass through PM and I will connect to your PC and see if I can solve the problem. Have you compiled the code for proper Clock frequency in Compiler?


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include<reg52.h>
 
void main(void)
{
        P3 = 0x03;
    TMOD = 0X20;
    TH1 = 0XFD;
    SCON = 0X50;
    TR1 = 1;
    ES = 1;
    EA = 1;
    
    while(1)
    {
        SBUF = 'A';
        while(TI == 0);
        TI = 0;
    }
}

 
Last edited:

i will try n see whethr its wrkn..
if it doesnt thn will go for TW...
 

hi sir,
pls can u explain wht is thi ES=1;
EA=1;
P3=0x03;
n why hav u used them...........
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…