USB接口的CDC&MSC复合设备设计与应用

蒲泽坤, 沈勇, 陈旅超

集成电路与嵌入式系统 ›› 2023, Vol. 23 ›› Issue (7) : 53-56.

PDF(1133 KB)
PDF(1133 KB)
集成电路与嵌入式系统 ›› 2023, Vol. 23 ›› Issue (7) : 53-56.
新器件新技术

USB接口的CDC&MSC复合设备设计与应用

  • 蒲泽坤, 沈勇, 陈旅超
作者信息 +

Design and Application of CDC & MSC Composite Device Based on USB Interface

  • Pu Zekun, Shen Yong, Chen Lvchao
Author information +
文章历史 +

摘要

在实际嵌入式项目开发过程中,需要通过一个USB接口实现虚拟串口通信和外部Flash芯片做虚拟U盘的复合功能,设计了一种基于USB的CDC类和MSC类复合设备,该设计以STM32F407系列单片机为核心,进行USB接口电路和外部Flash芯片的SPI接口电路设计,对USB设备库驱动程序中的底层驱动代码、各类描述符和初始化函数进行修改,最终完成USB复合设备的设计。USB复合设备功能测试结果表明,本设计不仅可以实现USB虚拟串口通信,还可以实现虚拟U盘功能,方便嵌入式系统的设计与开发。

Abstract

In this paper,according to the actual embedded project development process,a USB interface is needed to realize the composite function of virtual serial port communication and external Flash chip to do virtual U disk.A kind of CDC and MSC composite device based on USB is designed.The design takes STM32F407 series single chip microcomputer as the core,designs the SPI interface circuit of USB interface circuit and external Flash chip,modifies the underlying driver function,various descriptors and initialization code in USB device library driver,and finally completes the design of USB composite device.After testing the function of USB composite device,this design can not only realize USB virtual serial communication,but also realize the function of virtual U disk,which is convenient for the design and development of embedded system.

关键词

STM32F407 / 通用串行总线 / 通信设备类 / 大容量存储类 / W25Q128

Key words

STM32F407 / USB / CDC / MSC / W25Q128

引用本文

导出引用
蒲泽坤, 沈勇, 陈旅超. USB接口的CDC&MSC复合设备设计与应用[J]. 集成电路与嵌入式系统. 2023, 23(7): 53-56
Pu Zekun, Shen Yong, Chen Lvchao. Design and Application of CDC & MSC Composite Device Based on USB Interface[J]. Integrated Circuits and Embedded Systems. 2023, 23(7): 53-56
中图分类号: TP336   

参考文献

[1] Kim Otten.嵌入式应用中的USB主设备功能[J].今日电子,2009(5):57-58.
[2] 陈旭辉,杨红云.USB接口的虚拟多串口通信设备设计[J].单片机与嵌入式系统应用,2020,20(4):18-21.
[3] 王晓静.基于USB接入技术的煤矿安全监控系统传输接口设计[J].考试周刊,2011(62):152-153.
[4] 李智敏.USB虚拟串口通信实现[J].电子科技,2014,27(3):120-122.
[5] 徐庆坤,于庆,房齐.基于STM32F4的USB数据存储[J].内江科技,2018,39(8):20,141.
[6] 张良.基于USB主机技术的机车故障数据转储技术研究[D].北京:北京交通大学,2010.

PDF(1133 KB)

Accesses

Citation

Detail

段落导航
相关文章

/