I was successfully able to run the MCASP_Audio_lcdkOMAPL138_c674xExampleProject, the instructions for which are provided in the Processor SDK RTOS. This demo takes input from the LINE IN (J10 Top) and plays it out on LINE OUT (J10 Bottom). However, I wish to take input from a MEMS mic (Sparkfun ADMP401 BOB) connected to the MIC IN port. I power the mic externally instead of using MICBIAS. I am unable to do this even after I make necessary changes in the AIC31.c file as suggested here. I edit the function int32_t aic31InitAdc in the file as follows:
/* enable the programmable PGA for left and right ADC */
retVal |= aic31RegWrite(instHandle, Aic31_P0_REG15, (uint8_t)0x00);
retVal |= aic31RegWrite(instHandle, Aic31_P0_REG16, (uint8_t)0x00);
/* MIC3L/R is connected to the left ADC PGA */
retVal |= aic31RegWrite(instHandle, Aic31_P0_REG17,(uint8_t)0x00);//Here
/* MIC3L/R is connected to the right ADC PGA */
retVal |= aic31RegWrite(instHandle, Aic31_P0_REG18,(uint8_t)0x00);//Here
/* power on the Line L1R */
retVal |= aic31RegWrite(instHandle, Aic31_P0_REG19,(uint8_t)0x04);
/* REG20 (not required) */
/* REG21 (not required) */
/* power on the Line LIL */
retVal |= aic31RegWrite(instHandle, Aic31_P0_REG22,(uint8_t)0x04);
This does not help me get any input from the mic though. Even if I change 0x00 to 0x88 to change the input level control gain, it doesn't make a difference. Are there other places where I must make the change?
Overall, its hard to figure out how I can make these custom changes to starter demo codes in the TI processor sdk. For instance, my next step would be to save the sampled audio values to memory so I can work on filtering audio signal. However, I have no leads how/where to make these changes. Could you please suggest a good resource for an absolute beginner at programming dsp boards?