Advertisement

Quick Links

The EZ-USB
TM
Integrated Circuit
Getting Started Guide
Version 1.5
AN3041Q

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EZ-USB and is the answer not in the manual?

Questions and answers

Summary of Contents for Anchor Chips EZ-USB

  • Page 1 The EZ-USB Integrated Circuit Getting Started Guide Version 1.5 AN3041Q...
  • Page 2 Anchor Chips product could create a situation where personal injury or death may occur. Should Buyer purchase or...
  • Page 3: Table Of Contents

    Required Tools Not Included ........... 1-3 Other Suggested Tools ............. 1-4 EZ-USB Block Diagram ..............1-4 Final EZ-USB System Block Diagram .......... 1-5 Initial Download Process ............... 1-6 EZ-USB Development System Block Diagram ......1-7 Setting up the Development Environment ........1-9 EZ-USB Development Kit Contents EZ-USB Xcelerator Development Kit Contents ......
  • Page 4 Contents EZ-USB Development Kit Software Beginning the Install Procedure ............. 3-2 Installing the Control Panel, Drivers and Documentation ..... 3-3 Installing the Hardware Confirming Installation Using the Control Panel ......4-2 EZ-USB Development Board Board Overview ................5-2 8051Resources Used ..............5-3 Circuit Details ................
  • Page 5 Overview Introduction................1-2 Tools Needed ................. 1-3 EZ-USB Block Diagram ............1-4 Final EZ-USB System Block Diagram ........1-5 Initial Download Process ............1-6 EZ-USB Development System Block Diagram..... 1-7 Setting up the Development Environment ......1-9 Preliminary - Information Subject to Change - 9/24/98...
  • Page 6: Ez-Usb Development Kit Overview

    Preliminary - Information Subject to Change - 9/24/98 Introduction The Anchor Chips EZ-USB is a compact integrated circuit that provides a highly integrated solution for implementing a USB peripheral device. Three key EZ-USB features are: • The EZ-USB family provides a “soft” (RAM-based) solution that allows unlimited configuration and upgrades.
  • Page 7: Tools Needed

    EEPROM, EPROM, or masked ROM that is conventionally used in other USB solutions. The EZ-USB family offers two packages, a 44 PQFP and an 80 PQFP. All EZ-USB devices are pin- and software-compatible. And, all RAM versions have ROM equivalents to allow easy migration for high-volume applications.
  • Page 8: Other Suggested Tools

    EZ-USB family a “soft” solution. The USB host downloads 8051 program code and device personality into RAM over the USB bus, and then the EZ-USB chip re-connects as the custom device defined by the loaded code.
  • Page 9: Final Ez-Usb System Block Diagram

    Preliminary - Information Subject to Change - 9/24/98 USB device even before the 8051 is running. This allows the USB host to download code into EZ-USB RAM, and then start the 8051. The enhanced core simplifies 8051 code by implementing much of the USB protocol.
  • Page 10: Initial Download Process

    The following list details the state of your system from the moment the EZ-USB based device is plugged into the USB bus. • The Host detects that your device is plugged in and asks the device for it’s ID’s...
  • Page 11: Ez-Usb Development System Block Diagram

    Diagram over a serial port and run in the EZ-USB 8051 processor. Then, using the Keil Debugger, you can load programs and debug your firmware application by single stepping and setting breakpoints.
  • Page 12 Preliminary - Information Subject to Change - 9/24/98 Figure 1-3 shows the EZ-USB Developer’s Kit System block diagram. USB Capable computer USB Device Windows Host Anchor's EZ-USB Control EZ-USB Panel Application Your Application Firmware (loaded by the Anchor's EZ-MON Device...
  • Page 13: Setting Up The Development Environment

    Keil Monitor firmware to the embedded 8051 RAM outside of the EZ-USB chip. • The EZMON Driver then releases the Reset of the EZ-USB 8051 processor and starts the Keil Monitor code running. The green light on the development board turns on when the Keil monitor firmware is running.
  • Page 14 Custom Device Driver (based on the Generic Driver example). • The Host Driver and EZ-USB firmware are now loaded and running and perform the data transfers and control functions necessary for your application. You may also have a Windows application that calls your device driver that sends and receives data.
  • Page 15 C H A P T E R EZ-USB Development Kit Contents EZ-USB Xcelerator Development Kit Contents....2-2 Hardware..............2-2 Software on CD-ROM ..........2-2 Printed Documentation ..........2-3 Preliminary - Information Subject to Change - 9/24/98...
  • Page 16: Ez-Usb Development Kit Contents

    EZ-USB fam- ily. Other USB development kits use emulation of the eventual USB device. The EZ-USB Xcelerator developer kit uses the actual device, the AN2131QC, during the entire development.
  • Page 17: Ez-Usb Tutorials

    Keil Development Tools (4K Limited Edition) (8051 Build Environment) • Compiler • Assembler • Linker • Debugger • Monitor • Documentation and User Guide EZ-USB Tutorials Printed Documentation • Getting Started Manual • EZ-USB Technical Reference Manual EZ-USB Development Kit Contents 2 - 3...
  • Page 18 Preliminary - Information Subject to Change - 9/24/98 2 - 4 EZ-USB Development Kit Contents...
  • Page 19: Ez-Usb Development Kit Software

    C H A P T E R EZ-USB Development Kit Software Beginning the Install Procedure..........3-2 Installing the Control Panel, Drivers and Documentation ..3-3 Preliminary - Information Subject to Change - 9/24/98...
  • Page 20: Beginning The Install Procedure

    Start by collecting the following materials: Install • Installation CD. Procedure • The EZ-USB Development Board. • USB Cable. • A Development Platform (PC) with USB support. Verify that USB support is present on the development PC before proceeding. There should be at least one USB connector socket available on the PC chassis (a flat connector socket).
  • Page 21: Installing The Control Panel, Drivers And Documentation

    The Anchor Chips EZ-USB Control Panel is a Windows program that allows sending and receiving of data over the USB to an Anchor Chips EZ-USB IC. This selection also installs all of the sample code, examples, drivers and documentation. After you have clicked “Finish” to complete the Anchor EZ-USB Control Panel installation, you may run the application by selecting: “Start\Programs\Anchor\EzMr.”...
  • Page 22 2 kilobytes of code, which can be located anywhere in the 8051 64K memory. This means that 2 kilobytes of code can be located either in the internal 8 kilobyte EZ-USB RAM, or in the external 64 kilobyte RAM on the development board.
  • Page 23: Installing The Hardware

    C H A P T E R Installing the Hardware Confirming Installation Using the Control Panel ....4-2 Preliminary - Information Subject to Change - 9/24/98...
  • Page 24: Confirming Installation Using The Control Panel

    Control Panel Development board shown below. The “idVendor” value of 0x547 is the Anchor Chips vendor ID, and the “idProduct” value of 0x80 identifies the EZ-USB Development Board. You may wish first to clear the screen by clicking the “Clear” button. The “GetDev”...
  • Page 25 Preliminary - Information Subject to Change - 9/24/98 More detailed instructions on this procedure are available in a tutorial which can be viewed in help files. Start the EZ-USB Control Panel and then select”Help\Help Topics” and choose the topic, “EZ-USB Developer’s Kit Manual”, sub-topic “EZ-USB Developer’s Kit Tutorials.”...
  • Page 26 Preliminary - Information Subject to Change - 9/24/98 4 - 4 Installing the Hardware...
  • Page 27 C H A P T E R EZ-USB Development Board Board Overview ..............5-2 8051Resources Used.............. 5-3 Circuit Details ................ 5-4 Jumpers .................. 5-6 DIP Switch Settings ............... 5-7 Connectors ................5-8 Memory Maps..............5-11 PLD Signals ................. 5-13 PLD Source File..............5-15 Prototype Board Expansion Connectors P1-P5 ....
  • Page 28: Board Overview

    USB designs. All IC’s on the board operate at 3.3 volts. The board may be powered from the USB connector or an external power supply. The EZ-USB Development Board is supplied as part of the Anchor Chips Xcelerator Development Kit, which includes an evaluation version of Anchor-customized software development tools from Keil Software Inc.
  • Page 29: 8051Resources Used

    7. Indicator lights for power and break/monitor operation. 8. Expansion connectors that mate to a supplied prototype board. 8051Resources If you plan to expand the EZ-USB Development Board by using the Used prototype board, it is important to know which 8051 signals are used by the main board to avoid signal conflicts.
  • Page 30: Circuit Details

    C bus is connected to two 8-bit IO expander chips (Philips PCF8574) and an EEPROM used for USB device identification, EZ-USB boot loads and 8051 access. The EEPROM is socketed (8-pin DIP) to allow the use of various EEPROM densities.
  • Page 31 C bus via the PCF8574 chips to give the firmware developer debug support while leaving the EZ-USB IO Ports A, B and C available for the application under development. U11 provides eight outputs to the seven-segment numeric display. U12 provides eight inputs from four push-buttons (S2-S5), two rocker switches, and two general purpose signals (S6X, S7X) from the plug-in prototype board.
  • Page 32: Jumpers

    The advantage of keeping J5 jumpered to pins 2-3 is that if your firmware crashes, you can press the RESET button to re-connect as a “clean” USB device and automatically re-load the Keil debug monitor (turning on the green light). 5 - 6 EZ-USB Development Board...
  • Page 33: Dip Switch Settings

    7 and 8 as shown in Table 5-5. The 24LC00 supplied on the board has no slave address pins, so the switch settings are “don’t care”. The boot load mechanism is described in the EZ-USB Technical Reference Manual. EZ-USB Development Board...
  • Page 34: Connectors

    Table 5-5: SW7, SW8 Settings for Various EEPROM Types EEPROM 24LC00 Either Either 24LC01 24LC02 24LC32 24LC64 Connectors Table 5-6: USB Connector J1 Pin Signal Table 5-7: External 5V Power Connector J2 Pin Signal 5 - 8 EZ-USB Development Board...
  • Page 35 C devices connected to the bus using J3 do not require pullup resistors. The on-board 3.3 volt regulator can supply up to 50 ma to external devices. Table 5-9: SIO-0 Connector P6 Pin Signal TXD0 (RS-232) RXD0 (RS-232) EZ-USB Development Board 5 - 9...
  • Page 36 Preliminary - Information Subject to Change - 9/24/98 Table 5-10: SIO-1 Connector P7 Pin Signal TXD1 (RS-232) RXD1 (RS-232) NOTE: The UART transmit and receive signals are connected to connectors P6 and P7 only if the JP1 jumpers are installed. 5 - 10 EZ-USB Development Board...
  • Page 37: Memory Maps

    Configuration 00 None of the development board external RAM is used in configuration 00. Only the internal 8 Kilobyte EZ-USB RAM is available for 8051 code and data (C&D). This mode is useful for checking out final code, since the EZ-USB chip operates stand- alone.
  • Page 38: Configuration 01

    The debug monitor is loaded into the top 32 Kilobytes of RAM, the user code is loaded into the EZ-USB internal RAM, and the bottom 32 Kilobytes (minus the bottom 8K) is free for memory expansion (See Note 1).
  • Page 39: Pld Signals

    Memory Mode Switch Select 1 SPARE Not Used AN2131 A12 AN2131 A13 AN2131 A14 AN2131 A15 Not Used (expansion P2-11) Not used (expansion P2-9) Not used (expansion P2-7) Not used (expansion P2-5) AN2131Q EA pin EZ-USB Development Board 5 - 13...
  • Page 40 Table 5-11: 22V10 Signals U5 Pin Signal Function PRD# OR’d PSEN or RD (connected to P2-13) RD2# U2 RAM Read Strobe RD1# U1 RAM Read Strobe CE2# U2 RAM Chip Enable CE1# U1 RAM Chip Enable Vcc=3.3V 5 - 14 EZ-USB Development Board...
  • Page 41: Pld Source File

    !nPRD = !nRD # !nPSEN; WHEN (modesw == 00) THEN “ No external memory nCE1 nCE2 nRD1 nRD2 ELSE WHEN(modesw == 01) THEN“ Ext P&D mem at 8000 (can add mem to 0-8K) EZ-USB Development Board 5 - 15...
  • Page 42 [ 0 , 1 , 1 , 0 , ] -> [ 0 1 , 0];“ RD only [ 0 , 1 , 1 , 1 , ] -> [ 0 1 , 0];“ Neither RD or PSEN 5 - 16 EZ-USB Development Board...
  • Page 43 ] -> [ 0 [ 1 , 1 ] -> [ 1 Prototype Five 20-pin headers connect interface signals from the EZ-USB Board Development board to the prototype board. Headers P1-P3 and P5 are pin compatible with HP model 1660 Logic Analyzers to Expansion simplify pod connection.
  • Page 44 Chips Prototype Board. To avoid a 3.3V Male 10x2 short, this pin is clipped on the EZDB. Do not connect an HP logic analyzer pod to P4. 3.3V 3.3 V 3.3 V 3.3 V Figure 5-3: Five 20-Pin Headers 5 - 18 EZ-USB Development Board...
  • Page 45 PRD# OR’d PSEN and RD PF[3..0] General purpose 22V10 outputs (or inputs) Other EZ-USB Signals BKPT EZ-USB Breakpoint output signal. Also buffered and connected to the green “BKPT/Monitor” LED EZ-USB Wakeup signal (from push-buttons) EZ-USB Development Board 5 - 19...
  • Page 46 Table 5-12: Expansion Connectors Signal Descriptions Signal Type Description RES# Buffered output from RESET button PA[7..0] EZ-USB IO port A PB[7..0] EZ-USB IO port B PC[7..0] EZ-USB IO port C CLK24 24 MHz, 50% duty cycle clock (8051 clock) Open-drain I C clock, pulled up to 3.3V with 2.2K resistor on EZDB...
  • Page 47: Philips Pcf8574 Io Expander

    The EZ-USB Development Board uses two Philips PCF8574 IO PCF8574 IO Expander chips (U11 and U12) to provide debugging IO without interfering with the EZ-USB IO ports A, B and C. The PCF8574 is Expander described in the Philips I C Peripherals Handbook (Philips Publication “IC12”).
  • Page 48 8574 pin 13, /INT, is an open-drain output that goes low whenever any of the inputs changes state. U12, the 8574 used for input, has pin 13 connected to the EZ-USB WAKEUP# input. This allows any of the push-buttons to initiate a USB remote wakeup.
  • Page 49: Connector, Switch Jumper And Indicator Locations

    The development board has two indicators. The red “Power” LED is connected to the input of the 3.3 volt regulator. It is ON whenever USB power or external power is applied to the board. EZ-USB Development Board 5 - 23...
  • Page 50 The green LED is connected through a buffer to the AN2131Q BKPT (breakpoint) pin. This signal goes high whenever the 8051 address matches the value in a pair of EZ-USB registers. It is used by the Anchor development tools to indicate that the debug monitor is running.

Table of Contents