摘 要
通用串行總線(Universal Serial Bus)以其卓越的易用性、穩(wěn)定性、兼容性、擴(kuò)展性、完備性、網(wǎng)絡(luò)性和低功耗等諸多優(yōu)點(diǎn),越來(lái)越多地應(yīng)用于嵌入式設(shè)備,是當(dāng)前最流行的接口技術(shù)之一。在工業(yè)自動(dòng)化領(lǐng)域,USB逐漸取代COM接口,得到了迅速發(fā)展和廣泛的應(yīng)用。
本畢業(yè)設(shè)計(jì)在對(duì)USB接口技術(shù)進(jìn)行深入理解的基礎(chǔ)上,探討一種能通過(guò)USB總線實(shí)現(xiàn)PC與單片機(jī)數(shù)據(jù)通訊的設(shè)備雛形,以模擬工業(yè)現(xiàn)場(chǎng)USB通訊中數(shù)據(jù)收發(fā)與簡(jiǎn)單處理的過(guò)程。設(shè)計(jì)采用微處理器PIC16F877控制CH372接口芯片實(shí)現(xiàn)USB的批量傳輸和中斷傳輸,并涉及基于VC的PC端配套軟件。
該論文包括USB原理介紹,CH372接口芯片的使用,USB設(shè)備的軟硬件設(shè)計(jì)以及PC端程序編寫(xiě)思路。對(duì)USB接口開(kāi)發(fā)或者對(duì)原有設(shè)備進(jìn)行USB升級(jí)有一定的作用。
關(guān)鍵詞:通用串行總線;USB PIC16F877;接口芯片;CH372
Abstract
Universal Serial Bus (Universal Serial Bus) is more and more used in embedded devices for its remarkable ease of use, stability, compatibility, scalability, comprehensive, network and low power consumption, and many other advantages, At present, it is already one of the most popular interface technology. In the field of industrial automation, USB gradually replace COM interfaces, it is developing rapid with the wide application.
With in-depth understanding of the USB interface technology, the Graduation Design designs a equipment prototype that can make PC and MCU communicate through USB. This equipment prototype can simulate the USB data communication transceivers and simple handling process of the industrial scene. The Design used a PIC16F877 microprocessor to control CH372 that is a USB interface chips to achieve the bulk transmission and interrupt transmission, and involves the PC-based VC-matching software.
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; PIC16F877; CH372