基于带USB接口PIC单片机的应用设计
发布时间:2018-01-06 15:02
本文关键词:基于带USB接口PIC单片机的应用设计 出处:《北方工业大学》2012年硕士论文 论文类型:学位论文
更多相关文章: USB HID PIC单片机 VC++6.0
【摘要】:随着信息技术的发展和个人计算机的普及,外围设备与计算机的通讯变得日益重要。借助于计算机这个强大的平台,许多产品得到了极大地支持。连接简便、传输速度快并且支持热插拔的USB接口是计算机通讯的主要接口。在USB高速发展的今天,具有这种接口的多少已成为衡量计算机配置高低的一项指标。同时,外围设备是否支持USB接口,也在某种程度上反映了其技术性能的优劣。 本论文主要针对早期开发的仪器没有USB接口,和设备连接难的问题,研究开发了通用USB接口。论文以普利门公司研制的肺功能机为对象,在原有仪器上增加USB接口,使其可以与计算机通讯。在此基础上完成改进后的整体硬件设计和固件程序,以及上位机应用程序设计。使用户既能在仪器上完成测试,也可以在计算机上操作、查看和打印测试结果,增加了仪器的可扩展性。 论文选择PIC单片机18F67J50作为主控制器,重新设计了与原有液晶屏、微型打印机之间控制和数据通讯的接口。借助于Microchip公司的MPLAB集成开发环境,编写完成了下位机固件程序。实现了USB控制传输端点接收数据,HID类接口响应上位机操作命令,设置仪器状态,完成测试并通过中断端点及时返回数据。在上位机应用程序开发中,首先使用HID类接口函数打开指定设备,并通过USB总线发送和接收数据。并且设计了上位机人机界面部分,包括实时测试曲线、打印测试报告等。 实验结果表明,具有USB接口的肺功能机数据传输快速、准确,上位机应用程序可以实时显示测试曲线,测试结果报告可以通过计算机外围标准打印机输出。从而使该系统满足医院测试报告的要求,市场应用前景广阔。
[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.
【学位授予单位】:北方工业大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP368.12
【参考文献】
相关期刊论文 前7条
1 扶文树;何军;陆信如;;USB HID数据通信接口的设计与实现[J];工业控制计算机;2009年02期
2 张巍;郑建彬;;基于VC++实现在线签名认证系统与USB的通信[J];计算机与数字工程;2007年10期
3 叶君耀;刘克宁;;加密存储设备驱动程序的优化设计[J];软件导刊;2010年02期
4 魏德仙;肺功能仪数据采集与数据处理系统研究[J];微计算机信息;2004年02期
5 钱宇红;;人机接口类型USB设备的程序设计[J];微计算机信息;2010年36期
6 阳文学;;VC++对话框程序打印及打印预览的实现[J];湖北三峡职业技术学院学报;2006年01期
7 郑劲平;肺功能仪检测原理与常用仪器[J];中国医疗器械杂志;1999年05期
相关硕士学位论文 前3条
1 辛宇;USB接口电路的设计与实现——发射端的设计[D];电子科技大学;2003年
2 张德云;串行总线系统结构的研究与USB应用[D];合肥工业大学;2005年
3 沈高强;基于USB的数据采集系统的设计与实现[D];浙江工业大学;2009年
,本文编号:1388353
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/1388353.html