以太網和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的炮塔方位角測試系統的設計方案,給出測試系統的各個模塊軟硬件設計。炮塔方位角測試系統集數據采集,數據傳輸和數據顯示等功能于一體,實現了炮塔方位角裝置的離線檢測。系統軟件采用C51編寫,對單片機進行有效電源管理,保證了系統的穩定性,可靠性。
Abstract:
This paper puts forwards a design of artillery position system based on C8051f040,describes all modules hardware and software design of measurement system.The system has the function of information collection,transmission,and display.It can measure artillery position system in offline.The system software using C51can manage the power of single chip microcomputer,guarantee the stability,reliability.