background image

Preliminary - Information Subject to Change - 9/24/98

EZ-USB Development Board 

5 - 19

 

Table 5-12: Expansion Connectors Signal Descriptions

Signal

Type

Description

Power Signals

GND

PWR

Signal Ground. Connected to proto board ground plane.

3.3V

PWR

3.3 volts from the EZDB Regulator U6

5V

PWR

5 volts supplied from either of two sources, depending on the position of the 
shorting plug on EZDB J4 (Power Select). If pins 2-3 are jumpered (“BUS”), the 
power is supplied from pin 1 of the USB connector. If pins 1-2 are jumpered 
(“EXT”) the power is supplied externally from J2 (“EXT 5V). The red “PWR” LED 
is connected to this signal. NOTE: USB supplies 100 ma max (hub) or 500 ma max 
(direct), and can be as low as 4.4V due to cable and connector drops.

NC

Unconnected on the EZDB.

8051 Interface Signals

A[15..0]

OUT

8051 Address Bus. Always drives.

D[7..0]

IO

8051 Bi-directional Data Bus. Also carries the data for fast transfers (using FRD#/
FWR strobe signals). Drives low in suspend.

PSEN#

OUT

8051 Program Store Enable strobe

RD#

OUT

8051 external memory Read strobe

WR#

OUT

8051 external memory Write strobe

Programmable Control Signals (from EZDB U5, a 22V10) See page 5-15 for equations.

CE1#

OUT

Chip enable signal for EZDB U1, a 32Kbyte RAM

CE2#

OUT

Chip enable signal for EZDB U2, a 32 Kbyte RAM

RD1#

OUT

Read Strobe for EZDB U1

RD2#

OUT

Read Strobe for EZDB U2

PRD#

OUT

OR’d PSEN and RD

PF[3..0]

IO

General purpose 22V10 outputs (or inputs)

Other EZ-USB Signals

BKPT

OUT

EZ-USB Breakpoint output signal. Also buffered and connected to the green 
“BKPT/Monitor” LED

WU#

OUT

EZ-USB Wakeup signal (from push-buttons)

Содержание EZ-USB

Страница 1: ...The EZ USBTM Integrated Circuit Getting Started Guide AN3041Q Version 1 5 ...

Страница 2: ...ilure of the Anchor Chips product could create a situation where personal injury or death may occur Should Buyer purchase or use Anchor Chips products for any such unintended or unauthorized application Buyer shall indemnify and hold Anchor Chips and its officers employees subsidiaries affiliates and distributors harmless against all claims costs damages expenses and reasonable attorney fees arisi...

Страница 3: ... 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 2 1 EZ USB Xcelerator Development Kit Contents 2 2 Hardware 2 2 Software on CD ROM 2 2 EZ USB Tutorials 2 3 Printed Documentation 2 3 Getting Started Guide Contents ...

Страница 4: ... 2 EZ USB Development Board 5 1 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 Configuration 00 5 11 Configuration 01 5 12 Configuration 11 5 12 Configuration 10 5 12 PLD Signals 5 13 PLD Source File 5 15 Prototype Board Expansion Connectors P1 P5 5 17 Philips PCF8574 IO Expander 5 21 Connector Switch Jumper and Ind...

Страница 5: ...A P T E R 1 EZ USB Development Kit 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 ...

Страница 6: ... including an enhanced 8051 core 4 8 or 16 Kbytes of RAM and an intelligent USB core The family includes 16 different products to accommodate the needs of different systems The enhanced 8051 core provides five times the performance of the standard 8051 while maintaining 8051 software compatibility With on chip RAM firmware code can be downloaded from the host PC This allows the peripheral manufact...

Страница 7: ...lopment Kit They represent most of the development tools required to build a USB system EZ USB Development Board EZ USB Peripheral Board EZ USB Firmware Library and Firmware Frameworks EZ USB General Purpose Device Driver EZ USB Driver and Firmware Sample Code Anchor Loader Driver sample code and driver EZ USB Control Panel EZ USB Documentation Reference Schematics 8051 Limited C Compiler from Kei...

Страница 8: ...ely transfers data bytes to and from the USB interface The internal microprocessor is an enhanced 8051 with fast execution time and enhanced features It uses internal RAM for program and data storage making the 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 ...

Страница 9: ...USB chip The AN2131Q an 80 pin version of the EZ USB family has in addition to the 24 IO pins a 16 bit address bus and 8 bit data bus for external memory expansion A special fast transfer mode moves data directly between external logic and internal USB FIFOs The fast transfer mode along with abundant endpoint resources allows the EZ USB family to support transfer bandwidths beyond the maximum requ...

Страница 10: ...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 The device responds with ID s that represent your non downloaded device Vendor XYZ Corp Product GIZMOLOADER The Host PC sees these ID s and knows to load your Loader Driver based on the EZLOADER example in the Driver directory on the CD Figure...

Страница 11: ...ID s and knows to load your 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 EZ USB Development System Block Diagram During system development the...

Страница 12: ...Development board with development board Vendor Product and Device ID s signals host to load the EZ MON driver USB Device USB Capable computer Windows Host EZ USB Your Application Firmware loaded by the monitor via a serial port on the board Keil Monitor Debugger downloaded by the EZ MON Driver Anchor s EZ USB Control Panel Application Anchor s EZ MON Device Driver knows how to download the monito...

Страница 13: ...he 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 Once the Keil Monitor is running you run the Keil Debugger on the Host computer and download your application code using the serial port on the Developer s Kit board to the 8051 RAM ...

Страница 14: ...e Vendor XYZ Corp Product GIZMO The Host PC sees these ID s and knows to load your 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 ...

Страница 15: ...eliminary Information Subject to Change 9 24 98 C H A P T E R 2 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 ...

Страница 16: ...B Xcelerator Development Kit Contents Hardware EZ USB Developer Board AN2131DK Shielded Series A B USB Cable Breadboard RS 232 Cable Software on CD ROM Custom Software Utilities Documentation EZ USB Control Panel Application Software USB Generic Driver Source file for USB Generic Driver EZ USB Loader Driver Example Source file for EZ USB Loader Driver EZ USB Firmware Library EZ USB Applications Fr...

Страница 17: ... 8051 Build Environment Compiler Assembler Linker Debugger Monitor Documentation and User Guide 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 ...

Страница 18: ...Preliminary Information Subject to Change 9 24 98 2 4 EZ USB Development Kit Contents ...

Страница 19: ...Preliminary Information Subject to Change 9 24 98 C H A P T E R 3 EZ USB Development Kit Software Beginning the Install Procedure 3 2 Installing the Control Panel Drivers and Documentation 3 3 ...

Страница 20: ...erating systems which provide USB support Win 95 OSR2 1 version 4 03 1214 or later Windows 98 highly recommended The OS version can be found in the registry at HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows CurrentVersion VersionNumber If you are using Win95 and are not up to version 1214 then you need to get the most current version of usbsupp exe and install it usbsupp exe is available through Mi...

Страница 21: ... appropriate menu item and follow the install directions on the screen 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 ...

Страница 22: ...ginning page of topic links Keil 8051 2K Development tools loads the Keil firmware development system onto your PC This version can compile and locate up to 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 Keil 8051 4K D...

Страница 23: ...Preliminary Information Subject to Change 9 24 98 C H A P T E R 4 Installing the Hardware Confirming Installation Using the Control Panel 4 2 ...

Страница 24: ... An inf file was also created in the Windows INF directory Confirming Installation Using the Control Panel Run the Control Panel application and perform a Get Device Descriptor operation by clicking the GetDev button The control panel should display the response from the Development board shown below The idVendor value of 0x547 is the Anchor Chips vendor ID and the idProduct value of 0x80 identifi...

Страница 25: ...are 4 3 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 ...

Страница 26: ...Preliminary Information Subject to Change 9 24 98 4 4 Installing the Hardware ...

Страница 27: ...d 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 5 17 Philips PCF8574 IO Expander 5 21 Connector Switch Jumper and Indicator Locations 5 23 ...

Страница 28: ...eil 8051 assembler C and debugger work in concert with the development board to provide a complete code development environment An 8051 debug monitor is typically loaded into development board expansion RAM to leave the internal EZ USB RAM free for code development Even though you can use only 2K of internal 8K RAM with the evaluation version of the Keil tools the full retail version allows code o...

Страница 29: ...e board 8051Resources Used If you plan to expand the EZ USB Development Board by using the prototype board it is important to know which 8051 signals are used by the main board to avoid signal conflicts These signals are RD WR RXD1 and TXD1 The RD and WR signals are hard wired to the memory decode PAL For proper operation of the 8051 monitor the RD and WR signals must be active Never change the PO...

Страница 30: ... Figure 5 1 EZ USB Development Board Components A N 2131Q U1 32Kx8 RAM U2 32Kx8 RAM A 15 0 D 7 0 A 14 0 A 14 0 22V10 PLD EA CE1 CE2 RD1 RD2 PF 3 0 CE1 RD1 CE2 RD2 PC6 W R A 15 12 PC7 RD PSEN PA 7 0 PB 7 0 PC 7 0 CLK24 BKPT W U PCF8574 U11 PCF8574 U12 EEPROM 12 M H z M M 1 M M 0 M M 1 M M 0 RS 232 Level Converter 3 4 7 8 1 2 5 6 SIO 0 SIO 1 Expansion C onnectors P1 P5 JP1 3 3V R egulator 3 2 1 3 2 ...

Страница 31: ...AN2131Q Debug monitor code may be loaded into this external RAM to keep the AN2131Q internal RAM free for user code A 22V10 PAL provides the external RAM enable signals Two configuration switches allow four different memory maps for the external RAM The EZ USB 8051 contains two UARTS Both are brought out to jumper block JP1 which connects the UART signals to an RS 232 level shifter and two DB 9 fe...

Страница 32: ... 2 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 Table 5 1 UART Buffer Connections JP1 Pins Function Default 1 2 TXD0 Installed 3 4 RXD0 Installed 5 6 TXD1 Installed 7 8 RXD1 Installed Table 5 2 Board Power Source J4 Pins...

Страница 33: ... the U9 EEPROM as an AN2131 boot loader set switches 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 Table 5 4 8 position DIP switch S6 Position Function Description Default 1 PCF8574 bit 4 8051 reads switch state over I2C bus OFF H 2 PCF8574 ...

Страница 34: ... Connectors Table 5 5 SW7 SW8 Settings for Various EEPROM Types EEPROM SW7 SW8 24LC00 Either Either 24LC01 ON ON 24LC02 ON ON 24LC32 OFF ON 24LC64 OFF ON Table 5 6 USB Connector J1 Pin Signal 1 Vcc 2 D 3 D 4 GND Table 5 7 External 5V Power Connector J2 Pin Signal 1 GND 2 NC 3 5V ...

Страница 35: ...rd using 2 2K resistors External I2 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 8 I2C Bus Connector J3 Pin Signal 1 GND 2 SDA Note 1 3 SCL Note 1 4 3 3V Table 5 9 SIO 0 Connector P6 Pin Signal 1 NC 2 TXD0 RS 232 3 RXD0 RS 232 4 NC 5 GND 6 NC 7 NC 8 NC 9 NC ...

Страница 36: ... 10 EZ USB Development Board NOTE The UART transmit and receive signals are connected to connectors P6 and P7 only if the JP1 jumpers are installed Table 5 10 SIO 1 Connector P7 Pin Signal 1 NC 2 TXD1 RS 232 3 RXD1 RS 232 4 NC 5 GND 6 NC 7 NC 8 NC 9 NC ...

Страница 37: ... mode is useful for checking out final code since the EZ USB chip operates stand alone Figure 5 2 Memory Maps Based on Switches SW4 SW3 32K Ext RAM Code Data internal C D internal C D 32K Ext RAM Code Data internal C D 32K Ext RAM Code Data 32K Ext RAM Code Data internal Data 32K Ext RAM Code Data Ext Code SW 4 ON SW 3 ON 00 0x0000 0x2000 0x8000 0xFFFF SW 4 ON SW 3 OFF 01 SW 4 OFF SW 3 ON 10 SW 4 ...

Страница 38: ... EA 0 so that internal EZ USB 8K RAM occupies the address space 0000 1FFF See Note 1 Configuration 10 This configuration is almost identical to configuration 11 The only difference is that the 22V10 sets EA 1 forcing code fetches from external RAM rather than from internal EZ USB RAM This simulates ROM versions of the EZ USB family where the internal 8K RAM is data only Note 1 The EZ USB RD and WR...

Страница 39: ... on the ABEL file shown in PLD Source File on page 5 15 Table 5 11 22V10 Signals U5 Pin Signal Function 1 NC 2 PA2 OE Not used 3 PA3 CS Not used 4 BKPT Not used 5 PSEN AN2131 PSEN pin 6 PC7 RD AN2131 RD pin 7 MM0 Memory Mode Switch Select 0 8 NC 9 MM1 Memory Mode Switch Select 1 10 SPARE Not Used 11 A12 AN2131 A12 12 A13 AN2131 A13 13 A14 AN2131 A14 14 GND 15 NC 16 A15 AN2131 A15 17 PF0 Not Used e...

Страница 40: ...4 98 5 14 EZ USB Development Board 22 NC 23 PRD OR d PSEN or RD connected to P2 13 24 RD2 U2 RAM Read Strobe 25 RD1 U1 RAM Read Strobe 26 CE2 U2 RAM Chip Enable 27 CE1 U1 RAM Chip Enable 28 Vcc 3 3V Table 5 11 22V10 Signals U5 Pin Signal Function ...

Страница 41: ...s 00 and 10 on 4 3 98 to allow the all switch on default x c z X C Z Inputs A12 A13 A14 A15 pin 11 12 13 16 nRD nPSEN BKPT PA3 PA2 pin 6 5 4 3 2 mm1 mm0 pin 9 7 Outputs EA nPRD nRD2 nRD1 nCE2 nCE1pin 21 23 24 25 26 27 modesw mm1 mm0 two dipswitches equations nPRD nRD nPSEN WHEN modesw 00 THEN No external memory nCE1 1 nCE2 1 nRD1 1 nRD2 1 EA 0 ELSE WHEN modesw 01 THEN Ext P D mem at 8000 can add m...

Страница 42: ... at 0000 and 8000 nCE1 A15 nCE2 A15 nRD1 nRD nPSEN nRD2 nRD nPSEN EA 0 ELSE WHEN modesw 10 THEN All program mem external nCE1 A15 nCE2 A15 nRD1 nRD nPSEN nRD2 nRD nPSEN EA 1 test_vectors mm1 mm0 A15 nRD nPSEN nCE1 nCE2 nRD1 nRD2 EA 0 0 x x x 1 1 1 1 0 10 all mem selects and strobes OFF 0 1 0 1 1 1 1 1 1 0 01 top of mem for rd or psen 0 1 1 1 0 0 1 0 1 0 PSEN only 0 1 1 0 1 0 1 0 1 0 RD only 0 1 1 ...

Страница 43: ...tion P4 has 3 3V on pin 20 and is not pod compatible The following table describes these signals In the table the EZ USB Development Board is abbreviated as EZDB Active low signals end with Direction is relative to the EZDB 1 1 0 1 0 0 1 0 0 0 11 top and bot mem for rd or psen 1 1 0 0 1 0 1 0 0 0 1 1 0 1 1 0 1 1 1 0 1 1 1 1 0 1 0 0 0 0 PSEN 1 1 1 0 1 1 0 0 0 0 RD 1 1 1 1 1 1 0 1 1 0 neither 1 0 1 ...

Страница 44: ... 16 PA1 18 3 3V 20 P5 Male 10x2 hdr 3 3V 2 NC 1 PC7 4 PC5 6 nc 3 PC3 8 PC6 5 PC1 10 PB7 12 PC4 7 3 3 V 14 3 3 V 16 PC2 9 3 3 V 18 PC0 11 GND 20 PB6 13 5V 15 SCL 17 SDA 19 P2 Male 10x2 hdr GND 2 NC 1 GND 4 3 3 V 6 RD 3 3 3 V 8 PF3 5 3 3 V 10 3 3 V 12 PF2 7 3 3 V 14 3 3 V 16 PF1 9 GND 18 PF0 11 GND 20 PRD 13 nc 15 CE1 17 CE2 19 P3 Male 10x2 hdr GND 2 NC 1 3 3 v 4 WR 3 3 3 v 6 GND 8 5V 5 GND 10 RES 7...

Страница 45: ...as 4 4V due to cable and connector drops NC Unconnected on the EZDB 8051 Interface Signals A 15 0 OUT 8051 Address Bus Always drives D 7 0 IO 8051 Bi directional Data Bus Also carries the data for fast transfers using FRD FWR strobe signals Drives low in suspend PSEN OUT 8051 Program Store Enable strobe RD OUT 8051 external memory Read strobe WR OUT 8051 external memory Write strobe Programmable C...

Страница 46: ...USB IO port A PB 7 0 IO EZ USB IO port B PC 7 0 IO EZ USB IO port C CLK24 OUT 24 MHz 50 duty cycle clock 8051 clock SCL OD Open drain I2 C clock pulled up to 3 3V with 2 2K resistor on EZDB SDA OD Open drain I2C data pulled up to 3 3V with 2 2K resistor on EZDB Table 5 12 Expansion Connectors Signal Descriptions Signal Type Description ...

Страница 47: ...ing a pin HI makes it an input with a weak pull up that can be driven low by an external signal Setting a pin LO drives LOW and thus makes it an output IO pins are HI inputs at power on The Development Board switches and push buttons connect to U2 which is strapped to address 0010000d d is the I2 C direction bit To read the eight bits send an I2 C command byte of 01000001 to address the 8574 and s...

Страница 48: ...hat 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 The INT pin returns to the HI state when data on the port returns to its original setting or when data is read from the 8574 ...

Страница 49: ...input of the 3 3 volt regulator It is ON whenever USB power or external power is applied to the board Figure 5 5 Locations of Switches and Jumpers P7 SIO 1 P 6 S IO 0 1 3 5 7 2 4 6 8 GND 5V EXT BUS J2 J4 J4 J5 P3 P2 P1 J4 U9 J3 P4 P5 1 2 1 2 1 2 1 2 19 20 1 2 19 20 19 20 19 20 19 20 1 2 3 4 I2 C S6 S1 S2 S3 S4 S5 RESET Power Light BKPT Light 1 2 3 DISCON PCB Power Select USB UART Buffers 5V Power ...

Страница 50: ...nt Board 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 ...

Отзывы: