摘 要:以 EZ-USB FX2 作为 USB 接口芯片设计一种数据采集系统。该系统应用 EZ-USB FX2 芯片构建单片机和主机的数据管道,接口符合 USB2.0 协议。详细介绍该系统的硬件组成和软件设计,包括 FX2 的固件设计和主机用户程序。EZ-USB FX2 芯片工作在从属 FIFO 方式下,通过适当的配置可与单片机方便地进行连接,单片机可以像访问外部存储器一样访问 FX2 的端点。主机应用程序通过 USB 接口向设备发送相应的命令来控制采样过程。该系统硬件扩展方便、编程简单。 关键词:FX2;Slave FIFO;USB;数据采集 中图分类号:TP334 文献标识码:B 文章编号:1004-373X(2025)04-065-03 Design of Data Acquisition System Based on Single Chip Computer and USB Interface LI Guozhu (Xi′an University of Arts and Science,Xi′an,710065,China) Abstract:A data acquisition system is designed based on the USB interface chip EZ-USB FX2.The system uses EZ-USB FX2 chip to form the data pipeline between microprocessor and computer.The interface conforms to the USB2.0 protocol.EZ - USB FX2 chip works in the slave FIFO way.The chip can be connected with microprocessor conveniently by suitable configure.The microprocessor can access to FX2′s endpoint by the same way as access to external memory.The user′s application program controls the sampling process through USB interface by transmission corresponding command to the equipment.To the system,the expansion of hardware is convenient and the programming is simple.In this paper,both hardware design and software design of the system are discussed in great detail,including the firmware of FX2 and user′s application program of the computer side. Keywords:FX2;Slave FIFO;USB;data acquisition 在工业生产和科学技术讨论中,常利用 PC 或工控机对各种数据进行采集,以获得所需要的控制信息和实验数据。传统的数据采集系统多以 ISA,EISA 或 PCI 插卡的形式完成数据传输,这种方式存在安装麻烦,受计算机插槽数量、地址、中断资源...