<< Chapter < Page Chapter >> Page >
This module is the recursive cosine generation lab.

Skills

In this laboratory you write a program that generates a cosine on the output of the D/A converter. After this laboratory you should:

  • Be able to work with transfer functions and difference equations.
  • Be able to get a Visual Basic program to communicate with your DSP program on the DSK board.

Reading

  • Chapter 4: Emmanuel Ifeachor and Barrie W. Jervis, Digital Signal Processing: A Practical Approach , Pearson Education Limited, England, 2002.
  • Chapter 13&14: Mrinal Mandal, Amir Asif, Continuous and Discrete Time Signals and Systems , Cambridge University Press, 2007.

Description

In this lab you will be making a cosine function generator. This will require you to generate the values that go to the D/A converter in order to produce a cosine function. Since we are only concerned with the output, the input values will be ignored. You will need to determine the values of the cosine function necessary to produce it on the output.

Pre-laboratory

  • In order to generate a cosine function we will generate the impulse response of a system that has the impulse response
h ( n ) = cos ( αn ) u ( n ) size 12{h \( n \) ="cos" \( αn \) u \( n \) } {}
  • For the given impulse response find the following:
  1. Transfer function of the system. Look it up in a ZT table.
  2. Direct Form II structure of the system.
  3. Pole/zero diagram of the system. Assume α = π/4 for the example diagram.
  4. Difference equation of the system.
  • Calculate h (0), h (1), and h (2) assuming the input is an impulse x ( n ) = δ( n ). Simplify the h (2) term.
  • Show how you will recursively determine the impulse response of this system.
  • Suppose the sample rate of the system is 8000 Hz and we want to generate a cosine with a frequency of 500 Hz, what should α be to implement this cosine function?
  • In MATLAB, write a program that will recursively determine the impulse response of this system with sample rate 8000Hz and cosine of 400 Hz. Put the data into an array and plot the impulse response. Generate 100 points. Compare the recursively generated values to the direct calculation of the cosine function.
  • Modify the while loop Write a program in C that will recursively determine the impulse response of this system.
  1. The recursive portion should be in an infinite while loop and the data should not go into an array but in a single variable.
  2. All of the variables should be of type double .
  3. In your program you will need to include the header file math.h .
  4. The data we are generating is for the D/A converter. The D/A converter accepts Int16 type data which has the limits of [-32768, 32767]. Since the impulse response has the limits [-1, 1]you will need to multiply the result by a number to scale the value up to a level that will work with the D/A converter without overflowing. Use the value 32000.0 . The statement will be something like (Int16)(32000.0*y) .
  5. To calculate π , use the following statement:
pi=16.0*atan(1.0/5.0)-4*atan(1.0/239.0);

Laboratory

Part 1

  • Use the sample I/O program for the DSK and generate a 400 Hz cosine sampled at 8000 Hz using the recursive program you developed.
  • Change the frequency of the cosine to at least 2 other values from about 50 Hz to 4000 Hz and record the results.
  • What happens when you change the frequency of the cosine to 5000 Hz? Explain what you see.

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 lab with ti c6x dsp and c6713 dsk. OpenStax CNX. Feb 18, 2013 Download for free at http://cnx.org/content/col11264/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Dsp lab with ti c6x dsp and c6713 dsk' conversation and receive update notifications?

Ask