- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
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)