Sign in

username:

password:



Not a member?

Search c54x



Search tips

Subscribe to c54x



c54x by Keywords

5409 | 5416 | AD5 | ADC | BIOS | Boot | Booting | Bootloader | C540 | C5402 | C5409 | C5416 | CCS | Codec | DMA | Dmad | DSK | DSKPlus | Dsplib | EVM | FFT | FIR | Flash | GPIO | HPI | Initialization | Interrupt | JTAG | LOG_printf | MCBSP | RFFT | RTDX | Sampling | STLM | UART | VC540

Discussion Groups

Discussion Groups | TMS320C54x | Problems using Dsplib

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).

  

Post a new Thread

Problems using Dsplib - Torgeir Jakobsen - Sep 8 14:25:00 1999



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




(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )