摘要
与传统的RS-232总线相比,CAN(控制器局域网)总线是一个高速、长距离、多主、经济的网络系统,特别适用于实时系统。其易用性和低成本使得CAN在汽车工业和自动化领域得到广泛应用,因此设计高性能的RS-232与CAN总线的接口卡以代替传统的PC机的RS-232通信具有重要意义。文中主要分析了RS-232与CAN接口卡的工作原理;设计并实现RS-232与CAN接口卡的硬件接口电路;设计并调试了RS-232串口与单片机、单片机与CAN控制器之间的通信软件。
Compared with the conventional RS-232 bus, the Controller Area Network (CAN) is a high speed, long distance, multi master and cost effective network system especially suitable for real time control system. Its ease of use and low cost have led to its wide adoption throughout the automotive industry and automation fields. This paper analyzed the principle of the interface card bewteen CAN and RS-232, designed and implemented the function circuit of interface card between CAN and RS-232, designed and debugged the communication software between RS-232 and SCM, SCM and CAN controller.
出处
《电子工程师》
2007年第9期63-66,共4页
Electronic Engineer