Skip to main content
Design DocumentAnalog

Engineer To Engineer Note EE-14: C Programs on the ADSP-2181 EZ-KIT LITE

A guide to developing C programs for the ADSP-2181 EZ-KIT LITE, featuring a talkthru example using the AD1847 stereo codec and covering interrupt handling and assembly integration.

View design document

Overview

This design document provides a technical guide for implementing C-based applications on the ADSP-2181 EZ-KIT LITE evaluation board. It focuses on a 'talkthru' shell program that receives stereo audio from an AD1847 codec and loops it back to the output. The note details extensions to the ANSI C compiler for DSP-specific tasks, such as utilizing program memory (PM) and volatile variables. Key topics include accessing memory-mapped registers, handling serial port interrupts with the signal.h header, embedding assembly code for circular buffers and IDLE instructions, and calling assembly routines from C. It also provides guidance on managing real-time constraints and the compilation process using the g21 toolchain.

Use Cases

  • Audio signal processing development
  • DSP firmware engineering
  • Interfacing AD1847 codecs with ADSP-2100 family processors
  • Prototyping real-time embedded systems

Topics

ADSP-2181
AD1847
EZ-KIT LITE
DSP
C Compiler
Talkthru
Interrupt Handling
Assembly Integration
Circular Buffer
Memory-mapped Registers

Referenced Parts

AD1847

Analog Devices

CTIP35.C when run on the EZ-LITE takes the input from the AD1847 stereo codec called LEFT_IN and RIGHT_IN

ADSP-2181

Analog Devices

The EZ-LITE is the low-cost ADSP-2181 based evaluation board.

Engineer To Engineer Note EE-14: C Programs on the ADSP-2181 EZ-KIT LITE | Design Resources