文档介绍:多功能电子万年历
Multi-Function Electronic Calendar
摘要
日月如梭,斗转星移!从远古的铜壶滴漏、日咎计时,到16世纪因伽利略等时性定律而诞生的摆钟,到现今100万年才有1秒误差原子钟。科学不断的在进步,技术时刻在更新!多功能电子万年历更是适应现代化个性生活的一个新需求。
该系统以STC89C58单片机作为系统控制处理器,采用美国DALLAS公司推出的具有涓细电流充电能的低功耗实时时钟电路DS1302。它可以对年、月、日、周日、时、分、秒进行计时。同时通过具有录放音质好,时间长的ISD4004语音芯片和集成功率放大器LM386进行语音提示,,具有闹钟,日程管理的功能。
关键词:STC89C58, 12864LCD, ISD4004, AT24C04, DS1302
Abstract
With the rapid development of science and technology and the passing by of time, from the view of the sun, the electronic clock pendulum clock to now, human being have been constantly studied, innovated and created new records.
With a STC89C58 single-chip as the system control processors, the system uses the low-power real-time clock circuit DS1302 of small trickle charge current, which is produced by DALLAS panie. It can time in year, month, day, weekday, hour, minute and second, also has multiple functions, such as a leap pensation, and long life of the DS1302, the error small. At the same time, through the voice chip ISD4004 voice prompts and 12864LCD display and use of data memory to achieve AT24C04-down data storage function, with alarm clock, schedule management function.
Key words:STC89C58, 12864LCD, ISD4004, AT24C04, DS1302
目录
摘要 2
关键词 2
1 系统方案 5
比较与选择 5
界面显示和语音提示: 5
时间的实现 5
处理器的选择 5
方案描述 6
2 理论分析与计算 7
日程设定与日期计算 7
日程设定 7
日期计算 7
3 电路与程序设计 10
硬件设计 10
硬件系统分析 10
硬件描述 11
软件系统设计 14
软件流程图 14
各模块功能主程序 15
4 测试方案与测试结果 18
各模块调试方案 18
STC89C58主芯片调试 18
DS1302 时钟芯片调试 19
ISD4004语音芯片调试 21
AT24C04数据存储器模块 22
12864LCD显示模块 24
结论 25
系统功能 25
操作说明 25
参赛总结 26
附录 27
附录一系统原理图 27
附录二实物图 29
附录三原程序代码 30
1 系统方案
比较与选择
界面显示和语音提示:
方案一:
用LCD1602显示,蜂鸣器定时报警语音提示。用LCD1602显示,黄绿色背光,价格便宜,操作简单,但是无法显示汉字,无法完成题目阴历显示要求。用蜂鸣器实现定时报警语音提示功能,成本较低,且控制容易,但其声音单调,所播放的音乐效果不佳。
方案二:
用12864液晶显示,ISD4004语音芯片实现语音提示。12864液晶显示,蓝色背光,显示分辨率为128×64,具有灵活的接口方式和简