【正文】
外文資料 The Implementation of CAN Bus Adapter Based on CH372 Abstract To implement quick and reliable munication between CAN bus work and puter, we propose a sort of design method of CAN bus work adapter based on CH372, and mainly introduce the concrete implementations of hardware circuit and software program in this article. This system adopts the modularization design, and a new USB interface chip CH372 is adopted in the USB munication module, which can simplify the design of software bus controller is adopted in the CAN bus module. The system can effectively implement the data transfer between CAN bus and puter with high speed. Keywords: USB bus, CAN bus, CH372, SJA1000 1. Introduction In the CAN bus measurement and control work, the work adapter assumes the important task of data transfer between monitor unit and lower puter. The design of traditional adapter is generally based on ISA bus and EISA bus,which has not fulfilled the need of highspeed data transfer nowadays. Though the work card based on PCI bus has quick transfer speed, but it still has many disadvantages and deficiencies such as plex agreement, system resource occupation, nonsupport hot swap and expensive price. Though RS232 has convenient swap, but its transfer speed is too low, and its maximum munication speed is only 20Kbps. USB bus supports hot swap, and it is easy to be extended,and it has quick speed, so it is the ideal choice to design CAN bus adapter. However, past USB interface chips always adopt PDIUSBD12 and USBN903, and their software designs were plex. In this design, we adopt new USB interface chip CH372 with interior integrated USB agreement, which could make program design and implementation easier, and users could put their energies on the design of application. The adapter designed in this article is actually applied in the product updating project of Dontai Samp。T Development Co. Ltd. The practice proved that the design could enhance the munication speed, its installation and maintenance were convenient and it had extensive application future in the industrial control domain. 2. The implementation of adapter hardware circuit Total structure of hardware circuit The hardware circuit of the adapter designed in this article adopts the modularization design including main controller module, USB bus munication module and CAN bus munication module. The main controller module adopts AT89C51, and it mainly plete the initialization works of CH372 and SJA1000, and the munication tasks of USB bus and CAN bus. Hardware design of USB munication module The hardware circuit of USB bus munication module adopts newstyle agreement chip CH372,