摘要
CAN总线是一种应用广泛的现场总线,文章简要讨论了CAN总线,介绍了CAN总线的主要技术特性及CAN器件的种类,在此基础上较为详细的介绍了CAN总线独立控制器SJA1000的基本原理,硬件电路以及基于SJA1000的CAN总线接口电路的软硬件设计方法,并且给出了CAN总线接口电路、SJA1000初始化流程图、接收及发送数据程序的框图。本文倾向于在设计SJA1000为基础的CAN节点上引导用户同时还提供典型的应用电路图和用于编程的流程图。
The CAN is a kind of field bus that is widely used, In this article, the main character of CAN bus is discussed and the basic principle of CAN bus stand alone controller SJA1000, the hardware and software design of CAN bus interface circuit based on SJA 1000 are introduced, also the flow chart of three important part of the software, initialization, sending data and receiving data-is given.