1國立交通大學電機與控制工程學系碩士論文汽車引擎電腦的軟體分析與改良SoftwareAnalysisandImprovementofElectronicControlModulefortheEngineinanAutomobile研究生:劉宇學指導教授:王啟旭教授中華民國九十五年十月2汽車引擎電腦的軟體分析與改良SoftwareAnalysisandImprovementofElectronicControlModulefortheEngineinanAutomobile研究生:劉宇學Student:Yu-XueLiu指導教授:王啟旭Advisor:Dr.Chi-HsuWang國立交通大學電機與控制工程學系碩士論文AThesisSubmittedtoDepartmentofElectricalandControlEngineeringCollegeofElectricalEngineeringandComputerScienceNationalChiao-TungUniversityInPartialFulfillmentoftheRequirementsFortheDegreeofMasterInElectricalandControlEngineeringOctober2006Hsinchu,Taiwan,RepublicofChina中華民國九十五年十月i汽車引擎電腦的軟體分析與改良研究生:劉宇學指導教授:王啟旭教授國立交通大學電機與控制工程學系摘要高效能微控制器目前廣泛的應用在汽車引擎電腦(ECM)上,扮演引擎控制的主宰者。當汽車在行駛中,周圍的各種環境因素都是控制引擎的主要參數,而這些參數也都會影響汽車引擎的動力輸出。所以要將引擎的性能發揮到最佳狀態,則必須將所有相關的參數都納入考量,並計算出最佳的結果,同時將引擎性能完全發揮出來。而上述所指的最佳的結果就是參考供油曲線所計算出來的。本論文是研究SAAB汽車公司旗下的一款應用在渦輪引擎汽車(SAAB900SE)上的汽車引擎電腦的軟體部份。此電腦中的軟體是在電子控制模組ElectronicControlModule(ECM)中的微控制器(MicrocontrollerMotorolaMC68332)上執行。儲存在ECM軟體程式中的供油曲線與渦輪引擎的動力輸出表現有非常密切的關係。本論文的主要研究方向是研究ECM中控制引擎供油以及噴油嘴作動有關的模組,這些模組是用以計算正確供油量的供油曲線表,來驅動引擎達到最佳的動力輸出。iiSoftwareAnalysisandImprovementofElectronicControlModulefortheEngineinanAutomobileStudent:Yu-XueLiuAdvisor:Dr.Chi-HsuWangDepartmentofElectricalandControlEngineeringNationalChiaoTungUniversityAbstractHighperformancemicrocontrollerhasbeenbroadlyappliedintheElectronicControlModule(ECM)fortheengineinanautomobile,whichplaysthemainroleinenginecontrol.Whilethecarismoving,alltheenvironmentalfactorsaroundthecararemainparametersforenginecontrol,andpoweroutputofengineisaffectedbytheseparameters.Foroptimalbehaviorofenginepowerperformance,allcorrelativeparametersmustbeconsideredtocomputetheoptimalperformanceoutofenginecapability.ThisoptimalperformanceisbasicallycomputedaccordingtothefuelmatricesinECM.ThepurposeofthisthesisistoanalyzethesoftwareflowofElectronicControlModule(ECM)inaturbo-chargedautomobileSAAB900SE,manufacturedbySAAB,1994~1998.ThefirmwareinthisECMisexecutedbyusingthemicrocontrollerMotorolaMC68332.ThefuelmatricesstoredinECMdeterminesthemajorpoweroutputperformanceofaturbo-chargedengine.Thisthesisisfocusedonthemoduleswhichcontroltheenginefuelsupplyandtheactionoffuelinjectors.ThesemodulesarelocatedintheassemblycodeinECM,whichareusedtocalculatetheamountoffuelsupplytodrivetheenginetoyieldoptimumpoweroutput.iii誌謝首先感謝我的指導教授王啟旭博士兩年來細心教導,以及在我的學習過程中給予協助與鼓勵,除了讓我在專業領域上有更深刻的體會外,在待人處世和學習態度方面也都獲得相當大的啟發,也讓我理解到做研究應有的確實態度與方法。另外要特別感謝實驗室學長文榮生、黃得裕、王之政、吳建勳提供研究上的許多寶貴意見與經驗,讓我的論文研究得以順利進行。也感謝實驗室同窗張英德、甘能捷、林書帆等,學弟黃俊豪、吳佳陽在生活與研究上互相幫忙。最後感謝家人的支持與關懷。我的父母在我求學路上毫無保留的付出,總能給予我精神上最大的鼓勵。我的妻子玉卿與女兒慈恩,陪我渡過碩士生活中的點點滴...