andy40185
Member level 5
Hi all,
I have encountered a problem that I cannot send the correct data to the hyperterminal. I'm using KeilC51 complier and C++. Also, I set
the SMOD to 1 and using 11.0592 crystal(baud rate set to 4800). Sometimes send correct data, sometimes wrong.(like below figure)
I do not know what happen it is. Would anyone can help me?
*30 is a temperature
Also, the code as following;
I have encountered a problem that I cannot send the correct data to the hyperterminal. I'm using KeilC51 complier and C++. Also, I set
the SMOD to 1 and using 11.0592 crystal(baud rate set to 4800). Sometimes send correct data, sometimes wrong.(like below figure)
I do not know what happen it is. Would anyone can help me?
*30 is a temperature
Also, the code as following;
Code:
void transmit_data(unsigned char p)
{
TI=0;
SBUF=p;
while(TI==0);
}
void PC(unsigned char *information)
{
while(*information)
{
transmit_data(*information++);
}
}