You are on page 1of 29

Chapter 20

This chapter provides a series of


applications.
There is no daughter cards with the
DSK6713 and DSK6416
Part 1: Applications using the PCM3003 AUDIO
DAUGHTER CARD TMDX326040A)

by Richard Sikora
Part 2: USB Daughter Board.
by ATE Communications
Part 3: PCI C6711 DSP Educational Board.
by ATE Communications

Introduction

Some audio applications for the TMS320C6711 DSK with Audio Daughter Card have been
provided.
These include:

Alien Voices:
Voices: Changing voices using ring modulation. Widely used in science- fiction films for alien voices.
Delays and Echo:
Echo: Using buffers to delay a signal up to 4 seconds to simulate echo from a valley / cavern.
Electronic Crossover:
Crossover: Dividing audio signal into bass and treble using Finite Impulse Response (FIR) filters.

Chapter 20, Slide 2

Dr. Naim

Introduction

These include:

Guitar Effects:
Effects: Changing sound of an electric guitar by adding reverberation, treble boost and distortion.
Guitar Tuner:
Tuner: Tuning the strings of an electric guitar using an adaptive filter. Display of accuracy of tuning on LEDs.
Playback and Record:
Record: Using buffers to record and playback sounds. Half speed and double speed playback. Introduces
concepts of decimation and interpolation.
Reverberation:
Reverberation: Simulation of reflections from walls to make a small room sound like an auditorium.

Chapter 20, Slide 3

Dr. Naim

Introduction

These include:

Chapter 20, Slide 4

Signal Generator: Generating test waveforms sine and


triangle, continuous, burst and sweep between 60 Hz and 12
kHz.

Dr. Naim

Code Location

The CCS projects are in the following location:

\Code\Chapter 20 Other Applications\Audio


Daugter card

See the following for more information:

Chapter 20, Slide 5

\Links\Using the Applications.pdf

Dr. Naim

Chapter 20, Part 2


USB Daughter Board
by ATE Communications (
www.ate.co.uk)

Chapter 20, Slide 6

Dr. Naim

Overview

Combined signal acquisition/generation


and USB interface card:
Data acquisition/generation via 1 audio
CODEC, 2 ADCs and 2 DACs. (See
Chapter 8 for applications).
PC interface to DSK via USB chipset.
USB chipset to DSP on DSK via EMIF.

Chapter 20, Slide 7

Dr. Naim

Audio CODEC: CS4218


(see Chapter 8)

Chapter 20, Slide 8

High quality stereo audio input and


output.
Sampling rate of 48 kHz.
16 bit output (same resolution as audio
CD).
Interface to DSP via serial ports.

Dr. Naim

ADCs and DACs: AD9220 and AD768

Chapter 20, Slide 9

Two ADCs for digital to analogue


conversion of high frequency signals.
Two DACs for arbitrary waveform
generation of high frequency signals.
Interface between DSP and converters
via DSP's EMIF.

Dr. Naim

USB Interface Chipset

Chapter 20, Slide 10

USB revision 1.1 full speed device.


16 bit interface to DSP via EMIF.
Data transfer rates between DSP and PC
of up to 7M bits per second.
Internal FIFOs with programmable
empty and full flags connected to DSP's
timer input pins.

Dr. Naim

Using the Audio CODEC (1)

Chapter 20, Slide 11

Set up transmit and receive serial ports'


pins. Serial ports should be set up to use
external frame synch and clock signals.
Rising edges are used to clock
transmit/receive data and frame synchs
are active high.

Dr. Naim

Using the Audio CODEC (2)

Chapter 20, Slide 12

Set up the serial ports to use 32 bit


words, the data are delayed by one clock
edge, no companding is used.
The sample data are in the upper 16 bit
words of each 32 bit word. The lower 16
bits are used for control information.

Dr. Naim

Using the DACs and ADCs (1)

Chapter 20, Slide 13

The DACs and ADCs are connected to


the DSP's EMIF.
DACs and ADCs can be accessed by
reading from and writing to the DSP's
CE3 memory space.

Dr. Naim

Using the DACs and ADCs (2)

Chapter 20, Slide 14

A 32 bit read from the CE3 memory


space reads packed data, two 16 bit
words per 32 bit word. The ADCs have
12 bit resolution and should be
converted to 2's complement signed
values.
A 32 bit write to the CE3 memory space
writes data to both DACs. The data are
packed, two 16 bit words per 32 bit
word. The DACs have 16 bit resolution.

Dr. Naim

Using the USB interface (1)

Using the USB interface from the PC


requires software to communicate with
the device driver.

The USB chipset is connected to the DSP


via the EMIF.

The USB chip is mapped to the DSP's


CE2 memory space.

The CE2 memory space should be set up


using the following value for the CE2
control register: 0x7136C424.

Chapter 20, Slide 15

Dr. Naim

Using the USB interface (2)

Chapter 20, Slide 16

Reading and writing to USB


accomplished by accessing CE2 memory
space.
FIFO flags connected to DSPs timer
inputs provide information on USB
chips FIFO status.
DSP should monitor FIFO flags to avoid
under or overruns.

Dr. Naim

PC - USB daughter board communication

Chapter 20, Slide 17

Communicating with the board from the


PC requires code to interface to the USB
device driver.
Lower level details of communicating
with the device are handled by the
device driver.
Code running on a built-in micro
controller on the USB chip is used to
move the data between the USB buffers
and external port FIFOs.

Dr. Naim

PC - USB daughter board communication


Application: FFT processed on the DSK,
results sent to the PC via the USB interface
and the spectrum is display on the PC.
Files location:

\Chapters\Usb

Chapter 20, Slide 18

Dr. Naim

Chapter 20, Part 3


PCI C6711 DSP Educational Board,
PCIC67AT
by ATE Communications (
www.ate.co.uk)
Datasheet
Block Diagram
Chapter 20, Slide 19

Dr. Naim

Overview (1)

Chapter 20, Slide 20

C6711 based PCI card with a variety of


signal acquisition and generation
peripherals.
Video encoder for acquisition of video
data.
Video decoder for generation of video
signals.
Stereo audio CODECs for acquisition
and generating audio signals.
High frequency ADCs and DACS for
high frequency signal acquisition and
generation.
Dr. Naim

Overview (2)
Additional features:
PC has access to DSP via PCI interface.
JTAG controller for tight integration
with CCS.
Bus matching FIFOs for managing high
bandwidth of video data on video
encoder and decoder.
Large amount of SDRAM for program
and data storage.

Chapter 20, Slide 21

Dr. Naim

Video encoder

Chapter 20, Slide 22

DSP has access to video encoder output


data via memory mapped FIFO.
FIFO flag connected to DSP's external
interrupt to facilitate using EDMA to
move data from FIFO to other memory
locations.
Video encoder set up using I2C bus.
Video encoder should write framing
codes to FIFO to facilitate synchronising
to data stream.
Dr. Naim

Video decoder

Chapter 20, Slide 23

DSP has access to video decoder input


port via memory mapped FIFO.
Video decoder data input format
compatible with output format of
encoder.
Video encoder internal registers set up
via I2C bus.

Dr. Naim

Audio CODECs: CS4218

Chapter 20, Slide 24

Connected to DSP's serial ports.


Two stereo audio CODECs available
providing four input and four output
channels.
Audio CODECs use 16 bit data at 48
kHz sampling rate.

Dr. Naim

ADCs and DACs: AD9220, AD768

Chapter 20, Slide 25

High frequency ADCs for capturing of


high frequency signals
ADCs memory mapped in DSP for high
bandwidth parallel interface
DACs useful for outputting processed
waveforms or arbitrary waveform
generation
DACs memory mapped in DSP for high
bandwidth parallel interface

Dr. Naim

Programming the DSP

Use of JTAG emulator connected to


JTAG header on board.

Directly in CCS via on board JTAG


controller.

Single step debugging of DSP possible


when using CCS .

Access to all internal memory locations


of DSP via HPI connected to PCI
interface.

Chapter 20, Slide 26

Dr. Naim

Accessing data on DSP from PC

Chapter 20, Slide 27

Using PCI device driver.


PCI devices are plug and play, set up of
devices in PC straightforward.
PCI device connected to DSP's HPI.
Via DSP's EMIF programmer has access
to all peripherals connected to EMIF.

Dr. Naim

Stand alone operation

Chapter 20, Slide 28

External power connector for stand


alone operation.
Programming DSP via JTAG header
using JTAG interface board such as
XDS510.
Less complex than PCI set up, no
operating system trouble or need for
device drivers.

Dr. Naim

Chapter 20
- End Chapter 20, Slide 29

Dr. Naim

You might also like