Figure 9: Frequency response of the Cauer low-pass and
high-pass filter.
Figure 10: Structure of the Cauer low-pass filter n=5.
C(4)=0.257662; XN=1; N2=0; N4=0; N6=0; N6=0;
N8=0; N10=0; N12=0; N14=0; G(1)=1;
G(2)=G(1)+C(1); R(2)=1/G(2);
R(3)=R(2)+1/(C(2)+1/L(2));
G(3)=1/R(3); G(4)=G(3)+C(3); R(4)=1/G(4);
R(5)=R(4)+1/(C(4)+1/L(4)); G(5)=1/R(5);
K(2)=(L(2)*C(2)-1)/(L(2)*C(2)+1);
K(4)=(L(4)*C(4)-1)/(L(4)*C(4)+1);
A(1)=G(1)/G(2); B(2)=R(2)/R(3);
A(3)=G(3)/(G(3)+C(3));
B(4)=R(4)/R(5); A(5,1)=2*G(5)/(G(5)+C(5)+1);
A(5,2)=2/(G(5)+C(5)+1);
for i=1:1:500
XN1=A(1)*XN+N2-A(1)*N2; XN2=XN1+N6;
XN3=-A(3)*XN2+N8-A(3)*N8; XN4=XN3+N12;
BN4=XN4-XN4*A(5,1)+2*N14-N14*A(5,1)-A(5,2)*N14;
BN3=-BN4*B(4)+XN3-B(4)*XN4;
BN2=XN2-A(3)*XN2+BN3+N8-A(3)*N8;
BN1=XN1-XN2*B(2)-BN2*B(2);
N1=XN*A(1)-N2*A(1)+BN1; N3=BN1+BN2;
N5=-K(2)*N3+K(2)*N6+N4; N7=-XN2*A(3)+BN3-N8*A(3);
N9=BN3+BN4; N11=N10-N9*K(4)+N12*K(4);
N13=-A(5,1)*XN4+N14-A(5,1)*N14-A(5,2)*N14;
YN(i)=-A(5,1)*XN4+2*N14-A(5,2)*N14-A(5,1)*N14;
N2=N1; N4=N3; N6=N5; N8=N7; N10=N9; N12=N11;
N14=N13; XN=0;
end
[h,w]=freqz(YN,1,500); plot(w,20*log10(abs(h)))
High-pass can be obtained by changing in pro-
gram N2=-N1, N4=-N3 N6=-N5, N8=-N7, N10=-N9,
N12=-N11, N14=-N13. In the Fig. 9 the attenuation
of low-pass and high-pass filter are presented.
2.4 Realization of Wave Digital Filters
in DSP C6711 by Simulink
The simulink model showed in Figure 11 corresponds
to the realization of a wave digital filter applica-
tion on TMS320C6711 DSK using Embedded Tar-
get for Texas Instruments TMS320C6000 DSP Plat-
form. The model of the WDF was created by means
of serial and parallel block that were added to the
window Simulink Library Browser between Com-
monly Used Blocks. In the input and output of the
WDF were added ADC and DAC convertes of the
TMS320C6711 that are in the window Simulink Li-
brary Browser, Embedded Target for TI C6000 DSP
and C6711DSK Board Support. This model created
in Code Composer Studio project can be see in Fig-
ure 13 and can run on the DSP C6711.
Figure 11: Realization of Wave Digital Filter in
TMS320C6711 by Simulink.
Figure 12: Realization of Wave Digital Filter in
TMS320C6711 by Simulink.
ICINCO 2008 - International Conference on Informatics in Control, Automation and Robotics
228