基于帶USB接口PIC單片機的應用設計
本文關鍵詞:基于帶USB接口PIC單片機的應用設計 出處:《北方工業(yè)大學》2012年碩士論文 論文類型:學位論文
更多相關文章: USB HID PIC單片機 VC++6.0
【摘要】:隨著信息技術的發(fā)展和個人計算機的普及,外圍設備與計算機的通訊變得日益重要。借助于計算機這個強大的平臺,許多產(chǎn)品得到了極大地支持。連接簡便、傳輸速度快并且支持熱插拔的USB接口是計算機通訊的主要接口。在USB高速發(fā)展的今天,具有這種接口的多少已成為衡量計算機配置高低的一項指標。同時,外圍設備是否支持USB接口,也在某種程度上反映了其技術性能的優(yōu)劣。 本論文主要針對早期開發(fā)的儀器沒有USB接口,和設備連接難的問題,研究開發(fā)了通用USB接口。論文以普利門公司研制的肺功能機為對象,在原有儀器上增加USB接口,使其可以與計算機通訊。在此基礎上完成改進后的整體硬件設計和固件程序,以及上位機應用程序設計。使用戶既能在儀器上完成測試,也可以在計算機上操作、查看和打印測試結果,增加了儀器的可擴展性。 論文選擇PIC單片機18F67J50作為主控制器,重新設計了與原有液晶屏、微型打印機之間控制和數(shù)據(jù)通訊的接口。借助于Microchip公司的MPLAB集成開發(fā)環(huán)境,編寫完成了下位機固件程序。實現(xiàn)了USB控制傳輸端點接收數(shù)據(jù),HID類接口響應上位機操作命令,設置儀器狀態(tài),完成測試并通過中斷端點及時返回數(shù)據(jù)。在上位機應用程序開發(fā)中,首先使用HID類接口函數(shù)打開指定設備,并通過USB總線發(fā)送和接收數(shù)據(jù)。并且設計了上位機人機界面部分,包括實時測試曲線、打印測試報告等。 實驗結果表明,具有USB接口的肺功能機數(shù)據(jù)傳輸快速、準確,上位機應用程序可以實時顯示測試曲線,測試結果報告可以通過計算機外圍標準打印機輸出。從而使該系統(tǒng)滿足醫(yī)院測試報告的要求,市場應用前景廣闊。
[Abstract]:With the development of information technology and the popularization of personal computer, the communication between peripheral equipment and computer becomes more and more important. With the help of computer, many products have been greatly supported. The USB interface, which has high transmission speed and supports hot swapping, is the main interface for computer communication. Today, USB is developing at a high speed. The number of such interfaces has become an index to measure the configuration of computers. At the same time, whether the peripheral devices support the USB interface, to some extent, reflects the advantages and disadvantages of its technical performance. This paper mainly aims at the problem that the instrument developed in the early period has no USB interface and is difficult to connect with the equipment. A universal USB interface is developed. The paper takes the pulmonary function machine developed by Pullman Company as the object. The USB interface is added to the original instrument so that it can communicate with the computer. On this basis, the improved hardware design and firmware program are completed. And the application program design of the upper computer enables the user to complete the test on the instrument as well as to operate on the computer to view and print the test results, thus increasing the expansibility of the instrument. In this paper, the PIC single-chip computer 18F67J50 is selected as the main controller, and the original LCD screen is redesigned. Interface of control and data communication between micro printers. MPLAB integrated development environment of Microchip. The firmware program of the lower computer is completed and the USB control transmission endpoint receiving data and hid class interface is implemented in response to the operation command of the upper computer and the instrument state is set. Complete the test and return the data in time through the interrupt endpoint. In the development of the host computer application, the HID class interface function is first used to open the specified device. The data are sent and received by USB bus, and the man-machine interface of upper computer is designed, including real-time test curve, print test report and so on. The experimental results show that the data transmission of lung function machine with USB interface is fast and accurate, and the upper computer application can display the test curve in real time. The test result report can be outputted by computer peripheral standard printer, which makes the system meet the requirements of hospital test report, and has a broad market application prospect.
【學位授予單位】:北方工業(yè)大學
【學位級別】:碩士
【學位授予年份】:2012
【分類號】:TP368.12
【參考文獻】
相關期刊論文 前7條
1 扶文樹;何軍;陸信如;;USB HID數(shù)據(jù)通信接口的設計與實現(xiàn)[J];工業(yè)控制計算機;2009年02期
2 張巍;鄭建彬;;基于VC++實現(xiàn)在線簽名認證系統(tǒng)與USB的通信[J];計算機與數(shù)字工程;2007年10期
3 葉君耀;劉克寧;;加密存儲設備驅(qū)動程序的優(yōu)化設計[J];軟件導刊;2010年02期
4 魏德仙;肺功能儀數(shù)據(jù)采集與數(shù)據(jù)處理系統(tǒng)研究[J];微計算機信息;2004年02期
5 錢宇紅;;人機接口類型USB設備的程序設計[J];微計算機信息;2010年36期
6 陽文學;;VC++對話框程序打印及打印預覽的實現(xiàn)[J];湖北三峽職業(yè)技術學院學報;2006年01期
7 鄭勁平;肺功能儀檢測原理與常用儀器[J];中國醫(yī)療器械雜志;1999年05期
相關碩士學位論文 前3條
1 辛宇;USB接口電路的設計與實現(xiàn)——發(fā)射端的設計[D];電子科技大學;2003年
2 張德云;串行總線系統(tǒng)結構的研究與USB應用[D];合肥工業(yè)大學;2005年
3 沈高強;基于USB的數(shù)據(jù)采集系統(tǒng)的設計與實現(xiàn)[D];浙江工業(yè)大學;2009年
,本文編號:1388353
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1388353.html