資料介紹
TABLE OF CONTENTS
Table 1. Current Types of USB? . . . 1
Table 2. μPSD USB Family (February 2004). 1
IAP USB Demonstration Program? . . . 5
Table 3. USB Demonstration Program Revision History? 5
Hardware Design?? . . . 6
Figure 1. USB Input/Output Design inside the μPSD32xxA? 6
Figure 2. Typical USB Connection Circuit for 5V (μPSD32xx) Systems. . . . 6
Possible Frequencies for μPSD with Low-speed USB 7
Table 4. μPSD32xx USB SFR Register Map. 7
Software Design 8
Table 5. List of Header Files? . . . . . 8
Table 6. List of C Source Files . . . . 8
USB Communication Flow?? 8
Figure 3. USB Host/Device Detailed Communication Flow View? 9
Endpoints Supported by μPSD32xx? 9
Table 7. Supported Endpoints? . . . 10
Data Structures and Data-flow? . . 10
Table 8. USB Demonstration Program Data Structures? . 10
USB Bus Level Interface?? . 10
Bus Enumeration?? . 11
Endpoint0? . 12
Endpoint1 (LCD display mirror)? . 12
Table 9. Endpoint Packet Byte Function Assignment? . 12
USB Setup Packet Handling – Standard Device Requests? . 12
USB Requests in the USB Demonstration Program . . . . 13
Table 10. Descriptor Type (the high byte of wValue in the Get_Descriptor request)? 13
Table 11. Valid Types of Class Descriptor. . . 13
Get_Descriptor Request?? . 13
Table 12. Components of a Get_Descriptor Request? . . 14
Get_Report Request?? . . . . 14
Table 13. Components of a Get_Report Request? . . . . . 14
SET_Report Request?? . . . . 14
Table 14. Components of a SET_Report Request? . . . . 15
USB Descriptors??? . 15
Figure 4. USB and HID Descriptor Structure 15
GET_Descriptor Request Servicing Routine?? 16
Descriptors 16
Example of USB Descriptors for HID Class Devices? 17
Table 15. Device Descriptor? . . . . . 18
Table 16. Configuration Descriptor? 19
Table 17. Interface Descriptor? . . . . 19
Table 18. HID Descriptor?? . . 20
Table 19. Endpoint Descriptor? . . . . 20
Table 20. Report Descriptor? 21
High Level Interface?? . . . . 22
HID Level Interface?? . . . . . 22
SUSPEND Mode and RESUME Mode Handling Mechanism? 23
USB Disconnect on Demand Feature . . . . 24
Important Rules when Starting to Design USB Applications with μPSD32xxA . 25
Differences between USB 1.1 Hosts and Some USB 2.0 High-speed Hosts? 25
Figure 5. Traffic on USB (μPSD32xxA connected to USB1.1 Host, or to an Intel 82801DBx Type USB
2.0 Host) 25
Figure 6. Traffic on USB (μPSD32xxA connected to an NEC 720100A Type USB 2.0 Host) . . . . 26
USB Interrupt must have the Highest Priority Interrupt Level? . 26
Table 21. Description of the IP Bits? 27
Table 22. Description of the IPA Bits? . 27
Length of USB Interrupt Service Routine . 28
Table 23. Oscillator Frequencies Suitable for Applications with USB . . . . . 28
Figure 7. USB Demonstration Program USB Drivers Immunity versus Length of USB ISR (with respect
to Oscillator Frequency)28
Difference between Relative and Absolute Register Usage? 28
Table 24. Suggested Assignment of Register Banks? . . 30
USB may Generate Spurious Interrupts when the Device is Plugged in? . . . 30
μPSD USB IP sometimes Triggers an Interrupt but no Bit of UISTA is Set? . 30
μPSD USB IP Generates Interrupts with an Undocumented Flag. . . . . 30
USB State Machine does not Clear the STALL0 Bit when a SETUP Packet is Received . . . . 30
The Number of Data Bytes Received in a Data Packet can be Greater than Eight? . . . 31
C Source and Assembler Output can have Different Functionality . . . 31
Question: So How Must I Write My Drivers?? . 32
Question: Must I Enable and Service End-of-Packet Interrupt Requests?? . 32
Question: Is the Length of USB ISR Limited?? . . . . . 32
Limits Set by the Specification:? . . . 32
Table 25. Examples of Limits set by USB Standards? . . 32
Known limits:?? . . . 33
Conclusion:? 33
Question: My Device with μPSD is not Properly Detected by Windows? . . . 33
Figure 8. USB ISR Response Time? . 33
Figure 9. USB ISR Response Time - Detail . 34
Problems with Windows98 and Multiple-function USB Devices 34
Symptoms? . 34
Cause? . . . . 34
Conclusion . 34
Status? . . . . 34
More Information?? 35
Conclusion? . . . 36
References? . . . 36
APPENDIX A.USBISR??? 37
APPENDIX B.OnTransmitEP1?? 39
APPENDIX C.OnSetupPacket?? 40
APPENDIX D.OnGetDescriptor? . . . . . 41
APPENDIX E.ReportDesc?? . . . 42
APPENDIX F.DeviceDesc?? . . . 43
APPENDIX G.Language, Manufacture and Product Strings? . . . 45
APPENDIX H.High Level Interface? . . 47
APPENDIX I. OnReportReceived? . . . 48
APPENDIX J.OnUSBSuspend? 49
APPENDIX K.ReConnectUSB?? 50
APPENDIX L.Glossary??? 51
Table 26. Terms and Abbreviations 51
Revision History? . . . 53
Table 1. Current Types of USB? . . . 1
Table 2. μPSD USB Family (February 2004). 1
IAP USB Demonstration Program? . . . 5
Table 3. USB Demonstration Program Revision History? 5
Hardware Design?? . . . 6
Figure 1. USB Input/Output Design inside the μPSD32xxA? 6
Figure 2. Typical USB Connection Circuit for 5V (μPSD32xx) Systems. . . . 6
Possible Frequencies for μPSD with Low-speed USB 7
Table 4. μPSD32xx USB SFR Register Map. 7
Software Design 8
Table 5. List of Header Files? . . . . . 8
Table 6. List of C Source Files . . . . 8
USB Communication Flow?? 8
Figure 3. USB Host/Device Detailed Communication Flow View? 9
Endpoints Supported by μPSD32xx? 9
Table 7. Supported Endpoints? . . . 10
Data Structures and Data-flow? . . 10
Table 8. USB Demonstration Program Data Structures? . 10
USB Bus Level Interface?? . 10
Bus Enumeration?? . 11
Endpoint0? . 12
Endpoint1 (LCD display mirror)? . 12
Table 9. Endpoint Packet Byte Function Assignment? . 12
USB Setup Packet Handling – Standard Device Requests? . 12
USB Requests in the USB Demonstration Program . . . . 13
Table 10. Descriptor Type (the high byte of wValue in the Get_Descriptor request)? 13
Table 11. Valid Types of Class Descriptor. . . 13
Get_Descriptor Request?? . 13
Table 12. Components of a Get_Descriptor Request? . . 14
Get_Report Request?? . . . . 14
Table 13. Components of a Get_Report Request? . . . . . 14
SET_Report Request?? . . . . 14
Table 14. Components of a SET_Report Request? . . . . 15
USB Descriptors??? . 15
Figure 4. USB and HID Descriptor Structure 15
GET_Descriptor Request Servicing Routine?? 16
Descriptors 16
Example of USB Descriptors for HID Class Devices? 17
Table 15. Device Descriptor? . . . . . 18
Table 16. Configuration Descriptor? 19
Table 17. Interface Descriptor? . . . . 19
Table 18. HID Descriptor?? . . 20
Table 19. Endpoint Descriptor? . . . . 20
Table 20. Report Descriptor? 21
High Level Interface?? . . . . 22
HID Level Interface?? . . . . . 22
SUSPEND Mode and RESUME Mode Handling Mechanism? 23
USB Disconnect on Demand Feature . . . . 24
Important Rules when Starting to Design USB Applications with μPSD32xxA . 25
Differences between USB 1.1 Hosts and Some USB 2.0 High-speed Hosts? 25
Figure 5. Traffic on USB (μPSD32xxA connected to USB1.1 Host, or to an Intel 82801DBx Type USB
2.0 Host) 25
Figure 6. Traffic on USB (μPSD32xxA connected to an NEC 720100A Type USB 2.0 Host) . . . . 26
USB Interrupt must have the Highest Priority Interrupt Level? . 26
Table 21. Description of the IP Bits? 27
Table 22. Description of the IPA Bits? . 27
Length of USB Interrupt Service Routine . 28
Table 23. Oscillator Frequencies Suitable for Applications with USB . . . . . 28
Figure 7. USB Demonstration Program USB Drivers Immunity versus Length of USB ISR (with respect
to Oscillator Frequency)28
Difference between Relative and Absolute Register Usage? 28
Table 24. Suggested Assignment of Register Banks? . . 30
USB may Generate Spurious Interrupts when the Device is Plugged in? . . . 30
μPSD USB IP sometimes Triggers an Interrupt but no Bit of UISTA is Set? . 30
μPSD USB IP Generates Interrupts with an Undocumented Flag. . . . . 30
USB State Machine does not Clear the STALL0 Bit when a SETUP Packet is Received . . . . 30
The Number of Data Bytes Received in a Data Packet can be Greater than Eight? . . . 31
C Source and Assembler Output can have Different Functionality . . . 31
Question: So How Must I Write My Drivers?? . 32
Question: Must I Enable and Service End-of-Packet Interrupt Requests?? . 32
Question: Is the Length of USB ISR Limited?? . . . . . 32
Limits Set by the Specification:? . . . 32
Table 25. Examples of Limits set by USB Standards? . . 32
Known limits:?? . . . 33
Conclusion:? 33
Question: My Device with μPSD is not Properly Detected by Windows? . . . 33
Figure 8. USB ISR Response Time? . 33
Figure 9. USB ISR Response Time - Detail . 34
Problems with Windows98 and Multiple-function USB Devices 34
Symptoms? . 34
Cause? . . . . 34
Conclusion . 34
Status? . . . . 34
More Information?? 35
Conclusion? . . . 36
References? . . . 36
APPENDIX A.USBISR??? 37
APPENDIX B.OnTransmitEP1?? 39
APPENDIX C.OnSetupPacket?? 40
APPENDIX D.OnGetDescriptor? . . . . . 41
APPENDIX E.ReportDesc?? . . . 42
APPENDIX F.DeviceDesc?? . . . 43
APPENDIX G.Language, Manufacture and Product Strings? . . . 45
APPENDIX H.High Level Interface? . . 47
APPENDIX I. OnReportReceived? . . . 48
APPENDIX J.OnUSBSuspend? 49
APPENDIX K.ReConnectUSB?? 50
APPENDIX L.Glossary??? 51
Table 26. Terms and Abbreviations 51
Revision History? . . . 53
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉
下載該資料的人也在下載
下載該資料的人還在閱讀
更多 >
- AN2401_uPSD3400USB固件的应用程序0次下载
- 计量用低速风洞结构参数仿真实验分析12次下载
- ADuM3160:全速/低速2.5 kV USB数字隔离器数据手册10次下载
- ADuM4160:全速/低速USB数字隔离器 数据手册10次下载
- USB5807低功耗、OEM可配置的USB 3.1 Gen集线器控制器的资料概述34次下载
- 基于PIC24FJ256GB210带有 USB OTG 的 16 位 64/100 引脚闪存单片机1次下载
- 基于PIC24FJ64GB004带有USB On-The-Go(OTG)功能的单片机13次下载
- ADuM4160全速/低速USB数字隔离器56次下载
- 基于uPSD3200 的人机对话设计17次下载
- uPSD3200系列使用指南43次下载
- 一经请求即与uPSD32xx联接的USB器件13次下载
- 使用uPSD33xx和uPSD32xx实现音频发生器的功能17次下载
- 用PC/104进行设计13次下载
- USB Device Disconnect-On-Deman14次下载
- 一经请求即与uPSD32xx联接的USB器件34次下载
- ADUM4160全速/低速USB数字隔离器技术手册493次阅读
- ADUM3160全速/低速USB数字隔离器技术手册590次阅读
- 简单归纳USB设备开发必备的基础知识2344次阅读
- USB3.0链路如何实现最优系统级静电防护性能1630次阅读
- 基于FTDI芯片进行USB到UART的转换设计方案实现6564次阅读
- USB23年发展史,多了什么变化?83510次阅读
- 基于uPSD32XX系列单片机实现税控器系统的软硬件设计923次阅读
- 浅谈USB总线的Host主机接口芯片——CH37011248次阅读
- 4端口的USB3.0的HUB用的最多的是GL3520方案35682次阅读
- 如何用USB接口连接pstool以及用BTCLI工具进行pskey的读写操作7505次阅读
- USB低速与全速的总线状态详解7028次阅读
- 用usb自制简易电烙铁详细步骤介绍66481次阅读
- 对低压短途电动汽车用异步电动机低速重载运行的转矩特性进行了研究8725次阅读
- USB接口是如何进行通信的?14301次阅读
- 基于uPSD3234的反射式红外心率检测仪的设计方案3819次阅读
下載排行
本周
- 1電子電路原理第七版PDF電子教材免費(fèi)下載
- 0.00 MB | 1491次下載 | 免費(fèi)
- 2單片機(jī)典型實(shí)例介紹
- 18.19 MB | 95次下載 | 1 積分
- 3S7-200PLC編程實(shí)例詳細(xì)資料
- 1.17 MB | 27次下載 | 1 積分
- 4筆記本電腦主板的元件識(shí)別和講解說明
- 4.28 MB | 18次下載 | 4 積分
- 5開關(guān)電源原理及各功能電路詳解
- 0.38 MB | 11次下載 | 免費(fèi)
- 6100W短波放大電路圖
- 0.05 MB | 4次下載 | 3 積分
- 7基于單片機(jī)和 SG3525的程控開關(guān)電源設(shè)計(jì)
- 0.23 MB | 4次下載 | 免費(fèi)
- 8基于AT89C2051/4051單片機(jī)編程器的實(shí)驗(yàn)
- 0.11 MB | 4次下載 | 免費(fèi)
本月
- 1OrCAD10.5下載OrCAD10.5中文版軟件
- 0.00 MB | 234313次下載 | 免費(fèi)
- 2PADS 9.0 2009最新版 -下載
- 0.00 MB | 66304次下載 | 免費(fèi)
- 3protel99下載protel99軟件下載(中文版)
- 0.00 MB | 51209次下載 | 免費(fèi)
- 4LabView 8.0 專業(yè)版下載 (3CD完整版)
- 0.00 MB | 51043次下載 | 免費(fèi)
- 5555集成電路應(yīng)用800例(新編版)
- 0.00 MB | 33562次下載 | 免費(fèi)
- 6接口電路圖大全
- 未知 | 30320次下載 | 免費(fèi)
- 7Multisim 10下載Multisim 10 中文版
- 0.00 MB | 28588次下載 | 免費(fèi)
- 8開關(guān)電源設(shè)計(jì)實(shí)例指南
- 未知 | 21539次下載 | 免費(fèi)
總榜
- 1matlab軟件下載入口
- 未知 | 935053次下載 | 免費(fèi)
- 2protel99se軟件下載(可英文版轉(zhuǎn)中文版)
- 78.1 MB | 537793次下載 | 免費(fèi)
- 3MATLAB 7.1 下載 (含軟件介紹)
- 未知 | 420026次下載 | 免費(fèi)
- 4OrCAD10.5下載OrCAD10.5中文版軟件
- 0.00 MB | 234313次下載 | 免費(fèi)
- 5Altium DXP2002下載入口
- 未知 | 233046次下載 | 免費(fèi)
- 6電路仿真軟件multisim 10.0免費(fèi)下載
- 340992 | 191183次下載 | 免費(fèi)
- 7十天學(xué)會(huì)AVR單片機(jī)與C語言視頻教程 下載
- 158M | 183277次下載 | 免費(fèi)
- 8proe5.0野火版下載(中文版免費(fèi)下載)
- 未知 | 138039次下載 | 免費(fèi)
評論