伺服数据采集系统的USB接口设计  被引量:2

USB Interface Design of Servo Data Acquisition System

在线阅读下载全文

作  者:代攀[1] 唐小琦[1] 宋宝[1] 邓宇书 

机构地区:[1]华中科技大学机械科学与工程学院,湖北武汉430074 [2]武汉华中数控股份有限公司,湖北武汉430074

出  处:《机械与电子》2013年第12期8-10,共3页Machinery & Electronics

基  金:高等学校博士学科点专项科研基金(新教师基金课题)资助项目(20090142120035);广东省部产学研重大专项资助项目(2012A090300012)

摘  要:为了满足伺服数据采集系统数据传输的需要,设计了一种USB接口方案。针对以STM32为主控芯片的伺服驱动器,根据其集成的USB模块的特点,采用虚拟串口传输方式,设计了基于通信设备类(CDC)的USB通信模块;根据伺服运行的特点,优化了USB模块在主程序中的集成方式;定义了与上位机通信的帧格式,并设计帧解析与响应的状态机。实际测试结果表明,方案能有效用于伺服数据采集,为伺服性能分析与调试提供了极大便利。Aiming at meeting the data transmission requirement for the servo data acquisition sys- tem,a kind of USB interface scheme was designed. In allusion to servo drivers which were built up with STM32 microprocessor,the interface was recognized as a virtual serial port and USB communication was designed based on the communication equipment class(CDC) when taking the STM32 intergraded USB module' s characteristics into account. The task schedulers of USB module were optimized considering the servo characteristics. Several kinds of frames were defined to communi- cate with the PC, furthermore, a related state ma- chine was realized. The test results indicate that, the scheme can be effectively used in the servo data collection and it is convenient to analyze and tune the property of servo drivers.

关 键 词:STM32 伺服 USB 固件设计 

分 类 号:TP29[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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