This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

** Baud rate Mismatch in in receiving data from MCBX51

I wrote a program to communicate with my Development board, and pc through Hyper Terminal.

When I am single stepping and if the transmition baud rate for MCBX51 is 9600, the PC can recieve it through Hyperterminal at 19200.

But I am not able to get the data when I run the prgm.

I tried by making both baud rate 9600. Then its reading some junk charactors.

Expecting your sincere reply.
Summary of Prgm is below,

#include <AT89X52.H>
unsigned char Byte = 0x00;

void main(void)
{
	unsigned char i = 0;
	EA = 1;
	ES = 1;
	SCON |= 0x50;
	TMOD |= 0x20;
	TH1 = 0xF3;
	TR1 = 1;
	PCON |= 0x80;

        while( (i++ < 5) && (TI == 0))
	{
		SBUF = 0x54;
		delay();
	}

	while(1);
}


void serial_isr (void) interrupt 4
{
	if(RI)
	{
		Byte = SBUF;
		RI = 0;
	}
	if(TI)
	  TI = 0;
}

0