更新时间:11-25 (好久不见)提供原创文章
摘要:电子时钟是一种利用数字电路显示时、分、秒的计时装置,与传统的机械钟相比,它具有显示直观、无机械传动装置等优点。已成为人们日常生活中必不可少的必需品。
生活节奏的加快,要求电子时钟具有更多的功能,这也是现在电子时钟设计的重点。单片机以其强大的功能,低廉的价格成为许多多功能电子产品的首选。电子时钟设计包括硬件电路设计、系统软件设计和仿真调试三部分。本系统由STC89C51单片机、七段LED数码管、蜂鸣器、按键、晶振等组成时钟电路,通过编写程序赋予系统时钟、闹钟、计时功能。
本设计借助Proteus软件对软硬件系统进行了仿真运行、联合调试。仿真运行情况表明:系统硬件结构合理,软件程序设计正确,能实现调时校时、闹钟、定时控制等功能,较好地达到毕业设计要求。单片机多功能电子时钟,充分挖掘了单片机的潜在资源,使外围电路简单,成本低廉。
关键词:电子时钟 STC89C51单片机 Proteus软件
ABSTRACT:Electronic clock is a timing device which uses digital circuit display hours, minutes, seconds. Compared with the traditional mechanical clock, it has a visual display, no mechanical transmission device, etc. It has become an essential necessity in people's daily lives.
With the accelerated pace of life,it requires electronic clock has more features. This is the focus of an electronic clock design now.With its merits of powerful features and low price,MCU has become the first choice of many multifunctional electronic products.Electronic clock design includes hardware circuit design, system software design and simulation debugging.This article uses MCU, LED, buzzer, buttons, crystal integrate clock circuits and gives the system clock, alarm clock, timer function by programming.
This article uses Proteus software simulated operation, joint debug the Hardware and software system .Simulation operation conditions show that: Hardware system structure is reasonable,Software program design is correct,this electronic Can revise the alarm clock, timer control, etc Meet the requirements of graduation design. Single chip microcomputer multifunction electronic clock,Fully tap the potential resource of MCU peripheral circuit is simple and low cost.
Keywords: Electric O’clock;STC89C51 MCU ;Proteus Software
定时控制器在日常生活及控制系统中广泛应用,如应用于多种场合的电子时钟、空调定时控制器、微波炉定时控制器等。随着电子技术的发展,特别是大规模集成电路出现,给人类生活带来了根本性的改变。尤其是单片机技术的应用产品已经走进了千家万户。单片机又称单片微控制器,它不是完成单一个逻辑的芯片,而是将一个计算机系统集成到一个芯片上。如同一个微型计算机。单片机通过不同的软件程序、不同的硬件结构组成能实现不同功能的各种专用计算机。这些计算机的最小系统只用了一片集成电路,即可进行简单的控制和运算。现在单片机的应用已十分广泛,如实通讯设备、时工控、家用电器、导航系统等。