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.

[SOLVED] yper terminal shows some strange symbol

Status
Not open for further replies.

genious_us

Newbie level 6
Joined
Oct 13, 2009
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
pakistan
Activity points
1,348
Iam tired to figure out the problem..hyper terminal shows some strange symbol,try a lot of time......i download virtual serial port driver from https://www.Eltima.com ...i attached code and proteus simulation pic.....plz help me..

------------------------------------------------------------------------


-------------------------------------------------------------------------
#include <at89x52.h>
void transmit(unsigned char);
unsigned char receive( );
void sendstring(unsigned char *a);
unsigned char i=0;
unsigned char dat[2];

void main()
{
TMOD=0x20;
TH1=0xFD;
SCON=0x50;
TR1=1;
sendstring("AT");
transmit(0x0d);

for(i=0;i<2;i++)
dat=receive( );
if(dat[0]=='O' && dat[1]=='K')
P0_1=0;
else
P0_0=0;
}
void transmit(unsigned char x)
{
SBUF=x;
while(TI==0);
TI=0;
}
unsigned char receive( )
{
while(RI==0);
RI=0;
return SBUF;
}
void sendstring(unsigned char *a)
{
while(*a!='\0')
{
SBUF=*a;
while(TI==0);
TI=0;
a++;
}
}
 
Last edited by a moderator:

These strange symbols result when HyperTerminal is receiving a binary value that does not correspond to printable ASCII characters. ASCII is a code that maps the binary value stored in byte to a display character shown on the screen. Strange characters will show when values (decimal) above 127 or below 32 are received. Google "PC ASCII codes". In fact, the first character shown in Hyperterminal your picture corresponds to a decimal value of 181 (hex B5). As a simple example, if HyperTerminal received a decimal value of 65 (hex 41), it would display an "A" character.

Here are a couple of references:
**broken link removed**
 
Last edited by a moderator:
yes...but how to solve that problem...or what is the reasion of that problem....is there any thing wrong with code or simulation process....or some thing else......can u help me !
 

your hyperterminal should not show auto detect at the bottom.. it should show your settings like 9600-8-N-1. its buad rate mismatch problem.. you should be able to solve it by setting proper baud rate of hyperterminal
 

All baud rates are matched,physical baud rate,virtual baud rate and hyper terminal baud rate are set to 9600

---------- Post added at 18:59 ---------- Previous post was at 18:51 ----------

sorry....how to change that "auto detect setting" in hyper terminal...?

---------- Post added at 19:05 ---------- Previous post was at 18:59 ----------

al baud rates are same but the problem remain same.....:)
 

Simulate from proteus....the code and snap as u seen before......virtualy conected com1(proteus) and com2(hyper terminal)....iam sending "at" by using sendstring function....so hyper terminal should show on screen "at"...but isnt !..shows some strange symbol....even i tried terminal insted of hyper terminal...al baud rates are matched set to 9600....so then why terminal not showing wht iam sending from code !!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top