电子称单片机控制系统的设计摘要该设计以51系列单片机AT89S52为控制核心,实现电子秤的基本控制功能。在设计系统时,为了更好地采用模块化设计法,分步的设计各个单元功能模块系统的硬件部分可以分为最小系统、数据采集、人机交互界面和系统电源四大部分。最小系统部分主要包括AT89S52和扩展的外部数据存储器;数据采集部分由压力传感器、信号的前级处理和A/D转换部分组成,包括运算放大器AD620和A/D转换器ICL7135;人机交互界面为键盘输入和点阵式液晶显示,主要使用ZLG7289键盘控制芯片和OCM4x8C显示器,可以方便的输入数据和直观的显示中文。系统电源以LM317和LM337为核心设计电路以提供系统正常工作电源。软件部分应用单片机C语言进行编程,实现了该设计的全部控制功能。该电子秤可以实现基本的称重功能(称重范围为0~9.999Kg,重量误差不大于±0.005Kg),并发挥部分的显示购物清单的功能,可以设置日期和设定十种商品的单价,还具有超量程和欠量程的报警功能。整个系统结构简单,使用方便,功能齐全,精度高,具有一定的开发价值。关键词:单片机;采样电路;A/D转换器;液晶显示ABSTRACTThedesignisbasedonthemicrocontrollerAT89S52systemasthecoretocarryoutthebasiccontrolfunctionoftheelectronicssteelyard.Whiledesigningthesystem,Iadoptthemoldpiecemethodtodividethehardwareofthesystemintofourparts:theminimumsystem,samplingcircuit,I/Ointerfaceandthesystempowersupply.TheminimumsystemmainlyincludestheAT89S52andtheexpandedexteriordatamemory.Samplingcircuitiscomprisedofapressuresensor,adifferentialmeasuringamplifierAD620andaA/DconverterICL7135.WiththeusageofZLG7289keyboardcontrolchipandOCM4*8Cdisplay,wecompletethefunctionofthekeyboardinputandtheLCDmanifestation.ThepowersupplysystemselectstheLM317andLM337todesigntheelectriccircuittoprovidetheneededpowersupply.ThesoftwarepartappliesamachineClanguagetocarryoutallcontrolfunction.Theelectronicsteelyardcanweighthescopeas0~9.999Kgs,andtheweigherrormarginisnobiggerthan±0.005Kgs.Italsohasmanyotherfunctions,suchasdisplayingtheshoppingdetailedlist,settingthedateandtenkindsofunitpricesofmerchandiseandoverweighingalarm.Thewholesystemissimple,well-found,convenienttouseandhashighaccuracyandcertaindevelopmentvalue.Keywords:microcontroller;samplingcircuit;A/Dconverter;LCDManifestation目录第一章绪论..............................................................................................11.1引言.......................................................................................................................11.2选题背景与意义.................................................................................................21.3研究现状...............................................................................................................21.3.1影响因素...................................................................................................21.3.2产品质量.........................................................................................................31.3.3发展方向...................................................................................................31.3.4电子秤的智能化.......................................................................................31.4本文的结构........................................................................................................4第二章系统方案的设计..........................................................................52.1电子秤的设计要求............................................................................................52.1.1基本...