文档详情

基于單片机控制倒计时器.doc

发布:2017-03-22约1.54万字共32页下载文档
文本预览下载声明
自动化专业课程设计 目: 邵国梁 学 号: 专业班级: 自动化班 周志刚 2012年12月21日 倒 计 时 器 摘 要 4 关键词 4 Abstract 5 第一章 概述 6 第二章 单片机原理介绍 7 2.1 单片机发展概况 7 2.2 MCS-51单片机内部结构 7 三 软件介绍 11 3.1 PROTEL99SE 介绍 11 3.2单片机编译软件Keil介绍 11 4 硬件设计 12 图4-1单片机最小系统图 12 4.1 LED显示部分 12 4.2复位电路部分 16 4.3按键部分: 16 4.4蜂鸣器控制部分 17 5 软件设计 18 总结 20 参考文献 21 附录 22 附录1:原理图 22 附录3:源程序: 24 摘 要 本文介绍了一种利用单片机AT89C2051 设计的秒倒计时器, 具体介绍了硬件的电路设计、接口技术和软件的设计方法。该方案具有一定的实用性和使用上的方便性。倒计时器是由单片机为核心的器件组成的一个倒计时系统。系统显示器是由7位数字型数码管组成,分别显示时间值的分、秒和0.1秒,它能够通过小键盘阵列设定倒计时时间。当倒计时到,有蜂鸣器发出警报。   倒计时器是基于定时而设计的实现及时报警的装置。它由键盘扫描、动态LED显示电路、报警三大部分构成,以实现对计时时间的控制。同时装置还用一个由电平控制的报警装置,用以实现倒计时时间到时进行声音提示。 倒计时器的实时性强,可操作性好,能应对不同要求进行过相应的调整以适应不同环境。 关键词: 单片机; AT89S52; 秒倒计时 Abstract This paper introduces a design of second countdown timer by using micro - controller AT89C2501 as well as the methods of designing its hardware circuit , connector and software circuit. Countdown timer is composed of a single chip computer as the core device consisting of a countdown system. System monitor is composed of 7 digit word digital tube, respectively, show time value is divided, and 0.1 seconds, it can through the small keyboard array set the countdown time. When the countdown reaches, a buzzer alarm. Countdown timer is based on timing and designed to achieve timely alarming device. It consists of keyboard scan, dynamic LED display circuit, an alarm is composed of three parts, in order to achieve timing control. At the same time device with a level control alarm device, to achieve the countdown time when the voice prompt. Countdown timer real-time, good maneuverability, can respond to the different requirements for the corresponding adjustment in order to adapt to different environments. Key words :  micro - controller , AT89S52 ; second countdown timer 第一章 概述 在很多重要比赛中,要用到时间的长短来衡量比赛的结果,如蓝球比赛中,进攻方控球的时间不能超过24s ,即进攻方必须在24s 内必须投蓝出手,否则违例;知识比赛中必须在规定的时间内回答完所提出的问题等等。为了使参加比赛队员和裁判能够准确地掌握好时间,在比赛场地竖立起一个秒倒计时器,让比赛队员都能够清
显示全部
相似文档