舰船防化
2010 年第 2 期,20~24 CHEMICAL DEFENCE ON SHIPS №2, 20~24
单片机 U 盘控制器的设计与实现
孟涛,王福虎
(中国船舶重工集团公司第七一八研究所,河北邯郸,056027)
摘要: 基于目前在数据采集设备和仪器仪表等嵌入式系统中,数据交换多采用串行口或以太网等
方式的现状,本文介绍了一种以 U 盘为存储介质的 U 盘控制器设计方案,并给出了系统电路原理图
和单片机读写 U 盘的程序流程。该方案以 USB 接口芯片 CH376 和单片机为核心,具有成本低、通用
性强、可靠性高等特点,可方便的集成到各种测控系统中,解决了串口、网络通信方式需要布线施
工、成本高、移动性差的问题。
关键词: CH376;单片机;U 盘;USB 接口
中图分类号:TP311 文献标识码:A
Design and implementation of MCU USB flash disk controller
Meng Tao, Wang Fu-hu
(The 718th Research Institute of CSIC, Handan 056027, China)
Abstract: Now UART and are widely used in application-embedded systems. Based on MCU and
CH376, this paper introduces a design and implementation to control USB flash disk, and provides
schematic diagram of hardware and part of program, gives detailed introductions to their principles and
control-methods. It is proved to have several advantages such as low cost, easy application and stable
running. This solution fits the application especially in measuring system and data acquisition equipment.
Key words: CH376; MCU; USB flash disk; USB interface
并没有安装 USB 标准接口,使得在 USB 数据存储方
引言
面一直没有很好的解决方案。
目前在数据采集设备和仪器仪表等嵌入式系统本文详细介绍了利用 USB 接口芯片 CH376 实现
中,数据交换多采用串行口(RS232、RS485、CAN 总单片机对 U 盘的读写,从而实现便携式仪器设备等嵌
线)或以太网等方式,这些方式需要布线施工、成本入式系统的外挂式海量存储。本设计除了 MCU 以外,
高且不具有移动性。基于 USB-FLASH 技术的 USB 只需要一片 CH376 即可实现对 U 盘的读写操作,具
移动存储技术的发展为上述
【硬件技术】单片机U盘控制器的设计与实现 来自淘豆网www.taodocs.com转载请标明出处.