摘要
以P87C591为微处理器,通过自带的CAN控制器和外接SJA1000控制器设计出一种可以控制多路CAN总线的接口。针对该接口设计过程中遇到的多路CAN报文存在同时发送和接收的问题,通过实验提出相应的解决办法,特别针对接收模块中CAN报文溢出问题做了重点分析。并给出数据流程图和部分C语言源代码,为多路CAN总线通信接口的研究提供了一定的实际价值。
This article deals with a kind of interface design, which can control the multichannel CAN bus through the P87C591 ,the inside CAN controller and the SJA1000. Experiments have found solution for the problem of multichannel communication, i. e, sending and receiving the CAN message at the same time. The paper also analyses and solve the problem of the CAN message overflow ,and illustrates the data flow chart and a partial C language source code, thus providing a certain practical value for making a study of the multichannel CAN bus.
出处
《工业仪表与自动化装置》
2008年第1期49-50,共2页
Industrial Instrumentation & Automation
基金
江苏省自然科学基金资助项目(05KJD510213)