0% found this document useful (0 votes)
378 views

Flowchart For Fir

This document provides instructions for using a digital signal processor (DSP) board to implement a finite impulse response (FIR) filter. The steps are: 1) Initialize the DSP board and codec; 2) Take input from the codec analog input and initialize filter variables; 3) Implement the FIR filter algorithm and output the result to the codec analog output. Additional details are provided on connecting audio input/output devices and setting up a Code Composer Studio project to compile, load, and run the FIR filter code on the DSP board.

Uploaded by

saniljayamohan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
378 views

Flowchart For Fir

This document provides instructions for using a digital signal processor (DSP) board to implement a finite impulse response (FIR) filter. The steps are: 1) Initialize the DSP board and codec; 2) Take input from the codec analog input and initialize filter variables; 3) Implement the FIR filter algorithm and output the result to the codec analog output. Additional details are provided on connecting audio input/output devices and setting up a Code Composer Studio project to compile, load, and run the FIR filter code on the DSP board.

Uploaded by

saniljayamohan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

FLOWCHART FOR FIR: Start

Initialize the DSP Board.

Take a new input in data from the analog in of codec in data

Initialize Counter = 0 Initialize Output = 0 , i = 0 Output += coeff[Ni]*val[i] Shift the input value by one

No

Is the loop Cnt = order Yes Output += coeff[0]*data Put the data in val array.

Poll the ready bit, when asserted proceed.

Write the value Output to Analog output of the codec HOW TO PROCEED :

1. Connect a Signal Generator/audio input to the LINE IN Socket or connect a microphone to the MIC IN Socket. Note:- To use microphone input change the analog audio path control register value (Register no. 4) in Codec Configuration settings of the Source file (Fir.c) from 0x0011 to 0x0015.

2. Connect CRO/Desktop Speakers to the Socket Provided for LINE OUT or connect a headphone to the Headphone out Socket. 3. Now Switch on the DSK and Bring Up Code Composer Studio on the PC. 4. Use the Debug Connect menu option to open a debug connection to the DSK board 5. Create a new project with name Fir.pjt. 6. Open the File Menu new DSP/BIOS Configuration select dsk6713.cdb and save it as xyz.cdb

7. Add xyz.cdb to the current project. Project Add files to project xyz.cdb 8. Automatically three files are added in the Generated file folder in project pane xyzcfg.cmd Command and linking file xyzcfg.s62 optimized assembly code for configuration xyzcfg_c.c Chip support initialization 9. Open the File Menu new Source file 10. Type the code in editor window. Save the file in project folder. (Eg: Codec.c). Important note: Save your source code with preferred language extension. For ASM codes save the file as code(.asm) For C and C++ codes code (*.c,*.cpp) respectively. 11. Add the saved Fir.c file to the current project which has the main function and calls all the other necessary routines. Project Add files to Project Codec.c 12. Add the library file dsk6713bsl.lib to the current project

Path C:\CCStudio_v3.1\C6000\dsk6713\lib\dsk6713bsl.lib 13. Copy header files dsk6713.h and dsk6713_aic23.h from and paste it in current project folder. C:\CCStudio_v3.1\C6000\dsk6713\include. 14. Add the header file generated within xyzcfg_c.c to Fir.c Note:- Double click on xyzcfg_c.c Copy the first line header (eg.xyzcfg.h) and paste that in source file (eg.Fir.c). 15. Compile the program using the Project-compile pull down menu or by Clicking the shortcut icon on the left side of program window. 16. Build the program using the Project-Build pull down menu or by clicking the shortcut icon on the left side of program window. 17. Load the program (Codec.out) in program memory of DSP chip using the File-load program pull down menu. 18. Debug Run

You might also like