Page 1
ADSP-2181 EZ-KIT Lite ® Evaluation System Manual Revision 2.1, October 2003 Part Number 82-000543-01 Analog Devices, Inc. One Technology Way Norwood, Mass. 02062-9106...
Analog Devices or from an authorized dealer. Disclaimer Analog Devices, Inc. reserves the right to change this product without prior notice. Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog Devices for its use;...
Related Documents ..............xiv Online Documentation ............. xv Printed Manuals ............... xvi VisualDSP++ Documentation Set ......... xvi Hardware Manuals ............... xvi Data Sheets ................xvi Contacting DSP Publications ........... xvii Notation Conventions ..............xvii ADSP-2181 EZ-KIT Lite Evaluation System Manual...
Page 4
Serial Ports ................. 2-5 POST Routines ............... 2-5 Memory Checks ..............2-6 UART Checks ..............2-6 AD1847 Codec Check and Initialization ......2-7 Monitor Program Operations ..........2-7 Halt loop ................2-7 UART ISR ................. 2-8 ADSP-2181 EZ-KIT Lite Evaluation System Manual...
Page 6
European Power Supply Connections ........3-9 AD1847 Codec Connectors ............ 3-9 EPROM Jumper Settings ............3-10 EZ-ICE Connector ............... 3-12 Hardware Operation ............. 3-13 Hardware Debugging ............3-13 Designing EZ-ICE Compatible Systems ........3-14 RESTRICTIONS BILL OF MATERIALS INDEX ADSP-2181 EZ-KIT Lite Evaluation System Manual...
Page 7
• Read and write core and peripheral registers • Plot memory You can access the ADSP-2181 processor from a personal computer (PC) through a serial port or an optional emulator. The monitor program gives you complete target debug capability through the serial port. In contrast, the emulator allows the PC to perform in-circuit emulation through the processor’s emulation port.
Page 8
8 to 10V DC at 300 mA • Environment 0 to 70 centigrade 10 to 90 percent relative humidity (non condensing) • RS-232 Interface • Socketed EPROM • User push buttons • Expansion connectors • User configurable jumper viii ADSP-2181 EZ-KIT Lite Evaluation System Manual...
Preface The ADSP-2181 EZ-KIT Lite board is equipped with hardware that facil- itates interactive demonstrations. Push button switches and user programmable LEDs provide user control and board status checking. Additionally, the AD1847 SoundPort codec provides access to an audio input (selectable as line level or microphone) and an audio output (line level).
ADSP-2181 board designs. Intended Audience This manual is a user’s guide and reference to the ADSP-2181 EZ-KIT Lite evaluation system. Programmers who are familiar with the Analog Devices processor architecture, operation, and programming are the pri- mary audience for this manual.
Provides a list of components used to manufacture the EZ-KIT Lite. What’s New in This Manual This is the second revision of the ADSP-2181 EZ-KIT Lite Evaluation Sys- tem Manual. The manual provides the updated listing of related documents, updated installation procedure and Bill of Materials, and additional information on the processor’s internal memory.
Supported Processors Analog Devices, Inc. One Technology Way P.O. Box 9106 Norwood, MA 02062-9106 Supported Processors The ADSP-2181 EZ-KIT Lite evaluation system supports ADSP-2181 Analog Devices microprocessors. ADSP-2181 EZ-KIT Lite Evaluation System Manual...
MyAnalog.com MyAnalog.com is a free feature of the Analog Devices website that allows customization of a webpage to display only the latest information on products you are interested in. You can also choose to receive weekly email notification containing updates to the webpages that meet your interests.
Product Information You may also obtain additional information about Analog Devices and its products in any of the following ways. • Email questions or requests for information to dsp.support@analog.com • Fax questions or requests for information to 1-781-461-3010 (North America) or +49 (0) 89 76903-157 (Europe)
Windows task bar and select Start -->Programs -->VisualDSP -->Visu- alDSP++ Documentation. To view ADSP-2181 EZ-KIT Lite Help, which now is a part of the Visu- alDSP++ Help system, go the Contents tab of the Help window and select Manuals --> ADSP-BF533 EZ-KIT Lite.
Service representative. The manuals can be purchased only as a kit. For additional information, call 1-603-883-2430. If you do not have an account with Analog Devices, you will be referred to Analog Devices distributors. To get information on our distributors, log onto www.analog.com/salesdir/continent.asp...
Registers, connectors, pins, commands, directives, keywords, code exam- PF9-0 ples, and feature names are in text with font. letter gothic Non-keyword placeholders appear in text with italic style format. filename ADSP-2181 EZ-KIT Lite Evaluation System Manual xvii BookTitle2...
Page 18
A caution providing information about critical design or programming Caution: issues that influence operation of a product. In the online version of this book, the word Caution appears instead of this symbol. xviii ADSP-2181 EZ-KIT Lite Evaluation System Manual BookTitle2...
1 GETTING STARTED This chapter provides the information you need to begin using ADSP-2181 EZ-KIT Lite evaluation system. For correct operation, install the software and hardware in the order presented in “Installation Tasks” on page 1-3. The chapter includes the following sections.
Contents of EZ-KIT Lite Package Contents of EZ-KIT Lite Package Your ADSP-2181 EZ-KIT Lite evaluation system package contains the following items. • ADSP-2181 EZ-KIT Lite board • Power cable with 8-10V DC power supply • RS-232 serial port 9-pin cable •...
Installation Tasks The following task list is provided for the safe and effective use of the ADSP-2181 EZ-KIT Lite. Follow these instructions in the presented order to ensure correct operation of your software and hardware. 1. EZ-KIT Lite hardware setup VisualDSP++ and EZ-KIT Lite soft- ware installation 2.
Store unused EZ-KIT Lite boards in the protective shipping package. The ADSP-2181 EZ-KIT Lite board is designed to run outside your per- sonal computer as a stand-alone unit. You do not have to remove your computer case.
CD-ROM drive. 3. Follow the on-screen instructions to continue installing the software. 4. At the Custom Setup screen, select your EZ-KIT Lite from the list of available systems and choose the installation directory. ADSP-2181 EZ-KIT Lite Evaluation System Manual...
1. Locate the serial number provided on the sticker affixed to the CD sleeve and the registration form. 2. From the Start menu, choose Programs, Analog Devices, Visu- alDSP++ 3.5 for 16-bit Processors, VisualDSP++ Environment. 3. The information screen asks if you would like to install a license.
Describes the restrictions of the VisualDSP++ license shipped with the EZ-KIT Lite. • “Memory Map” on page 2-2 Defines the ADSP-2181 EZ-KIT Lite board’s memory map. • “Standard Operations” on page 2-3 Covers the standard operation of the EZ-KIT Lite board.
The license shipped with the EZ-KIT Lite imposes the following restrictions. • The size of a user program is limited to 8 KB of the ADSP-2181 processor’s internal memory space. • No connections to Simulator or Emulator sessions are allowed.
Comm 1 Baud rate 9600 Input and Output Devices The board’s IO component are detailed in the following sections. • “Flags” on page 2-4 • “Interrupts” on page 2-4 • “Serial Ports” on page 2-5 ADSP-2181 EZ-KIT Lite Evaluation System Manual...
To prevent an interrupt from being masked, write to the register. IMASK The monitor program running on the ADSP-2181 DSP uses one interrupt ) for normal operation. When downloading your own code through Timer the monitor program, the timer interrupt vector is protected and cannot be overwritten.
POST Routines Power On Self-Test (POST) routines are a series of standard tests and ini- tializations that the ADSP-2181 EZ-KIT Lite performs on a power-on reset. To perform a power-on reset, disconnect power to the board for at least three seconds and then reconnect power. The board automatically resets (note that all the LEDs light up briefly).
Different baud rates depend upon your application’s type: for real-time interrupt driven programs, a lower baud rate setting slows performance, but the timer interrupt occurs less frequently. This gives your program a larger share of the processor’s resources. ADSP-2181 EZ-KIT Lite Evaluation System Manual...
At this point, the halt loop polls the UART. With every char- acter received from the UART, the command-processing kernel verifies whether a full command has been received. If a full command has been received, the kernel processes the command; otherwise, control is returned ADSP-2181 EZ-KIT Lite Evaluation System Manual...
Command processing, initiated from either the UART ISR or the Halt loop, is done in the command-processing kernel. This kernel parses the commands and executes the instructions. If the instruction requires data to be sent back to the host, the kernel initiates the response. ADSP-2181 EZ-KIT Lite Evaluation System Manual...
AD1847 Codec Transmissions After initialization, the AD1847 codec generates the clock used to transfer data across . The ADSP-2181 DSP initiates all transmissions with SPORT0 the AD1847 device by sending a synchronization pulse. Even though the AD1847 transmits the data clock, it may not be ready for normal operation.
Using EZ-KIT Lite VisualDSP++ Interface Using EZ-KIT Lite VisualDSP++ Interface This section outlines the process of developing, loading, and running the ADSP-2181 EZ-KIT Lite example programs supplied with VisualDSP++ software: • “Developing Programs” on page 2-10 • “Starting Visual DSP++” on page 2-11 •...
The size of the DSP executable that you can build using the EZ-KIT Lite tools is limited to 8K. Do not run more than one ADSP-2181 EZ-KIT Lite session in the debugger at any one time. You may run an EZ-KIT Lite session and a simulator or ICE session at the same time or you can open two debugger interfaces to run more than one EZ-KIT Lite session.
Page 36
AD1847 codec POST and the EPROM. 9. Click OK The initialization completes and the disassembly window opens. The code in the disassembly window is the EZ-KIT Lite monitor program. 2-12 ADSP-2181 EZ-KIT Lite Evaluation System Manual...
Visu- ..\218x\EZ-KITs\2181\Examples alDSP++ installation directory. 3. Select the file and click Open. The file loads and the Load Complete message appears in the Out- put window when the load process has completed. ADSP-2181 EZ-KIT Lite Evaluation System Manual 2-13...
The debugger starts and the Target message Hit Reset Button appears. 2. Press the reset button. 3. Click OK. Do not use the reset button while the debugger is open unless the debugger requested to do so. 2-14 ADSP-2181 EZ-KIT Lite Evaluation System Manual...
Do not run more than one ADSP-2181 EZ-KIT Lite session in the debugger at any one time. You may run an EZ-KIT Lite session and a simulator or ICE session at the same time or you can open two debugger interfaces to run more than one EZ-KIT Lite session.
2.4k LPC encoding. The red LED lids when LPC encoding is in effect. LPC7K8 Push the Interrupt button on EZ-KIT Lite to toggle between talk through and 7.8k LPC encoding. The red LED lights when LPC encoding is in effect. 2-16 ADSP-2181 EZ-KIT Lite Evaluation System Manual...
Using EZ-KIT LITE Software PRIMES This demonstration is a C program that generates the first 20 prime numbers. ADSP-2181 EZ-KIT Lite Evaluation System Manual 2-17...
Page 42
Using EZ-KIT Lite VisualDSP++ Interface 2-18 ADSP-2181 EZ-KIT Lite Evaluation System Manual...
3 EZ-KIT HARDWARE REFERENCE This chapter discusses the hardware design of the ADSP-2181 EZ-KIT Lite board. The following topics are covered: • “System Architecture” on page 3-2 Illustrates the configuration of the ADSP-2181 EZ-KIT Lite board. • “Board Layout” on page 3-3 Shows the location and describes the function of the configuration jumpers, switches, and user LEDs.
System Architecture System Architecture This section describes the processor configuration on the EZ-KIT Lite board (see Figure 3-1). Figure 3-1. ADSP-2181 EZ-KIT Lite System Block Diagram ADSP-2181 EZ-KIT Lite Evaluation System Manual...
EZ-KIT Lite board. This figure high- lights the locations of the major components and connectors. Each of these major components is described in the following sections. Figure 3-2. EZ-KIT Lite Board Layout ADSP-2181 EZ-KIT Lite Evaluation System Manual...
Socketed Memory The socketed EPROM provides up to 128k x 8 bits of program storage that can be loaded by the ADSP-2181 processor when it is programmed to boot from the socketed EPROM. After the ADSP-2181 processor is reset, the BDMA feature is used to load the first 32 words of program memory from the byte memory space.
• The connector is a 14-pin header connector used to connect to ® an ADDS-218x EZ-ICE in-circuit emulator. Pin 7 should be removed for keying purposes. For more information, see “EZ-ICE Connector” on page 3-12. ADSP-2181 EZ-KIT Lite Evaluation System Manual...
Page 48
Figure 3-3. JP2 Jumper Settings • The connectors are sites for 50-pin header connectors. These connectors can be used to access the ADSP-2181 processor’s signals for expansion or test purposes. For more information, see “Expansion Port Connectors” on page 3-7.
Expansion Port Connectors Two expansion port connectors ( ) provide access to the ADSP-2181 processor’s bus signals, letting you watch data transmissions. connectors are sites for 50-pin header connectors. In addi- tion, the host interface, interrupt, and pins are also available on...
Page 50
Connectors Table 3-1. Expansion Connectors (Cont’d) Signal Signal Signal Signal Number Name Number Name Number Name Number Name IAD15 IACK CLK- RESET IRQL0 IRQL1 IRQ2 IOMS PWDA COD- TXD0 ECDIS TFS0 RFS0 RXD0 SCK0 ADSP-2181 EZ-KIT Lite Evaluation System Manual...
When the AD1847 codec is enabled on the EZ-KIT Lite board, you can access the audio input and output jacks on the board. Each of the audio connectors are stereo mini jacks and accept standard commercially avail- able stereo mini plugs. ADSP-2181 EZ-KIT Lite Evaluation System Manual...
LINE_OUT EPROM Jumper Settings jumper allows the ADSP-2181 EZ-KIT Lite board to be config- ured for any one of six different EPROM sizes. By default, it can accommodate either a 21C512 or 27C010. If some other size EPROM is...
Page 53
5-7. Figure 3-8. JP1 Jumper setting for 27C020/C040/27C080 EPROM " This involves cutting the etch on the back of the board at jumper position 3 and adding a connection at jumper position 4. ADSP-2181 EZ-KIT Lite Evaluation System Manual 3-11...
ADSP-2100 EZ-ICEs. The ADSP-2181 device need not be removed from the target system when using the EZ-ICE, nor are any adapters needed. Due to the small foot- print of the EZ-ICE connector, emulation can be supported in final board designs.
If the green LED fails to light, check your power connections. Verify that your power supply has the proper size connector and that the polarity is correct. The power supply voltage measured at the connector to the board ADSP-2181 EZ-KIT Lite Evaluation System Manual 3-13...
The board is a complete signal processing system designed to demonstrate the capabilities of the ADSP-2181 digital signal processor. It can also be used as a platform to develop new applications targeting ADSP-2181 processors. The EZ-KIT Lite board is an example of a minimum implementation of an ADSP-2181 processor.
Page 57
Flag In Flag Out and transmit data. Software running on the DSP emulates a UART to provide the proper protocol for asynchronous serial communications up to a data rate of 115K bits per second. ADSP-2181 EZ-KIT Lite Evaluation System Manual 3-15...
Page 58
Designing EZ-ICE Compatible Systems 3-16 ADSP-2181 EZ-KIT Lite Evaluation System Manual...
Page 59
This causes the debugger to stop communicating. 5. Do not run more than one ADSP-2181 EZ-KIT Lite session in the debugger at any one time. You may run an EZ-KIT Lite session and a simulator or ICE session at the same time or you can open two debugger interfaces to run more than one EZ-KIT Lite session.
Need help?
Do you have a question about the ADSP-2181 and is the answer not in the manual?
Questions and answers