长春工程学院毕业设计(论文)毕业设计基于单片机的车用数字仪表设计与实现DesignandRealizationofDigitalInstrumentforAutomobilebasedonMCU长春工程学院1:王水润:本科:电气与信息学院:电子信息工程:姜航:讲师:2009年6月16日学生姓名学历层次所在院系所学专业指导教师教师职称完成时间长春工程学院毕业设计(论文)摘要本文以汽车现有电信号为基础,选配了霍尔传感器和数字式温度传感器DS18B20,以单片机AT89S52为核心,研制了一种汽车数字式电子组合仪表。仪表对车速、里程、油量、温度4个参数进行测量和显示。系统利用A/D转换器完成对油量信号的采集,车速脉冲信号由单片机进行处理,并由LED显示。随着汽车技术的发展,特别是近年来全球卫星定位系统(GPS)和在线故障诊断技术在汽车中广泛应用,原有的机械指针汽车仪表显示信息量小、体积大、测量误差大,越来越无法满足使用的需要,数字式的汽车电子仪表成为发展的必然趋势。关键词单片机A/D转换器霍尔传感器DS18B20LEDAbstract:Digitalelectronicinstrumentistheinevitabletrend.Onthebaseofformerelectronicsignalandappendingaspeedsensor,theDS18B20whichisadigitaltemperaturesensor,thisarticledesignsadigitalautomobileinstrumentpanelthatusesmicrochipAT89S52asitscore.Itcompletesthemeasurementanddisplayoffourparametersasfollow:speed,journey,fuelandtemperature.InstrumentappliestheA/Dconversioninsidemicrochiptomeasurethefuelsignal,themicrochipdealwiththesignalofvehiclespeedanddisplaytheresultwithLED.Withthedevelopmentofvehicletechnology,especiallyglobalpositionsystemandonlinefaultdiagnosisareadoptedinautomobilebroadly.Theformermechanismpointerinstrumentshavelotsoflimitationssuchaslittleinformation,largevolumeandlowmeasurementprecision,andcan’tbeusedwelltoday.Keyword:microchipA/DconversionspeedsensorDS18B20LED2长春工程学院毕业设计(论文)目录1引言.....................................................-4-2总体方案设计.............................................-5-2.1车载仪表的发展..........................................................................................-5-2.2设计内容........................................................................................................-7-2.3方案论证......................................................................................................-7-3硬件系统设计.............................................-8-3.1整体系统......................................................................................................-8-3.2车速里程系统模块......................................................................................-8-3.3温度系统模块..............................................................................................-9-3.4油量及A/D转换模块.................................................................................-12-3.5显示模块....................................................................................................-14-3.7报警模块....................................................................................................-17-3.8主控单元.....................................................................................................-17-4软件系统的设计..........................................-22-4.1主程序的设计............................................................................................-22-4.2测油量子程序的设计................................................................................-24-4.3测速子程序的设计....................................................................................