阐明:晶振11.0592MHZ,由定时器1(T1)发生9600的波特率,串口中止工作方式1
#include
#define uchar unsigned char
#define uint unsigned int
uchar ge;
sbit bin=P3^7;
uchar flag;
void init_com()
{
TH1=0xfd;
}
void main()
{
}
说明:晶振110592MHZ,由定时器1(T1)产生9600的波特率,串口中断工作方式1includemathh>defineucharunsignedchardefineu
阐明:晶振11.0592MHZ,由定时器1(T1)发生9600的波特率,串口中止工作方式1
#include
#define uchar unsigned char
#define uint unsigned int
uchar ge;
sbit bin=P3^7;
uchar flag;
void init_com()
{
TH1=0xfd;
}
void main()
{
}