摘 要
通用串行总线(Universal Serial Bus)以其卓越的易用性、稳定性、兼容性、扩展性、完备性、网络性和低功耗等诸多优点,越来越多地应用于嵌入式设备,是当前最流行的接口技术之一。在工业自动化领域,USB逐渐取代COM接口,得到了迅速发展和广泛的应用。
本毕业设计在对USB接口技术进行深入理解的基础上,探讨一种能通过USB总线实现PC与单片机数据通讯的设备雏形,以模拟工业现场USB通讯中数据收发与简单处理的过程。设计采用微处理器PIC16F877控制CH372接口芯片实现USB的批量传输和中断传输,并涉及基于VC的PC端配套软件。
该论文包括USB原理介绍,CH372接口芯片的使用,USB设备的软硬件设计以及PC端程序编写思路。对USB接口开发或者对原有设备进行USB升级有一定的作用。
关键词:通用串行总线;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