ANALOG DEVICES ADSP-21160M Service Manual

Hardware Rev. 2.2
ADSP-21160 EZ-KIT Lite™
User Guide
Part Number 500-00546
© 2000 Analog Devices, Inc.
ALL RIGHTS RESERVED
Digital Signal Processing Division
One Technology Way
P.O. Box 9106
Norwood, MA 02062-9106
(617) 329-4700
Copyright Information
© 1996-2000 Analog Devices, Inc., ALL RIGHTS RESERVED. This document may not be reproduced in any form without prior, express written consent from Analog Devices, Inc.
Disclaimer
Analog Devices, Inc. reserves the right to change this product without prior notice. Analog Devices believes all information furnished to be accurate and reliable. However, Analog Devices assumes no responsibility for its use; nor for any infringement of patents or other rights of third parties, which may result from its use. No license is granted by implication or otherwise under the patent rights of Analog Devices.
Trademark and Service Mark Notice
The Analog Devices logo, SHARC, the SHARC logo, TigerSHARC, the TigerSHARC logo, and EZ-LAB are registered trademarks; and VisualDSP++, theVisualDSP++ logo, EZ-KIT Lite, Apex-ICE, Mountain-ICE, Summit-ICE, and Trek-ICE are trademarks of Analog Devices, Inc.
Microsoft and Windows are registered trademarks and Windows NT is a trademark of Microsoft Corporation. Pentium is a trademark of Intel Corporation.
Adobe and Acrobat are registered trademarks of Adobe Corporation. All other brand and product names are trademarks or service marks of their respective
owners
The ADSP-21160 EZ-KIT Lite evaluation board contains ESD (electrostatic discharge) sensitive devices. Electrostatic charges readily accumulate on the hu man body and equipment and can discharge without detection. Permanent damage may occur to devices subjected to high energy discharges. Proper E SD precautions are recommended to avoid performance degradation or loss of functionality. Unused boards should be stored in the protective shipping package.
Board products with the CE marking – shown on the right – comply with the EMC Directive (89/336/EEC). Compliance with this directive implies conformity to the following European Norms:
EN55022 (CISPR 22) Radio Frequency Interference, Class A
EN50082-1 Electromagnetic Immunity
The product also fulfills EN60950 (product safety) which is essentially the requirement for the Low Voltage Directive (73/23/EEC).
WARNING!
ESD SENSITIVE DEVICE
ADSP-21160 EZ-KIT Lite
Table of Contents

Table of Contents

1 Introduction ...........................................................................................1
1.1. Overview .............................................................................................................1
1.2. System Architecture ............................................................................................ 3
1.3. What the kit contains........................................................................................... 4
1.4. The ADSP-21160 ADSP-21160 EZ-KIT Lite Board ............................................5
1.5. Reference Material .............................................................................................. 6
2 Getting Started ......................................................................................7
2.1. Installation Overview ........................................................................................... 7
2.2. Requirements ...................................................................................................... 8
2.3. Hardware Installation...........................................................................................9
2.4. Software Installation .......................................................................................... 11
2.5. Verifying the installation.....................................................................................11
2.5.1. Power-on Self Test (POST) .............................................................. 12
2.5.2. Parallel Port Setup ............................................................................13
3 Demonstration Programs...................................................................17
3.1. Overview ...........................................................................................................17
3.2. Starting the VisualDSP++ Debugger.................................................................17
3.3. Debugger Operation with the ADSP-21160 EZ-KIT Lite ................................... 17
3.3.1. Loading and Running Programs .......................................................18
3.3.2. Registers and Memory......................................................................20
3.3.3. Resetting the Board .......................................................................... 21
3.4. Demonstration Programs ..................................................................................21
3.4.1. Fft.dxe ...............................................................................................22
3.4.2. BP.dxe ..............................................................................................27
3.4.3. Pluck.dxe ..........................................................................................29
3.4.4. Primes.dxe ........................................................................................30
3.4.5. Tt.dxe ................................................................................................31
4 Hardware Description.........................................................................33
4.1. Processor and Core Components ..................................................................... 34
4.1.1. Oscillators .........................................................................................34
4.1.2. CODEC .............................................................................................35
4.1.3. Power Supply.................................................................................... 35
4.1.4. PLD ...................................................................................................37
4.1.5. Flash Memory ................................................................................... 37
ADSP-21160 EZ-KIT Lite
i
Table of Contents
4.1.6. SBSRAM ........................................................................................... 37
4.1.7. Processor..........................................................................................37
4.2. Connectors ........................................................................................................ 38
4.2.1. Serial Ports........................................................................................39
4.2.2. Link Ports ..........................................................................................40
4.2.3. Power Supply Connector ..................................................................40
4.2.4. Audio Connectors .............................................................................40
4.2.5. JTAG Connector ...............................................................................41
4.2.6. Cluster Connectors ...........................................................................41
4.2.7. Parallel Port.......................................................................................41
4.3. Push Buttons / LEDs ......................................................................................... 42
4.3.1. Master Reset Push Button (RESET PB) ........................................... 43
4.3.2. User Push Buttons (PB0, PB1, PB2, PB3) .......................................43
4.3.3. User LEDs (D1, D2, D3) ...................................................................43
4.3.4. Power LEDs (D4, D5, D6).................................................................44
4.4. Configuration Switches......................................................................................44
4.4.1. Clock Routing Switch (SW1)............................................................. 47
4.4.2. SBSRAM Configuration Switch (SW2)..............................................47
4.4.3. Parallel Port Configuration Switch (SW7) .........................................47
4.4.4. Clock Configuration Switch (SW9).................................................... 48
4.4.5. Board ID Switch (SW10) ...................................................................49
4.4.6. Boot Mode Switch (SW11) ................................................................ 50
4.4.7. IRQ Routing Switch (SW12) .............................................................50
4.4.8. FLAG Routing Switch (SW13) ..........................................................50
4.5. Test Points ........................................................................................................51
5 Operation............................................................................................. 53
5.1. Overview ...........................................................................................................53
5.2. Power-on Self Test (POST) ..............................................................................53
5.2.1. Flash EPROM ...................................................................................54
5.2.2. External SBSRAM and Internal SRAM .............................................54
5.2.3. CODEC .............................................................................................54
5.3. Monitor Program Operation...............................................................................54
5.4. Interrupts ...........................................................................................................55
5.5. Breakpoints and Stepping .................................................................................56
5.6. Hardware Stacks ............................................................................................... 56
5.7. Benchmarking Utilities.......................................................................................57
6 Programming Reference ....................................................................59
6.1. Memory Map .....................................................................................................59
6.2. Support Library..................................................................................................62
SHARC_OpenSerPort1() ..................................................................................63
SHARC_CloseSerPort1() .................................................................................. 64
HHEZL_SetupCodec() ......................................................................................65
ii ADSP-21160 EZ-KIT Lite
Table of Contents
HHEZL_TransmitToCodec() .............................................................................66
HHEZL_TransmitReadToCodec()..................................................................... 67
HHEZL_ReadFromCodec()............................................................................... 68
HHEZL_WriteCodecReg() ................................................................................69
SHARC_SetLed() .............................................................................................. 70
6.3. Creating and Running Your Own Programs with VisualDSP++ ........................71
6.3.1. Create a New Project File .................................................................72
6.3.2. Set Target Processor Project Options ..............................................72
6.3.3. Edit and Add Project Source Files ....................................................73
6.3.4. Customize Project Build Options ......................................................76
6.3.5. Build a Debug Version of the Project ................................................ 76
6.3.6. Execute and Debug the Project ........................................................76
6.4. EZFlash programmer ........................................................................................77
6.5. Creating Assembly Language Program ............................................................77
6.6. Restrictions on Using the Monitor Executive.....................................................81
7 Forming a Cluster................................................................................83
7.1. Signal Routing in a Cluster................................................................................83
7.2. Example Cluster Configuration .........................................................................84
7.2.1. Identify the Boards and their JTAG positions....................................84
7.2.2. Configure SBSRAM allocation .......................................................... 84
7.2.3. Select the clock sources and multipliers........................................... 85
7.2.4. Assign responsibility for handling the parallel port ............................86
7.2.5. Designate Distribution of IRQs and Flags.........................................86
7.2.6. Set the Boot Source..........................................................................87
8 Connector Pinouts..............................................................................89
8.1. Parallel Port Connector ..................................................................................... 89
8.2. Parallel Port Cable ............................................................................................90
8.3. Link Port Connectors.........................................................................................91
8.4. Link Port Cable..................................................................................................92
8.5. Serial Port Connector ........................................................................................ 93
8.6. Serial Port Cable ............................................................................................... 93
8.7. JTAG Header ....................................................................................................94
8.8. Cluster Connectors ...........................................................................................95
8.9. Desktop Power Connector ................................................................................99
8.10. Line In Connector .............................................................................................. 99
8.11. Line Out Connector ........................................................................................... 99
8.12. Mic In Connector ............................................................................................... 99
8.13. Power Supply Module........................................................................................99
8.14. PLD Footprint .................................................................................................. 100
ADSP-21160 EZ-KIT Lite
iii
Table of Contents
9 Specifications.................................................................................... 101
9.1. Electrical Specifications................................................................................... 101
9.2. Mechanical Specifications ...............................................................................101
9.3. Environmental Specifications ..........................................................................101
9.4. CE Compliance ...............................................................................................101
10 Bill of Materials ................................................................................. 103
11 Schematics........................................................................................ 105
12 Index ................................................................................................. 117
iv ADSP-21160 EZ-KIT Lite
List of Tables
List of Tables
Table 1 Factory Settings - Configuration Switches.............................................. 46
Table 2 Interrupt Vector Assignment ...................................................................56
Table 3 Known Restrictions with the Monitor Program........................................ 81

List of Figures

Figure 1 ADSP-21160 EZ-KIT Lite Board Architecture .........................................3
Figure 2 ADSP-21160 EZ-KIT Lite Board Solder Side ..........................................5
Figure 3 ADSP-21160 EZ-KIT Lite Board Component Side .................................. 5
Figure 4 Hardware Installation...............................................................................9
Figure 5 Master Reset Pushbutton......................................................................21
Figure 6 FFT Example Board Setup....................................................................22
Figure 7 Band Pass (BP) Example Board Setup................................................. 27
Figure 8 Pluck Example Board Setup.................................................................. 29
Figure 9 Talk Thru Example Setup......................................................................31
Figure 10 Core Component Locations................................................................. 34
Figure 11 Connector Locations ...........................................................................38
Figure 12 Serial Port Routing ..............................................................................39
Figure 13 Link Port Routing.................................................................................40
Figure 14 Push Button and LED Locations .........................................................42
Figure 15 Configuration Switches........................................................................ 44
Figure 16 Test Points ..........................................................................................51
Figure 17 CODEC Signal Pin Assignments......................................................... 52
Figure 18 ADSP-21160 Memory Addressing ......................................................59
Figure 19 ADSP-21160 Internal Memory Space .................................................60
Figure 20 ADSP-21160 Memory Space Allocation..............................................61
ADSP-21160 EZ-KIT Lite
v
List of Figures
vi ADSP-21160 EZ-KIT Lite

Introduction

1 Introduction
1.1. Overview
The Analog Devices ADSP-21160 processor used in the ADSP-21160 EZ-KIT Lite® has many features integrated onto a single digital signal processor (DSP) chip. The processor features include:
Super Harvard Architecture: four independent internal buses for dual data fetch;
instruction fetch, and non-intrusive, zero-overhead I/O
Single-Instruction-Multiple-Data (SIMD) computational architecture: two 32-
bit single-precision (or 40-bit extended precision) IEEE floating-point and 32-bit fixed-point computation units, each with its own ALU, multiplier, shifter and register file (100-MIPS, with 600 MFLOPS peak, 400 MFLOPS sustained)
12.5 ns core instruction rate: single-cycle instruction execution, including SIMD
operations in both computation units
Dual Data Address Generators (DAGs) with modulo and bit-reverse addressing
On-chip, configurable memory banks: dual-ported 4-megabit internal SRAM for
fast, independent local memory access for DSP core, DMA controller and I/O processor
Two 40 Mbit/s synchronous serial ports
Sophisticated DMA controller: 6 simultaneous channels with zero impact on
performance of DSP core
The ADSP-21160 EZ-KIT Lite provides an easy way for you to investigate the power of the SHARC® family of processors and develop your own applications based on these high-performance DSPs. The ADSP-21160 EZ-KIT Lite is a complete development system package that is ideal for getting started in DSP. The ADSP-21160 EZ-KIT Lite was designed to help you:
Evaluate Analog Devices’ floating-point DSPs
Learn about DSP applications
Develop DSP applications
Simulate and debug your application
Prototype new applications
ADSP-21160 EZ-KIT Lite 1
Introduction
The ADSP-21160 EZ-KIT Lite is an ADSP-21160 based development and demonstration board with full 16-bit stereo audio I/O capabilities. The board’s features include:
Analog Devices ADSP-21160 DSP running at 80 MHz
Socketed 40 MHz oscillator with jumper selectable clock multiplier
Analog Devices AD1881 16-bit Stereo AC’97 SoundMAX® CODEC
Connectors for CODEC Mic-in, Line-in and Line-out
Programmable/readable EPROM Flash Memory (4 Mbit)
Expansion memory 2 banks, 64k x 32 each (4 Mbit total)
Four User pushbuttons
Master board Reset pushbutton
Three User programmable LEDs
Power supply regulation
Parallel Port interface for debug and control operations
External connectors for Link Ports 4 and 5
External connector for Serial Port 0
JTAG emulator header
Cluster Expansion Connectors
The board can run standalone or connect to the parallel port of your PC. A monitor program running on the DSP in conjunction with a host program running on the PC lets you interactively download programs as well as interrogate the ADSP-21160. The board comes with a EPROM so that you can run the monitor program and demonstrations provided.
The ADSP-21160 EZ-KIT Lite also comes with all the software you need to develop sophisticated, high-performance DSP applications. A C/C++ compiler, assembler, run-time libraries and librarian, linker, and debugger are all included.
You can also connect an optional JTAG in-circuit emulator to the ADSP-21160 EZ-KIT Lite. The emulator allows you to load programs, start and stop program execution, observe and alter registers and memory, and perform other debugging operations. JTAG emulators are available from Analog Devices.
The ADSP-21160 EZ-KIT Lite was designed and manufactured by Spectrum Signal Processing, of Burnaby, BC, Canada, to Analog Devices’ specifications.
ADSP-21160 EZ-KIT Lite
2
Introduction
1.2. System Architecture
The block diagram below shows the main features of the ADSP-21160 EZ-KIT Lite board.
Cluster Connector Parallel Port
Oscillator
24.576 MHz SBSRAM
64K x 32
Upper Word
PLD
Line In Stereo Line Out Stereo Mic In Mono
Serial Port 0
JTAG
POWER
Link Port 4 Link Port 5
CODEC
AD 1881
Regulator 5V Regulator 3.3V Regulator 2.5V
Link Ports
Oscillator
40 MHz
Power LEDs
(Green)
ADSP 21160 Processor
0 1 2 3 54
Serial Ports
0 1
S
SBSRAM
64K x 32
Lower Word
Flash
Memory
(4 Mbit)
Cluster Bus 64 Bit 50 Mhz
Interrupt Pushbuttons
Master Reset Pushbutton
User LEDs (Amber)
Figure 1 ADSP-21160 EZ-KIT Lite Board Architecture
The CODEC connects to the processor via serial port 1. Two of the Link Ports are routed to external connectors. The host port of the processor (64 bit parallel port) connects directly to the Flash memory and the synchronous burst static RAM (SBSRAM). A programmable logic device (PLD) interfaces the processor’s external port to the parallel interface. The push button interrupts are de-bounced and then connected to the dedicated interrupt pins on the processor. The User LEDs from the processor are driven directly by the processor Flag pins. The Cluster connectors allow the board to be connected into a cluster configuration with another ADSP-21160 EZ-KIT Lite board (maximum of 2 boards).
ADSP-21160 EZ-KIT Lite 3
Introduction

1.3. What the kit contains

Your ADSP-21160 EZ-KIT Lite board package contains the following items. If any item is missing, contact the vendor where you purchased your ADSP-21160 EZ-KIT Lite, or Analog Devices.
ADSP-21160 EZ-KIT Lite board
Power cable with DC power supply
Parallel port cable
One CD, containing
ADSP-21160 EZ-KIT Lite software and examples
Utilities
ADSP-21160 EZ-KIT Lite User Guide (this document)
VisualDSP++® CD
Registration card - please fill out and return
To fully exercise the board, you may also need one or more of the following accessories:
Speakers
Stereo audio source
Microphone
Link port cable(s) – Spectrum part number
002-06364, 30cm
If you wish to order a new set of cables for any reason, refer to Analog Devices website at www.analog.com/industry/dsp/tools/selection.html
.
ADSP-21160 EZ-KIT Lite
4
Introduction
1.4. The ADSP-21160 ADSP-21160 EZ-KIT Lite Board
The ADSP-21160 EZ-KIT Lite board measures 4 inches by 6.5 inches (10.16 cm by
16.51 cm), with the active components, LEDs, pushbuttons, signal breakout headers and connectors on one surface (component side). The reverse side (solder side) contains the passive components and the configuration switches. The board is designed as a bench-top evaluation unit, and should be placed on a flat surface, solder side down, to allow easy access to the pushbuttons and LED’s. Standoff legs on the solder side provide clearance for the components.
Figure 2 ADSP-21160 EZ-KIT Lite Board Solder Side
Figure 3 ADSP-21160 EZ-KIT Lite Board Component Side
ADSP-21160 EZ-KIT Lite 5
Introduction
The ADSP-21160 EZ-KIT Lite board is pre-configured at the factory, and can be installed and used directly out of the box.
For a complete description of the components on the board, their locations, and details see section 4, “Hardware Description”.
If you plan to cluster two boards together, refer to section 7, “Forming a Cluster”, for requirements and procedures.
1.5. Reference Material
For more information on the ADSP-21160 as well as the components of the ADSP­21160 EZ-KIT Lite system, see the following documents:
ADSP-21160 Hardware Reference Manual
ADSP-21160 Instruction Set Reference Manual
ADSP-21160 DSP Microcomputer Data Sheet
AD1881 Serial Port 16-Bit AC’97 SoundMAX CODEC Data Sheet
The ADSP-21160 processor is supported by a complete set of development tools. Software tools include a C/C++ compiler, assembler, runtime libraries and librarian, linker, and debugger. For more information on these tools, see the following documents:
ADSP-21000 Family Hardware and Software Development Tools Data Sheet
VisualDSP++ User’s Guide & Reference
C/C++ Compiler Guide & Reference for the ADSP-2106x Family DSPs
If you plan to use the ADSP-21160 EZ-KIT Lite in conjunction with a JTAG emulator, refer to the documentation that accompanies that product.
ADSP-21160 EZ-KIT Lite
6

Getting Started

2 Getting Started
2.1. Installation Overview
This section leads you through the recommended installation procedure for the ADSP­21160 EZ-KIT Lite. To complete the installation you will:
Ensure your system meets the requirements
Install the Hardware
Install the Software
Configure the parallel port
Validate the installation
Following a successful installation, you will be able to run the example programs, and begin developing and deploying your own code.
ADSP-21160 EZ-KIT Lite 7
Getting Started
2.2. Requirements
For correct operation of the VisualDSP++ software and ADSP-21160 EZ-KIT Lite examples, your computer must have the minimum configuration shown below.
Windows 95 Windows 98 Windows NT®
Windows 95 release 95a Windows 98 Second Edition Windows NT release 4.0,
Service Pack 3 or later
486 processor or better 486 processor or better 486 processor or better
VGA monitor VGA monitor VGA monitor
16 color video card or better 16 color video card or better 16 color video card or better
2-button mouse 2-button mouse 2-button mouse
100MB free disk space 120 MB free disk space 120MB free disk space
16 MB RAM 16 MB RAM 16 MB RAM
CD-ROM CD-ROM CD-ROM
Parallel Port Parallel Port Parallel Port
Note: The parallel port must support one of the following modes: enhanced parallel port (EPP) or bi-directional (PS/2 in some machines). For configuration details see section 2.5.2. “Parallel Port Setup”.
The ADSP-21160 EZ-KIT Lite board comes with a software monitor for PC control and several demonstration programs. However, in order to use the board, you must install the VisualDSP++ development software included with this ADSP-21160 EZ-KIT Lite product. The development software includes the VisualDSP++ debugger providing the controls and interface with which you use the board.
The development software also includes the SHARC tools with which you can develop your own DSP programs. The complete development software package contains the following components:
SHARC Tools — Linker, Compiler, Assembler
VisualDSP++ Integrated Development Environment
SHARC EZ-KIT Lite target
VisualDSP++ debugger — a Windows interface used to download, execute and
debug demo programs and your own applications.
Please note that the VisualDSP++ development software is restricted to the ADSP-21160 EZ-KIT Lite platform. There is no support for any other Analog Devices target. To make inquires or to order a complete set of the VisualDSP++ Tools, contact your local distributor or Analog Devices sales office.
ADSP-21160 EZ-KIT Lite
8
Getting Started
2.3. Hardware Installation
The following procedures are provided for the safe and effective use of the ADSP-21160 EZ-KIT Lite board. It is important that you follow these instructions in the order presented to prevent your hardware or software from improper operation. After you have completed the installation of your hardware, you can load and run the demonstration programs contained on the distribution media.
The ADSP-21160 EZ-KIT Lite board is designed to run outside your personal computer (PC) as a stand-alone unit. You do not have to access the interior of your computer.
1
Place ADSP-21160 EZ-KIT Lite board on a static-free surface.
2
Connect parallel port cable.
J26
J11
WARNING!
ESD SENSITIVE DEVICE
Three user (amber) LEDs turn on, then turn off 2 seconds after power applied.
3
Plug power transformer
into wall outlet, then connect to board.
Three power (green) LEDs turn on and remain on after power applied.
Figure 4 Hardware Installat i on
ADSP-21160 EZ-KIT Lite 9
Getting Started
1. Remove the ADSP-21160 EZ-KIT Lite board from its package and place it resting on its standoff legs on a flat surface near your PC—be careful when handling the board to avoid discharge of static electricity, which may damage some components.
2. Connect the IEEE 1284 parallel port cable to an available Parallel Port on the PC and to connector J11 on the ADSP-21160 EZ-KIT Lite board.
3. Plug the provided power transformer into a 120-Volt receptacle and plug the connector at the other end of the cable into connector J26 on the board.
When power is applied, all of the power (green) and user (amber) LEDs light up. After approximately two seconds, the amber user LEDs turn off, and the green power LEDs remain lit. If the LEDs do not light up, check the power connections. Any amber lights remaining illuminated indicate an error condition. See section 2.5.1. “Power-on Self Test (POST)” for error code information.
ADSP-21160 EZ-KIT Lite
10
Getting Started
2.4. Software Installation
The ADSP-21160 EZ-KIT Lite software is supplied on CD-ROM. To install the ADSP­21160 EZ-KIT Lite software, follow these steps:
1. Close all VisualDSP++ and Windows applications.
You cannot install any of the ADSP-21160 EZ-KIT Lite software if any VisualDSP++ applications are running. We also recommend that you close all Windows applications as well.
2. Insert the ADSP-21160 EZ-KIT Lite CD into your CD-ROM drive.
3. From the Windows Start menu, choose Run.
The Windows Run dialog opens.
4. Click the Browse button, navigate to the CD-ROM drive, select setup.exe and press open.
5. The ADSP-21160 EZ-KIT Lite installation dialog appears, starts the setup phase, and displays the ADSP-21160 EZ-KIT Lite install message box. Follow the instructions that appear on your screen. When the installation is complete, a final message box prompts you to press Finish. This completes the software installation procedure.
6. If indicated, reboot your system to complete the software installation procedure.

2.5. Verifying the installation

There are two components of verification.
The first component, Power-on Self Test (POST), tests the ADSP-21160 EZ-KIT Lite board in isolation when either
power is applied to the board,
or the board Master reset pushbutton is pressed.
The second verification component tests parallel port communication between the ADSP-21160 EZ-KIT Lite board and the host. This test is performed as part of the Parallel Port Setup function described in section 2.5.2.
You can also test the parallel port communication from the VisualDSP++ debugger. From the debugger window Se have set up the parallel port as described in section 2.5.2. before you can run this test.
ttings menu, select Test Communications. You must
ADSP-21160 EZ-KIT Lite 11
Getting Started
2.5.1. Power-on Self Test (POST)
When power is applied to the ADSP-21160 EZ-KIT Lite board or the Master Reset pushbutton is pressed, the firmware executes a Power-on Self Test (POST) routine. POST performs the following tests:
1. External (SBSRAM) memory test
2. Internal memory test
3. FLASH memory parity check test
4. CODEC functionality test (tone generator)
During these tests, the three amber user LED’s on the ADSP-21160 EZ-KIT Lite board are illuminated. The test sequence completes in approximately two seconds. When completed successfully, all three amber LED’s are unlit. If a test fails, POST displays an error code using the amber LED’s. The CODEC test does not use an LED. An audible tone, through Line Out, indicates success. To hear the tone, a speaker must be connected to Line Out.
D3 D2 D1 Meaning
OFF OFF OFF No error. Successful POST.
OFF OFF ON External Memory test failed
OFF ON OFF Internal Memory test failed
OFF ON ON Both external and internal Memory tests failed
ON OFF OFF FLASH test failed
ON OFF ON FLASH and external Memory tests failed
ON ON OFF FLASH and internal Memory tests failed
ON ON ON FLASH, external and internal Memory tests failed
External Memory Test indicator
Internal Memory Test Indicator
FLASH ROM parity check indicator
ADSP-21160 EZ-KIT Lite
12
Getting Started
2.5.2. Parallel Port Setup
The ADSP-21160 EZ-KIT Lite includes a Parallel Port Setup utility to assist you in establishing a communication path between the host PC and the ADSP-21160 EZ-KIT Lite board. EPP mode is the preferred parallel port mode for the ADSP-21160 EZ-KIT Lite. Bi-directional (PS/2 in some machines) mode is supported as an alternative. Use this mode only if your parallel port controller does not include EPP mode support.
To configure the port correctly, you must
Perform a BIOS Setup
Run the Parallel Port Setup Utility
BIOS Setup
Use your host computer BIOS Setup utility to configure the parallel port. Refer to your PC motherboard manual for more information. Use the following steps to set up your host BIOS:
1. Shut down your computer.
2. Reboot your computer, and select the BIOS setup option.
3. In the BIOS setup screen, configure the parallel port for EPP mode.
For example, with a Phoenix BIOS, navigate to
Advanced > Integrated I/O Ports > Parallel Port
and set the port attributes to Auto configuration, EPP mode. (If your I/O port does not support EPP mode, select bi-directional mode.)
4. Save the changes and reboot.
ADSP-21160 EZ-KIT Lite 13
Getting Started
Parallel Port Setup Utility
To execute the Parallel Port Setup utility:
1. Connect the ADSP-21160 EZ-KIT Lite to a parallel port on the target PC.
2. Click Start > Programs > VisualDSP++ > Parallel port setup
The Parallel Port Setup utility polls at the default parallel port addresses 0x278 and 0x378. Ports responding as enhanced parallel port (EPP) compatible are tested for the presence of an ADSP-21160 EZ-KIT Lite board.
The test is performed by writing a loop-back test message to each compatible port. The resident monitor on the ADSP-21160 EZ-KIT Lite board responds to such messages by echoing them back to the host. You must therefore first reset your ADSP-21160 EZ-KIT Lite board to ensure it is properly initialized, and can respond to a poll request. To do so,
1. press the Master Reset pushbutton on the board,
2. wait for the board LEDs to switch off, then click OK.*
* You may need to wait for 5 seconds when using bi-directional mode on a slower
machine before clicking OK.
ADSP-21160 EZ-KIT Lite
14
Getting Started
The utility displays a screen listing the available EPP mode parallel ports. Select the port from the list and click O
K to accept the parallel port setup information.
Manual Setup
The utility confirms the address information has been saved in a file in your <etc> directory. The address information in this file is used by VisualDSP++ to establish a communication path to the ADSP-21160 EZ-KIT Lite. Click OK to end the utility.
Note: If the parallel port is in bi-directional mode, the bracketed comments (EPP) are replaced with (bi-directional), indicating the communication
protocol.
If the parallel port on your PC is not at either of the standard addresses (0x278 or 0x378), use the Manual Setup option to specify its address and mode. When specified manually, the utility does not poll the address you define. To validate the port you must
ADSP-21160 EZ-KIT Lite 15
Getting Started
test the communication from the VisualDSP++ debugger. From the debugger window
Se
ttings menu, select Test Communications.
When entering the address, use hexadecimal notation as shown below. (for example, enter ‘0x478’ rather than just ‘478’).
Enter the parallel port address and mode specification, and Click OK. To confirm the values click OK, or Cancel to return to the setup screen to modify them.
Click OK to end the utility.
If you happen to corrupt the System Definition File (SDF), an original copy is available on the Installation CD under the Original Files folder.
ADSP-21160 EZ-KIT Lite
16

Demonstration Programs

3 Demonstration Programs
3.1. Overview
This chapter describes loading and running the demonstration programs supplied with the ADSP-21160 EZ-KIT Lite board. The demos are designed to run on the VisualDSP++ debugger, which is supplied on the CD-ROM that shipped with this product. For detailed information on debugger features and operation, see the VisualDSP++ debugger Guide & Reference.

3.2. Starting the VisualDSP++ Debugger

After the VisualDSP++ software has been installed, you can start the VisualDSP++ debugger.
1. Click the Windows Start menu.
2. Select P
3. From the VisualDSP++ debugger window S
4. Configure the debug session as shown in the following figure, and click OK.
rograms >>>> VisualDSP++ >>>> Debugger.
ession menu, select New Session.

3.3. Debugger Operation with the ADSP-21160 EZ-KIT Lite

The VisualDSP++ debugger Guide & Reference contains most of the information you will need to operate the VisualDSP++ debugger with your ADSP-21160 EZ-KIT Lite board.
ADSP-21160 EZ-KIT Lite 17
Demonstration Programs
3.3.1. Loading and Running Programs
To load and run a demonstration program:
1. From the VisualDSP++ debugger window F
ile menu, select Load.
2. Navigate to the directory containing the demonstration program. (Demonstration
programs are installed in directories under <EzKit21160>\examples\dsp\ <demo name>\debug where <EzKit21160> is the root directory where you installed the ADSP-21160 EZ-KIT Lite software and <demo name> is the name of the demonstration program.)
ADSP-21160 EZ-KIT Lite
18
Demonstration Programs
3. Select the executable file for the program (extension .dxe) and click Open
4. Wait for the “Load Complete.” message to appear in the Output window before you attempt any debug activities.
5. To run the program, use the F5 key, or from the VisualDSP++ debugger window
D
ebug menu, select Run.
The VisualDSP++ debugger includes two commands useful for synchronization of your test code and the resident monitor on the ADSP-21160 EZ-KIT Lite board. Observe the following rules when using these commands
Command Usage and impact
Debug > Reset
Debug > Restart
Use to reset the board and reload the monitor executive. Downloaded programs are lost in their entirety and must be reloaded. POST routines are executed.
Use to restart the monitor executive after a Halt command or the normal end of execution of a program. The monitor restarts unambiguously at its main entry point, but retains information about breakpoints and downloaded code. For programs which run to normal completion, and which you wish to re-execute, this is mandatory (Normal program completion halts at a breakpoint placed over an idle instruction in the monitor. Continuing from this point causes the monitor to idle forever.)
ADSP-21160 EZ-KIT Lite 19
Demonstration Programs
3.3.2. Registers and Memory
To see current values in registers, use the Register command and its subcommands to select specific register groupings (I
To view the current contents of memory, use either the View > Debug Windows > Plot command for a graphical view, or the Memory > Dump command for an ASCII display. To modify memory values, use the Memory > Fill command. These functions are operable only when the DSP program is paused (at a break point).
The F12 key or the Window >>>> Refresh command refreshes all current display windows.
OP or Core) or your own Custom set of registers.
ADSP-21160 EZ-KIT Lite
20

Demonstration Programs

3.3.3. Resetting the Board
The ADSP-21160 EZ-KIT Lite board can be reset with the master reset push button (RESET PB) on the board, or with the Debug > Reset command in the debugger. Both resets clear and reset the ADSP-21160 EZ-KIT Lite board. Following a reset, you will need to reload any programs you were running.
Note: Using the Master Reset pushbutton while running the debugger will cause the host to lose communication with the board.
Master Reset Pushbutton
Figure 5 Master Reset Pushbutton
3.4. Demonstration Programs
The demonstration programs included with the ADSP-21160 EZ-KIT Lite are designed to show you the features and capabilities of the VisualDSP++ debugger and the ADSP-21160 DSP. The demos are listed by their executable file name and are described by their output.
The demonstration program's executable code must be loaded first into the VisualDSP++ debugger before you can perform debug functionality within the debugger.
ADSP-21160 EZ-KIT Lite 21
Demonstration Programs
3.4.1. Fft.dxe
The FFT demo performs a frequency analysis on an analog signal presented to the board. The program runs continuously, repeatedly acquiring a block of 128 samples from the Codec, optionally filtering the input samples, applying the FFT and optionally scaling the results. A demo control panel lets you vary these parameters at run-time. To view the results you must set a break point in the program. (Data viewing and plotting is not possible while the program is executing).
To configure your board, and run this demo, use the following procedure.
1. Connect the “Line Out” of an electronic audio device (or microphone) to connector J6 (Line In) on the board.
Figure 6 FFT Example Board Setup
1. “Line Out” from audio device
2. Load the FFT example program <EzKit21160>\examples\dsp\fouriertransform\debug\Fft.dxe
ADSP-21160 EZ-KIT Lite
22
Loading...
+ 95 hidden pages