- 17
- 0
- 约3.58万字
- 约 48页
- 2019-02-19 发布于湖北
- 举报
摘 要
USB(Universal Serial Bus,通用串行总线)是外围设备与计算机进行连接的新型接口总线。自从问世以来,凭借其高速度和高通用性迅速成为个人计算机与外未设备相连的标准接口,现在市场上售出的所有PC机都百分之百的支持USB接口,而且很多外设只推出USB版本。可以预见,USB的应用回越来越广泛,其传输速率和通用性也会越来越高。
固件程序的设计是USB设备开发过程中非常重要的一个环节,它直接影响到USB设备的传输速度。本文在深入分析USB2.0协议、海量存储类规范和SCSI指令集的基础上,提出了一种专门针对U盘应用的固件设计方法,重点论述了固件实现过程中的几个关键技术,证明USB2.0接口控制芯片的固件设计达到了预期目标。
由于USB2.0协议的主/从式模式,固件的整个流程基于中断模式实现。固件程序主要包括三部分:1)初始化单片机和所有外围电路;2)中断服务程序,完成各个模块产生的中断响应;3)任务处理子模块,供中断服务程序调用,完成具体的USB设备操作。在实现的过程中,主处理程序完成系统的初始化并轮询中断,固件负责协议的解析和处理,不干预数据的传输,这样,保证了快速的数据传输和较好的软件结构。
通过对调试过程和性能测试结果,我们可以看出,固件能够控制硬件电路快速的完成各种操作,达到了预期的设计目标。
关键词:通用串行总线;固件;闪存;块传
ABSTRACT
Universal Serial Bus(USB)is a new type of serial bus which connects peripherals to computer.Since its advent,USB has rapidly become a standard interface between personal computer(PCs)and peripherals for its high transfer speed and applicability.All PCs on market today support USB interface with no exception,while many peripherals are found with only USB interfaces.It is predictable that USb will be more and more popular with its transfer speed and applicability being increasesd.
Firmware is very important in a USB device project, which affects the transfer speed of USB directly.This dissertation puts forward a new solution on the firmwares design of flash memory disk based on studying USB2.0 protocol, mass storage class and Small Computer System Interface (SCSI) command sets thoroughly. This dissertation describes the key technologies during the realization of firmware being designed.which testifies that the firmware of USB2.0 Interface Controller ASIC achieves the desired sights.
In accordance with the Master-Slave architecture in USB 2.0 protocol, the workflow of the firmware is implemented based on interrupt pattern. The firmware program includes three sections: initialization microcontroller and all the peripheral circuits; interrupt service routine, which triggers interrupts and executes the interrupt;task module, which is called by the ISR.During the procedure of realization
您可能关注的文档
最近下载
- 眼视光特检技术 第3版 课件 第1--13章 绪论、 角膜曲率计 ---角膜共聚焦显微镜.pptx
- 独栋民居改建合同范文3篇.docx
- 山东省2025年中考数学真题试卷八套附答案.pdf VIP
- 天泵浇筑混凝土施工方案完整.doc VIP
- 2025年中国科技大学创新班入围考试数学试卷真题(答案解析).docx VIP
- 中国民宿行业发展趋势报告2025.docx VIP
- 2025年甘肃省兰州市皋兰县辅警考试真题附答案解析.docx VIP
- (已瘦身)国家安全教育大学生读本高教社2024年8月版课件全套合集(包括绪论总共11章PPT课件).pptx
- 铁总建设14-125号铁路建设项目勘察设计单位施工图评价办法.doc VIP
- 室外给水管道附属构筑物.阀门井结构图 05s502.pdf VIP
原创力文档

文档评论(0)