| As the arising awareness of environment problem caused by heavy trucks,the trucks that do not meet the requirements of the emission will face a crisis of being phased out.It forces the heavy truck manufacturer to improve engine electronic control system to achieve a more precise fuel injection and jet control.To achieve this requirement,on the one hand,a good control strategy can be adopted,on the other hand high efficiency,safe,reliable,and strong real-time engine electronic control system should be considered.Therefore,the main purpose of this thesis is to design the bottom driver for the engine electronic control system to obtain more accurate engine data,such as rotate speed,temperature.Firstly,the research status of diesel/natural gas dual fuel engine at home and abroad is analyzed.A novel design scheme,engine electronic control system based on FPGA and DSP,is proposed for the existing problems.The general design of the system and the hardware and software implement of the system are expounded.The state machine control analog-digital conversion module to implement acquisition of engine data.And then simulate the dual-port RAM cache data in the FPGA,and use the moving average filtering algorithm to preprocess the data.Then,the DSP interrupt is triggered,the engine data is acquired via the EMIFA interface,and the μC/OS-II operating system is ported to the DSP processor.At last,this paper describes the test process of the whole design scheme in detail,and analyses the test results comprehensively.In this thesis,completes the development of the dual-fuel engine electronic control system based on FPGA and DSP,and realizes the synchronous acquisition of the engine multi-channel parameters.The system has good portability and versatility,which provides a reference for the improvement of the design and control algorithm of the subsequent electronic control system. |