【资源下载】百度网盘下载地址如下:
https://docs.qq.com/doc/DTlRSd01BZXNpRUxl
晶振: 22.1184M 时间: 外部器件: 16*64点阵,ds1302 接线: 见DS1302.h,DS18B20.h和本主文件 ***********************************************************/ #include <REGX52.H> #include "DS1302.h" #include "DS18B20.h" #include "nongli.h" #include "zimo.h" #define H_PORT P0 //ABCD P1 sbit RData = P2^0; //RData=P2^0,GData=P2^1 sbit GData = P2^1; sbit L_CLK = P2^2; sbit L_STB = P2^3; sbit R_OE = P2^4; //R EN=P2^4,G EN=P2^5 sbit G_OE = P2^5; //sbit Data=P2^1; //RData=P2^0,GData=P2^1 //sbit OE=P2^6; //R EN=P2^5,G EN=P2^6 sbit key_add=P3^1; sbit key_dec=P3^2; sbit key_adj=P3^0; sbit key_esc=P3^3;