基于单片机和usb接口的数据采集系统设计.doc
上传人:天马****23 上传时间:2024-09-13 格式:DOC 页数:64 大小:2.6MB 金币:10 举报 版权申诉
预览加载中,请您耐心等待几秒...

基于单片机和usb接口的数据采集系统设计.doc

基于单片机和usb接口的数据采集系统设计.doc

预览

免费试读已结束,剩余 54 页请下载文档后查看

10 金币

下载此文档

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

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

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

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

基于单片机和USB接口的数据采集系统设计XX大学毕业设计(论文)PAGEVIPAGEVII毕业设计论文基于单片机和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;数据采集;固件DesignofDataAcquisitionSystemBasedonSingleChipComputerandUSBInterfaceAbstractUniversalSerialBusisanewspecificationformicrocomputerbusinterface.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