Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).
|
Hi
I have a small program where I use some of the functions
from the TMS320C54x DSPLIB
version 1.0.
I have a input time series ( in TestData, a 512 point array
), but when I run trough the code
using Code Composer Simulator, it looks like the output
from the FFT function is chancing.
It should have given the same output everytime, since the
input time series is the same.
Here is my code:
void main(void)
{
while(1)
{ N=512; P=N/2; /***** Convert test input series from float to q15
*****/
fltoq15(TestData,(short *)SampleArray,N); /* Bit reversal
*/
cbrev((short *)SampleArray,(short
*)SampleArray,P);
/* Foward FFT */
rfft((short *)SampleArray,512,0);
/* Bit
reversal before invers FFT */
cbrev((short *)SampleArray,(short
*)SampleArray,P);
}
} If I remove the last line in the code ( call to cbrev function ), the
output from the FFT does not
change.
So, I do not understand why the second cbrev() function call should
influence on the FFT function
( I look on the contents of SampleArray after rfft() and before cbrev()
).
Do anyone know what the problem could be ?
Best regards
Torgeir Jakobsen
e-mail: t...@aanderaa.no |