I have the OMAP-L137 / TMS 320C6747 Starter Kit.
I am using the code provided in <CC Studio Dir>\boards\evmomapl137_v1\dsp\tests\aic3106 in order to sample a signal on one of the input audio jacks, elaborate it and then sending it back on one of the output audio jacks.I have connected a headphone to the output and an music player to the input. I am running only the function aic3106_loop_micin.c. I have made slight changes to the program.
while(1)
{
/* Read then write the left sample */
while ( ! ( MCASP1_SRCTL0 & 0x20 ) );
sample_data = MCASP1_RBUF0_32BIT;
while ( ! ( MCASP1_SRCTL5 & 0x10 ) );
MCASP1_XBUF5_32BIT = sample_data;
for(i=0;i<40;i++)
{}
/* Read then write the left sample */
while ( ! ( MCASP1_SRCTL0 & 0x20 ) );
sample_data = MCASP1_RBUF0_32BIT;
while ( ! ( MCASP1_SRCTL5 & 0x10 ) );
MCASP1_XBUF5_32BIT = sample_data;
}
I get output if I use the condition i<40 inside the for loop, but dont get any output for i<100
Why is this happening? Is there any settings that I have to change to get the output regardless of the value used in the condition of the for loop?