毕业论文

打赏
当前位置: 毕业论文 > 自动化 >

STC90C52RC2单片机的数字钟设计+程序

时间:2021-06-19 10:50来源:毕业论文
基于单片机STC90C52RC,设计了一种数字钟控制系统,解决了传统时钟时间读数不易分辨、不准确和计时精度低等问题。首先,结合数字钟的控制要求,提出了单片机控制系统总体设计方案

摘 要:随着时代的进步和发展,单片机技术已经普及到我们生活、工作、科研、各个领域,已经成为一种比较成熟的技术。本文基于单片机STC90C52RC,设计了一种数字钟控制系统,解决了传统时钟时间读数不易分辨、不准确和计时精度低等问题。首先,结合数字钟的控制要求,提出了单片机控制系统总体设计方案。然后,分别进行数字钟控制系统的硬件设计和软件设计。硬件部分包括单片机最小系统、数码管、按钮,三极管,直流稳压电源模块。软件部分,给出键盘扫描,计时1s,数码管扫描显示和键盘处理子程序流程图并利用汇编语言编程。最后,焊接制作数字钟的单片机控制系统电路板,并结合编程器调试程序。实现了显示小时,分钟和秒以及调节时间的功能。实验结果表明,该系统具有抗干扰能力强、性能可靠、结构简单等优点。68623

毕业论文关键词:数字钟,STC90C52RC,汇编,实验

Abstract: As the development of The Times, microcontroller technology has spread to our life、work、 scientific research and other area. It has become much more mature technology. This article is based on single chip microcomputer STC90C52RC, digital alarm control system, and it has solved the problems that the time reading of traditional clock is hard to distinguish, inaccurate and low measurement precision problem. First of all, combined with the control requirements of digital alarm, single-chip microcomputer control system design scheme is proposed. Then design hardware and software part of the control system of digital alarm. The hardware part includes single chip microcomputer minimum system, digital tube, switch, audion, power module. In software part, program flow charts of keyboard scanning, counting with 1s,digital tube scan showing and function of keyboard is given and use assemble language programming. At the same time, Proteus simulation software is used to verify the correctness of the proposed circuit principle. Finally, circuit board welding production digital alarm single-chip microcomputer control system, and connecting with the programmer to debug program. This digital alarm can show hour, minute and second. The experimental shows that the system has strong anti-interference, reliable performance, simple structure etc.

Keywords: Digital alarm, STC90C52RC,Experiment,Assemble

目   录

1 绪论 3

1.1 选题的背景 3

1.2 单片机的发展和现状 3

1.3 本文研究内容与安排 4

2 基于单片机的数字钟总体方案设计 5

2.1 数字钟的功能要求 5

2.2 数字钟的结构框图 5

3 数字钟的硬件设计 6

3.1 数字钟总的硬件设计原理图 6

3.2 单片机STC90C52RC 8

3.3 数码管显示 9

3.4 按钮 10

3.5 直流稳压电源 11

4 数字钟的软件设计 13

4.1 主程序流程图 13

4.2 键盘扫描流程图 14

4.3 数码管扫描流程图 15

4.4 计时1s程序流程图 17

4.5 键盘处理流程图 20

5 实验 STC90C52RC2单片机的数字钟设计+程序:http://www.youerw.com/zidonghua/lunwen_77225.html

------分隔线----------------------------
推荐内容