没有合适的资源?快使用搜索试试~ 我知道了~
首页基于单片机的数字电压表设计
资源详情
资源评论
资源推荐

I
毕业设计报告(论文)
基于单片机的数字电压表设计
所属学院 电子与计算机工程学院
专 业 自动化
学 号 31116433
姓 名 王 赛
指导教师 刘久付
起讫日期 2020.2 -- 2020.5
设计地点 东南大学成贤学院电工中心 502

I
基于单片机的数字电压表设计
摘 要
本文主要介绍了一种基于 STC89C52 单片机的一种数字型电压表的设计。有很大的市场
价值,广泛应用于各种的所需要测量的场合中,数字电压表的出现,与传统的测量仪器有些
不同,数字电压表有很多的优点,因为采用了数字显示技术,让人易于读懂,这样会减少不
必要的误差。此次设计的主控芯片用的是 STC89C52 单片机,采用 ADC0809 作为 A/D 转换
模块,还有 LCD1602 液晶显示模块等组成。软件上主要采用了 C 语言编程,利用 Altium
Designer 绘画原理图。本次设计的主要特点有成本低、功能强大、可扩展性强等,测量电压
值会在 LCD1602 液晶显示器显示,若电压超过 20V 量程则会触发报警,该设计可以广泛应
用于电压测量的各个领域。
关键词:STC89C52 单片机;ADC0809 转换器;LCD1602 液晶模块

II
Design of Digital Voltmeter Based on Microcontroller
Abstract
This article introduces a voltage measurement circuit based on STC89C52 single chip
microcomputer, which can be widely used in measurement circuits. The birth of digital voltmeter
broke the tradition of electronic measuring instruments, because its display is more intuitive, the
readings are more accurate, and easy to understand. The use of digital display technology also
greatly reduces the measurement error events caused by human factors. The main circuit of each
part of the software and hardware system is given. The hardware circuit is mainly composed of
STC89C52 microcontroller as the main control chip, ADC0809 as the analog-to-digital conversion
module, LCD1602 display drive module and peripheral circuits. The software mainly uses C
language programming, and uses Altium Designer to draw the schematic diagram. The main
features of this design are low cost, powerful functions, and strong scalability. The measured
voltage value will be displayed on the LCD1602 liquid crystal display. If the voltage exceeds the
20V range, an alarm will be triggered. This design can be widely used in various fields of voltage
measurement .
Key Words :STC89C52 Single Chip Microcomputer; ADC0809 Converter; LCD1602 Liquid
Crystal Module

III
目 录
摘 要
.........................................................................................................................................
I
Abstract
.....................................................................................................................................
II
第一章 绪 论
...........................................................................................................................
1
1.1 选题背景及意义
..........................................................................................................
1
1.2 研究现状
......................................................................................................................
1
第二章 总体方案设计
...............................................................................................................
3
2.1 设计的总体框图
..........................................................................................................
3
2.2 方案论证
......................................................................................................................
3
第三章 硬件电路设计
...............................................................................................................
5
3.1 单片机的概述
..............................................................................................................
5
3.1.1 单片机引脚说明
..............................................................................................
5
3.1.2 STC89C52 单片机最小系统
...........................................................................
6
3.2 A/D 转换器
..................................................................................................................
8
3.2.1 ADC0809 的内部逻辑结构
..............................................................................
8
3.2.2 ADC0809 部分引脚功能
..................................................................................
8
3.2.3 ADC0809 最小系统
........................................................................................
10
3.3 液晶显示模块设计
...................................................................................................
11
3.3.1 LCD1602 液晶显示
........................................................................................
11
3.3.2 LCD1602 液晶接口应用
................................................................................
11
3.4 电路类型
.....................................................................................................................
13
3.4.1 电源电路
..........................................................................................................
13
3.4.2 报警电路
..........................................................................................................
13
4.1 系统主程序设计
........................................................................................................
14
4.2 系统子程序设计
........................................................................................................
14
4.2.1 A/D 转换子程序流程图
.................................................................................
14
4.2.2 数据处理子程序流程图
.................................................................................
15
4.2.3 液晶显示子程序流程图
.................................................................................
16
第五章 系统软硬件实现
.........................................................................................................
17
5.1 软件设计
....................................................................................................................
17
5.2 硬件调试运行
............................................................................................................
17
5.3 测试数据与分析
........................................................................................................
18
第六章 结束语
.........................................................................................................................
20
致 谢
...................................................................................................................................
21
参考文献
.............................................................................................................................
22
剩余33页未读,继续阅读













安全验证
文档复制为VIP权益,开通VIP直接复制

评论2