DSP 2
DSP 2
populaire
POPULAIRE ET DEMOCRATIQUE
ALGERIENNE REPUBLIQUE
Le minister de l’Enseignement superior
et de la Discussion scientifique
SCIENTIFIQUE RECHERCHE LA DE ET
SUPERIEUR L’ENSEIGNEMENT DE MINISTERE
TP 04
IMPLEMENTATION OF AN FIR FILTER ON A DSP
FLOATING POINT (TMS320C6711)
: Réalisé par
Laggoun Hocin
Belayali Haroun
Benachour Chouaib
2022/2023
Introduction:
In signal processing, a digital filter is a system that performs mathematical
operations on a sampled, discrete-time signal to reduce or enhance
certain aspects of that signal. This is in contrast to the other major type of
electronic filter, the analog filter, which is typically an electronic circuit
operating on continuous-time analog signals. In this Lab we are going to
understand CCS, then try to type code that will help us communicate with
DSK. In this experiment we have been used TMS320C6711 DSK. Secondly,
we made a digital filter like FIR, IIR filter. In this Practical work we can deal
and code with MATLAB, that will help us with designing a digital filter.
Implementation
1- Project 1:
in this part we make a way for the visualization of the input and output
signals where it consists of attacking the card with a voice signal through
the ‘MIC IN’ input and recovering the output using an earphone plugged
into the ‘HEADPHONE’ output, After that in another way using a GBF, we
attack the ‘LINE IN’ input with a sinusoidal signal whose peak-to-peak
voltage must not exceed 6 V, the output will be recovered using the
oscilloscope by connecting it to the ‘LINE OUT’ output of the card DSK.
First we've to follow this steps to verify (test) that this filter and ensure its
proper functioning:
The creation of a project named "instr".pjt " in CCS
to get there, it is necessary to attach to the main program in C
language "filtre_fir.c", the following files (the usefulness of which is
already mentioned in the PW1), c6713dskinit.c, Vectors_intr.asm,
c6713dsk.cmd, rts6700.lib, dsk6713bsl.lib and csl6713.lib.
Build the project (Project Rebuild All) which generates the
executable file 'filtre_fir.out’ 4-finally load this executable file on the
DSP (File Load).
The following images illuminated the added files(include-libraries-
source) fig1.
F(hz) 50 100 150 200 250 300 350 400 450 500
Ve(mv 1400 140 140 140 140 140 140 140 140 1400
) 0 0 0 0 0 0 0 0
Vs(mv) 600 600 600 600 600 600 600 600 600 600
0.43 0.4 0.4 0.4 0.4 0.43 0.43 0.43 0.4 0.43
Vs/ve
3 3 3 3 3
550 600 650 700 750 800 850 900 950 100
F(hz)
0
Ve(mv 140 140 140 140 140 140 140 140 140 140
) 0 0 0 0 0 0 0 0 0 0
Vs(mv) 600 600 600 600 600 600 600 500 500 400
Vs/ve 0.43 0.43 0.43 0.43 0.43 0.43 0.43 0.36 0.36 0.29
F(hz) 1050 1200 1500 1600 1800 2000 2600 3500 3800 4000
Ve(mv
) 1400 1400 1400 1400 1400 1400 1400 1400 1400 1400
Vs(mv) 375 200 60 40 10 5 0 50 120 170
Vs/ve 0.27 0.14 0.04 0.03 0.01 0.00 0.00 0.04 0.09 0.12
Table 3.1 - the variation of the Vs/ Ve ratio as a function of the frequency
F1=1000;
F2=2000;
fe=8000;
N=2^16;
temps=(0:N-1)/fe;
x1=sin(2*pi*F1*temps);
x2=sin(2*pi*F2*temps);
sound(x1+x2);
plot(x1,x2);
Conclusion:
At the end of this experiment, we have done our practical work
successfully. The work has allowed us to expand our skills in the field of
digital signal processing, as well as we recommend implementing more