摘要
为了给龙芯2H系统提供三路CAN接口,实现与其它系统的通信功能;设计实现了由PCI-E接口芯片CH368、CPLD和SJA1000组成的PCI-E转CAN驱动程序;介绍了Linux下PCI-E驱动程序的设计,简要分析了PCI-E转CAN的框架和驱动原理;在完成了Linux下的PCI-E转CAN驱动的开发后,通过与PC机的通信验证了驱动程序的正确性。
In order to provide three CAN interface for the system of Loongson 2H to connect with other systems. Therefore,a PCI-E to CAN driver which consists of PCI-E interface chip CH368,CPLD and SJA1000 is designed. This paper introduced design of driver program based on Linux and briefly analyzes the framework and driving principle of PCI-E to CAN. After completing development of the Linux PCIE to CAN driver,the correctness of the driver is verified by communication with a PC.
出处
《机电产品开发与创新》
2017年第5期122-124,共3页
Development & Innovation of Machinery & Electrical Products