文档详情

万年历ATS课程设计分析报告.doc

发布:2016-04-11约2.7万字共28页下载文档
文本预览下载声明
单片机AT89S52的万年历 摘要:电子万年历是一种应用非常广泛的日常计时工具,本设计利用美国DALLAS公司推出的具有涓细电流充电的低功耗实时时钟电路DS1320,研制了一种多功能电子万年历,主要功能包括:电子万年历要求能显示的阳历/阴历、年、月、日、星期、小时、分、秒,除此之外还有显示润年,记忆时间。DS1302可以对年、月、日、周日、时、分、秒进行计时,还具有润年补偿的功能,而且DS1320的使用寿命长,误差小。对于数字电子万年历采用它,具有较准的计时。 关键词:AT89S52 DS1302 74LS164 万年历 The production of the calendar with the single-chip AT89S52 Abstract:Electronic calendar applicationhe design using the United States with DALLAS small trickle charge current of the low-power real-time clock circuit DS1320, developed a multi-function electronic calendar.The main features include E-calendar requirements which are shown in the solar calendar / lunar calendar, year, month, day, weeks, hours, minutes and seconds, in addition to indicate Leap year, the memory of the time. DS1302 can remember year, month, day, weekdays, hours, minutes, seconds for time,which also has the function of a leap year compensation, and long life of the DS1320, the error small. The use of digital electronic calendar for it has a quasi-time. Keywords: AT89S52 DS1302 74LS164   calendar……………………………………………………………………….……3 1.1 课题背景………………………………………………………………………3 1.2 电子万年历的目的和意义……………………………………………………3 第二章 系统硬件电路设计.............................................................................................4 2.1 硬件设计框图……………………………………………………………….4 2.2 AT89S52原理…………………………………………………………….…..4 2.3 74LS164电路原理…………………………………………………………..5 2.4 DS1302电路原理……………………………………………………………5 2.5 电源原理…………………………………………………………………….7 2.6 数码管原理………………………………………………………………….8 第三章 系统软件实现………………………………………………………………...9 3.1显示及调整时间子程序流程………………………………………..………..9 3.2调整时间子程序流程…………………………………………………..……..9 3.3显示闰年子程序流程………………………………………………..……….10 3.4显示星期的子程序流程………………………………..…………………….11 3.5阳历日期推算阴历日期流程图…………………………………………..….11 总结…………………………………………………………………………………… 12 致谢…………………………………………………………………………………….13 参考文献………………….………………………………………...………………….14 附录1.元件清单……………………………………………………………………….15 附录2.电路原理图…………………….……………………………………………….16 附录3.程序…………………….……………………………………………………….17 第一章 绪论 1.1课题背景 在生活中,我们经常
显示全部
相似文档