extern bit Key_1,Key_2,Key_3;//Èý¸ö°´¼üµÄ״̬£¬È«¾Ö±äÁ¿ 1±íʾ°´Ï£¬Ã¿´ÎÓùýÖ®ºóÐèÒªÊÖ¶¯ÖÃÁã
extern bit Key_Long_1,Key_Long_2,Key_Long_3;//Èý¸ö°´¼ü£¬È«¾Ö±äÁ¿£¬1±íʾ³¤°´£¬Ã¿´ÎÓùýÖ®ºóÒªÇåÁã
extern unsigned int Read_User_ID;//NECÐÒéµÄÓû§Âë
extern unsigned char Read_User_Data;//NECÐÒéµÄÊý¾ÝÂë
}
//COM1发送一个字符串
void Send_Str1(unsigned char *s)
{
do
Send_Data1(*s++);
while(*s);
}
//延时函数 主函数中使用
void Delay1ms(unsigned int a) // 1ms @30.000MHz
{
unsigned char i, j;
unsigned int b=0;
for(b=0;b<a;b++)
{
i = 30;
j = 43;
do
{
while (--j);
} while (--i);
}
}