Cypress Disclaimer Agreement
The information in this document is subject to
change without notice and should not be con-
strued as a commitment by Cypress Semicon-
ductor Corporation Incorporated. While
reasonable precautions have been taken,
Cypress Semiconductor Corporation assumes
no responsibility for any errors that may appear
in this document.
No part of this document may be copied or
reproduced in any form or by any means with-
out the prior written consent of Cypress Semi-
conductor Corporation.
Cypress Semiconductor products are not
designed, intended, or authorized for use as
components in systems intended for surgical
implant into the body, or other applications
intended to support or sustain life, or for any
other application in which the failure of the
Cypress Semiconductor product could create a
situation where personal injury or death may
occur. Should Buyer purchase or use Cypress
Semiconductor products for any such unin-
tended or unauthorized application, Buyer shall
indemnify and hold Cypress Semiconductor
and its officers, employees, subsidiaries, affili-
ates and distributors harmless against all
claims, costs, damages, expenses, and rea-
sonable attorney fees arising out of, directly or
indirectly, any claim of personal injury or death
associated with such unintended or unautho-
rized use, even if such claim alleges that
Cypress Semiconductor was negligent regard-
ing the design or manufacture of the product.
The acceptance of this document will be con-
strued as an acceptance of the foregoing con-
ditions.
EZ-USB FX2 Technical Reference Manual,
Version 2.2.
Copyright © 2000, 2001, 2002, 2003
Cypress Semiconductor Corporation.
All rights reserved.
List of Trademarks
Cypress, the Cypress Logo, EZ-USB, Making USB Universal, Xcelerator, and ReNumeration are
trademarks or registered trademarks of Cypress Semiconductor Corporation. Macintosh is a regis-
tered trademark of Apple Computer, Inc. Windows is a registered trademark of Microsoft Corpora-
tion. I²C is a registered trademark of Philips Electronics. All other product or company names used
in this manual may be trademarks, registered trademarks, or servicemarks of their respective own-
ers.
[+] Feedback
i
Table of Contents
Chapter 1. Introducing EZ-USB FX2
1.1 Introduction....................................................................................................................................1-1
1.2 An Introduction to USB..................................................................................................................1-1
1.3 The USB Specification ..................................................................................................................1-2
1.4 Host Is Master ...............................................................................................................................1-3
1.5 USB Direction................................................................................................................................1-3
1.6 Tokens and PIDs...........................................................................................................................1-3
1.6.1 Receiving Data from the Host..........................................................................................1-5
1.6.2 Sending Data to the Host.................................................................................................1-5
1.7 USB Frames..................................................................................................................................1-5
1.8 USB Transfer Types......................................................................................................................1-6
1.8.1 Bulk Transfers..................................................................................................................1-6
1.8.2 Interrupt Transfers ...........................................................................................................1-6
1.8.3 Isochronous Transfers.....................................................................................................1-7
1.8.4 Control Transfers............................................................................................................1-7
1.9 Enumeration..................................................................................................................................1-8
1.9.1 Full-Speed / High-Speed Detection .................................................................................1-8
1.10 The Serial Interface Engine (SIE)................................................................................................1-9
1.11 ReNumeration™........................................................................................................................1-10
1.12 EZ-USB FX2 Architecture .........................................................................................................1-11
1.13 FX2 Feature Summary..............................................................................................................1-13
1.14 FX2 Integrated Microprocessor.................................................................................................1-13
1.15 FX2 Block Diagram ...................................................................................................................1-15
1.16 Packages...................................................................................................................................1-16
1.16.1 56-Pin Package ...........................................................................................................1-16
1.16.2 100-Pin Package .........................................................................................................1-17
1.16.3 128-Pin Package .........................................................................................................1-17
1.16.4 Signals Available in the Three Packages ....................................................................1-17
1.17 Package Diagrams....................................................................................................................1-20
1.18 FX2 Endpoint Buffers ................................................................................................................1-24
1.19 External FIFO Interface.............................................................................................................1-26
1.20 EZ-USB FX2 Product Family....................................................................................................1-29
Chapter 2. Endpoint Zero
2.1 Introduction....................................................................................................................................2-1
2.2 Control Endpoint EP0....................................................................................................................2-2
2.3 USB Requests...............................................................................................................................2-5
2.3.1 Get Status........................................................................................................................2-7
2.3.2 Set Feature....................................................................................................................2-10
[+] Feedback
ii Table of Contents
(Table of Contents)
2.3.3 Clear Feature.................................................................................................................2-11
2.3.4 Get Descriptor ...............................................................................................................2-12
2.3.4.1 Get Descriptor-Device........................................................................................2-14
2.3.4.2 Get Descriptor-Device Qualifier .........................................................................2-15
2.3.4.3 Get Descriptor-Configuration .............................................................................2-15
2.3.4.4 Get Descriptor-String .........................................................................................2-16
2.3.4.5 Get Descriptor-Other Speed Configuration........................................................2-16
2.3.5 Set Descriptor................................................................................................................2-17
2.3.5.1 Set Configuration ...............................................................................................2-20
2.3.6 Get Configuration ..........................................................................................................2-20
2.3.7 Set Interface ..................................................................................................................2-21
2.3.8 Get Interface..................................................................................................................2-22
2.3.9 Set Address...................................................................................................................2-22
2.3.10 Sync Frame .................................................................................................................2-23
2.3.11 Firmware Load.............................................................................................................2-24
Chapter 3. Enumeration and ReNumeration™
3.1 Introduction ...................................................................................................................................3-1
3.2 FX2 Startup Modes .......................................................................................................................3-1
3.3 The Default USB Device ..............................................................................................................3-3
3.4 EEPROM Boot-load Data Formats ...............................................................................................3-4
3.4.1 No EEPROM or Invalid EEPROM ...................................................................................3-4
3.4.2 Serial EEPROM Present, First Byte is 0xC0 ...................................................................3-5
3.4.3 Serial EEPROM Present, First Byte is 0xC2 ...................................................................3-6
3.5 EEPROM Configuration Byte........................................................................................................3-8
3.6 The RENUM Bit.............................................................................................................................3-9
3.7 FX2 Response to Device Requests (RENUM=0)........................................................................3-10
3.8 FX2 Vendor Request for Firmware Load ....................................................................................3-11
3.9 How the Firmware ReNumerates................................................................................................3-12
3.10 Multiple ReNumerations™ ........................................................................................................3-12
Chapter 4. Interrupts
4.1 Introduction ...................................................................................................................................4-1
4.2 SFRs .............................................................................................................................................4-2
4.2.1 803x/805x Compatibility ..................................................................................................4-5
4.3 Interrupt Processing......................................................................................................................4-6
4.3.1 Interrupt Masking.............................................................................................................4-6
4.3.1.1 Interrupt Priorities.................................................................................................4-7
4.3.2 Interrupt Sampling ...........................................................................................................4-8
4.3.3 Interrupt Latency..............................................................................................................4-8
4.4 USB-Specific Interrupts.................................................................................................................4-8
4.4.1 Resume Interrupt.............................................................................................................4-8
4.4.2 USB Interrupts.................................................................................................................4-9
4.4.2.1 SUTOK, SUDAV Interrupts ................................................................................4-12
[+] Feedback
Table of Contents iii
(Table of Contents)
4.4.2.2 SOF Interrupt .....................................................................................................4-13
4.4.2.3 Suspend Interrupt...............................................................................................4-13
4.4.2.4 USB RESET Interrupt ........................................................................................4-13
4.4.2.5 HISPEED Interrupt .............................................................................................4-13
4.4.2.6 EP0ACK Interrupt...............................................................................................4-13
4.4.2.7 Endpoint Interrupts.............................................................................................4-14
4.4.2.8 In-Bulk-NAK (IBN) Interrupt................................................................................4-14
4.4.2.9 EPxPING Interrupt .............................................................................................4-14
4.4.2.10 ERRLIMIT Interrupt..........................................................................................4-15
4.4.2.11 EPxISOERR Interrupt ......................................................................................4-15
4.5 USB-Interrupt Autovectors ..........................................................................................................4-15
4.5.1 USB Autovector Coding.................................................................................................4-17
4.6 I²C-Compatible Bus Interrupt.......................................................................................................4-18
4.7 FIFO/GPIF Interrupt (INT4) .........................................................................................................4-19
4.8 FIFO/GPIF-Interrupt Autovectors ................................................................................................4-20
4.8.1 FIFO/GPIF Autovector Coding.......................................................................................4-21
Chapter 5. Memory
5.1 Introduction....................................................................................................................................5-1
5.2 Internal Data RAM.........................................................................................................................5-1
5.2.1 The Lower 128.................................................................................................................5-2
5.2.2 The Upper 128.................................................................................................................5-2
5.2.3 SFR (Special Function Register) Space..........................................................................5-2
5.3 External Program Memory and External Data Memory.................................................................5-3
5.3.1 56- and 100-pin FX2........................................................................................................5-4
5.3.2 128-pin FX2 .....................................................................................................................5-4
5.4 FX2 Memory Maps........................................................................................................................5-5
5.5 “Von-Neumannizing” Off-Chip Program and Data Memory...........................................................5-8
5.6 On-Chip Data Memory at 0xE000-0xFFFF ...................................................................................5-9
Chapter 6. Power Management
6.1 Introduction....................................................................................................................................6-1
6.2 USB Suspend................................................................................................................................6-3
6.2.1 SUSPEND Register.........................................................................................................6-4
6.3 Wakeup/Resume...........................................................................................................................6-4
6.3.1 Wakeup Interrupt .............................................................................................................6-5
6.4 USB Resume (Remote Wakeup) ..................................................................................................6-6
6.4.1 WU2 Pin...........................................................................................................................6-7
Chapter 7. Resets
7.1 Introduction....................................................................................................................................7-1
7.2 Power-On Reset (POR).................................................................................................................7-2
7.3 Releasing the CPU Reset .............................................................................................................7-3
7.3.1 RAM Download................................................................................................................7-3
[+] Feedback