摘要
随着互联网技术的发展,传统的机械时钟逐渐被电子时钟替代。电子时钟除了有机械时钟显示时、分、秒的功能外,还可以附加闹钟、温湿度显示等功能,具有更加广泛的应用场景。电子时钟已经普遍存在于人们生活的各个角落。文章设计实现了一个基于单片机的电子时钟。该时钟使用单片机控制实现基本数字电路,扩展了4×4键盘和4位LED数码显示器,可用于显示和按键控制。经过测试,该电子时钟能够显示时和分,可通过按键实现闹钟、整点报时、分校时等功能。
With the development of Internet technology,the traditional mechanical clock is gradually replaced by the electronic clock.In addition to the function of displaying hours,minutes and seconds by mechanical clock,the electronic clock can also add alarm clock,temperature and humidity display and other functions,which has a broader application scenario.Electronic clocks have been widely used in every corner of people’s lives.This paper designs and implements an electronic clock based on single-chip microcomputer.The clock is controlled by a single chip computer to realize the basic digital circuit,which extends 4×4 keyboard and 4-digit LED digital display can be used for display and key control.After testing,the electronic clock can display the hours and minutes,and can realize the functions of alarm clock,hour reporting,branch time and so on by pressing keys.
作者
金士豪
Jin Shihao(College of Intelligent Manufacturing,Hunan University of Science and Engineering,Yongzhou 425199,China)
出处
《无线互联科技》
2023年第1期22-24,共3页
Wireless Internet Technology
关键词
单片机
电子时钟
LED
闹钟
single chip computer
electronic clock
LED
alarm clock