首页 | 本学科首页   官方微博 | 高级检索  
     

基于单片机AT89C52的多功能电子钟设计
引用本文:刘昕,杨峰,谢晋.基于单片机AT89C52的多功能电子钟设计[J].电子工程师,2010,36(4):61-64.
作者姓名:刘昕  杨峰  谢晋
作者单位:吉首大学物理科学与信息工程学院,湖南省吉首市,416000
基金项目:湖南省教育厅科研项目 
摘    要:文中设计了一个显时、调时、定时以及具有整点报时功能的电子钟。电子钟使用12MHZ晶振与AT89C52单片机相连接,通过软件编程的方法实现了以24小时为一个周期,同时显示小时、分钟和秒的要求,而且有三组定时计数功能。在定时时间到时有蜂呜报警。该电子钟设有五个按键按钮S1,S2,S3,S4和S5键,使之具备了校时、定时和复位功能。同时,电子钟还设计了掉电保护电路,当电源断电时能保存时钟当前定时设计的全部数据。为了美化时钟界面,在单片机外围设置了跑马电路。通过AT89C52电子时钟的设计,对51单片机系列有了更加深刻的认识,对其各个引脚功能掌握的更为透彻。也再次认识到单片机的应用具有使用范围广的特点,对各个行业的技术改造和产品智能化的更新换代起着重要的推动作用。

关 键 词:电子钟  AT89C52  晶振  掉电保护电路  跑马电路

Design of a Multi-function Clock Based on SCM AT89C52
LIU Xin,YANG Feng,XIE jin.Design of a Multi-function Clock Based on SCM AT89C52[J].Electronic Engineer,2010,36(4):61-64.
Authors:LIU Xin  YANG Feng  XIE jin
Affiliation:(College of Physics Science and Information Engineering, Jishou University, Jishou 416000, China)
Abstract:In this paper, sounding the hour is designed an electronic clock has the functions of showing time, time setting, timing and The clock uses a 12MHz crystal with AT89C52 microcontroller connected and through software programming method it realized the cycle of 24 hours could also show hours, minutes and seconds, and has three timing counting functions. When timed hour comes, the buzzer gives alarm. The clock has five buttons S1, S2, S3, S4 and S5, so as to have the time setting, the timing and reset functions. Besides, the clock has also a power-down protection circuit. When the power is off, the clock will save all the current data. In addition, to beautify the clock interface in the microcontroller peripheral a Happy Valley cir- cuit is set. Through the design of AT89C52 electronic clock, we obtained a more profound understanding of microcontroller 51 the series, including each pin's function. Once again we recognized that SCM has a wide range of applications. So it can play an important role in the technological transformation of various industries and making intelligent products, thus promoting the appearance of new generations.
Keywords:AT89C52
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号