基于单片机与CH375的U盘读写控制器设计.doc
文本预览下载声明
摘要
随着计算机技术的快速发展,USB存储设备的使用已经非常的广泛,随着USB规汇范的完善和成熟,USB外设和的各类不断丰富,应用领域也不断扩大。在传统的应用中,USB主要是PC扮演着主机的角色。根据USB的规范,可以看到USB的拓朴结构中居核心地位的是主机,每一次数据传输必须由主机发起和控制。但是随着单片机技术的发展,以及单片机应用领域的日益增长,USB外设的应用也随之扩大,为此在单片机系统中实现对USB外设控制也变得日益迫切。尤其在一些需要转存数据的设备、仪器上提供能够使用USB移动储存设备的接口已经变得非常有必要。本课题的研究目标是:基于单片机和USB总线接口芯片CH375,设计一个可嵌入到相关设备、仪器上的U盘读写控制器,以实现对设备、仪器相关数据的存储。
关键词: USB存储设备 单片机
abstract
Along with the rapid development of computer technology, USB storage devices use has very wide, with USB compasses remit fan of perfect and mature, USB peripherals and all kinds of unceasingly rich, and the application fields also expands unceasingly. In the traditional applications, USB mainly PC plays host role. According to the USB norm, can see USB topology structure in the habitat core position is host, and each time the data transmission must by host to initiate and control. But as the microcontroller technology development, and MCU application field of growing, USB peripherals application has been magnified, therefore in the SCM system realizes to USB peripherals control also become increasingly urgent. Especially in some need archived data of equipment and instrument provides can use USB mobile storage device interface has become very be necessary. This topic research objectives are: based on SCM and USB interface chip CH375, design a embedded in related equipment, instruments on U dish of literacy controller, in order to equipment, instruments related data of storage.
目 录
第一章 前言 ………………………………………………………………………5
第二章 系统设计方案与论证
2.1 设计要求 ……………………………………………………………………6
2.2 系统设计总体方案…………………………………………………………6
第三章 系统的硬件设计与实现
3.1 主要单元模块电路设计……………………………………………………9
3.2 USB协议……………………………………………………………………11
3.3 BULK_ONLY和UFI协议……………………………………………………FAT32………………………………………………………………………13
第四章 STC12C5A60AD和CH375芯片
4.1 STC12C5A60AD ……………………………………………………………14
4.2 USB总线控制芯片CH375…………………………………………………15
第五章 系统的软件设计
5.1 通信部分序流程图 ………………………………………………………24
5.2 相关程序块 ………………………………
显示全部