void UartInit(void) //19200bps@11.0592MHz
{
SCON = 0x50;
TMOD = 0x20;
PCON = 0x80; //波特率加倍
TL1 = 0xFD; //???????
TH1 = 0xFD; //???????
ET1 = 0; //???????
TR1 = 1; //???1????
ES=1;
EA=1;
}
void UartInit(void) //19200bps@11.0592MHz
{
SCON = 0x50;
TMOD = 0x20;
PCON = 0x80; //波特率加倍
TL1 = 0xFD; //???????
TH1 = 0xFD; //???????
ET1 = 0; //???????
TR1 = 1; //???1????
ES=1;
EA=1;
}