1、基于 FPGA技术实现 USB 通信软件 【摘要】【摘要】本设计能实现的功能:PC 主机应用程序通过 USB 接口模块,对 FPGA 系统 进行控制,以实现语音信号的采集、存储、回放,并且 FPGA 系统亦可通过 USB 接口模 块将相关的状态信息回传给 PC 主机应用程序。本设计软件结构由四部分组成:PC 主机应 用程序,USB 接口模块驱动程序,USB 接口模块固件程序,FPGA 系统控制程序。 【关键词】【关键词】应用程序,USB,FPGA,语音 USB Communication Based on FPGA Software Abstract: This Design can impl
2、ement the following functions: PC Application Program can control the FPGA-System through the USB-Interface module, in order to sample, store and replay the sound signal , and also FPGA-System can send back the status signal to the PC Application Program. The software structure of this design consis
3、t of 4 parts: PC Application Program, USB-Interface module Driver program, USB-interface module Firm program, FPGA-System control program. Key Words: Application Program, USB,FPGA, Sound 目 录 第一章 绪论 1 1.1 课题背景及意义 . 1 1.2 国内外相关研究状况 . 2 1.3 USB 的特点 3 1.4 系统软件设计要求 . 4 1.5 系统基本方案 . 4 1.6 软件设计主要内容 . 4 第二章
4、 软件实现方案选择论证 . 5 2.1 PC 主机应用程序设计实现方案 . 5 2.2 WINDOWS 下 USB 设备驱动程序的设计实现方案 5 2.3 USB 设备固件设计实现方案 5 2.4 FPGA 程序设计实现方案 . 6 第三章 PC 主机应用程序设计 7 3.1 开发环境 VC+ 6.0 简介 7 3.2 API 函数 简介 . 7 3.3 应用程序控制界面设计 . 7 3.4 应用程序设计 . 8 3.4.1 查找设备 10 3.4.2 打开设备 12 3.4.3 读写 USB 设备 12 3.4.4 关闭通信 13 第四章 USB 接口模块驱动程序设计 . 14 4.1 驱动程序开发 14 4.1.1 WDM 驱动程序的分层结构 . 14 4.1.2 USB 驱动程序的 WDM 结构 . 16 第五章 USB 接口模块固件设计 18 5.1 PDIUSBD12 与 AT89S52 特性概述 18 5.1.1 PDIUSBD12 特性概要 . 18 5.1.2 AT89S52 特性概要 18 5.2 USB 通信协议重要概念概述 . 19 5.2