首页 | 本学科首页   官方微博 | 高级检索  
     

基于STM32和USB的多通道数据采集系统设计与实现
引用本文:屠晓伟,俞润超,杨庆华.基于STM32和USB的多通道数据采集系统设计与实现[J].自动化仪表,2020(5):84-87.
作者姓名:屠晓伟  俞润超  杨庆华
作者单位:上海大学机电工程与自动化学院
摘    要:意法半导体32位系列微控制器芯片作为高性能、低成本、低功耗的微控制器,在工业生产和自动化控制领域的应用十分广泛。但是随着技术的发展,其通用串行总线的传输速度已经相对较慢。为了使STM32的USB传输速率和性能有更进一步的提升,设计了一种由STM32控制USB通信接口的多通道数据采集系统。首先,该系统采用以STM32的增强型STM32F103为核心的控制电路,实现了10路通道的模拟/数字信号(A/D)数据的采集和转换。然后,利用STM32系统资源对EZ系列通用串行总线(EZ-USB)CY7C68013A的内部从属先进先出(FIFO)缓存器进行读写控制及数据传输处理。最后,数据的处理和显示通过由虚拟仪器(LabVIEW)设计的上位机程序实现。系统测试表明,STM32和EZ-USB组成的系统可以将STM32原有的USB传输速度提升两倍以上,并且采集的数据能在虚拟仪器上位机上实时显示。它可以使STM32更加快速、稳定地采集和处理数据,是一个适用性很强的数据采集系统。

关 键 词:多通道  数据采集  EZ-USB  STM32  LabVIEW  SLAVE  FIFO  人机接口  实时显示  CY7C68013A

Design and Implementation of Multi-Channel Data Acquisition System Based on STM32 and USB
TU Xiaowei,YU Runchao,YANG Qinghua.Design and Implementation of Multi-Channel Data Acquisition System Based on STM32 and USB[J].Process Automation Instrumentation,2020(5):84-87.
Authors:TU Xiaowei  YU Runchao  YANG Qinghua
Affiliation:(School of Mechanical Engineering and Automation,Shanghai University,Shanghai 200444,China)
Abstract:As a high-performance,low-cost,low-power microcontroller,STM32 is widely used in industrial production and automation control,but its universal serial bus(USB)transmission speed is relatively slow.In order to improve the USB transfer speed and performance of the STM32,a multi-channel data acquisition system that controls the USB communication interface of the STM32 is designed.The working principle,software and hardware design principles and test results are proposed.First,the system uses the STM32F103 to obtain 10-channel analog/digital(A/D)data acquisition and conversion,then,the STM32 system resource is used to read and write control and data transmission processing of the EZ-USB CY7C68013A internal slave first in first out(FIFO).Finally,the PC program implemented by virtual instrument LabVIEW achieves data processing and display.The system shows that the system consisting of STM32 and EZ-USB can increase the original USB transfer speed of the STM32 by more than two times and display it in real time on the virtual instrument.It can collect and process data more quickly and stably,which is a highly useful data acquisition system.
Keywords:Multi-channel  Data acquisition  EZ-USB  STM32  LabVIEW  Slave FIFO  Human machine interface  Real-time display  CY7C68013A
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号