摘要
在日常生活中和自动控制系统中,时间与实时数据采集都需要时钟。DS1302是一款优秀的实时时钟芯片。介绍了DS1302的主要工作原理和编程思路,给出了AVR单片机Atmega16与DS1302的硬件接口电路和软件程序设计。系统在Proteus平台上进行了软、硬件交互仿真,实现了数码管时钟设计。
Clock is used to enregister the time and the real- time data collection in the life and the system of the automatic control, The DS1302 is an excellent chip of the real- time clock. The main working principle of DS1302 and programming sought are introduced. The interface design of the software and hardware of the AVR microcomputer Atmegal6 and DS1302 are also given. Finally, the system hardware and software interactive simulation is completed on the platform of Proteus and the design of LED digital clock is realized.
出处
《北京印刷学院学报》
2012年第2期60-63,共4页
Journal of Beijing Institute of Graphic Communication
基金
北京市属高等学校人才强教计划资助项目(PHR201107145)