以太網(wǎng)和CAN總線應(yīng)用廣泛,但由于其通信協(xié)議不同,兩種總線器件間無(wú)法進(jìn)行數(shù)據(jù)通信,因此,設(shè)計(jì)了基于CP2200與c8051f040的以太網(wǎng)總線與CAN總線接口轉(zhuǎn)換電路,并給出部分相關(guān)硬件電路與軟件設(shè)計(jì)分析。在保證數(shù)據(jù)完整和協(xié)議可靠的前提下,通過(guò)握手協(xié)議和簡(jiǎn)化的以太網(wǎng)協(xié)議,不僅實(shí)現(xiàn)了以太網(wǎng)數(shù)據(jù)與CAN數(shù)據(jù)的轉(zhuǎn)發(fā),同時(shí)還順利的解決了以太網(wǎng)的高速性與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.
提出一種基于c8051f040的炮塔方位角測(cè)試系統(tǒng)的設(shè)計(jì)方案,給出測(cè)試系統(tǒng)的各個(gè)模塊軟硬件設(shè)計(jì)。炮塔方位角測(cè)試系統(tǒng)集數(shù)據(jù)采集,數(shù)據(jù)傳輸和數(shù)據(jù)顯示等功能于一體,實(shí)現(xiàn)了炮塔方位角裝置的離線檢測(cè)。系統(tǒng)軟件采用C51編寫,對(duì)單片機(jī)進(jìn)行有效電源管理,保證了系統(tǒng)的穩(wěn)定性,可靠性。
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.