基于帶USB接口PIC單片機(jī)的應(yīng)用設(shè)計(jì)
本文關(guān)鍵詞:基于帶USB接口PIC單片機(jī)的應(yīng)用設(shè)計(jì) 出處:《北方工業(yè)大學(xué)》2012年碩士論文 論文類型:學(xué)位論文
更多相關(guān)文章: USB HID PIC單片機(jī) VC++6.0
【摘要】:隨著信息技術(shù)的發(fā)展和個(gè)人計(jì)算機(jī)的普及,外圍設(shè)備與計(jì)算機(jī)的通訊變得日益重要。借助于計(jì)算機(jī)這個(gè)強(qiáng)大的平臺,許多產(chǎn)品得到了極大地支持。連接簡便、傳輸速度快并且支持熱插拔的USB接口是計(jì)算機(jī)通訊的主要接口。在USB高速發(fā)展的今天,具有這種接口的多少已成為衡量計(jì)算機(jī)配置高低的一項(xiàng)指標(biāo)。同時(shí),外圍設(shè)備是否支持USB接口,也在某種程度上反映了其技術(shù)性能的優(yōu)劣。 本論文主要針對早期開發(fā)的儀器沒有USB接口,和設(shè)備連接難的問題,研究開發(fā)了通用USB接口。論文以普利門公司研制的肺功能機(jī)為對象,在原有儀器上增加USB接口,使其可以與計(jì)算機(jī)通訊。在此基礎(chǔ)上完成改進(jìn)后的整體硬件設(shè)計(jì)和固件程序,以及上位機(jī)應(yīng)用程序設(shè)計(jì)。使用戶既能在儀器上完成測試,也可以在計(jì)算機(jī)上操作、查看和打印測試結(jié)果,增加了儀器的可擴(kuò)展性。 論文選擇PIC單片機(jī)18F67J50作為主控制器,重新設(shè)計(jì)了與原有液晶屏、微型打印機(jī)之間控制和數(shù)據(jù)通訊的接口。借助于Microchip公司的MPLAB集成開發(fā)環(huán)境,編寫完成了下位機(jī)固件程序。實(shí)現(xiàn)了USB控制傳輸端點(diǎn)接收數(shù)據(jù),HID類接口響應(yīng)上位機(jī)操作命令,設(shè)置儀器狀態(tài),完成測試并通過中斷端點(diǎn)及時(shí)返回?cái)?shù)據(jù)。在上位機(jī)應(yīng)用程序開發(fā)中,首先使用HID類接口函數(shù)打開指定設(shè)備,并通過USB總線發(fā)送和接收數(shù)據(jù)。并且設(shè)計(jì)了上位機(jī)人機(jī)界面部分,包括實(shí)時(shí)測試曲線、打印測試報(bào)告等。 實(shí)驗(yàn)結(jié)果表明,具有USB接口的肺功能機(jī)數(shù)據(jù)傳輸快速、準(zhǔn)確,上位機(jī)應(yīng)用程序可以實(shí)時(shí)顯示測試曲線,測試結(jié)果報(bào)告可以通過計(jì)算機(jī)外圍標(biāo)準(zhǔn)打印機(jī)輸出。從而使該系統(tǒng)滿足醫(yī)院測試報(bào)告的要求,市場應(yīng)用前景廣闊。
[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.
【學(xué)位授予單位】:北方工業(yè)大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2012
【分類號】:TP368.12
【參考文獻(xiàn)】
相關(guān)期刊論文 前7條
1 扶文樹;何軍;陸信如;;USB HID數(shù)據(jù)通信接口的設(shè)計(jì)與實(shí)現(xiàn)[J];工業(yè)控制計(jì)算機(jī);2009年02期
2 張巍;鄭建彬;;基于VC++實(shí)現(xiàn)在線簽名認(rèn)證系統(tǒng)與USB的通信[J];計(jì)算機(jī)與數(shù)字工程;2007年10期
3 葉君耀;劉克寧;;加密存儲設(shè)備驅(qū)動(dòng)程序的優(yōu)化設(shè)計(jì)[J];軟件導(dǎo)刊;2010年02期
4 魏德仙;肺功能儀數(shù)據(jù)采集與數(shù)據(jù)處理系統(tǒng)研究[J];微計(jì)算機(jī)信息;2004年02期
5 錢宇紅;;人機(jī)接口類型USB設(shè)備的程序設(shè)計(jì)[J];微計(jì)算機(jī)信息;2010年36期
6 陽文學(xué);;VC++對話框程序打印及打印預(yù)覽的實(shí)現(xiàn)[J];湖北三峽職業(yè)技術(shù)學(xué)院學(xué)報(bào);2006年01期
7 鄭勁平;肺功能儀檢測原理與常用儀器[J];中國醫(yī)療器械雜志;1999年05期
相關(guān)碩士學(xué)位論文 前3條
1 辛宇;USB接口電路的設(shè)計(jì)與實(shí)現(xiàn)——發(fā)射端的設(shè)計(jì)[D];電子科技大學(xué);2003年
2 張德云;串行總線系統(tǒng)結(jié)構(gòu)的研究與USB應(yīng)用[D];合肥工業(yè)大學(xué);2005年
3 沈高強(qiáng);基于USB的數(shù)據(jù)采集系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[D];浙江工業(yè)大學(xué);2009年
,本文編號:1388353
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1388353.html