摘要:USB是通用串行總線(Universal Serial Bus)的簡稱,是一種應用在計算機領域的新型接口技術(也越來越多地應用于嵌入式便攜設備),是當前最流行的接口技術之一。USB以其卓越的易用性、穩定性、兼容性、擴展性、完備性、網絡性和低功耗等諸多優點得到了迅速發展和廣泛的應用。
本畢業設計在對USB接口技術原理進行深入的理解的基礎上,通過對一套教學演示用傳感器套件產品的串口接口改進成USB接口的過程,探討USB接口技術運用到實際設計過程當中的一種普遍方法。采用PIC16F690控制CH372接口芯片實現USB的批量傳輸和中斷傳輸,編寫基于VC的PC端配套軟件讀寫單片機數據并顯示來實現產品的各項功能。
論文包括USB原理介紹,CH372接口芯片的使用,USB設備的軟硬件設計以及PC端程序編寫思路。對USB接口開發或者對原有設備進行USB升級有一定的作用。
關鍵詞:通用串行總線;USB PIC16F690;接口芯片;CH372
Abstract:Universal Serial Bus (USB) is specified to be an industry-standard extension to the PC architecture with a focus on PC peripherals that enable consumer and business applications. Now, because of the architecture of the USB: Ease-of-use, Low-cost, Multiple Peripherals and Full backward compatibility, USB is full used in the development of PC peripherals.
This graduation design develops the USB port for a kind of teaching product what is used for showing sensors and doing experiment for students in stand of COM port. It’s showed a widespread method of developing the USB port. After having studied the Universal Serial Bus Specification deeply, I have designed this project. The Microchip PIC16F690 controls the USB device IC CH372 to bulk and interrupt Transactions. At the end of design, I programmed a application software with VC++ 6.0 to show the result of sensors and experiment.
This thesis includes Universal Serial Bus Specification, method of CH372, hardware and firmware programmer and the way of developing an application. It is useful for design a USB device or develops the existence device with USB.
Keywords:Universal Serial Bus;USB; PIC16F690;CH372