摘要
本文介绍一种为ARM芯片-S3C2410扩展CAN总线接口的方法—利用SPI接口扩展CAN总线接口,给出了硬件接口设计原理图以及软件对其操作时的注意事项,并简要的说明了硬件设计原理;详细的介绍了以S3C2410为主节点的应用层通信协议的软件设计思路,并给出了软件处理流程。采用该方案扩展的CAN总线接口已经应用到自主开发的HMI当中,在工业环境下利用CAN接口对HMI进行通信测试,误码率和传输速率均可以满足工业通信的要求,证明了该设计方案的可行性。
this paper introduced the method of expanding CAN bus interface for ARM chip -S3C2410 by SPI interface, given the hardware design circuit of this interface and the notice of software opreation, simply explained the design principle; detailed explained the software design solution about host node base on S3C2410 and the communication protocol of application layer. This solution has been applied to independent designed HMI. In industry environment, tested the interface of this HMI, error code proportion and communication velocity is satisfied with requires of industry communication, this design solution is feasible by the tested result.