基于STM32和μC/OS-Ⅱ的USB数据采集系统  被引量:14

USB data acquisition system based on STM32 and μC/OS-Ⅱ

在线阅读下载全文

作  者:田明[1] 徐平[1] 黄国辉[2] 姜周曙[2] 

机构地区:[1]杭州电子科技大学生仪学院,浙江杭州310018 [2]杭州电子科技大学自动化学院,浙江杭州310018

出  处:《机电工程》2012年第4期482-485,共4页Journal of Mechanical & Electrical Engineering

摘  要:为了满足对数据采集系统对高性能的需求,介绍了一种快速可靠的数据采集系统。该系统采用了Cortex-M3架构的ARM微处理器STM32作为基础,根据集成的USB接口模块的特点,设计了基于通信设备类(CDC)的USB通信模块;然后移植μC/OS-Ⅱ实时操作系统进行了任务调度,并采用信号量和邮箱进行了数据采集和USB发送任务之间的通信;再利用ST公司提供的驱动程序,实现了以USB设备枚举为虚拟串口,达到PC机可以按通用串行总线(COM)方式访问USB端口的目的。实际测试结果表明,该数据采集系统处理传输速度快、数据可靠性高,综合性能显著。Aiming at meeting the high performance requirements,the design and realization of a kind of fast and reliable acquisition data system was introduced.ARM microprocessor STM32,which is in the frame of the Cortex-M3,was the foundation.According to the USB interface module's characteristics,USB communication was designed,based on the communication equipment class(CDC).Then the real-time operating system μC/OS-Ⅱ was transplanted to be carried out the task scheduling,at the same time,the communication signal and the email was served for communication between data collection and USB sending task.With the driver provided by ST Company,USB device was recognized as a virtual serial port,so as USB port can be visited by a PC in the way of the universal serial bus(COM).The test results indicate that,the system has the advantages with processing and transmission speed fast and data high reliable,the system's comprehensive performance is significant.

关 键 词:STM32 μC/OS-Ⅱ USB 虚拟串口 

分 类 号:TP274[自动化与计算机技术—检测技术与自动化装置] TH39[自动化与计算机技术—控制科学与工程]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象