目 录
摘 要:本设计借助压力传感器将压力信号转换成电信号,经过信号放大,使用高精度 A/D 转换器
件,将模拟信号转换成数字信号,再经单片机运算处理转换成 LCD 液晶可以识别的信息,最后显
示输出。初始化后可以重设阈值,系统能够实现手动存储八个以的数据,并可以查询历史记录,对
存储的数据进展统计分析,并且在实时压力检测的过程中,预警电路一直监视系统的运行。...........I
Abstract : Using pressure sensor converts the pressure signal into electrical signal, after amplification,
using high precision A/D conversion device that converts analog signals into digital signals in this design,
then through single chip microputer processing into the information that LCD can identify, at last
displaying and outputting information. After initialization the system can reset the threshold, achieve
storing within eight data manually, and can query the history records, the statisticanalysis the stored data
and in the process of real-time pressure detection, early warning circuit has been monitoring the operation
of the system......................................................................................................................................................II
目 录.................................................................................................................................................................III
1 引言.................................................................................................................................................................1
1.1 研究背景及意义..................................................................................................................................1
1.2 压力检测系统的研究现状.................................................................................................................1
1.3 课题任务..............................................................................................................................................2
2 系统分析与总体方案设计............................................................................................................................3
2.1 压力检测系统的整体设计.................................................................................................................3
2.2 压力检测系统的设计方案.................................................................................................................3
2.2.1 实时压力测量显示方案..........................................................................................................4
2.2.2 实时压力监控预警方案..........................................................................................................4
3 系统硬件电路设计.........................................................................................................................................5
3.1 单片机系统..........................................................................................................................................5
3.1.1 单片机选型..............................................................................................................................5
3.1.2 单片机晶振电路和复位电路..................................................................................................7
3.2 数据采集模块......................................................................................................................................9
3.2.1 压力传感器..............................................................................................................................9
3.2.2 信号放大电路.........................................................................................................................11
3.2.3 A/D 模数转换.........................................................................................................................11
3.3 人机交互模块....................................................................................................................................15
3.3.1 液晶显示单元........................................................................................................................15
3.3.2 矩阵键盘单元........................................................................................................................17
3.4 声光报警模块....................................................................................................................................18
3.5 电源供电模块....................................................................................................................................18
4 软件程序设计...............................................................................................................................................20
4.1 软件开发环境....................................................................................................................................20
4.2 I/O 端口分配.....................................................................................................................................21
4.3 软件主程序构架...............................................................................................................................22
4.4 主要功能子程序的设计...................................................................................................................23
4.4.1 A/D 子程序设计.....................................................................................................................24
4.4.2 中断子程序设计....................................................................................................................25
4.4.3 查询历史数据子程序设计....................................................................................................25
4.4.4 数据统计分析子程序设计....................................................................................................26
III / 68