以太網和CAN總線應用廣泛,但由于其通信協議不同,兩種總線器件間無法進行數據通信,因此,設計了基于CP2200與C8051F040的以太網總線與CAN總線接口轉換電路,并給出部分相關硬件電路與軟件設計分析。在保證數據完整和協議可靠的前提下,通過握手協議和簡化的以太網協議,不僅實現了以太網數據與CAN數據的轉發(fā),同時還順利的解決了以太網的高速性與CAN的低速率沖突,以及兩者數據包之間的大小不同的矛盾。
Abstract: In the development of actual application, Ethernet and CAN bus are used very extensively. Owing to its various communication protocols, the communicating between two kinds of bus device can’t be carried out. Therefore, in order to solve this problem, the Ethernet-CAN bus interface circuit based on CP2200 and C8051F040 was designed in this paper, and part of the related hardware circuit and software design analysis were given. On the condition of data’s integrity and protocols’reliability, through the handshaking protocols and the simplified the Ethernet protocol, not only the data switching between CAN and Ethernet was realized, but also the differ in velocity and packet size was solved.
Linear 公司的LTC4310是絕緣的雙向I2C總線通信器件,每個器件可把I2C邏輯狀態(tài)編碼成信號,通過絕緣層傳輸到另一個器件.接收器件解碼,并驅動I2C總線到適當的確邏輯狀態(tài).主要用在絕緣的I2C, SMBus和PMBus 接口,絕緣電源,以太網供電和正到負電源通信.本文介紹了LTC4310主要特性,典型應用以及多種應用電路框圖.
在開放式數控系統(tǒng)結構模型的基礎上,研究了基于ISA總線的DSP通信控制原理。采用中斷方式完成了PC機和DSP之間的通信。介紹了以DriverWorks為工具開發(fā)ISA設備WDM驅動程序的方法,探討了中斷處理、驅動程序與應用程序之間的通信,簡要說明了驅動程序的安裝與調試。通過調試,系統(tǒng)設計運行穩(wěn)定。
Abstract:
The ISA bus and DSP correspondence control principle is investigated in the basis of the existing open architecture numerical control system.The interrupt method is used to realize the communication between PC and DSP based on the ISA bus.The methods of WDM driver exploitation for ISA device using Driver Works are introduced.The main process of driver program and the keys such as handle interrupt and the communication between the drivers and application are presented.And how to debug and install the drive is explained.