预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共64页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

基于单片机和USB接口的数据采集系统设计 XX大学毕业设计(论文) PAGEVI PAGEVII 毕业设计论文 基于单片机和USB接口的数据采集系统设计 摘要 通用串行总线USB(UniversalSerialBus)是一种新型的微机总线接口规范。随着客户对系统数据采集速度要求的不断提高,USB以其使用方便、易于扩展、速度快等优点而越来越多的应用于数据采集系统中。 本文介绍了一种基于USB总线的数据采集系统的设计方法,采用PHILIPS公司的USB接口芯片PDIUSBD12与单片机AT89C51进行通信,并和PC机通信。该系统用传统的USB总线取代了RS232串行总线,通过对USB协议和设备构架的充分理解,对以单片机89C51和USB接口芯片PDIUSBD12为主的数据采集系统进行了硬件设计和软件编程,并在此设计的基础上给出相应的原理图。 硬件设计主要解决的是PDIUSBD12和ADC0809与单片机之间的接口电路问题,软件编程大致分为三部分:一是为满足D12在USB上的最大传输速率而编写的固件程序;二是在PC机中的Windows2000工作环境下编写USB设备驱动程序;三是充分了解D12的主要功能特点,并编写出应用程序。通过该数据采集系统,我们可以对USB协议有很深刻的理解,对D12接口芯片有很熟练的应用,能更好领悟USB接口的优势。 关键词:单片机;USB;数据采集;固件 DesignofDataAcquisitionSystemBasedonSingleChipComputerandUSBInterface Abstract UniversalSerialBusisanewspecificationformicrocomputerbusinterface.Withthecontinuingadvanceoftheclients'demandforthespeedofadatacollectionsystem,USBismoreandmorewidelyusedindatacollectionsystemforitsadvantagessuchasconvenience,expandingportwitheaseandhighspeedetc. ThispaperpresentsaUSB-baseddataacquisitionsystemdesignmethods,PHILIPScompaniesusingtheUSBinterfacechipwithPDIUSBD12ProgressiveAT89C51OKcommunication,andcommunicationandPC.ThesystemusingtraditionalUSBreplacetheRS232serialbus,ThroughtheUSBframeworkagreementandequipmentwiththefullunderstanding,rightto89C51microcontrollerandUSBinterfacechipPDIUSBD12-baseddataacquisitionsystemforthehardwarepiecesofsoftwaredesignandprogramming,andinthisdesignisgivenonthebasisofthecorrespondingdiagram. ThemainsolutionofHardwaredesignistheConnectionbetweenPDIUSBD12andADC0809withtheinterfacebetweenthemicrocontrollercircuit,Thesoftwareprogrammemainlyincludes:thefirewarecodeinneedofD12'smaximumtransmissionrate;USBdevicedriverandclientapplicationunderthecircustanceofWin2000operationsystemincomputer.Afterthisdatacollectionsystem,wecanunderstandtheUSBprotocolprofoundlyandapplytheinterfacechip-PDIUSBDI2proficiently.Inall,theadvantagesofthisinterfacetechniquemayhelpstoyourdesignarrangement. Keywords:MCU;USB;datacollection;firmware