1、 本科毕业论文(设计)本科毕业论文(设计) 论文(设计)题目:论文(设计)题目:在线电容测量仪设计在线电容测量仪设计 学学 院:院: 专专 业:业: 班班 级:级: 学学 号:号: 学生姓名:学生姓名: 指导教师:指导教师: 2013 年 4 月 6 日 目目 录录 摘 要 III Abstract IV 1 前 言 . 1 1.1 电容测量仪的发展历史 1 1.2 电容测量仪的研究现状 2 1.3 本次设计的任务与要求 3 2 硬件电路设计及其描述 . 4 2.1 设计方案 4 2.2 原理框图 5 2.3 单元电路设计分析 . 6 2.3.1 AT89C52 单片机功能描述 . 6 2.3
2、.2 STC89C52 的主要特性及管脚说明 . 7 2.3.3 AT89C52 单片机时钟电路 . 9 2.3.4 AT89C52 单片机复位电路 . 10 2.3.5 555 多谐振荡器电路 . 11 2.3.6 测量换挡电路 13 2.3.7 LCD1602 测量显示电路 . 14 2.3.8 系统电源电路 17 2.4 各部分电路连接成整体电路图. 18 3 软件设计与描述 . 20 3.1 软件设计任务 . 20 3.2 软件的基本思路与原理 20 3.3 软件设计流程图 . 22 4 PCB 与实物制作 . 23 4.1 电路图的绘制 . 23 4.2 PCB板的制作 . 23 4
3、.3 材料清单 23 4.4 元器件的检测与安装 24 4.5 元器件的焊接 . 25 4.6 系统调试与分析 . 25 设计总结 26 参 考 文 献 27 致 谢 28 附录 A 程序源代码 29 附录 B 设计原理图 36 附录 C 设计 PCB 图 . 37 在线电容测量仪设计 摘 要 本文介绍了在线电容测量仪设计与制作的过程。文章首先介绍了在线电容测量仪的 选题背景和发展现状,然后设计并分析系统硬件的各单元电路,包括单片机时钟电路、 单片机复位电路、555 测量电路、系统换挡电路、系统电源电路等;其次则是软件的设 计和调试过程。本系统用 ST98C52 单片机作为中央处理器,以 55
4、5 多谐振荡器作为频率 可变的方波发生器,利用测量频率的方式间接测量电容,经过单片机处理得到数据之后 交由 LCD1602 液晶显示。 本设计用 C 语言设计软件, Keil 和 Proteus 两款软件成功模拟 仿真后,用 Protel99se 软件设计为印刷电路板。经过实物的组装调试和焊接,本系统 预计可以实现 PF、NF、UF 三个档位的电容粗略测量,是一种操作简单的傻瓜式电容测 量仪。 关键词:电子电路、电容、单片机、555 集成定时器。 Online capacitance measuring instrument design Abstract This paper introdu
5、ces the process of design and production of online capacitance measuring instrument. This article first introduced the background and development status of online capacitance measuring instrument, then design and analysis the each unit circuit of the system hardware, including the microcontroller cl
6、ock circuit, reset circuit, 555 measuring circuit, system shift circuit, power supply circuit; second is the process of designing and debugging software. The system used ST98C52 SCM as the central processor, with 555 multivibrator as variable frequency square wave generator, using a method of measuring frequency to indirectly measuring the capacitance. Lastly displaying by LCD1602 after the SCM processing. This design uses C language to design software. After Keil