This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TLV320ADC5140: TLV320ADC5140 Unable to capture sound

Part Number: TLV320ADC5140

I'm currently using an STM32F407ZGT6 to control a TLV320ADC5140 using SPI communication to receive audio using I2S, but I'm unable to capture the audio data. Acquisition method: analog dual channel input。

STM32 as host ADC as slave。

Here is my register configuration

adc_write_reg(ADCX140_PAGE_SELECT,0x00);
adc_write_reg(ADCX140_SW_RESET,0x00);
adc_write_reg(ADCX140_SLEEP_CFG,0x00);
adc_write_reg(ADCX140_SHDN_CFG,0x05);
adc_write_reg(ADCX140_ASI_CFG0,0x40);
adc_write_reg(ADCX140_ASI_CFG1,0x00);
adc_write_reg(ADCX140_ASI_CFG2,0x00);
adc_write_reg(ADCX140_ASI_CH1,0x00);
adc_write_reg(ADCX140_ASI_CH2,0x01);
adc_write_reg(ADCX140_ASI_CH3,0x02);
adc_write_reg(ADCX140_ASI_CH4,0x03);
adc_write_reg(ADCX140_ASI_CH5,0x04);
adc_write_reg(ADCX140_ASI_CH6,0x05);
adc_write_reg(ADCX140_ASI_CH7,0x06);
adc_write_reg(ADCX140_ASI_CH8,0x07);
adc_write_reg(ADCX140_MST_CFG0,0x02);
adc_write_reg(ADCX140_MST_CFG1,0x48);
adc_write_reg(ADCX140_ASI_STS,0xff);
adc_write_reg(ADCX140_CLK_SRC,0x10);
adc_write_reg(ADCX140_PDMCLK_CFG,0x40);
adc_write_reg(ADCX140_PDM_CFG,0x00);
adc_write_reg(ADCX140_GPIO_CFG0,0xb1),
adc_write_reg(ADCX140_GPO_CFG0,0x00);
adc_write_reg(ADCX140_GPO_CFG1,0x00);
adc_write_reg(ADCX140_GPO_CFG2,0x00);
adc_write_reg(ADCX140_GPO_CFG3,0x00);
adc_write_reg(ADCX140_GPO_VAL,0x00);
adc_write_reg(ADCX140_GPIO_MON,0x00);
adc_write_reg(ADCX140_GPI_CFG0,0x00);
adc_write_reg(ADCX140_GPI_CFG1,0x20); //2d = GPI3 is configured as a master clock input (MCLK)
adc_write_reg(ADCX140_GPI_MON,0x00);
adc_write_reg(ADCX140_INT_CFG,0x00);
adc_write_reg(ADCX140_INT_MASK0,0xff);
adc_write_reg(ADCX140_INT_LTCH0,0x00);
adc_write_reg(ADCX140_BIAS_CFG,0x00);
adc_write_reg(ADCX140_CH1_CFG0,0x20);
adc_write_reg(ADCX140_CH1_CFG1,0x00);
adc_write_reg(ADCX140_CH1_CFG2,0xc9);
adc_write_reg(ADCX140_CH1_CFG3,0x80);
adc_write_reg(ADCX140_CH1_CFG4,0x00);

adc_write_reg(ADCX140_CH2_CFG0,0x20);
adc_write_reg(ADCX140_CH2_CFG1,0x00);
adc_write_reg(ADCX140_CH2_CFG2,0xc9);
adc_write_reg(ADCX140_CH2_CFG3,0x80);
adc_write_reg(ADCX140_CH2_CFG4,0x00);


adc_write_reg(ADCX140_DSP_CFG0,0x01);
adc_write_reg(ADCX140_DSP_CFG1,0x40);
adc_write_reg(ADCX140_DRE_CFG0,0x7b);
adc_write_reg(ADCX140_AGC_CFG0,0xe7);
adc_write_reg(ADCX140_IN_CH_EN,0x80);
adc_write_reg(ADCX140_ASI_OUT_CH_EN,0x80);
adc_write_reg(ADCX140_PWR_CFG,0xf4);
adc_write_reg(ADCX140_DEV_STS0,0x80);
adc_write_reg(ADCX140_DEV_STS1,0x80);
adc_read_reg(ADCX140_IN_CH_EN,0x80);
adc_read_reg(ADCX140_ASI_OUT_CH_EN,0x80);

x 出现错误。请重试或与管理员联系。