- 18
- 0
- 约 30页
- 2016-05-19 发布于湖北
- 举报
1 绪论 1
1.1研究背景 1
1.2国内外研究现状与发展趋势 2
1.3 主要研究内容 3
2 LIN总线原理 4
2.1 LIN总线的特点 4
2.2 LIN总线的通信机制 4
2.3 LIN总线报文的帧结构 5
2.4 LIN协议的错误管理 6
3 总体设计 8
4 系统的硬件设计 10
4.1 P87LPC76X芯片介绍 10
4.2 P87LPC76X各模块的硬件实现 10
4.2.1 时钟源电路 10
4.2.2 电源及系统滤波电路 11
4.2.3 复位及背景调试(BDM)模块 12
4.3 LIN接口模块 13
4.3.1 LIN接口芯片 13
4.3.2 TJA1020 LIN接口电路图 14
4.4 RS串口通信模块 15
4.4.1 RS232 接口芯片 15
4.4.2 MAX232 芯片与MCU组合电路设计 16
5 系统的软件设计 18
5.1 LIN节点软件设计 18
5.2 LIN节点软件 18
5.2.1 主程序中LIN模块的实现和初始化 18
5.2.2 LIN描述文件 20
5.2.3 LIN 驱动程序 21
5.2.4 LIN 低功耗管理 22
结论 24
参考文献 25
致谢 26
基于LIN总线汽车雨刷检测平台设计
摘 要
汽车零部件检测是汽车生产中重要的环节。如今,为了减少汽车车身线束, 现场总线技术已经广泛应用于车身电子控制系统。比较流行的有CAN 、MOST 、LIN等 。其中LIN总线是近些年来兴起的一种面向低端通讯的多路复用串行协议,主要应用在速率要求不高的场合,如车门方向盘、座椅、车窗等这些对于成本比较敏感的单元 。
本文首先对 LIN 总线协议做了简要介绍,这是本课题设计的基础。之后,着重介绍了LIN 芯片P87LPC76X。并详细描述了系统的硬件实现。后面主要以主程序流程图的方式进行软件设计。通过LIN总线式通信,采集雨量传感器信息,并控制雨刷电机来控制雨刷的摆动频率。
关键词 LIN总线,汽车,串行总线
The design based on LIN bus is auto wiper test platform
Abstract
Auto parts detection is an important link in the whole process of automobile production. Nowadays, in order to reduce automobile body harness, field bus technology has been widely used in automobile body electronic control system. MOST popular CAN, and LIN, etc. One of LIN bus is the rise in recent years for low-end communications multiplex serial protocol, mainly used in place of rate request is not high, the steering wheel, seat, such as door, window etc. These for the units whose cost is more sensitive.
This article first to give a brief introduction of LIN bus protocol, which is the basis of this topic design. After that, LIN chip P87LPC76X are introduced. And describes in detail the hardware implementation of the system. Behind the main in the form of the main program flow chart of software design. By LIN bus communication, to collect rainfall sensor information, and control the wiper motor to control the oscillation frequency of the wiper.
Key words LIN bus,
原创力文档

文档评论(0)