In the communications system of railroad train, because of rapid transmission and high reliability, CAN bus obtains the widespread application. Firstly, this article briefly describes the origin and characteristic of CAN bus. Secondly an introduction of C8051F040 microcontroller unit and CAN controlled. 0 is narrated. Finally, it takes the FFR and C8051F040 as an example of communication. The communication program completes initialization, receiving and sending.%在铁路列车通信系统中,CAN总线通信以其传输速率快,可靠性高而得到广泛应用.本文首先简单介绍CAN总线的起源及特点,其次简要介绍C8051F040单片机及其内部芯片CAN2.0控制器,最后以柴油机控制单元FFR与C8051F040间的数据通信为例,编写CAN总线初始化程序、数据接收程序和数据发送程序.
展开▼