家庭防盗报警系统c语言程序.docxVIP

  • 39
  • 0
  • 约3.31千字
  • 约 5页
  • 2020-04-19 发布于浙江
  • 举报
/* ======================================================== * 这是防盗系统C51主程序, 文件名是 bishe.c * =========================================================*/ #include reg52.h #include absacc.h #includestdio.h #define uchar unsigned char //简化定义 #define uint unsigned int #define lint unsigned long int sbit ykkai=P1^0; sbit ykguan=P1^1; sbit ledlight=P1^2; void timedelay(uint timess); void delay1(uint x) ; uchar idata w[89],u[89]; uchar kc1,kc2,n,r; void timedelay(uint timess) /* 延时程序1 */ { uint tj; for (tj=timess;tj0;tj--){;} } void delay1(uint x) /* 延时程序2 */ { uchar tw; while (x-

文档评论(0)

1亿VIP精品文档

相关文档