以作息时间控制为主的多功能任务设计.pdfVIP

  • 0
  • 0
  • 约1.53万字
  • 约 12页
  • 2022-02-20 发布于上海
  • 举报

以作息时间控制为主的多功能任务设计.pdf

#includereg52.h // 52 单片机头文件,声明各寄存器等 #include intrins.h #define uint unsigned int // 宏定义符号,类似于替换 #define uchar unsigned char sbit key1=P3^4; // 宏定义位 ,也即 IO 口定义 sbit key2=P3^5; sbit key3=P3^6; sbit key4=P3^7; sbit fm=P2^3; sbit dula=P2^6; sbit wela=P2^7; sbit bear=P2^3; uint i; // 定义各符号 uchar aa,bb,numdu,numwe; uchar sec1,min1,hour1,year1,mon1,day1,temp1,temp2,sec2,min2,hour2; // 主功能符号定义

文档评论(0)

1亿VIP精品文档

相关文档