文档介绍:分类号:TP39
10710-2009124052
硕士学位论文
基于 MPC563M 微控制器
的汽油机 ECU 底层驱动方法研究
张朋长
导师姓名职称张卫钢教授
申请学位级别硕士学科专业名称计算机应用技术
论文提交日期 2012 年 5 月 20 日论文答辩日期 2012 年 5 月 31 日
学位授予单位长安大学
Research on Gasoline Engine ECU Underlying
Driver Method Based on MPC563M Microcontroller
A Dissertation Submitted for the Degree of Master
Candidate:Zhang Pengzhang
Supervisor:Prof. Zhang Weigang
Chang‟an University, Xi‟an, China
摘要
为满足日益严格的排放法规和缓解能源危机,需要着重发展汽油机电子控制技术,
来改善发动机的工作性能,其研究工作分为驱动层研究和应用层研究。驱动层研究工作
主要根据应用层的需求编写底层驱动程序,是实现应用层设计思想的基础,在电子控制
单元(ECU)的研究中起到重要的作用。
本论文在自主研发设计的 ECU 硬件系统平台上,结合应用层需求,研究和实现底
层各功能模块的驱动程序:
1. 分析 MPC563M 微控制器内部 EQADC 模块的构成和工作原理,编程实现各信号
量的输入功能,主要为重要传感器模拟信号的 A/D 采样,并实现采样数据的 DMA 方式
传输。
2. 依据 ECU 底层的数据通信服务,对 MPC563M 微控制器内各通信模块进行结构
和功能分析,包含增强型串口通信接口模块(eSCI)、串行外围设备接口(DSPI)和 CAN 通
信协议控制器 FlexCAN 模块等,编程实现底层不同类型通信的数据收发功能,并对数
据链路层和网络层的功能函数进行封装。
3. 依据 ECU 输出电路,简要介绍执行器控制特点,研究和实现 L9825 芯片的 SPI
通信控制低端驱动。
根据上述研究成果,构建底层驱动软件测试平台,对各模块的驱动程序进行测试,
测试结果验证 ECU 成功完成模拟信号 A/D 采样、通信的数据收发、控制输出等功能,
表明底层驱动软件能够满足 ECU 功能需求,达到了预期的目标,为 ECU 应用层控制策
略的研发提供技术支持,在 ECU 开发过程中发挥到重要的作用。
关键词:电子控制单元(ECU),MPC563M,A/D 信号采样,数据通信,输出控制
i
Abstract
In order to meet the increasingly stringent emission regulations and to ease the energy
crisis, the development of gasoline engine electronic control technology should be focused on
to improve the work performance of engine. The research work is divided into the driver layer
research and the application layer research.
The research work of driver layer is mainly to write the underlying driver based on the
needs of the application layer, which is the basis of application layer . Driver layer plays an
important role in the research of electronic control unit (ECU).
According to the requirements of the application layer, this thesis researches and
implements the program of each functional module in driver layer on the self-designed ECU