hii,
I,m trying to take an input to my c5535 ezdsp kit through the microphone.
i tried to vary the test code aic3204 which produces a 1Khz signal in the headphones ,which i can hear but the second part of looping the data is not working.
i even tried the 2nd example of c5505 teaching rom, with the appropriate changes for the c5535 ezdsp kit. in this it goes to an infinite loop while executing the code
/* ------------------------------------------------------------------------ *
* *
* aic3204_codec_read( ) *
* *
* ------------------------------------------------------------------------ */
void aic3204_codec_read(Int16* left_input, Int16* right_input)
{
volatile Int16 dummy;
counter1 = 0;
/* Read Digital audio inputs */
while(!(I2S2_IR & RcvR) )
{
counter1++; // Wait for receive interrupt
}
*left_input = I2S2_W0_MSW_R; // Read Most Significant Word of first channel
dummy = I2S2_W0_LSW_R; // Read Least Significant Word (ignore)
*right_input = I2S2_W1_MSW_R; // Read Most Significant Word of second channel
dummy = I2S2_W1_LSW_R; // Read Least Significant Word of second channel (ignore)
}
This is a subroutine called in the main program , and it goes into an infinite loop inside the while loop.
pls help me how to solve this.
Thanks and Regards,
Srivatsa