- 8
- 0
- 约3.49万字
- 约 42页
- 2018-02-28 发布于贵州
- 举报
基于CAN总线数据采集系统的设计与实现——CAN总线通信实验论文
基于CAN总线数据采集系统的设计与实现
——CAN总线通信实验
学生: 指导教师:
内容提要:以CAN (Controller Area Network) 总线控制器SJA1000为核心, 设计了一种通用的基于CAN总线的数据采集系统, 给出了数据采集系统的原理、单个节点的软硬件设计; 重点阐述了CAN 总线智能节点的设计、实现与注意事项。 试验表明, CAN 总线的多主结构使系统改型灵活, 数据传输稳定, 可靠性好, 数据传输速率可达1Mbit/s, 能满足现场的实时性要求。CAN 总线的使用大大节约了连接导线、维护和安装费用, 提高了系统的性价比, 具有广泛的应用前景。
关键词:数据采集 CAN 总线 现场总线 芯片SJA 1000
Design and realization of data acquisition system based on CAN bus——CAN BUS comuniostion experiment
Abstract : One kind of current data acquisition system based on CAN (ControllerA reaN etwork) bus is designed its core design is CAN bus controller SJA1000. The principle of the data acquisition system and the software and hadware design of a single node are given . The main concerns are design, the realization and the rules of the intelligent node of CAN bus . The result of test shows three aspects of advantages . The multi-master capabilities of CAN bus make the system resetmore smartly . The speed rate of data transmsion reaches 1M bit/s . The stability and good reliability of data transm ission can meet the real time need of the field . Dependability is good, and the field real time demand is satisfied . Meanw hile the expenses of connecting wires, maintenance and installation are decreased because of the use of CAN bus . It improves the price ration of the system. Thus it will be widely applied .
Key words: data acquisition controller area network bus field bus
controller SJA 1000
目 录
一、引言 1
二、 CAN总线 1
(一)CAN总线介绍 1
(二)CAN协议 1
三、结构设计 4
四、硬件设计 5
五、软件设计 6
(一)初始化子程序 7
(二)发送子程序 8
(三)查询方式接收子程序 10
六、测试报告 12
附录 15
参考文献 36
一、引言
信息技术的飞速发展,引起了自动化系统结构的变革, 形成以网络集成自动化为基础的控制系统。现场总线顺应这一形式发展, 已成为当前工业数据总线领域中一个新热点, 被广泛应用于工业现场控制、智能家居、交通工具、环境监测等众多领域。 用数据采集系统能实现数据采集与处理, 加入高级算法即可实现智能控制, 因而减轻了上位机的负担。 本设计设计了一个通用的基于CAN 总线的数据采集卡, 着重阐述了它的设计及其实现。
二、 CAN总线
(一)CAN总线介绍
CAN 总线 (Cont roller Area Network 控制器局域网)是现场总线的一种。 它是德国Bosch 公司在1986 年为解决现代汽车中众多的控制与测试仪器之间的数据交换而开发的一种串行数据通讯总线。CAN 总线与其它通信网的不同之处有二:一是报文传送中不包含目标地址 ,它是以全网广播为基础 ,各接收站根据报文中反映数据性质的标识符过
原创力文档

文档评论(0)