摘要称重技术是人类生活中不可缺少的部分,自古以来就被人们所重视。作为一种计量手段,被广泛应用于工业、农业、贸易等各个领域。随着现代文明和科学技术的不断进步,人们对称重技术的准确度要求也越来越高,电子秤产品技术水平的高低,直接影响各行各业的现代化水平和社会经济效益的提高。近年来,电子称重技术取得了突飞猛进的发展,电子秤在称重计量领域中也占有越来越重要的地位,其应用领域也在不断地扩大。尤其是商用电子秤,由于其具有准确度高、反应灵敏、结构简单等优点,被广泛应用于工商贸易、轻工食品、医药卫生等领域。目前,机械秤正在逐步被电子秤取代,这就促使电子秤的研究需要进一步的深入。本设计是以AT89S51为核心的一种高精度电子秤,系统采用模块化设计法,其硬件结构主要包括:数据采集模块、最小系统模块、电源模块、键盘和显示模块。其中,数据采集模块包括称重传感器和A/D转换电路;最小系统部分主要包括AT89S51和扩展的外部数据存储器;键盘由4×4位矩阵键盘组成;显示部分LM4229液晶显示。软件部分由C语言编程,实现对各部分的控制。该电子秤可以能够显示商品的名称、价格、总量、总价等;能够自动完成商品的价格计算;能够储存几种简单商品的价格;能够具有超重提醒功能。其称重范围为0~5Kg,分度值为0.001g。整个系统结构简单,使用方便。关键词:电子秤;AT89S51单片机;称重传感器;A/D转换电路;液晶显示AbstractWeighingtechnologyisindispensabletohumanlife,sincetheancienttimesattention.Asameasurementmethod,havebeenwidelyappliedinindustry,agriculture,tradeandotherfields.Alongwiththedevelopmentofmoderncivilizationandprogressofscienceandtechnology,theaccuracyofweighingtechnologyrequirementsareincreasinglyhigh,electronicproducts,technologylevel,directlyinfluencesthelevelofmodernizationandprofessionstoimprovetheeconomicbenefitsofthesociety.Inrecentyears,theelectronicweighingtechnologyachievedrapiddevelopment,electronicweighinginthemetrologyareaalsoplaysmoreandmoreimportantposition,anditsapplicationsareconstantlyexpanding.Especially,becauseofitscommercialelectronicwithhighaccuracy,senstivereaction,simplestructure,etc,havebeenwidelyappliedinindustryandcommercetrade,lightfood,medicineandhealth,etc.Atpresent,mechanicalscalesaregraduallyreplacedbyelectronic,thishasledtothefurtherstudyofelectronic.ThisdesignbasedonAT89S51atthecoreofahigh-precisionelectronicsystems,modulardesignmethodanditshardwarestructuremainlyinclude:thedataacquisitionmodule,thesmallestsystemmodule,powermodule,thekeyboardanddisplaymodule.Amongthem,thedataacquisitionmoduleincludingweighingtransducerandA/Dcircuit,TheminimumsystempartsincludingAT89S51andextensionofexternaldatastorage,Keyboard4X4byamatrixofthekeyboard,LM4229LCDdisplaysection.SoftwareconsistsoftheCprogramminglanguage,realizethecontrolofeachpart.Theelectroniccancanshowthenameoftheproduct,price,quantityandprice;etc.Canbefinishedgoodsprices.Tobeabletostoresomesimplecommodityprices,Toremindfunctionwithoverweight.Theweighing5Kg,rangeofindexingvaluefor0.001g.Theentiresystemstructureissimple,easytouse.Keywords:electronic,AT89S51,weighingtransducer,A/Dcircuit,LCDdisplay1绪论1.1选题的背景与意义1.1.1选题的背景(1)电子技术渗入衡器制造业随着第二次世界大战后的经济繁荣,为了把称重技术引入生产工艺过程中去,对称重技术提出了新的要求,希望称重过程自动化,为此电子技术不断渗入衡器制造业。在1954年使用了带新式打印机的倾斜杠杆式秤,其输出信号能控制商用结算器,并且用电磁铁机构与代替人工操作的按键与办公机器联用。在1960年开发出了与衡器相联的专门称重值打印机。当时的带电子装置的衡器其称量工作是机械式的,但与称量有关的显示、记录、远传式控制器等功...