摘要
本文提出了一种基于VxWorks嵌入式操作系统的工业总线协议转换器—TC700。它能够实现RS232/RS485/CAN与以太网的协议转换,是一种复合型的多协议转换网关。在对TC700功能原理简单说明的基础上,笔者着重从TC700的硬件电路结构设计和软件驱动程序开发两个方面,具体分析介绍了该网关CAN接口驱动设计的过程。通过移植UNIX系统下u-boot中的spi.c程序,完成了CAN接口驱动程序的设计内容。
This paper presents a design of protocol convertor-TC700 for industry fieldbus on embedded operating system of VxWorks. The protocol conversion for RS232/RS485/CAN to EthernetTC700 can be realized, and it can be looked as a multiplex protocol convertor. The author emphasizes on two sides based on the simplified explain of TC700′ theory, the hardware design and the software drive program development, and gives a detailed driver design progress of the device-driver of CAN bus. The design of device-driver of CAN bus is implemented by transplanting the spi.c program in u-boot of UNIX.
出处
《微计算机信息》
北大核心
2008年第26期33-35,共3页
Control & Automation
基金
国家自然科学基金委员会:国家自然科学基金(50534050)