摘要
本文基于I2C总线,设计了电子万年历计时系统,给出了系统的硬件组成电路和软件设计方法。该系统以P89V51RB2作为系统主控芯片,飞利浦PCF8563实时时钟芯片构成时钟电路模块,用ZLG7290专用显示、按键驱动芯片构成显示电路模块和按键电路模块。与同类产品最大的不同的是使用了ZLG7290芯片,并利用I2C总线通信,使硬件电路大大简化。设计出的电子万年历实现时间、日期的8位LED数码管显示,时间、日期信息的键盘调节以及闹铃的功能,可以满足各种公共场合的计时需求。
Electronic perpetual calendar timing system is designed based on I2C bus. The hardware circuit and software flow are given in this paper. This system uses P89V51RB2 microcontroller as the core for control. It is mainly made up of the unit of clock which is constituted by PCF8563 and unit for keyboard and displaying which uses appropriative chip ZLG7290. Using ZLG7290 and I2C bus to communicate are the biggest differences between this system and other similar products. Functions of the designed calendar are the followings: Calendar clock and date eight of the digital LED display; time and date information to the regulation and the alarm clock. The system can satisfy different demands of timing in public places.
出处
《电子测试》
2011年第3期87-90,94,共5页
Electronic Test