摘要
本文介绍了一种由ATmega8单片机和DS1302万年历时钟芯片构成的新型打铃器。对打铃器的硬件构成、工作原理和软件的编程进行了详细地阐述。系统以DS1302为基准时钟,该器件内含SPI总线接口,可以方便的与ATmega8进行连接。ATmega8片内有512字节的EEPROM存储器,可以存储多组打铃数据。4位LED数码显示,可显示时、分及切换显示的日历信息。打铃器的设置可以用机身按键操作,也可以通过串行通讯口由PC实现。此打铃器可方便高效地工作在各种需要定时控制的场所。
A new kind of ringing device composed of ATmega8 SCM and DS 1302 calendar clock chip is introduced. The hardware structure, working principle, and software programming of the ringing device are described in detail. The device uses DS1302 as the reference clock that includes SPI bus interface, and can easily connect to ATmega8. ATmega 8 contains an EEPROM memory of 512 bytes which can store multiple groups of ringing data. The device can switch the display of hours, minutes and calendar with 4 digital LED display. The setting of the device can be operated by the body keys, or by PC via serial communication port. The ringing device can be used conveniently and efficiently in most places where timing control is needed.
出处
《电子技术(上海)》
2011年第2期26-27,共2页
Electronic Technology