//用于接收方
#include
#define
#define
uchar a;//用于保存發(fā)來的數(shù)據(jù)
uchar b[16]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,
0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e}; //數(shù)碼管顯示0-9;
void init(void)
{
{
if(RI)
{
}
//用于發(fā)送方
#include
#define
#define
unsigned char a;//用于保存發(fā)來的數(shù)據(jù)
unsigned char b[16]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,
0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e}; //數(shù)碼管顯示0-9;
void init(void)
{
void zd() interrupt 4//當(dāng)進(jìn)入中斷,要么RI=1,要么TI=1
{