<< Chapter < Page Chapter >> Page >
You will implement three audio effects: a fixed-length delay, a variable-length delay, and a feedback-echo. All require storing many samples in external memory.

Introduction

Many audio effects require storing thousands of samples in memory on the DSP. Because there is not enough memory on theDSP microprocessor itself to store so many samples, external memory must be used.

In this exercise, you will use external memory to implement a long audio delay and an audio echo. Refer to Core File: Accessing External Memory on TI TMS320C54x for a description and examples of accessingexternal memory.

Delay and echo implementation

You will implement three audio effects: a long, fixed-length delay, a variable-length delay, and a feedback-echo.

Fixed-length delay implementation

First, implement the 131,072-sample delay shown in [link] using the READPROG and WRITPROG macros. Use memory locations 010000h - 02ffffh in external Program RAM to do this; you may also want to use the dld and dst opcodes to store and retrieve the 32-bit addresses for the accumulators. Notethat these two operations store the words in memory in big-endian order, with the high-order word first.

Fixed-Length Delay

Remember that arithmetic operations that act on the accumulators, such as the add instruction, operate on the complete 32- or 40-bit value. Also keep inmind that since 131,072 is a power of two, you can use masking (via the and instruction) to implement the circular buffer easily. This delay will be easy toverify on the oscilloscope. (How long, in seconds, do you expect this delay to be?)

Variable-delay implementation

Once you have your fixed-length delay working, make a copy and modify it so that the delay can be changed to any lengthbetween zero (or one) and 131,072 samples by changing the value stored in one double-word pair in memory. You shouldkeep the buffer length equal to 131,072 and change only your addressing of the sample being read back; it is moredifficult to change the buffer size to a length that is not a power of two.

Verify that your code works as expected by timing the delay from input to output and ensuring that it is approximatelythe correct length.

Feedback-echo implementation

Last, copy and modify your code so that the value taken from the end of the variable delay from Variable-delay implementation is multiplied by a gain factor and then added back into theinput, and the result is both saved into the delay line and sent out to the digital-to-analog converters. [link] shows the block diagram. (It may be necessary to multiply the input by a gain as well toprevent overflow.) This will make a one-tap feedback echo, an simple audio effect that sounds remarkably good. To testthe effect, connect the DSP EVM input to a CD player or microphone and connect the output to a loudspeaker. Verifythat the echo can be heard multiple times, and that the spacing between echoes matches the delay length you havechosen.

Feedback Echo

Questions & Answers

how does Neisseria cause meningitis
Nyibol Reply
what is microbiologist
Muhammad Reply
what is errata
Muhammad
is the branch of biology that deals with the study of microorganisms.
Ntefuni Reply
What is microbiology
Mercy Reply
studies of microbes
Louisiaste
when we takee the specimen which lumbar,spin,
Ziyad Reply
How bacteria create energy to survive?
Muhamad Reply
Bacteria doesn't produce energy they are dependent upon their substrate in case of lack of nutrients they are able to make spores which helps them to sustain in harsh environments
_Adnan
But not all bacteria make spores, l mean Eukaryotic cells have Mitochondria which acts as powerhouse for them, since bacteria don't have it, what is the substitution for it?
Muhamad
they make spores
Louisiaste
what is sporadic nd endemic, epidemic
Aminu Reply
the significance of food webs for disease transmission
Abreham
food webs brings about an infection as an individual depends on number of diseased foods or carriers dully.
Mark
explain assimilatory nitrate reduction
Esinniobiwa Reply
Assimilatory nitrate reduction is a process that occurs in some microorganisms, such as bacteria and archaea, in which nitrate (NO3-) is reduced to nitrite (NO2-), and then further reduced to ammonia (NH3).
Elkana
This process is called assimilatory nitrate reduction because the nitrogen that is produced is incorporated in the cells of microorganisms where it can be used in the synthesis of amino acids and other nitrogen products
Elkana
Examples of thermophilic organisms
Shu Reply
Give Examples of thermophilic organisms
Shu
advantages of normal Flora to the host
Micheal Reply
Prevent foreign microbes to the host
Abubakar
they provide healthier benefits to their hosts
ayesha
They are friends to host only when Host immune system is strong and become enemies when the host immune system is weakened . very bad relationship!
Mark
what is cell
faisal Reply
cell is the smallest unit of life
Fauziya
cell is the smallest unit of life
Akanni
ok
Innocent
cell is the structural and functional unit of life
Hasan
is the fundamental units of Life
Musa
what are emergency diseases
Micheal Reply
There are nothing like emergency disease but there are some common medical emergency which can occur simultaneously like Bleeding,heart attack,Breathing difficulties,severe pain heart stock.Hope you will get my point .Have a nice day ❣️
_Adnan
define infection ,prevention and control
Innocent
I think infection prevention and control is the avoidance of all things we do that gives out break of infections and promotion of health practices that promote life
Lubega
Heyy Lubega hussein where are u from?
_Adnan
en français
Adama
which site have a normal flora
ESTHER Reply
Many sites of the body have it Skin Nasal cavity Oral cavity Gastro intestinal tract
Safaa
skin
Asiina
skin,Oral,Nasal,GIt
Sadik
How can Commensal can Bacteria change into pathogen?
Sadik
How can Commensal Bacteria change into pathogen?
Sadik
all
Tesfaye
by fussion
Asiina
what are the advantages of normal Flora to the host
Micheal
what are the ways of control and prevention of nosocomial infection in the hospital
Micheal
what is inflammation
Shelly Reply
part of a tissue or an organ being wounded or bruised.
Wilfred
what term is used to name and classify microorganisms?
Micheal Reply
Binomial nomenclature
adeolu
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Dsp laboratory with ti tms320c54x. OpenStax CNX. Jan 22, 2004 Download for free at http://cnx.org/content/col10078/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Dsp laboratory with ti tms320c54x' conversation and receive update notifications?

Ask