1、- I - 摘摘 要要 单片机应用技术飞速发展,纵观我们现在生活的各个领域,从导弹的导航装置,到飞 机上各种仪表的控制,从计算机的网络通讯与数据传输,到工业自动化过程的实时控制和 数据处理,以及我们生活中广泛使用的各种智能IC卡等,这些都离不开单片机。单片机是 集CPU ,RAM ,ROM ,定时,计数和多种接口于一体的微控制器。它体积小,成本低,功能 强,广泛应用于智能产业和工业自动化上。而51系列单片机是各单片机中最为典型和最有 代表性的一种。这次毕业设计通过对它的学习,应用,从而达到学习、设计、开发软、硬 的能力。 本文以单片机为核心,采用串行时钟芯片DS1302。过去多用并行接口的时钟
2、芯片,如 MC146818、DS12887 等。它们已能完全满足单片机系统对实时时钟的要求,但是这些芯 片与单片机接口复杂、占用地址, 数据总线接线多、芯片体积大占用空间多。显示电路采 用LED动态扫描方式,动态扫描方式节省外部接口资源。 本文通过对一个基于单片机的能实现万年历功能电子时钟的设计,从而达到学习、了 解单片机相关指令在各方面的应用。系统由主控制器 AT89C52、时钟电路 DS1302、显示 电路、按键电路、和复位电路等部分构成,能实现时钟日历显示的功能,能进行年、月、 日、时、分及星期的显示。 关键词:AT89C52 芯片 DS1302 芯片 C 语言 Keil软件 LED 动
3、态显示; - II - Abstract SCM rapid development of applied technology, we now live Looking at the various fields, from the missiles navigation devices, to the various instruments on the aircraft control, computer network communications and data transmission, industrial automation to the process of real-t
4、ime control and data Processing, and we live in the extensive use of the smart IC cards, these are inseparable from the SCM. SCM is set CPU, RAM, ROM, timing, counting on one interface and a variety of microcontrollers. Its small size, low cost, feature strong, smart widely used in industry and industrial automation. And 51 of the SCM SCM is the most typical and most representative one. The graduation project through its study, and thereby to study, design, develop software and hardware capab