请各位帮忙看下 波特率9600,发送出去接收不到数据
void ConfigUART(unsigned int Baud)
{
ES = 1;
SCON = 0x50;
T2H = (unsigned char)((65536-(11059200/4/Baud))>>8);
T2L = (unsigned char)(65536 - (11059200/4/Baud));
AUXR |= 0x11;
}
void IntUART() interrupt 4
{
if (RI)
{
RI = 0;
RxdByte = SBUF;
SBUF = RxdByte;
}
if (TI)
{
TI = 0;
}
} |