Download Print this page

Cypress AN77960 Manual

Introduction to ez-usb fx3’s high-speed usb host controller

Advertisement

Quick Links

Introduction to EZ-USB® FX3's High-Speed USB Host Controller
If you have a question, or need help with this application note, contact the author at
AN77960 describes how the high-speed Universal Serial Bus (USB) host controller in the
EZ-USB® FX3™ allows embedded systems to connect to a variety of USB peripherals. A
hands-on USB host example in this document can help developers create applications for
FX3's high-speed USB host controller.
Contents
Introduction ....................................................................... 1
USB Overview ................................................................... 1
FX3 USB Subsystem Overview ......................................... 2
FX3 High-Speed USB Host Controller ............................... 3
FX3 USB Host API from SDK v1.1 .................................... 3
Running the FX3 USB Host Example ................................ 3
Summary ......................................................................... 11
Worldwide Sales and Design Support ............................. 13
www.cypress.com
Software Version: FX3 SDK Full Package, v1.1

Introduction

USB is so commonplace that it has almost completely
replaced
peripheral devices and a PC. This holds true both for
general-purpose devices, such as flash drives and mice,
and special-purpose devices for specific applications.
According to the standard USB 2.0 specifications, USB
peripherals may not communicate directly with one
another; they may communicate only with a USB host,
which fully controls data traffic on the bus. The Cypress
EZ-USB FX3 with integrated high-speed USB host
controller, along with the USB function and On-The-Go
(OTG) controllers, accomplishes two things: It retains the
device functions and allows embedded systems to act as
a USB host.
This document has two goals: to introduce the high-speed
USB host controller integrated in the FX3 device and to
describe how to create applications based on the USB
host example given in the FX3 Software Development Kit
(SDK) version 1.1.

USB Overview

This section briefly defines the terms referenced in this
document as well as those required to understand the
system operation. There are many excellent references
about USB, including the USB 2.0 Specification, that cover
higher-level details.
Document No. 001-77960 Rev. **
Author: Hingkwan Huen]
Associated Project: No
Associated Part Family: EZ-USB® FX3
Related Application Notes:
AN75705 - Getting Started with FX3
hkh@cypress.com.
other
communication
AN77960
methods
between
1

Advertisement

loading
Need help?

Need help?

Do you have a question about the AN77960 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Cypress AN77960

  • Page 1: Table Of Contents

    If you have a question, or need help with this application note, contact the author at hkh@cypress.com. AN77960 describes how the high-speed Universal Serial Bus (USB) host controller in the EZ-USB® FX3™ allows embedded systems to connect to a variety of USB peripherals. A hands-on USB host example in this document can help developers create applications for FX3’s high-speed USB host controller.
  • Page 2: Fx3 Usb Subsystem Overview

    One important aspect of OTG is that a host and peripheral can switch roles when necessary. FX3 USB Subsystem Overview The FX3 USB block includes: • USB 3.0 function controller • USB 2.0 function controller • USB 2.0 embedded host controller www.cypress.com Document No. 001-77960 Rev. **...
  • Page 3: Fx3 High-Speed Usb Host Controller

    UART terminal and application (e.g., Teraterm) and documented in the following C header file. • FX3 DVK with 5-V power supply ${FX3_INSTALL_PATH}\firmware\u3p_firmware\inc\cyu3u • Standard USB mouse and USB flash disk sbhost.h • USB micro-B to standard-A adapter www.cypress.com Document No. 001-77960 Rev. **...
  • Page 4 5. Browse to the example project directory and select the "cyfxusbhost" example, then click "OK". The example project directory is usually located at "${FX3_INSTALL_PATH}\firmware\basic_examples". 3. An “Import” window pops up. Select “Existing Projects into Workspace”, then click “Next>”. www.cypress.com Document No. 001-77960 Rev. **...
  • Page 5 Step 3: Configure the Zylin Plug-in for GDB Debug 1. Select USBHost as the current project, then select Run- 7. After the "USBHost" project is imported into your >Debug Configurations. workspace, it appears in the "Project Explorer" pane. www.cypress.com Document No. 001-77960 Rev. **...
  • Page 6 If not, click on Browse and select them manually. b main continue under the Run commands. Then select Apply. 4. On the left pane, select the Debugger tab. Type arm-none-eabi-gdb.exe in the GDB debugger field. Select Verbose console mode. www.cypress.com Document No. 001-77960 Rev. **...
  • Page 7 J98: Open J98: Open UART UART VBUS_CTRL VBUS_CTRL J101-104: 1-2 J101-104: 1-2 J100: 2-3 J100: 2-3 PMOD[2:0] PMOD[2:0] SW40-1: ON SW40-1: ON SW40-2: ON SW40-2: ON SW40-3: OFF SW40-3: OFF SW40-4: OFF SW40-4: OFF www.cypress.com Document No. 001-77960 Rev. **...
  • Page 8 The SEGGER J-Link GDB Server Vx.xxx window pops up. Power up the FX3 DVK board, and then the "ARM9 Core Id: 0x07926069" shows up in the Target field. Change the initial JTAG speed to 1000 kHz and select "Little endian". www.cypress.com Document No. 001-77960 Rev. **...
  • Page 9 Introduction to EZ-USB® FX3’s High-Speed USB Host Controller 2. Now it is time for the firmware download. Under Debug Configurations, click Debug. www.cypress.com Document No. 001-77960 Rev. **...
  • Page 10 Event: 2, Input: 1" shows up in the UART terminal set to 1152008N1N. 5. Plug in either the USB flash drive or mouse to the DVK's USB port using the Micro-B-to-A adapter. The respective output shows in the UART terminal. www.cypress.com Document No. 001-77960 Rev. **...
  • Page 11: Summary

    Included in the document were associated library and firmware examples in the SDK. As a result, this application note gave you everything you need to start an implementation with ease. About the Author Name: Hingkwan Huen Title: Systems Engineer, Sr Staff Contact: hkh@cypress.com www.cypress.com Document No. 001-77960 Rev. **...
  • Page 12 Introduction to EZ-USB® FX3’s High-Speed USB Host Controller Document History Document Title: Introduction to EZ-USB® FX3’s High-Speed USB Host Controller Document Number: 001-77960 Revision Orig. of Submission Description of Change Change Date 3606545 05/2/2012 New Spec. www.cypress.com Document No. 001-77960 Rev. **...
  • Page 13: Worldwide Sales And Design Support

    Cypress Source Code and derivative works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as specified in the applicable agreement.