O'Reilly logo

Digital Signal Processing and Applications with the TMS320C6713 and TMS320C6416 DSK, 2nd Edition by Donald Reay, Rulph Chassaing

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

D

MATLAB and GoldwaveSupport Tools

This appendix gives a brief description of the use of MATLAB and Goldwave in support of the exercises in this book. Their use is also described at various other points in the preceding chapters.

D.1 fdatool FOR FIR FILTER DESIGN

MATLAB’s filter design and analysis tool fdatool makes use of MATLAB functions, for example, cheby1() (see Chapter 5), that can be called from the MATLAB command line but integrates them with a graphical user interface (GUI) for the design and analysis of filters. It is invoked by typing

≫ fdatool

at the MATLAB command line.

Three MATLAB functions dsk_fir67(), dsk_sos_iir67(), and dsk_sos_iir67int() are provided in the folder Support on the CD accompanying this book. These can be used in conjunction with fdatool to create coefficient files for use with a number of example programs.

Example D.1: Design of FIR Bandstop Filter Using fdatool and dsk_fir67()

This example describes how the filter coefficient file bs2700f.cof, used in Example 4.4, was created.

Enter the fdatool parameters shown in Figure D.1 to design an FIR bandstop filter centered at 2700 Hz. The filter uses N = 89 coefficients and the Kaiser window function. Select FileExport and then set the parameters Export to, Export as, and Variable Names to Workspace, Coefficients, and bs2700, respectively. Click on Export. At the MATLAB command line, type

≫ dsk_fir67(bs2700)

and enter the filename bs2700f.cof.

The resultant coefficient (.cof) file is listed in

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required