摘要
该文通过分析目前PC机和CAN总线之间通信的"瓶颈"问题,从通信的实际效率角度出发,设计了基于微控制器ATmega8515的通用串口总线到控制器局域网总线的适配器.详细介绍了ATmega8515、USBN9603、SJA1000的性能特点及其在USB CAN适配器电路中的作用;重点论述了乒乓缓存法在适配器的固件编程上的运用;并介绍了适配器驱动程序的编程和实际应用情况.
An USB-to-CAN adapter using an ATmega8515 microcontroller is proposed based on analysis of the communication bottleneck between computers and the CAN bus and practical requirement of data transfer rate. Features and applications of ATmega8515, USBN9603 and SJA1000 in designing the adapter circuit are introduced in detail. The ping-pong buffering technique in the adapter firmware is then described. Finally, programming and applications of the device driver are discussed.
出处
《上海大学学报(自然科学版)》
CAS
CSCD
北大核心
2005年第2期127-132,共6页
Journal of Shanghai University:Natural Science Edition