以太網和CAN總線應用廣泛,但由于其通信協(xié)議不同,兩種總線器件間無法進行數(shù)據(jù)通信,因此,設計了基于CP2200與C8051F040的以太網總線與CAN總線接口轉換電路,并給出部分相關硬件電路與軟件設計分析。在保證數(shù)據(jù)完整和協(xié)議可靠的前提下,通過握手協(xié)議和簡化的以太網協(xié)議,不僅實現(xiàn)了以太網數(shù)據(jù)與CAN數(shù)據(jù)的轉發(fā),同時還順利的解決了以太網的高速性與CAN的低速率沖突,以及兩者數(shù)據(jù)包之間的大小不同的矛盾。
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)編碼成信號,通過絕緣層傳輸?shù)搅硪粋€器件.接收器件解碼,并驅動I2C總線到適當?shù)拇_邏輯狀態(tài).主要用在絕緣的I2C, SMBus和PMBus 接口,絕緣電源,以太網供電和正到負電源通信.本文介紹了LTC4310主要特性,典型應用以及多種應用電路框圖.