OneTechnologyWay•P. O . Box9106•Norwood,MA02062-9106,U.S.A.•Tel : 781.329.4700•Fax: 781.461.3113•www.analog.com
Using the EVAL-ADUSB2EBZ
by Brett Gildersleeve
INTRODUCTION
The EVAL-ADUSB2EBZ features USB-to-I2C and SPI conversion.
It is compatible with 1.8 V and 3.3 V target devices and allows
for SigmaStudio™ integration for most SigmaDSP® processors.
Its on-board power regulators are capable of supplying the
target board, and it features a standard Aardvark-compatible
programming header. The EVAL-UDSUB2EBZ provides SPI
control of up to five slave devices with a low profile surfacemount USB miniature Type B connector, and it allows for plugand-play operation.
The EVAL-ADUSB2EBZ is ideal for downloading code
and register settings to SigmaDSP processors and codecs
with SigmaStudio. It can also be used for real-time tuning
of SigmaDSP production units with SigmaStudio.
GENERAL DESCRIPTION
The EVAL-ADUSB2EBZ, also known as the USBi, is a standalone
communications interface and programmer for SigmaDSPsystems.
It translates USB control commands from SigmaStudio to the I
and SPI communications protocols. The USBi is powered over
the USB cable; therefore, no external power supply is required.
2
C
The ribbon cable and 10-pin header form a bridge to the target
board to connect the communications signals to the target IC.
The ribbon cable also carries 5 V power from the USB hub, which
can be used to power the target board if desired.
The on-board regulators enable both 1.8 V and 3.3 V IOVDD
operation, allowing for increased compatibility with target
devices.
Up to five slave devices can be controlled by the USBi simultaneously. To control multiple SPI devices, additional latch signals
are provided, although they are not connected to the ribbon cable.
The USBi can be used to control SigmaDSP systems in real time
via SigmaStudio, and is capable of programming an EEPROM
in self-boot systems. It is an ideal solution for in-circuit programming and tuning of prototype systems.
The USBi only supports USB 2.0 interfaces; the USBi will not
work with PCs that only support USB Version 1.0 and USB
Version 1.1.
Bill of Materials ............................................................................... 13
Rev. A | Page 2 of 16
Page 3
Application Note AN-1006
USING THE USB INTERFACE WITH SIGMASTUDIO
INSTALLING THE DRIVERS
SigmaStudio must be installed to use the USBi. Once
SigmaStudio has been properly installed, connect the USBi to
an available USB port with the included USB cable. At this
point, Windows® XP recognizes the device and prompts the
user to install drivers.
08093-002
Figure 2. Found New Hardware Notification
Select the Install from a list or specific location (Advanced)
option and click Next >.
Click Search for the best driver in these locations, then select
Include this location in the search. Click Browse to find the
SigmaStudio 3.0\USB drivers directory.
Figure 4. Windows Found New Hardware Wizard—Search and
Installation Options
08093-004
Figure 3. Found New Hardware Wizard—Installation
When the warning about Windows Logo testing appears on the
screen, click Continue Anyway.
8093-003
Figure 5. Windows Logo Testing Warning
08093-005
Rev. A | Page 3 of 16
Page 4
AN-1006 Application Note
ADDING THE USBi TO A SIGMASTUDIO PROJECT
To use the USBi in conjunction with SigmaStudio, first select it
in the Communication Channels subsection of the toolbox in
the Hardware Configuration tab, and add it to the project space.
8093-006
Figure 6. Adding the USBi Communication Channel
If SigmaStudio cannot detect the USBi on the USB port of the
computer, then the background of the USB label will be red.
This may happen when the USBi is not connected or when the
drivers are incorrectly installed.
08093-009
Figure 9. Connecting the USBi to an IC
To change the communication mode and channel, click the
drop-down box and select the appropriate mode and channel
from the list.
08093-007
Figure 7. USBi Not Detected by SigmaStudio
If SigmaStudio detects the USBi on the USB port of the computer,
the background of the USB label changes to orange.
08093-008
Figure 8. USBi Detected by SigmaStudio
CONFIGURING THE USBi TO COMMUNICATE WITH
AN IC
To use the USBi to communicate with the target IC, connect it
by click-dragging a wire between the blue pin of the USBi and
the green pin of the IC. The corresponding drop-down box of
the USBi automatically fills with the default mode and channel
for that IC.
08093-010
Figure 10. Selecting the Communications Mode and Channel
CONFIGURING THE USBi TO COMMUNICATE WITH
MULTIPLE ICS
The USBi can communicate with up to five ICs simultaneously.
To communicate with more than one IC, add another IC to the
project and connect it to the next available pin of the USBi.
Multiple Address Operation with I2C
The USBi can support up to four identical devices on the same
bus if the I
dently set to four different addresses, matching the addresses in
the drop-down box in the Hardware Configuration tab of
SigmaStudio.
2
C address pins of the target devices are indepen-
Rev. A | Page 4 of 16
Figure 11. Multiple Address Operation with I
08093-011
2
C
Page 5
Application Note AN-1006
Multiple Address Operation with SPI Combined Multiple Latch and Multiple Address
The USBi can support up to two identical devices on the same
SPI latch if the SPI address pins of the target devices are independently set to two different addresses, matching the addresses in
the drop-down box in the Hardware Configuration tab of
SigmaStudio.
08093-012
Figure 12. Multiple Address Operation with SPI
Multiple Latch Operation with SPI
The USBi can support devices on five different SPI latches.
When multiple latches are used, the additional SPI latch signals
from the USBi that are not connected to the ribbon cable need
to be manually wired to the target.
Operation with SPI
A combination of multiple latch and multiple address schemes
can be used, but the total number of devices cannot exceed five.
CONTROLLING THE USBi
The USBi has several functions for controlling the target hardware.
The control options are accessed in SigmaStudio by right-clicking
on the USB Interface in the Hardware Configuration tab.
8093-015
Figure 15. USBi Control Menu
Capture Output Data
This option accesses the Capture Window, which displays a log
of all communication between the PC and the target IC
(see Figure 1
7).
Device Power On/Off
This option switches the line that supplies power to the target
board. By default, the device power is on.
08093-013
Figure 13. Multiple Latch Operation with SPI
The locations of extended SPI latch signals are shown in Figure 14.
0x020x04
0x03
Q1
0x01
0x05
Device Enable/Disable
For supported ICs, selecting this option switches the device to
low power mode.
Reset USB Interface
This function performs a software reset of the USB driver, and
causes the Cypress USB microcontroller to reload its firmware.
R12
Figure 14. Extended SPI Latch Signal Pinout (Bottom View of Board)
R11
08093-014
Rev. A | Page 5 of 16
Page 6
AN-1006 Application Note
MONITORING THE USBi
Using the Capture Window, it is possible to view all outgoing
communications transfers from the PC to the target IC. For
each write, the write mode, time of write, cell name (if applicable), parameter name, address, value, data (in decimal and
hexadecimal), and byte length are shown.
For block writes where more than one memory location is
written, only the first location is shown. The expand/collapse
button in the leftmost column allows the user to view the full
data write.
WARNING
The USBi has an EEPROM on the I2C bus at Address 0x51, which
it uses to indicate its Vendor ID and Product ID to the PC, as
well as boot its internal program. You should avoid having any
other EEPROMs in your system design at this address. This
EEPROM is not write-protected; therefore, if you attempt to
write to Address 0x51, you will overwrite the USBi's onboard
EEPROM, and the USBi will cease to function. The USBi cannot be
reprogrammed without returning the board to Analog Devices.
Most EEPROMs are set to Address 0x51 by setting its pins A0 = 1
and A1 = A2 = 0.
USING THE USBi TO PROGRAM A SELF-BOOT
EEPROM
After compiling a project, the registers and RAM contents
can be written to a target EEPROM for self-boot. To use this
functionality, an EEPROM IC must be connected to the USBi
in the Hardware Configuration window. After verifying that
the EEPROM write protect pin is disabled on the target board,
right-click the target IC (SigmaDSP), and select Write L a t e st Compilation to E2PROM.
Figure 16. Writing to the Self-Boot EEPROM
08093-017
08093-016
Figure 17. Output Capture Window
Rev. A | Page 6 of 16
Page 7
Application Note AN-1006
CIRCUIT SCHEMATICS
USB CONNECTOR
The connection between the host PC and the Cypress USB
interface device is via a standard USB cable that carries D+ and
D− signals for data communications, a 5 V power supply, and
ground. The D+ and D− lines are a one-wire communication
interface carried by half-duplex differential signals on a twisted
pair. The clock is embedded in the data using the nonreturn-tozero inverted (NRZI) line code. These signal lines connect
directly to pins on the Cypress USB interface.
POWER REGULATOR
The Cypress USB Interface I/O ports are capable of operating in
both 1.8 V and 3.3 V modes, depending on the target device in
the system. Two regulators, one for 5 V to 3.3 V regulation and
the other for 5 V to 1.8 V regulation, run simultaneously when
the board is powered. A switch (S1) is provided to easily switch
the IOVDD supply between the two regulators. LED D4 provides
visual feedback that the board is being supplied with 5 V power
from the PC USB port.
A surface-mounted USB miniature Type B jack was selected for
its low profile and increasing ubiquity in consumer electronics.
5V0DD
1
VCC
2
J3
D–
USB-MINI-B-SMD
GND
3
D+
4
Figure 18. USB Connector Schematic
5V0DD
D4
Red Diffused
R10
475R
+
C22
15uF
DMINUS
DPLUS
C21
1.0uF
C20
1.0uF
08093-018
ADP1711AUJZ-3.3-R7
1
IN5OUT
3
EN
BYP
GND
2
U8
ADP1711AUJZ-1.8-R7
1
IN5OUT
3
EN
BYP
GND
2
U7
10nF
4
4
C16
C18
10nF
The position of switch S1 should not be changed when the
board is connected to the USB bus.
3V3DD
+
C19
C14
1.0uF
10uF
IOVDD
C17
1.0uF
1V8DD
+
C13
10uF
3V3DD1V8DD
S1
3
2
1
SPDT
TP1
08093-019
Figure 19. Power Regulator Schematic
Rev. A | Page 7 of 16
Page 8
AN-1006 Application Note
CYPRESS USB INTERFACE
The Cypress USB interface is the core of the system, including
all of the necessary functionality to convert USB commands
into corresponding I
2
C or SPI read/write transfers, and acts as a
FIFO to route data between the host PC and the target device.
CRYSTAL OSCILLATOR SCHEMATIC
The Cypress USB interface is its own clock master, and the board
includes a crystal oscillator circuit with a 24 MHz piezoelectric
crystal resonator to provide stability to the oscillator circuit.
The crystal resonator is driven in parallel by the XTALOUT
and XTALIN pins of the Cypress USB interface.
The LEDs provide feedback to the user about the status of the
Cypress USB microcontroller.
3V3DD
D2
TO U3
IOVDD
IOVDD
IOVDD
2
A
2
A
1
2
A
1
VCCA
1
A
VCC
3
FXLP34P5X
GND
VCCA
3
5
GND
3
5
D
GN
VCCY
5
VCCY
Y
VCCY
U5
Y
U6
3V3DD
4
Y
U4
FXLP34P5X
3V3DD
4
FXLP34P5X
3V3DD
4
D1
YELLOW CLEAR
R7
475R
BLUE CLEAR
D3
YELLOW CLEAR
R8
R9
475R
475R
RED DIFFUSED
R10
475R
5V0DD
D4
8093-022
Figure 22. LEDs Schematic
Table 1. LED Functions
Reference
Designator Color Functionality
D1 Yellow I2C mode is active
D2 Blue GPIO LED, for firmware debug purposes
D3 Yellow SPI mode is active
D4 Red 5 V power being is supplied over the USB bus
EEPROM
The EEPROM is an important system element that identifies
the board to the host PC and stores the firmware for the
Cypress USB Interface. The EEPROM is programmed during
manufacturing via the J2 connector.
IOVDD
C3
1
A0
2
A1
3
A2
4
GND
24AA256-I/ST
0.10uF
U1
8
VCC
7
WP
6
SCL
5
SDA
10k0R410k0
R3
J2
1
2
3
SCL
SDA
8093-023
Figure 23. EEPROM Schematic
TARGET BOARD POWER SWITCH
The USBi is capable of supplying power to the target board after
the Cypress USB microcontroller has finished its boot up process.
The USB_PWR_ON signal connects to the base of Q2 and turns
on both transistors when driven high.
This circuit also enables a software-controlled target reset from
SigmaStudio.
C
4
3
USB_PWR_ON
5V0DD
10k0
R14
R13
1k50
FZT705TA
R12
100k
E
2k00
1
B
2
C
Q1
1
B
R11
C
3
Q2
MMBT3904LT1G
2
E
Figure 24. Target Power Switch Schematic
5V0DD_USB
8093-024
TARGET BOARD PROGRAMMING HEADER
To properly boot the Cypress USB microcontroller from the
EEPROM, it is necessary to remove all other devices from the
2
I
C bus. The ADG721BRMZ analog switch remains open,
isolating the I
completed.