摘要水表是水流量计量的主要工具,与居民的生产生活有着密切的关系,而国内的水表大多采用较为落后的旋翼式水表,水表行业面临着较好的机遇。本设计中的无磁水表由于抗磁干扰性较强,所以具有相当高的稳定性。利用LC振荡电路来测量水流量,选用较为先进的AT89C52单片机为核心,制作出功耗较低的无磁水表,而且拥有较高的稳定性,并能保持较高的精准度和抗干扰性。关键词:无磁水表、LC振荡电路、AT89C52单片机ABSTRACTWaterflowmeteristhemaintoolmeasurementwiththeproductionlifeoftheresidentshasacloserelationship,andtheuseofdomesticwatermetersislaggingbehindmostoftherotortypewatermeter,watermeterindustryisfacinggoodopportunities.Thedesignofthenon-magneticmeterhasagoodopportunity,haveagoodvalueofpromotion.ThroughthemeasurementofwaterflowLCoscillatorcircuit,theuseofmoreadvancedandfeaturemoreAT89C52MCUasthecore,toproducenon-magneticmeters,andhasahighstability,andtomaintainahighaccuracyandimmunity.Keywords:LCoscillatingcircuit,AT89C52microcomputer,watermeterwithnonmagnetic目录1引言..........................................................................................................11.1课题提出的目的及背景.........................................11.2水表发展的历程及趋势.........................................11.2.1水表测量技术........................................................................................................11.2.2水表的发展趋势....................................................................................................22系统总体方案的设计.............................................................................32.1系统设计思想及方案选择.......................................32.2系统组成.....................................................33系统硬件电路设计.................................................................................43.1单片机的选择.................................................43.2无磁计量功能模块.............................................53.2.1无磁计量的原理......................................................................................................53.3阀门控制.....................................................63.4液晶显示模块.................................................73.5IC卡模块.....................................................73.6蜂鸣器电路...................................................83.7电压检测模块.................................................83.8电源电路模块.................................................93.9防拆电路模块.................................................93.10复位电路模块................................................93.11键盘设计...................................................104系统程序设计.......................................................................................104.1主程序设计..................................................104.2子程序设计..................................................114.2.1充值程序设计......................................................................................................114.2.1用水扣费程序设计..............................................................................................115软件选择及仿真...................................................................................115.1软件的选择..................................................115.2仿真结果演示................................................126总结.............................