文档详情

基于USB的便携式数据存储系统-农业电气化与自动化专业论文.docx

发布:2018-12-18约3.66万字共96页下载文档
文本预览下载声明
摘要USB接口具有使用方便,数据传输率高,又支持即插即用等特点,但由于USB接 摘要 USB接口具有使用方便,数据传输率高,又支持即插即用等特点,但由于USB接 口协议复杂,涉及的方面广,特别是软件种类比较多,而且USB芯片种类繁多。使得 USB设备的开发非常困难。而且随着USB应用领域的逐渐扩大,人们对于USB的期望 也越来越高,希望USB能应用在各种计算机领域中,尤其是在移动数据领域中,希望能 通过PDA等移动设备直接和USB外设通信,使得USB能应用在没有Pc的领域中。如 何将USB应用到嵌入式领域,实现USB的点对点通讯,成为目前USB研究领域的热点。 本文主要介绍了一种USB的主从控制器芯片SL811HS,及其在单片机的嵌入式系 统中的应用。在介绍了SL81 1HS控制器芯片的主要特点的基础上,重点阐述了利用这一 芯片在c语言的编程控制之下如何识别u盘的插入和拔出,以及如何将单片机的数据按 协议规定写入u盘,其中的协议包括FAT文件协议,USBl.1协议和UFI命令协议。 在器件选择上,除了采用具有主机控制器功能的SL811HS芯片外,其核心芯片采用 的是与MCS-5l完全兼容的AT89C55。它具有20K的FLASH,不必片外扩展ROM,简 化了硬件电路。 本系统实现了单片机对u盘的数据存储,速度快,存储容量大,数据读取方便,直 观明了.系统工作安全可靠,抗干扰能力强,可扩展性大,而且针对下位机设计的串口 协议简单,可以满足通常数据采集系统的数据存储要求。 关键词主机控制器:USB;SL81 1HS .V. 一:一。,。。,一:圣!!童些耋茎i:耋些圭兰:圣兰兰。 一:一。,。。,一:圣!!童些耋茎i:耋些圭兰:圣兰兰。 :,,, THE PORTABLE DATA STORAGE SYSTEM BASED 0N USB ABSTRACT USB interface device has the characteristic of convenient-use、high.speed and it supports to use once it’s inserted in PC.The development of USB devices is difficult because of the annoying protoc01.With the gradually expand of USB’s application,folk’s expectation for USB is higher People hope that USB can be applied to various fields,especially ambulanI data field.and hope movable device carl communicate with USB interface device.i.e.USB interface device can be applied to nod PC field.How to apply USB to embedded system and realize point-to-point communication.It has became the hot of USB research field now. This thesis introduced the Host—Slave controller SL8】1HS and the application in the embedded system.In the base of introducing the characteristic of this chip,this thesis mainly explained this chip how to identify the flash disk and how to write data to the flash disk according to several protocols.These protocols include FAT File System Specification,USB Specification and UFI Mass Storage Class. We adopted the AT89C55 which is compatible with MCS一51 products entirely,except the Host controller SL8 11 HS.AT89C55 has 20K bytes of in-system reprogrammable flash memory.So we needn’t to exte
显示全部
相似文档