WH5-2FF電源模塊,1X00416H01配置手冊
接口和增強型HPI接口。對于C5416和C5420DSP器件,它們的主機接口為增強型主機接口。標準HPI接口是一個8位總線接口,通過2個8位字節(jié)組合在一起形成1個16位字節(jié)。增強型HPI接口分8位和16位兩種。8位增強型主機接口和標準HPI接口操作時序一樣,主要區(qū)別在于標準型只能訪問2 KB專用RAM,而增強型可以訪問DSP的整個RAM區(qū)。16位增強型HPI接口采用16位總線,只要一個主機操作就能完成訪問操作。
WH5-2FF電源模塊,1X00416H01配置手冊HPI硬件連線
HMS30C7202與TMS320C5416接口電路如圖3所示。系統(tǒng)將HPI接口所有控制寄存器、地址寄存器、數(shù)據(jù)寄存器統(tǒng)一編址,映射到HMS30C7202物理地址0X0C000000開始的I/O內(nèi)存空間。
利用地址線RA[3:0]產(chǎn)生HPI訪問所需的控制信號。A0與A1決定訪問寄存器類型。A2決定訪問的是第一個字節(jié)還是第二個字節(jié):A2=0時,表示寫入的數(shù)據(jù)為第一個字節(jié);A2=1時,表示寫入的數(shù)據(jù)為第二個字節(jié)。在HPI-8中所有地址線和控制線是在HDS1和HDS2的下降沿采樣,而不是由HR/W決定,因此HR/W通過地址線A3表示當前操作是讀還是寫,而數(shù)據(jù)鎖存信號由nRCS3和nRW0相與后共同產(chǎn)生。KSCAN[2]設置為HMS30C7202的PORTA中斷輸入腳,DSP通過中斷方式與Linux底層HPI驅動程序通信。
3 ARM和DSP的通信接口驅動程序設計
Linux是Unix操作系統(tǒng)的一種變種。在Linux下編寫驅動程序的原理和思想完全類似于其他的Unix系統(tǒng),但它和DOS或Window環(huán)境下的驅動程序有很大的區(qū)別。Linux驅動程序可以編譯進內(nèi)核,也可以模塊形式動態(tài)地加入和卸載。Linux的這種特點可根據(jù)目標系統(tǒng)裁減內(nèi)核,更適合于嵌入式系統(tǒng)。
(1) Linux驅動程序基本原理
在Linux中所有設備分為字符設備、塊設備和網(wǎng)絡設備三種,所有設備都看成普通文件,因此可以通過用操縱普通文件相同的系統(tǒng)調(diào)用來打開、關閉、讀取和寫入設備。系統(tǒng)中每個設備都用一種設備特殊文件來表示。
least one order of magnitude higher than the port bandwidth) and is connected with a switch. The encapsulated data packets dropped from the port enter the switch through the backplane bus. It is exchanged through direct forwarding and store and forward.
Switches are more cost-effective. In the past, the high price of household switches was the main reason why we chose hubs. With the continuous development of switching technology in recent years, the price of Ethernet switch has dropped sharply. Up to now, the cost performance of switch has far exceeded that of hub. The demand for information within the expressway and providing humanized travel services is also higher and higher. Therefore, the innovation and development of expressway electromechanical system construction is becoming more and more important. For the construction of electromechanical system of expressway, it is mainly divided into three parts: charging, monitoring and communication.