| With the increasing number of cars,energy and pollution problems are gradually highlighted.For these problems,governments are actively developing a series of measures to limit the engine emissions of pollutants.Electronic control technology can effectively reduce engine emissions which is the only way for current engines to meet the more stringent emission laws in the future.Because of the development of electronic technology,computer technology and VLSI manufacturing technology,the ECU has been widely used in the field of internal combustion engine engineering increasingly.The use of electronic computer control technology can organize and achieve a better internal combustion engine combustion process in accordance with the best control strategy,so that thermal efficiency has been significantly improved.This subject comes from the company commissioned project multi-point EFI gas engine controller development.Use model-based design and V-mode which are commonly used in automotive electronics development.This subject use Infineon 16-bit microcontroller XC2785 as the main chip,configure the underlying driver to generate software framework firstly,and then add user code to generate the underlying software,test the underlying software in the end.Use the C-MEX S-Function to write the underlying driver modules.The use of target language compiler is to generate system target tlc and other control files to achieve inline S-Function for embedded code generation.Create a custom underlying driver modules library based on microcontrollers.The underlying driver modules library includes: Analog signals acquisition,digital signals acquisition,PWM signals generater,etc.The Simulink modules will eventually be expanded and can be used for creating simple control algorithm model.Then it can be built to complete control algorithm models,automatically generate embedded code and verify the system functions in the underlying hardware.Based on the basic principle of the engine electronic control technology,the ECU circuit schematics are researched and designed.For the hardware circuits,the underlying embedded codes are designed to meet the MISRA specification,and work well in the ECU prototype machine.In depth study of the Model Based Design concept and the technology of automatic code generation in the ECU development process,a set of the underlying drive modules have been designed using Matlab/Simulink platform.For the underlying driver software,we use CAN calibration protocol to design the calibration project including whole engine strategies and all underlying control softwares. |