Hi,
Newbie here.
I'm working with the C5515 DSP Board in a noise cancellation application.
I'm trying to 'measure' the time delay for different frequencies by inputting a sinusoid using codec and outputting the same samples.
The delay for my frequency range i.e 100 Hz - 2 kHz turns out to be more or less constant ( 1 ms )
Why is this delay so large? Shouldn't it be less than one sample time (i.e 48 KHz) ?
My code:
while(TRUE)
{
while((Rcv & I2S0_IR) == 0); // Wait for interrupt pending flag
LEFT_DATA = I2S0_W0_MSW_R; // 16 bit left channel received audio data
RIGHT_DATA = I2S0_W1_MSW_R; // 16 bit right channel received audio data
while((Xmit & I2S0_IR) == 0);
I2S0_W0_MSW_W = -LEFT_DATA; // 16 bit left channel transmit audio data
I2S0_W1_MSW_W = -RIGHT_DATA;
}
Any help is most appreciated!