文件名称:单片机时钟
文件大小:60KB
文件格式:ZIP
更新时间:2019-01-01 11:03:18
单片机 时钟
非常适合于课程设计的单片机时钟程序 sbit rtc_clk =P3^5; sbit rtc_io =P3^6; sbit rtc_rst =P3^7; sbit Seg1 =P2^0; sbit Seg2 =P3^3; sbit Seg3 =P3^4; sbit Seg4 =P3^2; sbit key1 =P2^7; sbit key2 =P2^6; sbit key3 =P2^5; sbit beep =P2^1; #endif //#ifdef kfb //sbit rtc_clk =P3^6; //sbit rtc_io =P3^4; //sbit rtc_rst =P3^5; //sbit Seg1 =P1^0; //sbit Seg2 =P1^1; //sbit Seg3 =P1^2; //sbit Seg4 =P1^3; //sbit key1 =P1^5; //sbit key2 =P1^4; //sbit key3 =P1^6; //sbit beep =P2^1; //#endif typedef struct { unsigned char b0 :1; unsigned char b1 :1; unsigned char b2 :1; unsigned char b3 :1; unsigned char b4 :1; unsigned char b5 :1; unsigned char b6 :1; unsigned char b7 :1; }flag_T; typedef struct { unsigned char down_time :7; unsigned char down_flag :1; }key_information;
【文件预览】:
单片机时钟
----Project.uvgui.Administrator(69KB)
----Objects()
--------Project(24KB)
--------Project.plg(1KB)
--------main.obj(28KB)
--------Project.hex(6KB)
--------Project.build_log.htm(949B)
--------Project.lnp(95B)
----main.c(16KB)
----Project.uvproj(14KB)
----Project_uvproj.bak(14KB)
----Listings()
--------Project.m51(32KB)
--------main.lst(31KB)
----Project_uvopt.bak(5KB)
----Project.uvgui_Administrator.bak(68KB)
----Project.uvopt(5KB)