百度网盘下载地址(1134):点击下载
#include "AT89X51.h"
sbit RS = 0xA0; //LCD控制引脚
sbit RW = 0xA1; //LCD控制引脚
sbit E = 0xA2; //LCD控制引脚
sbit beep = P3 ^ 7; /* 蜂鸣器发声 */
sbit led = P2^3;
sbit alarm = P2^4;
sbit op = P3^1;
sbit rain = P3 ^4;
//LCD显示字符串
char SpeedChar[] = "Flag Control:46S";
char StateChar[] = "RUN Time: ";
char number[] = "0123456789";
char str[] = " s ";
unsigned char tl0, th0; /* 定时器赋值 */
bit startFlag = 0, fanFlag = 0, enable = 0;
char count; /* 中断次数定义 */
unsigned char sec; /* 秒数 */
unsigned char shi; /* 秒数 */
unsigned int code FreqTab[] = { /* 简谱对应的简谱码 */
65535,
64260,64400, 64524, 64579, 64685, 64778, 64860,
64898,64968, 65030, 65057, 65110, 65157, 65198,
65217,65252, 65283, 65297, 65323, 65346, 65367,
};