20150,,(Extended-RangeElectricVehicle,E-REV)。、(AuxiliaryPowerUnit,APU)E-REV,、。APU,,APU[1]。:,[2];APU,[3]。,;APU,,CAN。APU,S12X,、,CAN,CAN,,APU。1APU1.1APUE-REVAPU。,CAN。,、[4]。APU,1。1.216MC9S12X:“863”(:2013BAG08B01);。:2014-11-04:2014-11-12doi:10.3969/j.issn.1673-3142.2015.03.003APU,,(230009)[],CANAPU。MC9S12X,,CAN,CAN;Tellus、,APU,APU。[];;;CAN;[]U469.72[]A[]1673-3142(2015)03-0010-05DesignofAuxiliaryPowerUnitControlSystemforExtended-RangeElectricVehicleYinAndong,ZhaoXu,JiangHao(SchoolofMachineryandAutomobileEngineering,HefeiUniversityofTechnology,HeifeiCity,AnhuiProvince230009,China)[Abstract]AnAuxiliaryPowerUnit(APU)controlsystembasedonCANbuswasproposedinthispaper.TheprinciplesandcharacteristicsoftheAPUinExtended-RangeElectricVehicle(E-REV)wereanalyzedindetail.Thedataacquisitionmodule,speedcontrolmoduleandCANcommunicationmoduleweredesignedusingMC9S12Xseriesmicrocontrollerwhichhasdual-coremicrocontrolunit.Thereal-timeperformanceoftheCANcommunicationandcontrolsystemwasimprovedduetoutilizationofthedual-coreresource.Thecommunicationmodulewasdeveloped,debuggedandmonitoredusingtheTellus.AnexperimentalbenchwasalsobuilttotesttheAPUcontrolsystem.Accordingtotheexperimentalresults,theeffectivenessofthedesignedAPUcontrolsystemwasverified.[Keywords]extended-rangeelectricvehicle;auxiliarypowerunit;controlsystem;CANbus;dual-coreAGRICULTURALEQUIPMENT&VEHICLEENGINEERING533Vol.53No.320153March2015533(MicroControllerUnit,MCU),E-REVAPU,:(1)CAN、,,APU,,,。(2)(SOC)APU,,,APU。(3)、,APU,;,CAN,。2APUE-REVAPUMCU、、4。2.1MCUAPUMC9S12XDP512,。,CPUXGATE[5]。40MHz,512KFlash32KRAM。5MSCAN,21016AD,88PWM,8SPI。2.2MC9S12XDP5125V,2.5V,12V,5V,。LM7805ADR02ARZ,、。2.3E-REVAPU、。AD,,I/O。2.3.1E-REVAPU336V、25A,387V,。2。2.3.2APU,。LEMHAIS-50-P,3。2.3.3,1APUFig.1StructureandcompositionofAPUonEREV2Fig.2ResistivevoltagedivideracquisitioncircuitP3DCGNDGNDGNDGNDGNDGNDGNDR401470kR402470kR403470kR404470kR40520kVCCD402IN914D401IN914VsampleU402ATL084R4065kR4071kR4082kC4010.1μFVCCU401PC8173Fig.3CurrentmonitoringcircuitbasedoncurrentsensorP6HAIS-50-PGNDGNDGNDGNDGNDGNDGNDVCCR5011kR5021kR5041kC5010.01μFC5020.01μFR5031kR50620kR5051kU501BTL084CsampleR5081kR5071kC5030.1μFU501ATL084:APU112015,DS18B20,,。2.4APUCAN。CAN、。MC9S12XDP5125MSCAN,CAN2.0A/B,,,,8[6]。CAN2.0ISO11898CAN(CTM1050T),(DC2500V)、ESDTVS。CAN。3APUE-REVAPU、、,S12X,,。APU,CAN、、,4。CodeWarrior、,[7]。:CAN、,、、,,CANAPU。3.1CANS12X,XGATECAN,CPU[8]。MSCANCAN,XGATE,CPU。XGATE,CPU。CAN5。:1)main.cxgate.h[9]。main.c:#pragmaDATA_SEGSHARED_DATAvolatileunsignedcharRxlen,Rxdata[8],Txlen,Txdata[8];//xgate.hvolatileunsignedlongmyID;//xgate.h2)XGATEXGATECAN00x59,0x58。1,:#defineCAN0TX_INT0xB0#defineCAN0RX_INT0xB2:SetIntPrio(CAN0RX_INT,0x81);//SetIntPrio()SetIntPrio(CAN0TX_INT,0x81);3)XGATEISRCAN0,:voidCAN0rec(void){…Rxlen=CAN0RXDLR&0x0F;for(i=0;iRxlen;i++)Rxdata(i)=*(&CAN0RXDSR0+i);myID=CAN_ID(CAN0RXIDR0);//CAN_ID4Fig.4Blockdiagramofmodularsoftwaresystem5XGATECPUCANFig.5ChartofXGATEandCPUhandlingforCANinterruptCPUCANXGATECANCANCPU12533:APUID…}asmSIF;//CPU,CPU,CPU,ID,、、SOC,。11,ID[10],APU1。3.2E-REVAPU,PI[11]。SOC。4APU1E-REVAPU,CANTellusCAN[12],AVL,,APU。4.1,CANCAN。CAN,10ms、50ms、100msID201、ID211、ID370,CAN。6—9。6—8:,、、,。,ID2011.5;ID211,,1CANIDTab.1AssignmentofmainIDsofCAN-busID/ms180VCUAPU10APU201APUECU10203ECUAPU10211BMSAPU50370APU100APU(a)11.010.510.09.59.0/ms0200400600800100012001400(b)6ID201Fig.6ContrastofID201’speriodfluctuationwithdualcoreandsinglecore(a)ID201(b)ID201(a)51.050.550.049.549.0050100150200250300(b)7ID211Fig.7ContrastofID211’speriodfluctuationwithdualcoreandsinglecore(a)ID211(b)ID211120100806040(a)100.015100.010100.005100.00099.99599.99099.985020406080100120140(b)8ID370Fig.8ContrastofID370’speriodfluctuationwithdualcoreandsinglecore(a)ID370(b)ID370103102101100999897020406080100120140020040060080010001200140011.010.510.09.59.0/ms/ms050100150200250300/ms/ms/ms132015100ms;ID370,±2ms,(±0.02ms)100。935%~10%。:XGATECPU,,XGATECPU,,。4.2APUE-REV10、11。,,,,。51)E-REVAPU,CANAPU,、,MCUXGATE,CAN。2):CAN、,;PI,APU,CANAPU,。[1],,,.APU[J].,2010,36(11):1573-1578.[2],.[J].,2014,33(5),29-32.[3],,,.[J].,2007,29(4),321-324.[4].[D].:,2013.[5]FreescaleSemiconductor.9S12XDFAMPP.Rev.2.14[OL].2005(11).[6]CTM1050CAN.Rev.1.21[EB/OL].2009(7).[7].CAN[D].:,2007.[8]FreescaleSemiconductor.AN2726.Rev.1[OL].2006(4).[9],,,.S12XDXGATE[J].,2008(2):42-44.[10].CAN[M].:,2011.[11],.[J].,2007,36(4),109-112.[12],,,.CAN[J]..2012,29(8),873-876.,,。:。E-mail:yin_ad@163.com9Fig.9Responsetothreeinterruptsourceswithdualcoreandsinglecore0200400600800100012001400160033221110Fig.10Chargingatlow-speedpoint25.022.520.017.515.012.510.07.55.02.50150155160165170175180185190195200/s400350300250200150100500/V/A/kW11Fig.11Chargingathigh-speedpoint4035302520151050315320325330335340345350355360365370400350300250200150100500/A/kW/V14