以太網和CAN總線應用廣泛,但由于其通信協議不同,兩種總線器件間無法進行數據通信,因此,設計了基于CP2200與C8051F040的以太網總線與CAN總線接口轉換電路,并給出部分相關硬件電路與軟件設計分析。在保證數據完整和協議可靠的前提下,通過握手協議和簡化的以太網協議,不僅實現了以太網數據與CAN數據的轉發,同時還順利的解決了以太網的高速性與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.
標簽:
C8051F040
CAN
以太網
轉換
上傳時間:
2013-10-15
上傳用戶:Ants