Hi. I'm trying to use the program Getting Started with my TMS320C5535 board and my program stops in this function after the "while", in "counter1++" and seems that never had the input signal interruption:
void aic3204_codec_read(Int16* left_input, Int16* right_input)
{
volatile Int16 dummy;
counter1 = 0;
/* Read Digital audio inputs */
while(!(I2S0_IR & RcvR) )
{
counter1++; // Wait for receive interrupt
}
*left_input = I2S0_W0_MSW_R; // Read Most Significant Word of first channel
dummy = I2S0_W0_LSW_R; // Read Least Significant Word (ignore)
*right_input = I2S0_W1_MSW_R; // Read Most Significant Word of second channel
dummy = I2S0_W1_LSW_R; // Read Least Significant Word of second channel (ignore)
}
I want to know if the problem could be in the ADC or if I would be able solve it by software? Thanks!!