Sie sind auf Seite 1von 5

A310SE Advanced Digital Systems

Design based CAD/Implementation Assignment (T1_12)





ANSWER THE FOLLOWING QUESTION AS CLASS EXERCISE. ALL STUDENTS
SHOULD ANSWER THIS QUESTION.


Q1. A linear phase, FIR band stop filter is required to meet the following specifications:

Pass band 4 6 kHz
Transition width 0.5 kHz
Pass band ripple 1 dB
Stop band attenuation 50 dB
Sampling frequency 20 kHz
FFT frame length 512


(a) Apply the Optimal method to design and implement theoretical model of given digital filter
by determining

(i) The pass band and stop band ripples
(ii) The filter order and filter length N
(iii) Filter realization structure


(b) Write a MATLAB program to compute the filter coefficients and plot the magnitude-
frequency response.

(c) Evaluate real time implementation of given digital filter on TMS320C6713 DSP chip by using
Texas Instruments 6713 DSK board and Code Composer Studio C (CCS C) software.
Obtain filter frequency response spectrum and compare to that generated by MATLAB
software.











ANSWER THE FOLLOWING COURSEWORK QUESTION. DIFFERENT DESIGN
SPECIFICATIONS WILL BE ASSIGNED TO EACH STUDENT BY YOUR LECTURER.



A linear phase, FIR band pass filter is required to meet the following specifications:

Pass band 8 10 kHz
Transition width 1 kHz
Pass band ripple (A
p
) 0.8 dB
Stop band attenuation (A
s
) 40 dB
Sampling frequency 30 kHz
FFT frame length 1024


(a) Apply the Optimal method to design and implement theoretical model of given digital filter
by determining

(i) The pass band and stop band ripples
(ii) The filter order and filter length N
(iii) Filter realization structure

(b) Write a MATLAB program to compute the filter coefficients and plot the magnitude-
frequency response.

(c) Evaluate real time implementation of given digital filter on TMS320C6713 DSP chip by using
Texas Instruments 6713 DSK board and Code Composer Studio C (CCS C) software.
Obtain filter frequency response spectrum and compare to that generated by MATLAB
software.





NOTES:


1. This is an individual coursework. Q1 should be solved as class exercise and solution
should not be included in CW report.

2. The coursework should follow the standard report format consisting of

a. Abstract
- Motivation
- Problem Statement
- Approach,
- Results and conclusion

b. Introduction

- Background / Motivation / Problem Statement
- Scope / Limitation
- Structure of report

c. Main report

- Literature Review

- Principle of operations of FIR digital filter
- Principles of Band pass filters
- Digital filter design steps by Optimal method
- Functional Architecture of TMS 320C6713 DSK board


- Design Criteria

- Design calculations for FIR BPF filter by optimal method
- Flow chart for MATLAB programs
- Flow chart for CCS C program

- Software Implementation

- MATLAB program for filter coefficients and frequency response
plot for assigned filter type
- CCS - C program for interfacing and implementation of digital
filter on chip
- Simulation results

- Real-time implementation of digital Filter on TMS C6713 DSP chip

- Detail implementation steps and procedures
- Emulation results


- Critical Analysis /Discussion and comparison of results

- Results and discussion for design calculation
- Results and discussion for MATLAB simulation
- Results and discussion for CCS-C implementation
- Analysis, discussion and comparison on results

d. Conclusion

- Discussion on methodology and solution implemented and results
achieved
- All Observations and investigations throughout the CW
- Recommendation: any alternative solution possible

e. References
- References from Books and Journals
- References from Internet links

3. The report should be printed using: Font, Times New Roman; Font size, 12; Line
spacing, 1-1/2 and left-right justification.

4. Harvard referencing should be used.


5. The following design methodologies should be applied for digital filter
implementation.


I .The design procedure for optimal method


(a) Calculate the normalized band edge frequencies as fractions of the Nyquist frequency.

(b) Assign the desired magnitude response in the pass band and in the stop band

(c) Compute the pass band and stop band ripples in linear unit as follow.

1 10
1 10
20 /
20 /
+

=
Ap
Ap
p
o

o
s
= 10
-As/20


(d) Calculate the weight factors of stop band and pass band by finding o
s
/ o
p
.

(e) Calculate the filter length N by using the following formulae by (Mintzer and Liu) referring to
page 371 of your text book,


| |
| |
6 10 5
2
10 4
3 10 2
2
10 1 10
) (log ) (log
) (log ) (log log ) , (
1 ) , (
) , (
b b b
b b b C
where
F g
F
C
N
p p
p p s s p
s p
s p
+ + +
+ + =
+ A +
A
~

o o
o o o o o
o o
o o


and

9 . 16 log 6 . 14 ) , (
10

(

=
s
p
s p
g
o
o
o o

b1 = 0.01201, b2 = 0.09664, b3 = -0.51325;
b4 = 0.00203, b5 = -0.57054,b6 = -0.44314;

AF = transition width normalized to the sampling frequency.

(f) Determine the filter order N1 = N -1.

(g) Draw the filter realization diagram for linear phase structure.


II. MATLAB programming

(a) Write a MATLAB program by applying the calculated design parameters to compute filter
coefficients and to plot magnitude frequency response spectrum.

(b) Verify the designed filter meets the given specifications.


III. Real time filter implementation on DSP chip


(a) Check the hardware status of DSK board by applying DSK diagnostic tools.

(b) Apply CCS - C studio software tools to interface software programs and DSK hardware.

(c) Apply debug tool in CCS - C for the software diagnostics and connection of target DSK
board.

(d) Export filter coefficients generated by your MATLAB program to CCS - C.

(e) Write a CCS - C program in order to implement the digital filter for given specifications by
using calculated filter coefficients.

(f) Create a CCS - C project to include supporting files and necessary information for compiler,
assembler, linker and other interfacing options.

(g) Emulate real time FIR digital filter on DSP chip and obtain the magnitude frequency
response spectrum.

(h) Compare and investigate the filter characteristics obtained from MATLAB and CCS C.
Verify designed filter meets the given specifications.

Das könnte Ihnen auch gefallen