Hello, can anyone help me, I'm trying to use the C28x Fixed Point DSP library to desgin a new low pass filter for FIR16. I'm looking at Module User’s Guide
v1.01 January 10, 2011 page 31. I've searched the DOCs and forums and haven't found answers. I have Matlab 7 and I am tring to use FDATool GUI to make my coefficents.
I have 4 general questions about the library.
.
1) First, I don't understand the part where it says The coefficient can directly port to ‘fft.h’.
Why is it talking about the fft.h header file when I'm using the FIR header file? What does port mean in this context?
2) Second, Matlab seems to generate too many coefficents for long dbuffer[(FIR_ORDER+3)/2];
The compiler gives me an error that says there are too many coefficients for my array.
Why does Matlab seem to give the wrong number of coefficients or what do I not understand?
3) Do I have to scale the coefficients from Matlab to any IQ value.
I know that the older IQ math filter library Matlab script scaled the values for you. (ezfir16.m)
Is it OK to port the values directly or do I need to do something further, and if so is there an example?
4) What is the best way to input values from the ADC into the filter - is there any conversion that I need to do for the input?
So I want to read the ADC value and put it directly into the filter - how is it best to do this for these filters?
My goal is to input a ADC value 0-4095 and to output a filtered value from 0-4095 based upon a filter I design with matlab FDATOOL.
I seem to have no problem making filters for the floating point library and this version of Matlab generates filter coefficients without a problem that I directly use in my filter.
I wish there was a better start to finish tutorial on this library - if there is one, please send me the link...
Thanks
S.