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

Ads

Discussion Groups

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

FFT - SACHIN JAIN - Jan 17 4:05:00 2002



hi friends,

i am using dsk5402 and CCS 2.0 for a real time
application and i have to calculate fft.

problem 1:
i write code to configure codec and i used dsplib
functions(cbrev and rfft) i have included all related
files, then it gives me error:

symbols first referenced in file
------ -------------------------
_cbrev (path for file)\..\.\xyz.obj
_rfft (path for file)\..\.\xyz.obj

linker error: symbol refrencing.

i tried by changing linker settings but it is not
helping me. i am having doubt that it can be removed
by using -u option. or i forget something while using
dsplib functions ?

can any body help me in this problem ?

problem 2:
then i follow other path, i write a code for fft and i
tested it by using a function generating 1024 samples
for sin wave with suitable amliptude, i find that it
is gving me results correct. and then i write a code
to configure codec for capturing 1024 points, and this
time i use my fft function, but i am not getting
results.

(important to note that: i am directly passing the
array of 1024 pts to my fft code i.e. (data is in 2s
complement format))

so in this case i am having doubt in this data
format's. i am doing something wrong..?

problem 3:
when i am watcing my captured data in graphs i am not
getting my waveform VERY ACCURATELY (its shape is
little bit distorted), aulthough i configured codec
correctly. ( my input frequency is 200 and sampling
freq. is 22050.)

can any body help me in solving my problem ? how these
problems can be solved ?

thanks a lot.

Sachin





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

Re: FFT - Atanu Guchhait - Jan 17 13:21:00 2002

hi,
for your first problem, I think you have forget to include the file tms320.h
or 54xdsp.lib. Second problem may be you have to give input in the Q.15
format. If these two problems are solved then third will be automatically
solved.
atanu
*************************************
Center For Development Of Telematics
Telecom Technology Center Of Govt. Of India
Sneha Complex. Third Floor
71/1 Millers Road. Bangalore - 560052
India.
Ph: +91-80-2282915
+91-80-2263399-245/235/312
Fax: +91-80-2282915
Res: +91-80-3595516
email:

*************************************
----- Original Message -----
From: "SACHIN JAIN" <>
To: <>
Sent: Thursday, January 17, 2002 9:35 AM
Subject: [c54x] FFT > hi friends,
>
> i am using dsk5402 and CCS 2.0 for a real time
> application and i have to calculate fft.
>
> problem 1:
> i write code to configure codec and i used dsplib
> functions(cbrev and rfft) i have included all related
> files, then it gives me error:
>
> symbols first referenced in file
> ------ -------------------------
> _cbrev (path for file)\..\.\xyz.obj
> _rfft (path for file)\..\.\xyz.obj
>
> linker error: symbol refrencing.
>
> i tried by changing linker settings but it is not
> helping me. i am having doubt that it can be removed
> by using -u option. or i forget something while using
> dsplib functions ?
>
> can any body help me in this problem ?
>
> problem 2:
> then i follow other path, i write a code for fft and i
> tested it by using a function generating 1024 samples
> for sin wave with suitable amliptude, i find that it
> is gving me results correct. and then i write a code
> to configure codec for capturing 1024 points, and this
> time i use my fft function, but i am not getting
> results.
>
> (important to note that: i am directly passing the
> array of 1024 pts to my fft code i.e. (data is in 2s
> complement format))
>
> so in this case i am having doubt in this data
> format's. i am doing something wrong..?
>
> problem 3:
> when i am watcing my captured data in graphs i am not
> getting my waveform VERY ACCURATELY (its shape is
> little bit distorted), aulthough i configured codec
> correctly. ( my input frequency is 200 and sampling
> freq. is 22050.)
>
> can any body help me in solving my problem ? how these
> problems can be solved ?
>
> thanks a lot.
>
> Sachin > _____________________________________





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