学士学位毕业论文(设计)
题目:基于单片机的12864时钟显示
摘要
电子时钟是一种非常广泛日常计时工具,给人们的带来了很大的方便,在社会上越来越流行。它可以对年、月、日、星期、时、分、秒进行计时,采用直观的数字显示,可以同时显示年月日时分秒等信息,还有时间校准等功能。该电子时钟主要采用STC89C52单片机作为主控核心,用DS1302时钟芯片作为时钟、液晶12864显示屏显示。STC89C52单片机是由深圳宏晶科技公司推出的,功耗小,电压可选用4~6V电压供电;DS1302时钟芯片是美国DALLAS公司推出的具有细电流充电功能的低功耗实时时钟芯片,它可以对年、月、日、星期、时、分、秒进行计时,还具有闰年补偿等多种功能,而且DS1302的使用寿命长,误差小;数字显示是采用的12864液晶显示屏来显示,可以同时显示年、月、日、星期、时、分、秒等信息。此外,该电子时钟还具有时间校准等功能。
关键词:STC89C51单片机,DS1302时钟芯片,液晶12864
Abstract
Electronic clock is a very extensive daily timing tool, to the people has brought great convenience, more and more popular in munity. It can be the year, month, date, day, hour, minute, second for a time, using intuitive digital display, can display information such as year, month, day, hour, and time alignment functions. The electronic clock is used mainly as a master STC89C52 microcontroller core, with theDS1302 clock chip as a clock, LCD display12864. STC89C52 SCM is a Shenzhen Hong Crystal Technology has introduced, power consumption, voltage can be selected 4 ~ 6V voltage power supply; DS1302 clock chip is American pany launched with a fine current charging low-power real-time clock chip, it can year, month, date, day, hour, minute, second for a time, also has a leap pensation and other functions, DS1302 and long life, small error; 12864 LCD digital display is
used to display that can display year, month, date, day, hour, minute, second and so on. In addition, the electronic clock also has a time calibration function.
Key Words: STC89C51 microcontroller, DS1302 clock chip, LCD 12864
目录
1绪论 1
1
目前的研究现状 2
2
2 总体方案设计 3
方案的选择 3
3
3
4
3系统硬件设计 4
3. 1主芯片模块 4
中断系统 6
6
8
8
9
DS1302时钟芯片电路 9
DS1302引脚图 9
DS1302寄存器 10
DS1302外围电路 11
LCD12864显示模块 11
LCD12864引脚功能 11
LCD12864指令说明 12
LCD12864电路接线 14
红外遥控模块 14
4 系统软件设计 15
主程序设计 15
LCD12864驱动程序 1
毕业设计:基于单片机的时钟显示 来自淘豆网www.taodocs.com转载请标明出处.