摘要:现如今,汽车电子领域发展迅速,越来越多的汽车电子应用应运而生,而这些应用系统的通信和控制则需要汽车总线来完成。大部分情况下,人们采用CAN总线通信方式来达到所需要求,本课题中所采用的汽车总线则是LIN总线。LIN总线相比于CAN总线,传输速率较低,可满足一些简单的小型电子应用,而其成本则是CAN总线的一半左右,主要目的是成为CAN总线的辅助工具。本课题是需要通过LIN总线的通信协议,进行对汽车氛围灯的设计。氛围灯是汽车内部用来营造气氛的一种装饰灯。对氛围灯的设计实质上是对三基色LED的调光调色,该实验是基于三通道的PWM输出的方法,通过调节各个输出端的混合占空比从而进行调色,这需要根据很多的理论基础和计算。实验完成后,还需要对系统进行ESD测试,这是必不可少的一个环节,是对其实际安全性能的一种保障。58126
毕业论文关键词: LIN总线;氛围灯;三基色LED;PWM;ESD测试
Based on LIN bus, Car atmosphere light system design and ESD test
Abstract: Recently,the automotive electronics field is developing rapidly, more and more automotive electronics applications came into being, and the communication and control of these applications need the automotive bus. In most cases, people use CAN bus communication to achieve the aimed requirements, but in this project LIN bus is chosen. Compared to the CAN bus, LIN bus whose transfer rate is lower,can meet some simple small electronic applications, and its cost is about half of the CAN bus, so that the main purpose of LIN bus is to become an auxiliary tool of CAN bus. This project is to design the automobile atmosphere light by the LIN bus communication protocol. Atmosphere light is a kind of decorative lamp used in automobile interior to create atmosphere. The essence of atmosphere light design is RGB LED dimming color. The method is based on three channel PWM output, by adjusting all the output of mixed duty ratio so that dim color, which requires a lot of theoretical basis and calculation. After the completion of the experiment, it is necessary for the system to carry out ESD test, which is an essential part, because it’s a guarantee for its actual safety performance.
Keywords: LIN bus; Atmosphere light; RGB LED; PWM; ESD test
目录
1绪论 1
1.1引言 1
1.2汽车电子领域的发展状况 1
1.3汽车现场总线简介 2
1.4 本课题研究的主要内容 3
2LIN总线通信协议分析 4
2.1 LIN总线的基本概念 4
2.2 LIN总线的通信协议与帧结构 5
2.3 报文头场 7
2.3.1 同步间隔场 7
2.3.2 同步场 8
2.3.3 标识符场 8
2.4 响应场 9
2.4.1 数据场 9
2.4.2 校验和场 9
3LIN协议的API实现 10
3.1 API概述 10
3.2 LIN总线的API 10
3.3 核心API 11
3.3.1 LIN内核初始化 11
3.3.2 信号管理 11
3.4 传输层API 基于LIN总线的汽车氛围灯系统设计与ESD测试:http://www.youerw.com/zidonghua/lunwen_63083.html