基于Compact PCI總線的多路信號(hào)采集卡
本文關(guān)鍵詞: Compact PCI總線 信號(hào)采集卡 PCI9030 VxWorks 驅(qū)動(dòng)程序 熱插拔 出處:《哈爾濱工程大學(xué)》2013年碩士論文 論文類型:學(xué)位論文
【摘要】:隨著工業(yè)控制技術(shù)的發(fā)展,傳統(tǒng)IPC控制模式越來越凸顯出弊端,不能滿足工業(yè)控制系統(tǒng)高速度,高強(qiáng)度和高可靠性的要求。Compact PCI總線的提出,徹底的解決了這一迫切的要求,Compact PCI總線技術(shù)兼容PCI總線技術(shù),在物理接口方面采用2mm的高密度氣孔插針,物理板卡采用成熟的歐洲機(jī)械3U和6U標(biāo)準(zhǔn),總線系統(tǒng)中加入熱插拔技術(shù),用戶開發(fā)時(shí),硬件僅需在原有的PCI設(shè)備卡的基礎(chǔ)上添加Compact PCI附加電路信號(hào),軟件無需修改即可運(yùn)行,特別是熱插拔技術(shù),,具有很大的應(yīng)用空間。 本論文以Compact PCI總線為基礎(chǔ)按項(xiàng)目具體要求,設(shè)計(jì)實(shí)現(xiàn)了多路信號(hào)采集卡,主要實(shí)現(xiàn)了4路CAN總線數(shù)據(jù)收發(fā),8路模擬量轉(zhuǎn)換,8路開關(guān)量輸入和8路開關(guān)量輸出的數(shù)據(jù)存儲(chǔ)和交換功能。采用集成芯片LPC2294微控器實(shí)現(xiàn)采集模塊的硬件電路,使用PCI9030橋接芯片以及電源管理芯片LTC1643L設(shè)計(jì)實(shí)現(xiàn)Compact PCI總線接口電路,采集系統(tǒng)與主機(jī)通過雙口RAM進(jìn)行數(shù)據(jù)的交互,外加擴(kuò)展存儲(chǔ)器,CAN總線收發(fā)器,光電耦合器,線性電源等器件實(shí)現(xiàn)系統(tǒng)的硬件設(shè)計(jì),主機(jī)操作系統(tǒng)選用硬實(shí)時(shí)操作系統(tǒng)VxWorks,主要基于本系統(tǒng)的應(yīng)用環(huán)境,要求較高的實(shí)時(shí)性和可靠性。軟件設(shè)計(jì)上采用分層的框架形式,盡量減小模塊間的耦合,主要有ARM采集程序,VxWorks下Compact PCI總線的驅(qū)動(dòng)程序,系統(tǒng)運(yùn)行過程中,充分考慮了二者的同步,采用類似于信號(hào)量的方式,設(shè)計(jì)同步數(shù)據(jù)格式,劃分內(nèi)存布局,編寫同步程序,完成系統(tǒng)軟件的設(shè)計(jì)。 在設(shè)計(jì)硬件原理圖和PCB布線后,經(jīng)過多次調(diào)試,分析不斷地修改原理圖和數(shù)據(jù)參數(shù),最終在硬件上實(shí)現(xiàn)系統(tǒng)的功能,驅(qū)動(dòng)程序的開發(fā)涉及操作系統(tǒng)知識(shí)以及硬件原理,也是本系統(tǒng)最難的,VxWorks操作系統(tǒng)開發(fā)資料稀少,而且閉源,最后先在Windows下實(shí)現(xiàn)驅(qū)動(dòng),熟悉驅(qū)動(dòng)程序結(jié)構(gòu),經(jīng)過多次調(diào)試和修改后,最終在VxWorks下編寫出Compact PCI總線的驅(qū)動(dòng)程序,完成系統(tǒng)的功能。
[Abstract]:With the development of industrial control technology, the traditional IPC control mode more and more highlights the drawbacks, which can not meet the high speed of industrial control system. The requirement of high strength and high reliability. Compact PCI bus is proposed, which solves the urgent requirement that compact PCI bus technology is compatible with PCI bus technology. In the aspect of physical interface, the high density air hole pin of 2 mm is adopted. The physical board card adopts the mature European mechanical 3U and 6U standards. The hot swapping technology is added to the bus system, and the user develops it. The hardware only need to add the Compact PCI additional circuit signal to the original PCI device card, and the software can run without modification, especially the hot-plug technology, so it has great application space. On the basis of Compact PCI bus, this paper designs and implements a multi-channel signal acquisition card, which mainly realizes 8-channel analog data conversion of four CAN bus data transceivers and transceivers. The data storage and exchange function of 8-way switch quantity input and 8-way switch quantity output. The hardware circuit of acquisition module is realized by integrated chip LPC2294 microcontroller. The interface circuit of Compact PCI bus is designed by using PCI9030 bridge chip and power management chip LTC1643L. The acquisition system interacts with the host through dual-port RAM, and the extended memory can bus transceiver, photocoupler, linear power supply and other devices to achieve the hardware design of the system. The host operating system adopts the hard real-time operating system VxWorkswhich is mainly based on the application environment of the system and requires high real-time and reliability. The software design adopts a layered framework form. As far as possible to reduce the coupling between modules, the main ARM acquisition program VxWorks Compact PCI bus driver, the system running process, the full consideration of the synchronization between the two. The synchronous data format is designed, the memory layout is divided, the synchronous program is written, and the system software is designed in a similar way to semaphore. After designing the hardware schematic diagram and PCB wiring, after many debugging, we analyze and modify the schematic diagram and data parameters constantly, finally realize the function of the system on the hardware. Driver development involves operating system knowledge and hardware principle, and is the most difficult VxWorks operating system development data, and closed source. Finally, the driver is realized under Windows, familiar with the structure of the driver, after many debugging and modification, finally the driver of Compact PCI bus is written in VxWorks. Complete the function of the system.
【學(xué)位授予單位】:哈爾濱工程大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2013
【分類號(hào)】:TP274.2;TP336
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 李蒙,舒云星;JTAG口及其對(duì)Flash的在線編程[J];單片機(jī)與嵌入式系統(tǒng)應(yīng)用;2003年06期
2 劉勇,佟為明,林景波;基于WinDriver的PCI CAN板卡Windows驅(qū)動(dòng)程序開發(fā)[J];低壓電器;2005年09期
3 張?jiān)ラ?董磊;VxWorks的PCI配置方法和應(yīng)用實(shí)例[J];電子與電腦;2005年Z1期
4 張蔚,徐華,丁學(xué)文,金大海;CAN總線在機(jī)車監(jiān)控系統(tǒng)中的應(yīng)用[J];電子工程師;2003年04期
5 黃迅,孫政順;利用WinDriver開發(fā)PCI設(shè)備驅(qū)動(dòng)程序[J];電子技術(shù)應(yīng)用;2001年03期
6 劉鑫 ,周金蓮;CompactPCI總線工控機(jī)技術(shù)的現(xiàn)狀與應(yīng)用[J];電子技術(shù)應(yīng)用;2002年07期
7 于世江,崔紅娟,楊帆;CompactPCI-高性能電信計(jì)算機(jī)平臺(tái)[J];電子質(zhì)量;2002年11期
8 陳進(jìn),申峰;CompactPCI技術(shù)特點(diǎn)與發(fā)展[J];廣東通信技術(shù);2003年10期
9 張?jiān)?鄒程帥;張帥;宋鵬;;基于VxWorks的PCI總線多功能數(shù)據(jù)采集卡驅(qū)動(dòng)開發(fā)[J];電子設(shè)計(jì)工程;2012年12期
10 何禮;金雷;;基于CPCI平臺(tái)的熱插拔技術(shù)及實(shí)現(xiàn)[J];工業(yè)控制計(jì)算機(jī);2007年08期
本文編號(hào):1478277
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1478277.html