硕士学位论文论文题目基于XS128和DZ60的电池管理系统的设计与实现研究生姓名陈爱兵指导教师姓名王宜怀专业名称计算机应用技术研究方向嵌入式系统论文提交日期2012年5月基于XS128和DZ60的电池管理系统的设计与实现中文摘要基于XS128和DZ60的电池管理系统的设计与实现中文摘要近年来,电动汽车作为解决能源、环境问题的一个重要发展方向得到了大力发展,而电池作为电动汽车的重要组成部分,在串联成组使用时存在过充、过放、过流、温度过高等问题,制约着电动汽车的发展,因而需要电池管理系统进行管理,保证电池安全、可靠地使用,延长电池的使用寿命。目前,国内外对电池管理系统的研究仍处于起步发展阶段。电池管理系统涉及传感器、通信、电子、嵌入式等技术,具有较高的开发难度。本文结合应用飞思卡尔公司的16位MCUMC9S12XS128和8位MCUMC9S08DZ60,按照电动汽车用电池管理系统技术要求,设计了一套测量精度高、设置灵活、功能较为齐全的电池管理系统。本文采用分组集中采集、总线分布汇总的集散式设计方案,将硬件系统按功能划分成主控板和单元板,增加了系统应用的灵活性。根据嵌入式硬件构件思想搭建系统的硬件平台,并针对硬件构件完成底层构件驱动设计。按照模块化设计方法实现了数据采集、电量估算、记录存储、诊断报警、充电控制等功能,降低了系统设计复杂度,提升了系统的可维护性。为了方便用户使用,满足电池个数不同的应用场合要求,还实现了触摸屏或PC机完成系统配置。主控板与单元板之间采用CAN总线通信方式,并按照SAEJ1939标准制定通信协议,便于和充电机及总控系统互连,增强了系统的兼容性。系统参数的精确度是系统计算、控制的基础,也是本系统设计的一个重点。本文设计了基于闭环霍尔传感器和外扩双积分ADC的电流采集电路,保证了电流采样精度。为了提高系统的集成度和抗干扰能力,采用集成硅片的电压检测方案,应用Linear公司的LTC6803实现电压、温度检测及均衡管理。系统测试在系统设计中占有重要地位,本文提出了基于构件的硬件单元测试方法,通过精度测试和功能测试验证了系统参数采集的精确性和控制的正确性。本系统的设计对后续电池管理系统的研究和应用具有一定的借鉴和参考价值。关键词:电池管理系统,CAN,构件,双积分ADC,LTC6803作者:陈爱兵指导老师:王宜怀AbstractDesignandImplementationofBatteryManagementSystembasedonXS128andDZ60IIDesignandImplementationofBatteryManagementSystembasedonXS128andDZ60AbstractInrecentyears,asaneffectivemethodtoresolveproblemssuchasrecourceshortageandenvironmentpollution,electicvehicle(EV)isdevelopingrapidly.Batteryplaysanimportantroleinelectricvehicles,butithastheproblemssuchasovercharge,overdischarge,overcurrent,temperatureandetc,whenthebatteriesareusingbygroup,whichisrestrictingthedevelopmentofelectricvehicles.Soit’snecessarytouseabatterymanagementsystemtomanageandresolvetheproblemsandensurethebatteriesworkingsafelyandreliableandextendthebatteries’usingage.Currently,theresearchinbatterymanagementsystemisstillattheprimarystagebothathomeandabroad.Batterymanagementsystemisintegratedwithsensortechnology,communicationstechnology,electronictechnology,computertechnologyandembeddedtechnology.Soit’sdifficulttodevelopthesystem.Thepaperapplied16-bitembeddedmicrocontrollerMC9S12XS128and8-bitembeddedmicrocontrollerofFreescaleCompanyintothesystemandcompletedthesysteminaccordancewiththebatterymanagementsystemtechnicalrequirementsoftheelectricvehicle.Thissystemhashighmeasuringprecision,completefunctionality,andconfigurationflexibility,soitcansatisfydifferentapplicationsituationsandrequirements.Thepapertakesuseofthedesignsamplingbygroupandprocessingthroughthebus.Thehardwareisdividedintothecontrollingboardandtheunitboard,whichimprovestheflexibilityofsystemapplication.Accordingtothedesigntheoryofhardwarecomponent,itbuildsthesystemhardwareplatform,andcompletesthehardwaredrivers.Followingtheprincipleofmodulardesign,itachievesdatacollecting,powerestimating,recordsstoraging,diagnosticalarming,chargecontrolfunctionsandsoon.Thismethodreducesthecomplexityofsystemdesignandimprovesthemaintainabilityofthesystem.UserscanalsoconfigurethesystemparametersthroughthetouchingscreenorPCtomeetthedifferentrequirementsofdifferentapplications,whichmayneeddifferentnumbersofDesignandImplementationofBatteryManagementSystembasedonXS128andDZ60Abstractbatteries.ThecontrollingboardcommunicateswiththeunitboardsthroughCANbus,anditscommunicationprotocolabidesbySAEJ1939standards,whichmakesiteasytointerconnectwiththechargerandthemaincontrollingsystemandenhancesthecompatibilityofthesystem.Theaccuracyofthesystemparametersisthebasisofthesystemtocalculateandcontrol,soitisalsoanimportantpartofthepaper.Thispaperdesignedacurrentcollectingcircuit,whichbasedonthedesignofclosed-loopcontrollinghall-effectsensorandextendeddual-slope-integratingADC.Thisensuresthecurrentsamplingprecision.Usingthedesignschemeofintegratedsilicon,thepaperappliedLinearCompanyLTC6803toimplementthevoltageandtemperaturedetecting,andbalancedmanagement,whichimprovesthesystemintegrationandanti-jammingcapability.Systemtestingisalsoanimportantpartofthesystemdesign.Thepaperproposesacomponent-basedhardwareunittestingmethodandverifiestheaccuracyandcorrectnessofthesystembytheprecisionandfunctionaltesting.Thedesignofthissystemhasareferencevalueforthelaterdesignofbatterymanagementsystem.Keywords:BMS,CAN,Component,Dual-slope-integratingADC,LTC6803WrittenbyChenAibingSupervisedbyWangYihuai目录第一章绪论...........................................................................................................11.1动力电池······················································································11.2电池管理系统················································································21.3电池管理系统研究现状····································································21.4本文的主要工作·············································································31.5论文章节安排················································································4第二章相关理论及总体设计方案.............................................................................52.1电池剩余电量················································································52.1.1电池剩余电量定义··································································52.1.2影响电池剩余电量的因素·························································62.1