电子发烧友App

硬声App

0
  • 聊天消息
  • 系统消息
  • 评论与回复
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
创作中心

完善资料让更多小伙伴认识你,还能领取20积分哦,立即完善>

3天内不再提示
电子发烧友网>电子资料下载>电子元器件应用>介绍EZ-USB(TM)系列2100 USB控制器的特性及应

介绍EZ-USB(TM)系列2100 USB控制器的特性及应

2009-06-16 | rar | 3482 | 次下载 | 免费

资料介绍

1 Introducing EZ-USB ......................................................................1-1
1.1 Introduction ............................................................................................. 1-1
1.2 EZ-USB Block Diagrams ....................................................................... 1-2
1.3 The USB Specification ........................................................................... 1-3
1.4 Tokens and PIDs ..................................................................................... 1-4
1.5 Host is Master ......................................................................................... 1-5
1.5.1 Receiving Data from the Host .................................................. 1-6
1.5.2 Sending Data to the Host ......................................................... 1-6
1.6 USB Direction ......................................................................................... 1-6
1.7 Frame ...................................................................................................... 1-6
1.7.1 Bulk Transfers .......................................................................... 1-7
1.7.2 Interrupt Transfers ................................................................... 1-7
1.8 EZ-USB Transfer Types ......................................................................... 1-7
1.8.1 Isochronous Transfers ............................................................. 1-8
1.8.2 Control Transfers ..................................................................... 1-8
1.9 Enumeration ............................................................................................ 1-9
1.10 The USB Core ....................................................................................... 1-10
1.11 EZ-USB Microprocessor ...................................................................... 1-11
1.12 ReNumerationÔ ................................................................................... 1-12
1.13 EZ-USB Endpoints ............................................................................... 1-12
1.13.1 EZ-USB Bulk Endpoints ......................................................... 1-13
1.13.2 EZ-USB Control Endpoint Zero ............................................ 1-13
1.13.3 EZ-USB Interrupt Endpoints ................................................. 1-14
1.13.4 EZ-USB Isochronous Endpoints ............................................ 1-14
1.14 Fast Transfer Modes ............................................................................. 1-14
1.15 Interrupts ............................................................................................... 1-15
1.16 Reset and Power Management .............................................................. 1-15
1.17 EZ-USB Product Family ....................................................................... 1-16
1.18 Summary of AN2122, AN2126 Features ............................................. 1-16
1.19 Revision ID ........................................................................................... 1-17
1.20 Pin Descriptions .................................................................................... 1-18
2 EZ-USB CPU .................................................................................. 2-1
2.1 Introduction ............................................................................................. 2-1
2.2 8051 Enhancements ................................................................................ 2-1
2.3 EZ-USB Enhancements .......................................................................... 2-2
2.4 EZ-USB Register Interface ..................................................................... 2-2
2.5 EZ-USB Internal RAM ........................................................................... 2-3
2.6 I/O Ports .................................................................................................. 2-3
2.7 Interrupts ................................................................................................. 2-4
2.8 Power Control ......................................................................................... 2-5
2.9 SFRs ........................................................................................................ 2-6
2.10 Internal Bus ............................................................................................. 2-7
2.11 Reset ........................................................................................................ 2-7
3 EZ-USB Memory ............................................................................ 3-1
3.1 Introduction ............................................................................................. 3-1
3.2 8051 Memory .......................................................................................... 3-2
3.3 Expanding EZ-USB Memory ................................................................. 3-4
3.4 CS# and OE# Signals .............................................................................. 3-5
3.5 EZ-USB ROM Versions ......................................................................... 3-7
4 EZ-USB Input/Output ................................................................... 4-1
4.1 Introduction ............................................................................................. 4-1
4.2 IO Ports ................................................................................................... 4-2
4.3 IO Port Registers ..................................................................................... 4-5
4.4 I2C Controller .......................................................................................... 4-6
4.5 8051 I2C Controller ................................................................................. 4-6
4.5.1 START ...................................................................................... 4-8
4.5.2 STOP ........................................................................................ 4-8
4.6 Control Bits ............................................................................................. 4-8
4.6.1 LASTRD ................................................................................... 4-9
4.6.2 DONE ....................................................................................... 4-9
4.6.3 ACK .......................................................................................... 4-9
4.7 Status Bits ............................................................................................... 4-9
4.7.1 BERR ...................................................................................... 4-10
4.7.2 ID1, ID0 ................................................................................. 4-10
4.8 Sending I2C Data .................................................................................. 4-10
4.9 Receiving I2C Data ............................................................................... 4-11
4.10 I2C Boot Loader .................................................................................... 4-12
5 EZ-USB Enumeration and ReNumerationÔ ...............................5-1
5.1 Introduction ............................................................................................. 5-1
5.2 The Default USB Device ........................................................................ 5-2
5.3 EZ-USB Core Response to EP0 Device Requests .................................. 5-4
5.4 Firmware Load ........................................................................................ 5-5
5.5 Enumeration Modes ................................................................................ 5-7
5.6 No Serial EEPROM ................................................................................ 5-8
5.7 Serial EEPROM Present, First Byte is 0xB0 .......................................... 5-9
5.8 Serial EEPROM Present, First Byte is 0xB2 ........................................ 5-10
5.9 ReNumerationÔ ................................................................................... 5-11
5.10 Multiple ReNumerationsÔ ................................................................... 5-13
5.11 Default Descriptor ................................................................................. 5-13
6 EZ-USB Bulk Transfers ................................................................. 6-1
6.1 Introduction ............................................................................................. 6-1
6.2 Bulk IN Transfers ................................................................................... 6-4
6.3 Interrupt Transfers .................................................................................. 6-5
6.4 EZ-USB Bulk IN Example ..................................................................... 6-5
6.5 Bulk OUT Transfers ............................................................................... 6-6
6.6 Endpoint Pairing ..................................................................................... 6-8
6.7 Paired IN Endpoint Status ....................................................................... 6-9
6.8 Paired OUT Endpoint Status ................................................................. 6-10
6.9 Using Bulk Buffer Memory .................................................................. 6-10
6.10 Data Toggle Control ............................................................................. 6-11
6.11 Polled Bulk Transfer Example .............................................................. 6-14
6.12 Enumeration Note ................................................................................. 6-15
6.13 Bulk Endpoint Interrupts ...................................................................... 6-16
6.14 Interrupt Bulk Transfer Example .......................................................... 6-17
6.15 Enumeration Note ................................................................................. 6-22
6.16 The Autopointer .................................................................................... 6-23
7 EZ-USB Endpoint Zero ..................................................................7-1
7.1 Introduction ............................................................................................. 7-1
7.2 Control Endpoint EP0 ............................................................................. 7-2
7.3 USB Requests ......................................................................................... 7-5
7.3.1 Get Status ................................................................................. 7-7
7.3.2 Set Feature ............................................................................. 7-10
7.3.3 Clear Feature ......................................................................... 7-12
7.3.4 Get Descriptor ....................................................................... 7-12
7.3.4.1 Get Descriptor-Device ...............................................................7-14
7.3.4.2 Get Descriptor-Configuration ....................................................7-15
7.3.4.3 Get Descriptor-String ................................................................7-16
7.3.5 Set Descriptor ........................................................................ 7-16
7.3.6 Set Configuration ................................................................... 7-19
7.3.7 Get Configuration .................................................................. 7-19
7.3.8 Set Interface ........................................................................... 7-20
7.3.9 Get Interface .......................................................................... 7-21
7.3.10 Set Address ............................................................................. 7-21
7.3.11 Sync Frame ............................................................................ 7-22
7.3.12 Firmware Load ...................................................................... 7-23
8 EZ-USB Isochronous Transfers .................................................... 8-1
8.1 Introduction ............................................................................................. 8-1
8.1.1 Initialization ............................................................................. 8-2
8.2 Isochronous IN Transfers ........................................................................ 8-2
8.2.1 IN Data Transfers .................................................................... 8-3
8.3 Isochronous OUT Transfers .................................................................... 8-3
8.3.1 Initialization ............................................................................. 8-4
8.3.2 OUT Data Transfer .................................................................. 8-4
8.4 Setting Isochronous FIFO Sizes ............................................................. 8-5
8.5 Isochronous Transfer Speed .................................................................... 8-8
8.6 Fast Transfers .......................................................................................... 8-9
8.6.1 Fast Writes ............................................................................. 8-10
8.6.2 Fast Reads .............................................................................. 8-11
8.7 Fast Transfer Timing ............................................................................ 8-11
8.7.1 Fast Write Waveforms ........................................................... 8-12
8.7.2 Fast Read Waveforms ............................................................ 8-13
8.8 Fast Transfer Speed .............................................................................. 8-14
8.8.1 Disable ISO ............................................................................ 8-15
8.9 Other Isochronous Registers ................................................................. 8-15
8.9.1 Zero Byte Count Bits .............................................................. 8-16
8.10 ISO IN Response with No Data ............................................................ 8-17
8.11 Using the Isochronous FIFOs ............................................................... 8-17
9 EZ-USB Interrupts ......................................................................... 9-1
9.1 Introduction ............................................................................................. 9-1
9.2 USB Core Interrupts ............................................................................... 9-1
9.3 Wakeup Interrupt .................................................................................... 9-2
9.4 USB Signaling Interrupts ........................................................................ 9-4
9.5 SUTOK, SUDAV Interrupts ................................................................... 9-8
9.6 SOF Interrupt .......................................................................................... 9-9
9.7 Suspend Interrupt .................................................................................... 9-9
9.8 USB RESET Interrupt ............................................................................ 9-9
9.9 Bulk Endpoint Interrupts ........................................................................ 9-9
9.10 USB Autovectors .................................................................................. 9-10
9.11 Autovector Coding ................................................................................ 9-11
9.12 I2C Interrupt .......................................................................................... 9-13
9.13 In Bulk NAK Interrupt - (AN2122/AN2126 only) ............................... 9-13
9.14 I2C STOP Complete Interrupt - (AN2122/AN2126 only) .................... 9-15
10 EZ-USB Resets .............................................................................. 10-1
10.1 Introduction ........................................................................................... 10-1
10.2 EZ-USB Power-On Reset (POR) .......................................................... 10-1
10.3 Releasing the 8051 Reset ...................................................................... 10-3
10.3.1 RAM Download ...................................................................... 10-4
10.3.2 EEPROM Load ...................................................................... 10-4
10.3.3 External ROM ........................................................................ 10-4
10.4 8051 Reset Effects ................................................................................ 10-4
10.5 USB Bus Reset ...................................................................................... 10-5
10.6 EZ-USB Disconnect ............................................................................. 10-7
10.7 Reset Summary ..................................................................................... 10-8
11 EZ-USB Power Management ......................................................11-1
11.1 Introduction ........................................................................................... 11-1
11.2 Suspend ................................................................................................. 11-2
11.3 Resume .................................................................................................. 11-3
11.4 Remote Wakeup .................................................................................... 11-4
12 EZ-USB Registers ......................................................................... 12-1
12.1 Introduction ........................................................................................... 12-1
12.2 Bulk Data Buffers ................................................................................. 12-3
12.3 Isochronous Data FIFOs ....................................................................... 12-4
12.4 Isochronous Byte Counts ...................................................................... 12-6
12.5 CPU Registers ....................................................................................... 12-8
12.6 Port Configuration ................................................................................ 12-9
12.7 Input-Output Port Registers ................................................................ 12-11
12.8 230-Kbaud UART Operation - AN2122, AN2126 ............................. 12-14
12.9 Isochronous Control/Status Registers ................................................. 12-14
12.10 I2C Registers ....................................................................................... 12-16
12.11 Interrupts ............................................................................................. 12-19
12.12 Endpoint 0 Control and Status Registers ............................................ 12-29
12.13 Endpoint 1-7 Control and Status Registers ......................................... 12-31
12.14 Global USB Registers ......................................................................... 12-37
12.15 Fast Transfers ...................................................................................... 12-46
12.16 SETUP Data ........................................................................................ 12-49
12.17 Isochronous FIFO Sizes ...................................................................... 12-50
13 EZ-USB AC/DC Parameters ....................................................... 13-1
13.0.1 Absolute Maximum Ratings ................................................... 13-1
13.0.2 Operating Conditions ............................................................ 13-1
13.0.3 DC Characteristics ................................................................ 13-1
13.1 Electrical Characteristics ...................................................................... 13-1
13.1.1 AC Electrical Characteristics ................................................ 13-2
13.1.2 General Memory Timing ........................................................ 13-2
13.1.3 Program Memory Read ......................................................... 13-2
13.1.4 Data Memory Read ................................................................ 13-2
13.1.5 Data Memory Write ............................................................... 13-3
13.1.6 Fast Data Write ..................................................................... 13-3
13.1.7 Fast Data Read ...................................................................... 13-3
14 EZ-USB Packaging ....................................................................... 14-1
14.1 44-Pin PQFP Package ........................................................................... 14-1
14.2 80-Pin PQFP Package ........................................................................... 14-3
14.3 48-Pin PQFP Package ........................................................................... 14-5
Appendix A: 8051 Introduction ........................................................... A-1
A.1 Introduction ............................................................................................ A-1
A.2 8051 Features ......................................................................................... A-1
A.3 Performance Overview .......................................................................... A-2
A.4 Software Compatibility .......................................................................... A-3
A.5 803x/805x Feature Comparison ............................................................. A-4
A.5.1 Serial Ports ..............................................................................A-5
5.1.1 Timer 2 .....................................................................................A-5
5.1.2 Timed Access Protection ..........................................................A-5
5.1.3 Watchdog Timer .......................................................................A-5
A.6 8051 Core/DS80C320 Differences ........................................................ A-5
Appendix B: 8051 Architectural Overview .......................................... B-1
B.1 Introduction .............................................................................................B-1
B.1.1 Memory Organization ..............................................................B-2
B.1.1.1 Program Memory ...................................................B-2
B.1.1.2 External RAM ........................................................B-2
B.1.1.3 Internal RAM .........................................................B-2
B.1.2 Instruction Set ..........................................................................B-3
B.1.3 Instruction Timing ..................................................................B-10
B.1.4 CPU Timing ...........................................................................B-11
B.1.5 Stretch Memory Cycles (Wait States) ....................................B-11
B.1.6 Dual Data Pointers ................................................................B-12
B.1.7 Special Function Registers ....................................................B-13
Appendix C: 8051 Hardware Description ............................................C-1
C.1 Introduction .............................................................................................C-1
C.2 Timers/Counters ......................................................................................C-1
C.2.1 803x/805x Compatibility ..........................................................C-1
C.2.2 Timers 0 and 1 .........................................................................C-2
C.2.2.1 Mode 0 ...................................................................C-2
C.2.2.2 Mode 1 ...................................................................C-3
C.2.2.3 Mode 2 ...................................................................C-6
C.2.2.4 Mode 3 ...................................................................C-7
C.2.3 Timer Rate Control ..................................................................C-8
C.2.4 Timer 2 .....................................................................................C-9
C.2.4.1 Timer 2 Mode Control .........................................C-10
C.2.5 16-Bit Timer/Counter Mode ...................................................C-10
C.2.5.1 6-Bit Timer/Counter Mode with Capture ............C-12
C.2.6 16-Bit Timer/Counter Mode with Auto-Reload .....................C-12
C.2.7 Baud Rate Generator Mode ...................................................C-13
C.3 Serial Interface ......................................................................................C-14
C.3.1 803x/805x Compatibility ........................................................C-15
C.3.2 Mode 0 ...................................................................................C-15
C.3.3 Mode 1 ...................................................................................C-21
C.3.3.1 Mode 1 Baud Rate ...............................................C-21
C.3.3.2 Mode 1 Transmit ..................................................C-24
C.3.4 Mode 1 Receive ......................................................................C-24
C.3.5 Mode 2 ...................................................................................C-26
C.3.5.1 Mode 2 Transmit ..................................................C-27
C.3.5.2 Mode 2 Receive ...................................................C-27
C.3.6 Mode 3 ...................................................................................C-29
C.3.7 Multiprocessor Communications ...........................................C-30
C.3.8 Interrupt SFRs ........................................................................C-30
C.4 Interrupt Processing ..............................................................................C-36
C.4.1 Interrupt Masking ..................................................................C-37
C.4.2 Interrupt Priorities .................................................................C-38
C.4.3 Interrupt Sampling .................................................................C-39
C.4.4 Interrupt Latency ...................................................................C-40
C.4.5 Single-Step Operation ............................................................C-40
C.5 Reset ......................................................................................................C-40
C.5.1 Idle Mode ...............................................................................C-41
C.6 Power Saving Modes ............................................................................C-41
Figure 1-1. AN2131S (44 pin) Simplified Block Diagram ........................................... 1-2
Figure 1-2. AN2131Q (80 pin) Simplified Block Diagram ........................................... 1-3
Figure 1-3. USB Packets ................................................................................................ 1-4
Figure 1-4. Two Bulk Transfers, IN and OUT .............................................................. 1-7
Figure 1-5. An Interrupt Transfer .................................................................................. 1-7
Figure 1-6. An Isochronous Transfer ............................................................................. 1-8
Figure 1-7. A Control Transfer ...................................................................................... 1-8
Figure 1-8. What the SIE Does .................................................................................... 1-10
Figure 1-9. 80-pin PQFP Package (AN2131Q) ........................................................... 1-18
Figure 1-10. 44-pin PQFP Package with Port B (AN2121S, AN2122S,
and AN2131S) ........................................................................................................ 1-19
Figure 1-11. 44-pin Package with Data Bus (AN2125S, AN2126S, AN2135S,
and AN2136 ............................................................................................................ 1-20
Figure 1-12. 48-pin TQFP Package (AN2122T) ......................................................... 1-21
Figure 1-13. 48-pin PQFP Package (AN2126T) ......................................................... 1-22
Figure 2-1. 8051 Registers ............................................................................................. 2-3
Figure 3-1. EZ-USB 8-KB Memory Map - Addresses are in Hexadecimal .................. 3-1
Figure 3-2. EZ-USB 4-KB Memory Map - Addresses are in Hexadecimal .................. 3-1
Figure 3-3. Unused Bulk Endpoint Buffers (Shaded) Used as Data Memory ............... 3-3
Figure 3-4. EZ-USB Memory Map with EA=0 ............................................................. 3-4
Figure 3-5. EZ-USB Memory Map with EA=1 ............................................................. 3-6
Figure 3-6. 8-KB ROM, 2-KB RAM Version ............................................................... 3-7
Figure 3-7. 32-KB ROM, 4-KB RAM Version ............................................................. 3-8
Figure 4-1. EZ-USB Input/Output Pin ........................................................................... 4-2
Figure 4-2. Alternate Function is an OUTPUT ............................................................. 4-4
Figure 4-3. Alternate Function is an INPUT ................................................................. 4-4
Figure 4-4. Registers Associated with PORTS A, B, and C .......................................... 4-5
Figure 4-5. General I2C Transfer ................................................................................... 4-6
Figure 4-6. General FC Transfer .................................................................................... 4-7
Figure 4-7. FC Registers ................................................................................................ 4-8
Figure 5-1. USB Control and Status Register .............................................................. 5-11
Figure 5-2. Disconnect Pin Logic ................................................................................ 5-12
Figure 5-3. Typical Disconnect Circuit (DISCOE=1) ................................................. 5-12
Figure 6-1. Two BULK Transfers, IN and OUT ........................................................... 6-1
Figure 6-2. Registers Associated with Bulk Endpoints ................................................. 6-3
Figure 6-3. Anatomy of a Bulk IN Transfer .................................................................. 6-4
Figure 6-4. Anatomy of a Bulk OUT Transfer .............................................................. 6-7
Figure 6-5. Bulk Endpoint Toggle Control .................................................................. 6-1
Figure 6-6. Example Code for a Simple (Polled) BULK Transfer .............................. 6-14
Figure 6-7. Interrupt Jump Table ................................................................................. 6-18
Figure 6-8. INT2 Interrupt Vector ............................................................................... 6-19
Figure 6-9. Interrupt Service Routine (ISR) for Endpoint 6-OUT .............................. 6-19
Figure 6-10. Background Program Transfers Endpoint 6-OUT Data to
Endpoint 6-IN ......................................................................................................... 6-20
Figure 6-11. Initialization Routine ............................................................................... 6-21
Figure 6-12. Autopointer Registers ............................................................................. 6-23
Figure 6-13. Use of the Autopointer ............................................................................ 6-24
Figure 6-14. 8051 Code to Transfer External Data to a Bulk IN Buffer ..................... 6-25
Figure 7-1. A USB Control Transfer (This One Has a Data Stage) .............................. 7-2
Figure 7-2. The Two Interrupts Associated with EP0 CONTROL Transfers ............... 7-3
Figure 7-3. Registers Associated with EP0 Control Transfers ...................................... 7-4
Figure 7-4. Data Flow for a Get_Status Request ........................................................... 7-7
Figure 7-5. Using the Setup Data Pointer (SUDPTR) for Get_Descriptor Requests .. 7-13
Figure 8-1. EZ-USB Isochronous Endpoints 8-15 ......................................................... 8-1
Figure 8-2. Isochronous IN Endpoint Registers ............................................................ 8-2
Figure 8-3. Isochronous OUT Registers ........................................................................ 8-4
Figure 8-4. FIFO Start Address Format ......................................................................... 8-5
Figure 8-5. Assembler Translates FIFO Sizes to Addresses .......................................... 8-7
Figure 8-6. 8051 Code to Transfer Data to an Isochronous FIFO (IN8DATA) ............ 8-8
Figure 8-7. 8051 MOVX Instructions ............................................................................ 8-9
Figure 8-8. Fast Transfer, EZ-USB to Outside Memory ............................................. 8-10
Figure 8-9. Fast Transfer, Outside Memory to EZ-USB ............................................. 8-11
Figure 8-10. The FASTXFR Register Controls FRD# and FWR# Strobes ................. 8-11
Figure 8-11. Fast Write Timing ................................................................................... 8-12
Figure 8-12. Fast Read Timing .................................................................................... 8-13
Figure 8-13. 8051 Code to Transfer 640 Bytes of External Data to an Isochronous
IN FIFO ................................................................................................................... 8-14
Figure 8-14. ISOCTL Register .................................................................................... 8-15
Figure 8-15. ZBCOUT Register .................................................................................. 8-16
Figure 9-1. EZ-USB Wakeup Interrupt ......................................................................... 9-2
Figure 9-2. USB Interrupts ............................................................................................ 9-4
Figure 9-3. The Order of Clearing Interrupt Requests is Important .............................. 9-6
Figure 9-4. EZ-USB Interrupt Registers ........................................................................ 9-7
Figure 9-5. SUTOK and SUDAV Interrupts ................................................................. 9-8
Figure 9-6. A Start Of Frame (SOF) Packet .................................................................. 9-9
Figure 9-7. The Autovector Mechanism in Action ...................................................... 9-12
Figure 9-8. I2C Interrupt Enable Bits and Registers .................................................... 9-13
Figure 9-9. IN Bulk NAK Interrupt Requests Register ............................................... 9-14
Figure 9-10. IN Bulk NAK Interrupt Enables Register ............................................... 9-14
Figure 9-11. I2C Mode Register ................................................................................... 9-15
Figure 9-12. I2C Control and Status Register .............................................................. 9-15
Figure 9-13. I2C Data ................................................................................................... 9-15
Figure 10-1. EZ-USB Resets ....................................................................................... 10-1
Figure 11-1. Suspend-Resume Control ........................................................................ 11-1
Figure 11-2. EZ-USB Suspend Sequence .................................................................... 11-2
Figure 11-3. EZ-USB Resume Sequence .................................................................... 11-3
Figure 11-4. USB Control and Status Register ............................................................ 11-4
Figure 12-1. Register Description Format ................................................................... 12-2
Figure 12-2. Bulk Data Buffers ................................................................................... 12-3
Figure 12-3. Isochronous Data FIFOs ......................................................................... 12-4
Figure 12-4. Isochronous Byte Counts ........................................................................ 12-6
Figure 12-5. CPU Control and Status Register ............................................................ 12-8
Figure 12-6. IO Port Configuration Registers ............................................................. 12-9
Figure 12-7. Output Port Configuration Registers ..................................................... 12-11
Figure 12-8. PINSn Registers .................................................................................... 12-12
Figure 12-9. Output Enable Registers ........................................................................ 12-13
Figure 12-10. 230-Kbaud UART Operation Register ............................................... 12-14
Figure 12-11. Isochronous OUT Endpoint Error Register ........................................ 12-14
Figure 12-12. Isochronous Control Register .............................................................. 12-15
Figure 12-13. Zero Byte Count Register ................................................................... 12-15
Figure 12-14. I2C Transfer Registers ......................................................................... 12-16
Figure 12-15. I2C Mode Register ............................................................................... 12-18
Figure 12-16. Interrupt Vector Register .................................................................... 12-19
Figure 12-17. IN/OUT Interrupt Request (IRQ) Registers ........................................ 12-20
Figure 12-18. USB Interrupt Request (IRQ) Registers .............................................. 12-21
Figure 12-19. IN/OUT Interrupt Enable Registers .................................................... 12-23
Figure 12-20. USB Interrupt Enable Registers .......................................................... 12-24
Figure 12-21. Breakpoint and Autovector Register ................................................... 12-26
Figure 12-22. IN Bulk NAK Interrupt Request Register ........................................... 12-27
Figure 12-23. IN Bulk NAK Interrupt Enable Register ............................................. 12-27
Figure 12-24. IN/OUT Interrupt Enable Registers .................................................... 12-28
Figure 12-25. Port Configuration Registers ............................................................... 12-29
Figure 12-26. IN Control and Status Registers .......................................................... 12-32
Figure 12-27. IN Byte Count Registers ..................................................................... 12-34
Figure 12-28. OUT Control and Status Registers ...................................................... 12-35
Figure 12-29. OUT Byte Count Registers ................................................................. 12-36
Figure 12-30. Setup Data Pointer High/Low Registers ............................................. 12-37
Figure 12-31. USB Control and Status Registers ...................................................... 12-38
Figure 12-32. Data Toggle Control Register ............................................................. 12-40
Figure 12-33. USB Frame Count High/Low Registers .............................................. 12-41
Figure 12-34. Function Address Register .................................................................. 12-42
Figure 12-35. USB Endpoint Pairing Register .......................................................... 12-43
Figure 12-36. IN/OUT Valid Bits Register ............................................................... 12-44
Figure 12-37. Isochronous IN/OUT Endpoint Valid Bits Register ........................... 12-45
Figure 12-38. Fast Transfer Control Register ............................................................ 12-46
Figure 12-39. Auto Pointer Registers ........................................................................ 12-48
Figure 12-40. SETUP Data Buffer ............................................................................ 12-49
Figure 12-41. SETUP Data Buffer ............................................................................ 12-50
Figure 13-1. External Memory Timing ........................................................................ 13-4
Figure 13-2. Program Memory Read Timing .............................................................. 13-4
Figure 13-3. Data Memory Read Timing .................................................................... 13-5
Figure 13-4. Data Memory Write Timing ................................................................... 13-5
Figure 13-5. Fast Transfer Mode Block Diagram ........................................................ 13-6
Figure 13-6. Fast Transfer Read Timing [Mode 00] .................................................... 13-7
Figure 13-7. Fast Transfer Write Timing [Mode 00] ................................................... 13-7
Figure 13-8. Fast Transfer Read Timing [Mode 01] .................................................... 13-8
Figure 13-9. Fast Transfer Write Timing [MODE 01] ................................................ 13-8
Figure 13-10. Fast Transfer Read Timing [Mode 10] .................................................. 13-9
Figure 13-11. Fast Transfer Write Timing [Mode 10] ................................................. 13-9
Figure 13-12. Fast Transfer Read Timing [Mode 11] ................................................ 13-10
Figure 13-13. Fast Transfer Write Timing [Mode 11] ............................................... 13-10
Figure 14-1. 44-Pin PQFP Package (Top View) ......................................................... 14-1
Figure 14-2. 44-Pin PQFP Package (Side View) ......................................................... 14-1
Figure 14-3. 44-Pin PQFP Package (Detail View) ...................................................... 14-2
Figure 14-4. 80-Pin PQFP Package (Top View) ......................................................... 14-3
Figure 14-5. 80-Pin PQFP Package (Side View) ......................................................... 14-3
Figure 14-6. 80-Pin PQFP Package (Detail View) ...................................................... 14-4
Figure 14-7. 48-Pin PQFP Package (Side View) ......................................................... 14-5
Figure 14-8. 48-Pin PQFP Package (Top View) ......................................................... 14-5
Figure 14-9. 48-Pin PQFP Package (Detail View) ...................................................... 14-6
Figure A-1. Comparative Timing of 8051 and Industry Standard 8051 ....................... A-3
Figure B-1. 8051 Block Diagram ..................................................................................B-1
Figure B-2. Internal RAM Organization .......................................................................B-3
Figure B-3. CPU Timing for Single-Cycle Instruction ................................................B-11
Figure C-1. Timer 0/1 - Modes 0 and 1 .........................................................................C-3
Figure C-2. Timer 0/1 - Mode 2 ....................................................................................C-6
Figure C-3. Timer 0 - Mode 3 ........................................................................................C-7
Figure C-4. Timer 2 - Timer/Counter with Capture ....................................................C-12
Figure C-5. Timer 2 - Timer/Counter with Auto Reload .............................................C-13
Figure C-6. Timer 2 - Baud Rate Generator Mode ......................................................C-14
Figure C-7. Serial Port Mode 0 Receive Timing - Low Speed Operation ...................C-19
Figure C-8. Serial Port Mode 0 Receive Timing - High Speed Operation ..................C-20
Figure C-9. Serial Port Mode 0 Transmit Timing - Low Speed Operation .................C-20
Figure C-10. Serial Port Mode 0 Transmit Timing - High Speed Operation ..............C-21
Figure C-11. Serial Port 0 Mode 1 Transmit Timing ..................................................C-25
Figure C-12. Serial Port 0 Mode 1 Receive Timing ....................................................C-26
Figure C-13. Serial Port 0 Mode 2 Transmit Timing ..................................................C-28
Figure C-14. Serial Port 0 Mode 2 Receive Timing ....................................................C-28
Figure C-15. Serial Port 0 Mode 3 Transmit Timing ..................................................C-29
Figure C-16. Serial Port 0 Mode 3 Receive Timing ....................................................C-29
Table 1-1. USB PIDs ..................................................................................................... 1-4
Table 1-2. EZ-USB Series 2100 Family ...................................................................... 1-16
Table 1-3. EZ-USB Series 2100 Pinouts by Pin Function ........................................... 1-23
Table 2-1. EZ-USB Interrupts ....................................................................................... 2-4
Table 2-2. Added Registers and Bits ............................................................................. 2-6
Table 4-1. IO Pin Functions for PORTxCFG=0 and PORTxCFG=1 ............................ 4-3
Table 4-2. Strap Boot EEPROM Address Lines to These Values ............................... 4-13
Table 4-3. Results of Power-On I2C Test .................................................................... 4-14
Table 5-1. EZ-USB Default Endpoints .......................................................................... 5-2
Table 5-2. How the EZ-USB Core Handles EP0 Requests When ReNum=0 ............... 5-4
Table 5-3. Firmware Download ..................................................................................... 5-5
Table 5-4. Firmware Upload .......................................................................................... 5-6
Table 5-5. EZ-USB Core Action at Power-Up .............................................................. 5-7
Table 5-6. EZ-USB Device Characteristics, No Serial EEPROM ................................. 5-8
Table 5-7. EEPROM Data Format for “B0” Load ......................................................... 5-9
Table 5-8. EEPROM Data Format for “B2” Load ....................................................... 5-10
Table 5-9. USB Default Device Descriptor ................................................................. 5-13
Table 5-10. USB Default Configuration Descriptor .................................................... 5-14
Table 5-11. USB Default Interface 0, Alternate Setting 0 Descriptor ......................... 5-14
Table 5-12. USB Default Interface 0, Alternate Setting 1 Descriptor ......................... 5-15
Table 5-13. USB Default Interface 0, Alternate Setting 1, Interrupt
Endpoint Descriptor ................................................................................................ 5-15
Table 5-14. USB Default Interface 0, Alternate Setting 1, Bulk
Endpoint Descriptors .............................................................................................. 5-16
Table 5-15. USB Default Interface 0, Alternate Setting 1, Bulk
Endpoint Descriptors .............................................................................................. 5-17
Table 5-16. USB Default Interface 0, Alternate Setting 1, Isochronous
Endpoint Descriptors .............................................................................................. 5-18
Table 5-17. USB Default Interface 0, Alternate Setting 2 Descriptor ......................... 5-19
Table 5-18. USB Default Interface 0, Alternate Setting 1, Interrupt
Endpoint Descriptor ................................................................................................ 5-19
Table 5-19. USB Default Interface 0, Alternate Setting 2, Bulk
Endpoint Descriptors .............................................................................................. 5-20
Table 5-20. USB Default Interface 0, Alternate Setting 2, Isochronous
Endpoint Descriptors .............................................................................................. 5-21
Table 6-1. EZ-USB Bulk, Control, and Interrupt Endpoints ......................................... 6-1
Table 6-2. Endpoint Pairing Bits (in the USB PAIR Register) ..................................... 6-8
Table 6-3. EZ-USB Endpoint 0-7 Buffer Addresses ................................................... 6-10
Table 6-4. 8051 INT2 Interrupt Vector ....................................................................... 6-16
Table 6-5. Byte Inserted by EZ-USB Core at Location 0x45 if AVEN=1 .................. 6-16
Table 7-1. The Eight Bytes in a USB SETUP Packet ................................................... 7-5
Table 7-2. How the 8051 Handles USB Device Requests (ReNum=1) ........................ 7-6
Table 7-3. Get Status-Device (Remote Wakeup and Self-Powered Bits) ..................... 7-8
Table 7-4. Get Status-Endpoint (Stall Bits) ................................................................... 7-8
Table 7-5. Get Status-Interface .................................................................................... 7-10
Table 7-6. Set Feature-Device (Set Remote Wakeup Bit) ........................................... 7-10
Table 7-7. Set Feature-Endpoint (Stall) ....................................................................... 7-11
Table 7-8. Clear Feature-Device (Clear Remote Wakeup Bit) .................................... 7-12
Table 7-9. Clear Feature-Endpoint (Clear Stall) .......................................................... 7-12
Table 7-10. Get Descriptor-Device .............................................................................. 7-14
Table 7-11. Get Descriptor-Configuration ................................................................... 7-15
Table 7-12. Get Descriptor-String ............................................................................... 7-16
Table 7-13. Set Descriptor-Device .............................................................................. 7-16
Table 7-14. Set Descriptor-Configuration ................................................................... 7-17
Table 7-15. Set Descriptor-String ................................................................................ 7-17
Table 7-16. Set Configuration ..................................................................................... 7-19
Table 7-17. Get Configuration ..................................................................................... 7-19
Table 7-18. Set Interface (Actually, Set Alternate Setting AS for Interface IF) ......... 7-20
Table 7-19. Get Interface (Actually, Get Alternate Setting AS for interface IF) ........ 7-21
Table 7-20. Sync Frame ............................................................................................... 7-22
Table 7-21. Firmware Download ................................................................................. 7-23
Table 7-22. Firmware Upload ...................................................................................... 7-23
Table 8-1. Isochronous Endpoint FIFO Starting Address Registers ............................. 8-6
Table 8-2. Addresses for RD# and WR# vs. ISODISAB bit ....................................... 8-15
Table 9-1. EZ-USB Interrupts ....................................................................................... 9-1
Table 9-2. 8051 JUMP Instruction .............................................................................. 9-10
Table 9-3. A Typical USB Jump Table ....................................................................... 9-11
Table 10-1. EZ-USB States After Power-On Reset (POR) ......................................... 10-2
Table 10-2. EZ-USB States After a USB Bus Reset ................................................... 10-6
Table 10-3. Effects of an EZ-USB Disconnect and Re-connect .................................. 10-7
Table 10-4. Effects of Various EZ-USB Resets (“U” Means “Unaffected”) .............. 10-8
Table 12-1. Bulk Endpoint Buffer Memory Addresses ............................................... 12-3
Table 12-2. Isochronous Endpoint FIFO Register Addresses ..................................... 12-4
Table 12-3. Isochronous Endpoint Byte Count Register Addresses ............................ 12-6
Table 12-4. IO Pin Alternate Functions ..................................................................... 12-10
Table 12-5. Control and Status Register Addresses for Endpoints 0-7 ..................... 12-31
Table 12-6. Isochronous FIFO Start Address Registers ............................................ 12-51
Table 13-1. DC Characteristics .................................................................................... 13-1
Table 13-2. General Memory Timing .......................................................................... 13-2
Table 13-3. Program Memory Read ............................................................................ 13-2
Table 13-4. Data Memory Read ................................................................................... 13-2
Table 13-5. Data Memory Write .................................................................................. 13-3
Table 13-6. Fast Data Write ......................................................................................... 13-3
Table 13-7. Fast Data Read .......................................................................................... 13-3
Table A-1. Feature Summary of 8051 Core and Common 803x/805x Configurations A-4
Table B-1. Legend for Instruction Set Table .................................................................B-4
Table B-2. 8051 Instruction Set .....................................................................................B-5
Table B-3. Data Memory Stretch Values .....................................................................B-12
Table B-4. Special Function Registers ........................................................................B-14
Table B-5. Special Function Register Reset Values ....................................................B-16
Table B-6. PSW Register - SFR D0h ..........................................................................B-18
Table C-1. Timer/Counter Implementation Comparison ...............................................C-2
Table C-2. TMOD Register - SFR 89h ..........................................................................C-4
Table C-3. TCON Register - SRF 88h ...........................................................................C-5
Table C-4. CKCON Register - SRF 8Eh .......................................................................C-8
Table C-5. Timer 2 Mode Control Summary ..............................................................C-10
Table C-6. T2CON Register - SFR C8h ......................................................................C-10
Table C-7. Serial Port Modes ......................................................................................C-15
Table C-8. SCON0 Register - SFR 98h .......................................................................C-16
Table C-9. SCON1 Register - SFR C0h ......................................................................C-18
Table C-10. Timer 1 Reload Values for Common Serial Port Mode 1 Baud Rates ....C-23
Table C-11. Timer 2 Reload Values for Common Serial Port Mode 1 Baud Rates ....C-24
Table C-12. IE Register - SFR A8h .............................................................................C-31
Table C-13. IP Register - SFR B8h .............................................................................C-32
Table C-14. EXIF Register - SFR 91h .........................................................................C-33
Table C-15. EICON Register - SFR D8h ....................................................................C-34
Table C-16. EIE Register - SFR E8h ...........................................................................C-35
Table C-17. EIP Register - SFR F8h ...........................................................................C-36
Table C-18. Interrupt Natural Vectors and Priorities ..................................................C-37
Table C-19. Interrupt Flags, Enables, and Priority Control .........................................C-38
Table C-20. PCON Register - SFR 87h .......................................................................C-41
下载该资料的人也在下载 下载该资料的人还在阅读
更多 >

评论

查看更多

下载排行

本周

  1. 1电子电路原理第七版PDF电子教材免费下载
  2. 0.00 MB  |  1491次下载  |  免费
  3. 2单片机典型实例介绍
  4. 18.19 MB  |  95次下载  |  1 积分
  5. 3S7-200PLC编程实例详细资料
  6. 1.17 MB  |  27次下载  |  1 积分
  7. 4笔记本电脑主板的元件识别和讲解说明
  8. 4.28 MB  |  18次下载  |  4 积分
  9. 5开关电源原理及各功能电路详解
  10. 0.38 MB  |  11次下载  |  免费
  11. 6100W短波放大电路图
  12. 0.05 MB  |  4次下载  |  3 积分
  13. 7基于单片机和 SG3525的程控开关电源设计
  14. 0.23 MB  |  4次下载  |  免费
  15. 8基于AT89C2051/4051单片机编程器的实验
  16. 0.11 MB  |  4次下载  |  免费

本月

  1. 1OrCAD10.5下载OrCAD10.5中文版软件
  2. 0.00 MB  |  234313次下载  |  免费
  3. 2PADS 9.0 2009最新版 -下载
  4. 0.00 MB  |  66304次下载  |  免费
  5. 3protel99下载protel99软件下载(中文版)
  6. 0.00 MB  |  51209次下载  |  免费
  7. 4LabView 8.0 专业版下载 (3CD完整版)
  8. 0.00 MB  |  51043次下载  |  免费
  9. 5555集成电路应用800例(新编版)
  10. 0.00 MB  |  33562次下载  |  免费
  11. 6接口电路图大全
  12. 未知  |  30320次下载  |  免费
  13. 7Multisim 10下载Multisim 10 中文版
  14. 0.00 MB  |  28588次下载  |  免费
  15. 8开关电源设计实例指南
  16. 未知  |  21539次下载  |  免费

总榜

  1. 1matlab软件下载入口
  2. 未知  |  935053次下载  |  免费
  3. 2protel99se软件下载(可英文版转中文版)
  4. 78.1 MB  |  537793次下载  |  免费
  5. 3MATLAB 7.1 下载 (含软件介绍)
  6. 未知  |  420026次下载  |  免费
  7. 4OrCAD10.5下载OrCAD10.5中文版软件
  8. 0.00 MB  |  234313次下载  |  免费
  9. 5Altium DXP2002下载入口
  10. 未知  |  233046次下载  |  免费
  11. 6电路仿真软件multisim 10.0免费下载
  12. 340992  |  191183次下载  |  免费
  13. 7十天学会AVR单片机与C语言视频教程 下载
  14. 158M  |  183277次下载  |  免费
  15. 8proe5.0野火版下载(中文版免费下载)
  16. 未知  |  138039次下载  |  免费