1、摘摘 要要 该设计以 51 系列单片机 AT89S52 为控制核心, 实现电子秤的基本控制功能。 在设计系统时,为了更好地采用模块化设计法,分步的设计各个单元功能模块, 系统的硬件部分可以分为最小系统、数据采集、人机交互界面和系统电源四大部 分。最小系统部分主要包括 AT89S52 和扩展的外部数据存储器;数据采集部分由 压力传感器、信号的前级处理和 A/D 转换部分组成,包括运算放大器 AD620 和 A/D 转换器 ICL7135;人机交互界面为键盘输入和点阵式液晶显示,主要使用 ZLG7289 键盘控制芯片和 OCM4x8C 显示器,可以方便的输入数据和直观的显示中 文。系统电源以 LM
2、317 和 LM337 为核心设计电路以提供系统正常工作电源。软件 部分应用单片机 C 语言进行编程,实现了该设计的全部控制功能。该电子秤可以 实现基本的称重功能(称重范围为 09.999Kg,重量误差不大于0.005Kg), 并发挥部分的显示购物清单的功能,可以设置日期和设定十种商品的单价, 还 具有超量程和欠量程的报警功能。整个系统结构简单,使用方便,功能齐全,精 度高,具有一定的开发价值。 关键词:关键词:单片机;采样电路;A/D 转换器;液晶显示 ABSTRACT The design is based on the microcontroller AT89S52 system as
3、the core to carry out the basic control function of the electronics steelyard. While designing the system, I adopt the mold piece method to divide the hardware of the system into four parts: the minimum system, sampling circuit, I/O interface and the system power supply. The minimum system mainly in
4、cludes the AT89S52 and the expanded exterior data memory. Sampling circuit is comprised of a pressure sensor, a differential measuring amplifier AD620 and a A/D converter ICL7135. With the usage of ZLG7289 keyboard control chip and OCM4*8C display, we complete the function of the key board input and
5、 the LCD manifestation. The power supply system selects the LM317 and LM337 to design the electric circuit to provide the needed power supply. The software part applies a machine C language to carry out all control function. The electronic steelyard can weigh the scope as 09.999Kgs, and the weigh er
6、ror margin is no bigger than 0.005Kgs. It also has many other functions, such as displaying the shopping detailed list, setting the date and ten kinds of unit prices of merchandise and overweighing alarm. The whole system is simple, well-found, convenient to use and has high accuracy and certain development value. Key words: microcontroller; sampling circuit; A/D converter; LCD Manifestation 目目 录录 第一章第一章 绪论绪论 . 1 1.1 引言 .1 1.2 选题背景与意义2 1.3 研究现状 .2 1.3.1 影响因素2 1.3.2 产品质量.3 1.3.3 发展