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 | real time problem

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

real time problem - seba...@seareka.com - Apr 2 6:36:16 2008



Hi everyone,

I am working on DSK5416 and CCS.
I'm doing real-time using DMA and McBSP to communicate with the codec. I'm working with 16 bits
words and with DSP/BIOS configuration. 
I would like to know if the problem that I have is coming from data alignment.
After interruption (full buffer: 1024 words of 16 bits) I use the following function:
Interrupt function(){
int i=0,maxisync,maxicanal;
	for (i=0;i<Nx;i++){
		OutBuffer[i]=InBuffer[i];
	}
	// Input FFT 
	cbrev(OutBuffer,OutBuffer,NFFT/2);
	rfft(OutBuffer,NFFT,1);
	// Matched Filter
	for (i=0; i<NFFT;i++){
	  FiltreAdaptesync[i]=(OutBuffer[i]/10*chirpsync[i]/10);		
	}
	/*cbrev(FiltreAdaptesync,FiltreAdaptesync,NFFT/2);
	rifft(FiltreAdaptesync,NFFT,1);*/
}
I also have the following extra configuration file:

-l audioIODmacfg.cmd

SECTIONS{
InBufferSect: > IDATA PAGE 1,align(0x800)
OutBufferSect: > IDATA PAGE 1,align(0x800) 
FAsyncBufferSect: > IDATA PAGE 1,align(0x800)
}
As you can see after interruption I’m doing an fft of the receive buffer and a matched
filtering. 
My problem is when I’m computing the ifft of vector FiltreAdaptesync the result of the fft
OutBuffer is not good. However, when I don’t compute the ifft, then the result of OutBuffer 
fft is good.  I don’t understand why.  

Thank you for your help
getthematrix 
------------------------------------

Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution
for Commercial & Consumer End Equipment: www.ti.com/dm6467



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