文档介绍:摘要
目前,电子计价秤的使用非常普及,逐渐会取代传统的杆秤。由压力传感器制作的电子秤已广泛地应用到各行各业, 特别是微处理机的出现,工业生产过程自动化程度的不断提高,压力传感器已成为过程控制中的一种必需的装置。
本文介绍了一种以MSP430单片机微处理器最小系统,并配以几个主要的集成电路器件设计成的智能电子秤。本系统是利用压力传感器采集当前压力,根据输入单价,准确计算出物品的金额,同时把重量、金额显示到LED数码管上。
关键词:压力传感器放大器单片机
Abstract
Nowadays,electronic scale is very popular and it will replace the traditional steelyard gradually. The electronics steelyard made by the pressure transducer has been applied to all professions, especially the emergence of the microprocessor. And with the increasing of the automation of industry production, the pressure transducer es a kind of essential device in the process control.
This paper introduces a MSP430 smallest single-chip microprocessor system, and with several major integrated circuit devices designed as a smart electronic scales. The system is to use pressure sensors collect the current pressure, according to input price, and accurately calculate the amount of goods, At the same time, the weight of the amount of shows on the LED digital tube.
Keywords: Pressure Transducer amplifier Single chip puter
目录
第一章绪论 1
电子秤设计背景 1
称重技术和衡器的发展 1
电子秤的发展现状 1
电子秤的发展趋势 2
现有电子秤的不足 4
第二章芯片介绍 5
单片机的发展 5
MSP430F149芯片 6
MSP430F149的引脚 6
MSP430F149的模数转换器ADC12 9
压力传感器 10
压力传感器的选择 10
11
LED数码管 12
数码管的分类 12
数码管的驱动方式 12
键盘 13
相关软件 13
Protel 99 SE 13
C语言 15
小结 16
第三章系统硬件设计 17
电子秤系统的构成及工作原理 17
电子秤系统压力传感器电路 17
电子秤系统的键盘电路 18
电子秤系统的显示电路 19
电子秤系统的电源电路 20
小结 20
第四章电子秤系统的软件设计 21
电子秤系统的程序总流程图 21
初始化程序流程图 21
压力传感器程序流程图 22
预处理程序流程图 22
称重计价程序流程图 23
键盘程序流程图 24
键盘分析程序 25
数码管显示流程图 27
小结 27
结论 28
致谢 29
参考文献 30
附录一 31
附录二 33
第一章绪论
电子秤设计背景
目前,台式电子秤在商业贸易中的使用已相当普遍,但存在较大的局限性:体积大、成本高、需要工频交流电源供应、携带不便、应用场所受到制约。现有的便携秤为杆秤或以弹簧、拉伸变形来实现计量的弹簧秤,居民用户使用的基本是杆秤。弹簧盘秤制造工艺要求较高,弹簧的疲劳问题无法彻底解决,一旦超过弹簧弹性限度,弹簧秤就会产生很大误差,以至损坏,影响到称重的准确性和可靠性,只是一种暂时的代用品,也被列入逐渐取消的行列。多年来,人们一直期待测量