优秀论文~CAN总线通信研究与软件设计毕业论文设计.docx PAGE PAGE # PAGE PAGE # 北京邮电大学毕业设计 CAN总线通信研究与软件设计 摘要 现场总线,又称现场网络,是一种工业数据通信总线。在当今时代,现场总线的发 展速度非常之快,它的出现为工业的发展提供了非常好的技术保障,为分布式控制系统 中的各个节点之间的数据通信提供了非常好的技术保障。 CAN总线是一种半双工通信的 串行通信网络,属于现场总线的一种,它的数据通信功能强大,能够有效的支持分布式 控制或实时控制系统。相比与其它现场总线, CAN总线具有通信快、效率高、易实现、 可靠性高等优势,现在已经在很多领域中都得到了应用。 本文主要研究CAN总线通信技术的原理及其技术特点,研究了 CAN通信的具体流程, 包括初始化流程以及发送接收数据流程。运用C语言编写相关单片机程序以及CAN的通 信程序实现通信。 本次软件设计是在keil4开发环境下进行的,主要编写了串口程序,SPI接口程序 以及CAN的初始化、发送和接收数据程序,并与相关硬件设计结合,实现两个CAN节点 之间的相互的数据通信。 关键词:现场总线;CAN总线;软件设计;通信 北京邮电大学毕业设计 CAN bus communication research and software design Abstract Field bus, also called the n etwork, is a kind of in dustrial data com muni cati on bus. In today’s era, the development of field bus speed is very fast, it provides a very good technical support for the developme nt of in dustry, for data com muni cati on betwee n each node in distributed con trol system provides a very good tech ni cal support. CAN bus is a half-duplex com muni cati on serial com muni cati on n etwork, bel ongs to a ki nd of fieldbus, it has powerful data com muni cati on fun cti on, CAN effectively support distributed con trol or real-time con trol system. Compared with other field bus, CAN bus com muni cati on is fast, high efficiency, easy realize and high reliability advantages, now has been applied in many fields. In this paper, the prin ciple of the CAN bus com muni catio n tech no logy and its tech ni cal characteristics, research the CAN com muni cati on process, in clud ing the in itializatio n process and the process to send and receive data. Using C Ian guage to write the microc on troller program, and CAN com muni cati on program to realize com muni cati on. The software desig n is un der the en vir onment of keil4 developme nt, mai nly to write a serial program, SPI in terface program and CAN the in itializati on, send and receive data, and comb ined with releva nt hardware desig n, the two CAN achieve data com muni cati on betwee n no des. Key words: The fieldbus; CAN bus; The soft
2024最新激活全家桶教程,稳定运行到2099年,请移步至置顶文章:https://sigusoft.com/99576.html
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。 文章由激活谷谷主-小谷整理,转载请注明出处:https://sigusoft.com/60025.html