基于单片机的出租车里程计价器的设计摘要随着我国经济文化的飞速发展,城市交通的日趋完善,出租车计价器的应用也越来越广泛众所周知计价器是出租车行业发展的重要标志也是必不可少的工具。所以,设计一款具有良好性能的计价器是非常必要的。因此,本文采用了单片机设计了一款出租车计价器。单片机是微型机的一个主要分支,在结构上最大的特点是把CPU、存储器、定时器和多种输入/输出口电路集成在一块超大规模集成电路芯片上,灵活性强。基于以上特点将单片机用在出租车计价器上,不但能实现基本计价器功能还能在很大程度上拓展功能,并可以方便的对系统进行升级。本文提出的设计是一个基于单片机AT89C52的出租车自动计费系统,附有复位电路,时钟电路,键盘电路等。该计价器通过字符型液晶1602显示最初起步价、里程收费等信息,通过温度传感器DS18B20检测温度。本设计的核心控制器是AT89C52单片机,其中液晶显示模块连接单片机P0口,按键模块连接单片机P1口,通过按键来实现控制。本文先对选题的背景意义做了简介,对单片机和一些芯片的原理等做了简要说明;然后再具体描述了计价器的硬件和软件各部分的设计最后将软件和硬件结合完成了总设计。设计结果表明,将单片机技术应用到出租车计价器中,是非常好的一个发展方向,单片机的灵活性能很好的适应功能需求日益增多的出租车计价器,往后的发展前景将不容小觑。关键词:单片机AT89C52;1602液晶;出租车计价器;温度传感器I4AbstractWiththerapiddevelopmentofChina'seconomyandculture,andtheimprovementofurbantrafficisbecomingmoreandmoreperfect,applicationofTaximeterismoreandmorewidely.Asisknowntoall,themeterisanimportantsymbolofthetaxiindustrydevelopment,isalsoanessentialtool.Therefore,thispaperusesamicrocontrollertodesignataximeter.SCMisamajorbranchofmicrocomputers.ThebiggestcharacteristicofstructureistoputtheCPU,memory,timerandavarietyofinput/outputcircuitintegrationonavlsichip.Withitsgoodflexibility.Basedontheabovecharacteristics,usemicrocontrolleronthetaximeter,notonlycanthemetertoachievethebasicmeterfeaturesbutalsoexpandtoalargeextent.Thatmeansyoucaneasilyupgradethesystem.ThisdesignisbasedonAT89C52single-chipthetaxiforautomaticbillingdesign,withresetcircuit,clockcircuit,keyboardcircuitandsoon.ItusedcharactertypeLCD1602toshowthattheoriginalfare,mileagecharges,DetectiontemperatureusingthetemperaturesensorDS18B20.ThedesignisbasedonAT89C52microcontrollerasthecorecontrollertheP0portconnectedLCDmodule,P1portaccesskeysthroughthekeyinput.Firstly,thisdissertationdiscussesthebackgroundsignificanceofthissubject,theprincipleofsinglechipmicrocomputerandsomechipsandabriefdescription.Andthenitdescribesthehardwareandsoftwareofthemeterandthenthedesignofeachpartspecifically.Finally,itshowsthedesigninsoftwareandhardware.Thedesignresultsshowthatitisagooddevelopmentdirectiontomakethesinglechipmicrocomputertechnologyappliedtotaximeter.Themicrocontrollercanadapttothefunctionalrequirementsofagrowingnumberoftaximeterwell.Itwillhaveasubstantiallybrightfuture.Keywords:SCMAT89C52;LCD1602;Taximeter;TemperaturesensorIII目录摘要......................................................................................................................................IAbstract................................................................................................................................II第一章绪论..........................................................................................................................11.1课题研究的背景意义...............................................................................................11.2本文的主要...