Download Real-Time Digital Signal Processing System for - Durham e

Transcript
Chapter 5
designer great programming flexibility, but requires a significant amount of time and
effort to fully realise a system and hence benefit from the CCS tools. It enables full
access to the functionality of third party daughter cards such as the AED330 used in this
project. This includes controlling the ping pong buffer, EDMA transfer and DSP/BIOS
real-time analysis and scheduling.
This example was studied and included because it gives a clear explanation of the data
transfer methods which are very useful for understanding the software structure of the
daughter card test programme, thus, providing a sound basis for a pulser/receiver
application programme.
5.4.1 Description
The dsk_app example digitally processes audio data from the line input on the AIC23
codec and plays the result on the headphone and line output. It uses the McBSP and
EDMA to efficiently handle the data transfer without intervention from the DSP. Digital
audio data is received from the codec on McBSPl. The audio data is a series of 16-bit
signed integers representing the amplitude of the input waveform at a particular point in
time. Since the AIC23 is a stereo codec, the audio input consists of both left and right
audio channels. Data is received in a frame consisting of two elements, one 16-bit
sample from the left channel followed by one 16-bit sample from the right channel.
Frames are received at the DSK's default sample rate, 48 kHz.
Data In
CODEC
DSK
Data Out
<
CODE(^
*\ McBSP
*\ EDMA
ata Processin
€6713
McBSF
PONG
EDMA
PING PONG
Figure 5.6 D S K Application Example Hardware Diagram
74