DSP Hardware LAB
Last Update: March 5, 2007
Some Useful Links
- Check Texas Instruments Web Page to subscribe and be informed about C600 DSP tools, (esp. free online seminars). www.ti.com
- Also you may join to the mailing group of c6x. If joined with a yahoo ID, you can search previous messages: http://groups.yahoo.com/group/c6x/
- Also check the site: http://www.dsprelated.com
- Also check the site http://www.dspguide.com for some useful dsp
recipes.
LAB Rules
- Be prepared before
each lab session. A pre-report will be submitted about the corresponding
subject(s). Otherwise your preliminary grade will be reduced.
DO NOT FORGET THAT
THIS LAB IS ABOUT DSP AND ESPECIALLY ABOUT DIGITAL FILTER DESIGN.
HENCE YOU SHOULD HAVE GAINED SOME DSP BACKGROUND ABOUT THE CORRESPONDING TOPIC BEFORE EACH LAB.
- Lab work will be experimented and should be succeded during lab session. Otherwise, your performance grade will be reduced.
- TA will check your pre-work and lab-work during lab session.
- After lab work, a report will be submitted to the TA via e-mail.
o Deadline : Following
second day’s night 11:59:999 PM after the lab
o Send e-mails about this lab with the subject prefix: [DSPHW] etc.. (Ex: second report subject: ‘[DSPHW] LAB2 groupX (A, B or C)’)
- During lab session, try to be quiet! Running PC fans will generate enough noise for a possible headache!
- IMPORTANT: If your dsk board is not initialized by CCS, Please apply the following routines before calling TA. See Chart.
o Check whether the board power is on or not, and try again.
o If the power is on and not initialized yet, check whether the parallel (LPT) cable is plugged to both PC and board. And try again.
o If both connected and not initialized yet, reset the board and try again.
o If not initialized yet, power off the board wait a second, and power on, then try again.
o If not initialized yet, disconnect board from PC, restart Ms Windows OS, reconnect board to the PC and relaunch CCS.
o If not initialized yet, launch the CCS setup, check for correct options. Be sure that the simulator is not selected. And try again.
o If not initialized yet, an S.O.S. signal can be generated!
- Caution: Do not put/let any metallic(or electrically conductive) material (etc. pen) on your dsk board. This may cause an electrical shortcut hence damage microchips.
- When finished, place all the material in the box before exiting lab. Shutdown your PC, and pull out all the power cables. Try to be tidy!
The Spring Semester Schedule and Syllabus
Week 1 – 8th March 2007
- Demonstration of CCS, introduction via tutorials
Week 2 – 15th March 2007
- Using Board Support Library and Chip Support Library
-
Sine wave
generation using board facilities (especially Audio Codec Module)
Lab 2 sheet: http://home.anadolu.edu.tr/
Project template files: http://home.anadolu.edu.tr/
TI SineWave Generation Application Report: http://home.anadolu.edu.tr/
Quiz (print out and fill on the hand) (preliminary): http://home.anadolu.edu.tr/~sgorgulu/dsphw/Lab2/Lab2_quiz.doc
Week 3 – 22nd March 2007
- Introduction to Digital Filters
- Lowpass FIR filtering
-
Filter
Design using Matlab
Lab 3 sheet: http://home.anadolu.edu.tr/~sgorgulu/dsphw/Lab3/Lab3.pdf
Preliminary:
In addition to ‘Before the Lab’ section of the sheet,
prepare a report about following subjects giving references;
- Physical meaning of FIR filter
('finite impulse response filter' ise not a sufficient answer)
- In which cases, this type of filter is preferred? (in
other words; application specificality)
- Theorical and practical differences versus IIR type
filters
- How could we design a digital filter without using Matlab?
:)
1st Midterm Exams ([24, 30] March 2007)
Week 4 – 5th April 2007
- Filter Design using Matlab
-
Bandpass
FIR
- Lab4 sheet: http://home.anadolu.edu.tr/~sgorgulu/dsphw/Lab4/Lab4.zip
(Lab4 document and a matlab file is included)
-
Preliminary:
o Explore filter design algorithms ( See: filter designer figure of page 3, Ex: Equiripple FIR or else)
o What do ripples mean in frequency response graphic of filter?
Week 5 – 12nd April 2007
- Using buffers to collect and process data frames
- Double buffering
- Semaphores and running multiple tasks (using DSP/BIOS)
- Signal Energy calculation
- Lab5 sheet: http://home.anadolu.edu.tr/~sgorgulu/dsphw/Lab5/Lab5.pdf
-Preliminary: Find your answers for the following questions:
- How is the energy of a
digital limited-length signal calculated?
(write the c-code to implement the calculation of energy)
- Why does the energy of
a signal is needed? Where can it be used?
- Why do we use double
buffering? (What is the advantage of it?)
Week 6 – 19th April 2007
-
Overlapping(sliding)
buffers to collect and process signals
Lab6 sheet: http://home.anadolu.edu.tr/~sgorgulu/dsphw/Lab6/Lab6.zip
- Preliminary:
o Why do we implement circular buffering? Difference between double buffering?
o What are the selection criterias? (Circular buffer or Double buffer)
o Write your own circular buffer implementation c-code as preliminary
Week 7 – 26th April 2007
- Fast Fourier Transform (FFT) of a given
signal
- Using FFT in signal
processing
Lab7 sheet: http://home.anadolu.edu.tr/~sgorgulu/dsphw/Lab7/Lab7.zip
-
Preliminary:
o
Plot
the power spectrum of impulse ([1 0 0 0... 0]) using matlab(function: fft).
Shift it ([0 ... 0 1 0
0 ... 0]) and re-plot the power spect.
o
Plot
the power spectrum of signal located as wav-file: http://home.anadolu.edu.tr/~sgorgulu/dsphw/Lab7/noise_car.zip
using matlab
(function: wavread). Assume sampling frequency is 8KHz.
(Use 256-point fft and
be sure to locate frequency axis correctly on the graphs)
Week 8 – 3rd May 2007 (Delayed to 24th)
- FFT on overlapping buffers
- Energy calculation on sliding (overlapping) window(buffer)
2nd Midterm Exams – ([7,12] May 2007)
Week 9 – 17th May 2007 (Delayed to 24th)
- Inverse FFT on overlapping buffers
Week 10 – 24th May 2007
-
Final
lab (All-in-one lab of previously delayed labs)
o Real-time fft on circular buffers
o Low-pass filter design through fft
Lab Final Sheet: http://home.anadolu.edu.tr/~sgorgulu/dsphw/Lab8/Lab8.zip
End of Courses (29th May 2007)
Final Exams ([30th May, 14th June] 2007)
TA’s
: Res.Asst. Ţükrü Görgülü : sgorgulu(at)anadolu.edu.tr
Res.Asst. Cihan Topal : cihant(at)anadolu.edu.tr