2012届毕业设计说明书计程车里程表系统设计院、部:电气与信息工程学院学生姓名:宋贵指导教师:陈坚职称:讲师专业:电子信息工程班级:电子0802学号:084011402462012年5月摘要智能仪器仪表技术是一门集电子技术、单片机技术、自动化仪表、自动控制技术、计算机应用等一体的跨学科的专业技术。自20世纪90年代初以来,这项技术已逐步引入到国内工科专业中,如电子信息、通讯、自动化、计算机应用等信息类专业。随着经济的发展,汽车运输行业也快速发展起来,计程车也成为城市生活中的重要交通工具。乘车时,乘客与司机之间的交易是通过按里程计价的,里程表的好坏直接关系到双方的利益,所以设计一个功能合适、性能良好的简易计程车里程表系统具有实际的应用意义。本系统采用ATMEL公司的AT89S52单片机为核心,使用12MHz晶振提供时钟信号,利用霍尔传感器检测车速,通过软件编程的方法实现记时、里程检测、费用计算,同时通过LED数码管将里程数、总费用直观显示出来,从而达到计费的目的。该系统设有五个按键(清除、查询/确认、停止、单程/往返、功能选择),进行相应的操作就可实现单程/往返模式选择、停止计费、等待时间查询、清除复位等功能。具有结构简单操作方便、显示直观、运行稳定等优点,有较高的推广应用价值。关键词:计程车里程表;AT89S52;霍尔传感器;硬件设计;软件设计IABSTRACTIntelligentinstrumenttechnologyisacollectionofelectronictechnologyandsingle-chipmicrocomputertechnology,automationinstrument,automaticcontroltechnology,computerapplication,oneoftheprofessionaltechnicalsubjects.Sincetheearly1990s,thetechnologyhasintroducedgraduallytodomesticengineeringprofessionals,suchaselectronicinformationandcommunications,automation,computerapplications,andotherinformationspecialty.Withthedevelopmentofeconomy,thecartransportindustryalsodevelopedrapidly,thetaxialsobecometheimportanttraffictoolscitylife.Gobycar,passengers,andthedriveroftransactionsbetweenthebypressingthemileageofvaluationis,theodometerisdirectlyrelatedtotheinterestsofbothparties,sothedesignofafunction,thegoodperformanceofsuitablesimpletaxi"milestones"systemhastheactualapplications.ThesystemUSEStheATMELcompanyAT89S52SCMasthecore,theuseof12MHzcrystalsprovidestheclocksignal,usinghallsensortestspeed,andthroughprogrammingmethod,time,costcalculationmileagedetection,andatthesametimethroughLEDdigitaltubewillmileage,totalcostvisualdisplayout,soastoachievethepurposeofpricing.Thesystemhasfivebuttons(clear,inquiresconfirmation,stop,one-way/shuttle,functionchoose),carriesonthecorrespondingoperationcanachieveaone-way/shuttlemodeselection,stopbilling,waitingtimeinquiresclearreduction,etc.Function.Thestructureissimple,theoperationisconvenient,directdisplay,stableoperation,etc,haveahighapplicationvalue.Keywords:taxi"milestones";AT89S52;hallelement;hardwaredesign;softwaredesignII目录1概述.................................................................................................................................11.1计程车里程表概述.............................................................................................11.2单片机概述.........................................................................................................12设计任务、功能要求.....................................................................................................32.1设计任务.............................................................................................................32.2功能要求.............................................................................................................32.2.1基本...