Other Parts Discussed in Thread: CC3200,
Tool/software: Code Composer Studio
Hi,
I am using TLV320AIC3106 with CC3200. Microphone configuration is completed and I am getting data out from the CODEC IC through I2S. Now I am need to out this data to speaker to validate the microphone input. What are the configuration needed for doing that?
This is the microphone configuration.
AudioCodecPageSelect((unsigned char )0x00); AudioCodecRegWrite((unsigned char) CODEC_SW_RESET, codecPage0Regs.SW_RESET); // clock generation and control AudioCodecRegWrite((unsigned char) CODEC_CLOCK_GENERATION_CONTROL, (unsigned char) 0x02); // CODEC_CLKIN uses MCLK(CLKDIV_OUT) AudioCodecRegWrite((unsigned char) CODEC_ADDITIONAL_GPIO_CONTROL_B, (unsigned char)0x01); // AudioCodecRegWrite((unsigned char) CODEC_PLL_A, 0x91);// CODEC_PLL_A_RESETVAL); // AudioCodecRegWrite((unsigned char) CODEC_PLL_B, 0x60); // J value 24 // AudioCodecRegWrite((unsigned char) CODEC_PLL_C, 0x09); // AudioCodecRegWrite((unsigned char) CODEC_PLL_D, 0x00); AudioCodecRegWrite((unsigned char) CODEC_GPIO1_CONTROL, 0x28); // clock out on gpio1 pin AudioCodecRegWrite((unsigned char) CODEC_SAMPLE_RATE,0xAA);//0xAA); // fs = fsref/n AudioCodecRegWrite((unsigned char) CODEC_MIC_BIAS_CONTROL, 0x80);// (unsigned char)0xC0); // MIC bias //When selecting an input, unmute the PGAs after routing the input and powering up the ADC. AudioCodecRegWrite((unsigned char) CODEC_LINE2L_LEFT_ADC_CONTROL, 0x80); AudioCodecRegWrite((unsigned char) CODEC_LINE1L_LEFT_ADC_CONTROL, 0x7C); // power up left ADC AudioCodecRegWrite((unsigned char) CODEC_LEFT_ADC_PGA_GAIN_CONTROL, 0x00); // unmute PGA
Below is the schematic attached.
Thanks & regards,
Vishnu Pradeep