Southwestuniversityofscienceandtechnology本科毕业设计(论文)题目名称:基于FPGA和USB2.0的音频数据采集系统设计学院名称专业名称学生姓名学号指导教师二〇一〇年六月西南科技大学本科生毕业论文I基于FPGA和USB2.0的音频数据采集系统设计摘要:在现代工业生产、控制和科学研究中,对各种现场数据进行采集、传输并处理已是必不可少的组成部分。本系统采用FPGA芯片作为系统主控制器,构建了一个基于USB接口的音频数据采集、传输和处理平台,通过音频数据采集模块将采集到的模拟音频信号转换为数字信号,并将其通过FPGA芯片和USB接口芯片处理、上传至PC机。本系统实现了将嵌入式系统的实时性、灵活性和PC机强大的数据存储、处理、显示功能相结合。因此,研究基于FPGA芯片和USB总线的数据采集系统具有较高的理论价值和广泛的应用前景。关键词:FPGAUSB2.0数据采集;传输处理AudioDataAcquisitionSystemBasedonFPGAandUSB2.0Abstract:Inmodernindustrialproduction,controlandscientificresearch,Itisessentialtocollect,transmitandprocessfielddata.ThissystemusesFPGAchipasthesystemmastercontroller,builtsanaudiodatacollection,transmissionandprocessingplatformbasedonUSBInterface,convertsthecollectedanalogaudiosignaltodigitalsignalthroughtheaudiodataacquisitionmodule,processesitthroughtheFPGAchipandUSBinterfacechip,anduploadstothePC.ThissystemcombinestheReal-timing,FlexibilityofEmbeddedandstoring,processingapowerfuldataanddisplayingimages.Inconsequence,itisahightheoreticalvalueandbroadapplicationprospectstoresearchtheaudiodataacquisitionsystembasedonFPGAandUSB2.0.Keywords:FPGAUSB2.0DataAcquisitionTransmissionProcessing西南科技大学本科生毕业论文II目录第1章绪论............................................................11.1课题背景和意义...................................................11.1.1课题的提出..................................................11.1.2研究的可行性................................................21.1.3数据采集系统方面的发展动态..................................31.2课题的主要研究内容和主要工作.....................................3第2章USB2.0协议规范概述...............................................42.1引言.............................................................42.2USB的体系结构....................................................42.2.1USB系统的描述..............................................42.2.2USB总线结构................................................42.2.3USB的电气及机械特性........................................52.3USB的数据传输....................................................62.3.1数据传输要素................................................62.3.2数据传输类型................................................72.4本章小结.........................................................8第3章系统总体方案......................................................9第4章音频数据采集系统的硬件设计.......................................104.1音频数据采集系统基本结构........................................104.2音频数据采集模块电路设计........................................104.2.1芯片选型...................................................114.2.2采集电路设计...............................................124.3FPGA外围硬件电路设计............................................164.3.1电源转换电路设计...........................................164.3.2I2S转换电路设计...........................................184.4USB接口电路设计.................................................20西南科技大学本科生毕业论文III4.4.1USB接口芯片选型...........................................204.4.2FX2特性简介...............................................204.4.3SlaveFIFO传输............................................224.4.4CY7C68013接口芯片外围电路设计.............................224.4.5模拟地与数字地.............................................244.4本章小结........................................................24第5章音频数据采集系统下位机软件设计...................................255.1TLV320AIC23芯片固件程序设计.....................................255.1.1I2C简介...................................................255.1.2TLV320AIC23配置...........................................265.2FPGA逻辑模块设计................................................285.2.1I2S接口模块设计...........................................285.2.2SlaveFIFO控制模块设计....................................305.3USB接口芯片固件程序设计.........................................325.3.1开发工具...................................................335.3.2固件框架...................................................335.3.3从属FIFO模式下固件程序设计................................345.4本章小结........................................................37第6章音频数据采集系统上位机软件设计...................................386.1USB驱动程序设计.................................................386.1.1WDM驱动程序体系...........................................386.1.2WDM驱动程序组成...........................................396.1.3USB设备驱动程序开发.......................................406.2上位PC机应用程序设计...........................................456.2.1PC机端软件设计............................................456.2.2PC机端软件实现............................................46第7章系统测试.........................................................507.1系统前期准备测试................................................507.1.1USB驱动程序安装测试.......................................507.1.2USB固件程序下载测试.......................................50西南科技大学本科生毕业论文IV7.1.2FPGA逻辑程序下载测试......................................517.2系统数据采集测试................................................527.3本章小结........................................................54致谢....................................................................55参考文献.................................................................56附录1音频采集模块原理图...............................................57附录2音频采集模块PCB图..............................