Analog Devices ADSP-2181 Manual
Analog Devices ADSP-2181 Manual

Analog Devices ADSP-2181 Manual

Ez-kit lite evaluation system
Hide thumbs Also See for ADSP-2181:
Table of Contents

Advertisement

ADSP-2181 EZ-KIT Lite
®
Evaluation System Manual
Revision 2.1, October 2003
Part Number
82-000543-01
Analog Devices, Inc.
One Technology Way
a
Norwood, Mass. 02062-9106

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADSP-2181 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Analog Devices ADSP-2181

  • 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...
  • Page 2: Limited Warranty

    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;...
  • Page 3: Table Of Contents

    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 5 ADPCM ................2-15 DTMF ................2-15 ECHO ................2-15 FIRDEMO ............... 2-16 LPC2K4 ................2-16 LPC7K8 ................2-16 PRIMES ................2-17 EZ-KIT HARDWARE REFERENCE System Architecture ..............3-2 Board Layout ................3-3 Socketed Memory ..............3-4 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...
  • Page 9: Purpose Of This 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).
  • Page 10: Intended Audience

    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.
  • Page 11: What's New In 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.
  • Page 12: Supported Processors

    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...
  • Page 13: Product Information

    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.
  • Page 14: Related Documents

    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)
  • Page 15: Online Documentation

    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.
  • Page 16: Printed Manuals

    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...
  • Page 17: Contacting Dsp Publications

    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...
  • Page 19: Getting Started

    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.
  • Page 20: Contents Of Ez-Kit Lite Package

    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 •...
  • Page 21: System Requirements

    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.
  • Page 22: Setting Up Ez-Kit Lite Hardware

    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.
  • Page 23: Installing Visualdsp++ And Ez-Kit Lite Software

    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...
  • Page 24: Installing Visualdsp++ License

    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.
  • Page 25: Using Ez-Kit Lite Software

    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.
  • Page 26: Ez-Kit Lite License Restrictions

    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.
  • Page 27: Standard Operations

    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...
  • Page 28: Flags

    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.
  • Page 29: Serial Ports

    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).
  • Page 30: Memory Checks

    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...
  • Page 31: Ad1847 Codec Check And Initialization

    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...
  • Page 32: Uart Isr

    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...
  • Page 33: Software Breakpoints

    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.
  • Page 34: Using Ez-Kit Lite Visualdsp++ Interface

    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 •...
  • Page 35: Starting Visual Dsp

    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...
  • Page 37: Debugging With Ez-Kit Lite

    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...
  • Page 38: Registers And Memory

    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...
  • Page 39: Example Programs

    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 40: Firdemo

    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...
  • Page 41: Primes

    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...
  • Page 43: Ez-Kit Hardware Reference

    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.
  • Page 44: System Architecture

    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...
  • Page 45: Board Layout

    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...
  • Page 46: Socketed Memory

    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.
  • Page 47: Connectors

    • 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.
  • Page 49: Expansion Port Connectors

    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...
  • Page 51: Power Connector

    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...
  • Page 52: Eprom Jumper Settings

    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...
  • Page 54: Ez-Ice Connector

    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.
  • Page 55: Hardware Operation

    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...
  • Page 56: Designing Ez-Ice Compatible Systems

    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.
  • Page 60: Adsp-2181 Ez-Kit Lite Evaluation System Manual

    ADSP-2181 EZ-KIT Lite Evaluation System Manual...
  • Page 61 Capacitor 1206 220pF MCH315SL221K C14, C21 Capacitor 1206 560pF MCH315SL561K C13, C23 Capacitor, Aluminum CB1/50BM C15, C16, C18, 1.0uF SMT C20, C35, C40, Capacitor, Aluminum CB10/16BM C30, C46, C47 10uF SMT Connector, DB9 DDFEX Female ADSP-2181 EZ-KIT Lite Evaluation System Manual...
  • Page 62 LM78M05CT TO-220 IC, RS-232 Interface ADM232AARN PCB, ESDSP-81 65-000286-01 Resistor, 1/8W 5% MCR18-EZHU-J-104 R1, R3, R18 1206 100K Resistor, 1/8W 5% MCR18-EZHU-J-103 R20-R27, R5 1206 10K Resistor, 1/8W 5% MCR18-EZHU-J-244 R14, R9 1206 240K ADSP-2181 EZ-KIT Lite Evaluation System Manual...
  • Page 63 1206 47K Resistor, 1/8W 5% MCR18-EZHU-J-512 R10, R12, R15, 1206 5.1K R16, R7, R8 Resistor, 1/8W 5% MCR18-EZHU-K-1R6 1206 1.6 Rubber bumper, gray SJ-5018924157-R Shunt On header at JP2 Socket, 32 Pin Dip 2-644018-5 ADSP-2181 EZ-KIT Lite Evaluation System Manual...
  • Page 64 ADSP-2181 EZ-KIT Lite Evaluation System Manual...
  • Page 65 ADSP-2181processor, system architecture, programs, 3-12 VisualDSP++ interface, 2-10 breakpoints, 2-14 ADSP-2181 processor restrictions, internal memory restrictions, analog audio interface, -viii CLKOUT signal, see also AD1847 codec CODECDIS signal, 2-5, 3-14 input, -viii codecs ADSP-2181 EZ-KIT Lite Evaluation System Manual...
  • Page 66 3-15 header, 3-12 DEBUG command, debugger, 2-6, 2-11, 2-14, debugging, 2-9, 2-13, 3-12 FL1 pin, 2-4, default settings, flag IO pin, 2-4, 3-15 developing programs, 2-10 frequency tone, 2-15 development cycle, 2-10 DIP package, ADSP-2181 EZ-KIT Lite Evaluation System Manual...
  • Page 67 -viii licence, outputs, -viii VisualDSP++ and EZ-KIT Lite loading programs, 2-13 software, LPC encoding, 2-16 instruction rate, -viii internal RAM, interrupt memory disabled, checking, 2-6, 2-14, 3-12 nesting, map, ADSP-2181 EZ-KIT Lite Evaluation System Manual...
  • Page 68 LEDs breakpoints, see LEDs installation, push buttons, -viii, speech compression algorithms, 2-15 S1 (reset) switch, 2-14, SPORT0 port, 2-5, 2-9, 3-14 S2 (external ISR), SPORT0 TX interrupt, 2-7, ADSP-2181 EZ-KIT Lite Evaluation System Manual...
  • Page 69 3-14 user LEDs system see LEDs architecture, EZ-ICE compatible, 3-14 requirements, PC, VisualDSP++, documentation, -xvi installation, testing interface, 2-10 memory, license, UART, online Help, Timer ISR, 2-4, 2-8, requirements, transmitted loop back routine, ADSP-2181 EZ-KIT Lite Evaluation System Manual...
  • Page 70 INDEX ADSP-2181 EZ-KIT Lite Evaluation System Manual...

Table of Contents