摘要
目的:介绍将传统的RS232接口的设备转换为CAN接口的方法。方法:CAN总线上的节点是网络上的信息接收和发送站,智能节点能通过编程设置工作方式ID、地址、波特率等参数。它主要由单片机和可编程的CAN通信控制器组成。结果:实现了这类节点的硬件设计和软件设计,其中软件设计包括SJA1000的初始化、发送和接收等应用中最基本的模块子程序。结论:CAN作为一种可靠性高、价格低廉、实现简单的现场总线技术在众多领域得到了广泛的应用,已经形成了国际标准,并被公认为几种最有前途的现场总线之一,很多传统的RS232接口设备都将面临向CAN接口转换的问题。
Objective To transform the equipment with traditional RS232 interface into that with CAN connection interface. Methods On the CAN main line, node is the station for information receiving and transmission in the network. The intelligent node can establish the work way ID, the address and the baud rate through the programming. It is mainly composed by the singlechip and the programmable CAN correspondence controller.Results The hardware and software were designed. SJA1000 initialization, transmission and receiving subroutines are including in the software design. Conclusion CAN is a kind of excellent field bus with high reliability, low cost and has been applied in many fields. It has already formed the international standard and been viewed as one of the most widely used field buses in future. Lots of traditional equipment with RS232 interface are facing the problem of CAN interface transformation.
出处
《医疗卫生装备》
CAS
2008年第8期63-64,67,共3页
Chinese Medical Equipment Journal