文档介绍:摘要
本系统采用AT89S52单片机设计的多功能电子秤的工作原理及硬软件设计方法,硬件方面采用称重传感器将作用于其上的重力转变为线性的电压的模拟信号输出,再经过放大器将信号放大。通过A/D转换电路将放大的电压值变换成相应的数字信号,由AT89S52单片机CPU进行运算处理,而周边所需要的功能及各种接口电路也和CPU连接应用,最后将重物的重量在显示器上显示出来。这种电子秤无论是计量精度,还是稳定性都是令人满意的,它具有较好的标定校准方法,性能稳定,操作简单,价格低廉,满足各行各业对现代电子衡器的需求。
关键词电子秤称重传感器 A/D转换器 AT89S52单片机
Abstract
This article introduces the hardware and software design of the AT89S52 applied in the Multi-function electronics steelyard. In according to the weighing transducer .At first, the measured sign is changed into electronic sign, and it sent to linear amplifier to magnify. After passing through A/D converter, it is sent to puter and is processed in real-time. Show out the weight of the heavy thing on the display finally. The accuracy and the stability with the electronics steelyard are both satisfactory, there are many advantage ,such as the stable function ,the simple operation, the cheap price . The electronics steelyard is satisfied the most kinds of the industry’s need .
Keywords Electronic steelyard weighing transducer A/Dtransducer AT89S51 single-chip puter
目录
1 绪论 - 4 -
- 4 -
- 5 -
- 5 -
2 方案论证与比较 - 6 -
控制器部分 - 6 -
数据采集部分 - 7 -
传感器 - 7 -
数据采样保持器 - 8 -
前级放大器部分 - 9 -
A/D转换器 - 11 -
键盘处理部分方案论证 - 12 -
显示电路部分的选择 - 12 -
超量程报警部分的选择 - 12 -
3 硬件电路设计 - 14 -
AT89S52的最小系统电路 - 14 -
单片机芯片AT89S52介绍 - 14 -
单片机管脚说明 - 16 -
AT89S52的最小系统电路构成 - 19 -
数据处理部分电路设计 - 19 -
传感器和其外围以及放大电路设计 - 19 -
A/D转换芯片与AT89S52单片机接口电路设计 - 24 -
单片机与8155芯片的扩展电路 - 28 -
显示电路与AT89S52单片机接口电路设计 - 30 -
键盘电路与AT89S52单片机接口电路设计 - 32 -
报警电路设计 - 34 -
4 系统软件设计 - 35 -
主程序的设计 - 35 -
子程序设计 - 36 -
数据采集子程序设计 - 36 -
A/D转换启动及数据读取程序设计 - 36 -
显示子程序设计 - 36 -
键盘扫描子程序设计 - 37 -
报警子程序设计 - 40 -
系统软件调试 - 40 -
系统软件调试简介 - 40 -
系统软件故障原因分析 - 41 -
设计总结 - 42 -
致谢 - 43 -
参考文献 - 44 -
1 绪论
随着时代科技的迅猛发展,微电子学和计算机等现代电