摘要:本论文是基于AT89C51单片机的多功能电子日历设计,其中包括控制器AT89C51模块,时钟芯片DS1302模块,温度传感器DS18B20模块,液晶显示屏12864模块,喇叭模块,喇叭响音乐作为整点报时,发光二极管模块,红绿黄三色二极管表示当前温度的高低。在液晶屏幕主界面上显示当前年月日、时分秒、星期、闰年或平年、温度等信息。副界面上显示作者信息。
该设计主要包括软件设计和硬件设计两个部分,软件设计用C语言来实现,主要包括控制器主程序,读写时钟芯片子程序,读温度子程序,写液晶子程序,键盘扫描子程序;硬件部分借助于德飞莱YS-51S开发板,开发板上有所需的各个独立模块。10494
关键词: 电子日历;多功能;AT89C51;时钟日历芯片;温度传感器
Multifunction Electronic Calendar Clock Design Based on MCU
Abstract:This article is the multifunction electronic calender design which based on the AT89C51 single chip micro-controller. Including AT89C51 controller module, clock chip DS1302 module, temperature sensor DS18B20 module, liquid crystal display 12864 module, Speaker module,which sings music on time alarm, Light emitting diode module, the red, green and yellow color diodes on behalf of the current temperature. In the main LCD screen displays the current year, month, date, hour, minute, second, week, leap year or not, temperature, etc. Vice screen displays the author’s information.
The design mainly includes two parts of hardware design and software design, software design using C language to achieve. Mainly includes the controller main program, read and write clock chip subprogram, read temperature subprogram, write LCD subprogram, keyboard scanning subprogram. Hardware part using YS-51s development board, the development board have the necessary separate modules.
Key Words: Electronic calender;Multifunction;AT89C51;Clock chip Temperature pickup