新唐科技(原華邦電子邏輯事業(yè)群),自2010年成功推出ARM® Cortex™-M0為內(nèi)核的32位單片機 - NuMicro™ 家族后,持續(xù)專注于新一代微控制器系列產(chǎn)品的開發(fā)。同時,32位單片機的發(fā)展前景備受各方矚目,在工業(yè)控制、消費電子、汽車電子、高速計算與通訊控制等應(yīng)用領(lǐng)域的推波助瀾下,32位單片機的成本和性價比展現(xiàn)令人期待的成長爆發(fā)力。2012年新唐再度大展身手,開發(fā)出多款新系列32位帶有 CAN BUS 設(shè)備的低功耗NUC130與NUC140系列單片機。
以太網(wǎng)和CAN總線應(yīng)用廣泛,但由于其通信協(xié)議不同,兩種總線器件間無法進行數(shù)據(jù)通信,因此,設(shè)計了基于CP2200與C8051F040的以太網(wǎng)總線與CAN總線接口轉(zhuǎn)換電路,并給出部分相關(guān)硬件電路與軟件設(shè)計分析。在保證數(shù)據(jù)完整和協(xié)議可靠的前提下,通過握手協(xié)議和簡化的以太網(wǎng)協(xié)議,不僅實現(xiàn)了以太網(wǎng)數(shù)據(jù)與CAN數(shù)據(jù)的轉(zhuǎn)發(fā),同時還順利的解決了以太網(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.
介紹一種基于CAN總線的牽引變電站自動化系統(tǒng)通訊規(guī)約的設(shè)計,CAN通訊規(guī)約采用標(biāo)準(zhǔn)幀,報文采用主動發(fā)送和發(fā)送查詢兩種處理形式。該設(shè)計在城市輕軌與地鐵牽引變電站中的應(yīng)用表明:可實現(xiàn)間隔層和通訊處理層的數(shù)據(jù)快速、可靠的交換,提高牽引變電站的安全性和穩(wěn)定性
。
Abstract:
This paper firstly presents a kind of design dealing with communicational protocol to the traction substation automation system based on CAN bus,and then comes up with the ideas that all frames of CAN communicational protocol should adopt the standard frame,and that messages be processed by two ways:sending initiatively and sending quiries.Subway and light rail application shows that the use of the CAN bus is possible to exchange data quickly and reliably between the layers of the middle and the communicational processing,hence to improve the safety and stability of traction substations.