摘要
通用串行总线USB((Universal Serial Bus)是一种新型的微机总线接口规范。随着客户对系统数据采集速度要求的不断提高,USB以其使用方便、易于扩展、速度快等优点而越来越多的应用于数据采集系统中。本文介绍了一种基于USB总线的数据采集系统的设计方法,采用南京沁恒电子公司的USB接口芯片CH372与单片机AT89C52进行通信,并和PC机通信而编制出友善的设备应用程序。该系统用传统的USB总线取代了RS232串行总线,通过对USB协议和设备构架的充分理解,对以单片机AT89C52和USB接口芯片CH372为核心的数据采集系统进行了硬件设计,并在此设计的基础上给出相应的电路原理图。本系统具有16路单端模拟输入、32路开关量(16路输入与16路输出)、16路8位DA、8路脉冲输入。硬件设计主要解决的是CH372、TLC549和TLC5620与单片机之间的接口电路问题;USB软件设计分为三部分:USB设备固件程序、设备驱动程序以及主机应用程序。
通过该数据采集系统,我们可以对USB协议有很深刻的理解,对CH372接口芯片有很熟练的应用,能更好领悟USB接口的优势。本系统充分继承了USB总线安装方便、高带宽、易扩展等优点,并且功能全面,简单易用。
关键词:USB总线;单片机;数据采集;
Abstract
Universal Serial Bus USB ((Universal Serial Bus) is a new type puter bus interface specification. Continuously improve with the requirements of customers on the system data acquisition speed, USB, with its easy to use, easy to expand and speed advantages of increasingly the more applied to the data acquisition system. This article describes the design of a USB bus-based data acquisition system, Qin Hang the USB interface chip CH372 SCM AT89C52 municate, and munication preparation friendly equipment and application of the system with a traditional USB bus instead of the RS232 serial bus, a full understanding of the USB protocol and device architecture, hardware data acquisition system as the core microcontroller AT89C52 and the USB interface chip CH372design, and the corresponding circuit diagram is given on the basis of this design. this system has 16 single-ended analog input, 32-way switch (16 inputs and 16 outputs), 16 channel 8 circuit DA 8 pulse input hardware design is the main solution is of CH372, the TLC549 and TLC5620 and microcontroller interface circuit between; USB software design is divided into three parts: a USB device firmware, device drivers and host applications.
Through the data acquisition system, we can of the USB protocol has a very deep understanding , For the CH372 interface chip is very skilled, able to prehend the advantages of the USB interface. The system is fully inherited
基于USB的数据采集系统的研究与设计 优秀硕士论文 来自淘豆网m.daumloan.com转载请标明出处.