This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to configurate the CS42L52 codec on MCBSSTM32F400

I don't know how to use CS42L52 to play voice or record , I don't fand boed's demo ,so I meet the problem very serious. can you provide a demo to how configurate the CS42L52 ? thank you very much

Parents
  • the problem for me ,that I must use CS42L52 AIN3A/AIN3B MIC/line in ,because I want make a IP phine,so I have to configure cs42l52 register. But I find much Software ,them don't use MIC
    I try to configure cs42l52 register hope to receive data,but I find whatever I use MIC or not ,the AIN3A/AIN3B pin also receive data,so I think I must configure wrong,now I realy not know how to do.

    this I configure cs42l52 register for AIN3A/AIN3B

    //power down Codec_WriteRegister(0x02, 1);

    //The clock Codec_WriteRegister(0x05, 0x81);
    //slave Codec_WriteRegister(0x06, 0x2C);

    //ADC choose Codec_WriteRegister(0x08,0x40); Codec_WriteRegister(0x09,0x40);

    //ADC volume Codec_WriteRegister(0x16, 0x7F); Codec_WriteRegister(0x17, 0x7F);

    //power on Codec_WriteRegister(0x02, 0x18); Codec_WriteRegister(0x03, 0x01);

Reply
  • the problem for me ,that I must use CS42L52 AIN3A/AIN3B MIC/line in ,because I want make a IP phine,so I have to configure cs42l52 register. But I find much Software ,them don't use MIC
    I try to configure cs42l52 register hope to receive data,but I find whatever I use MIC or not ,the AIN3A/AIN3B pin also receive data,so I think I must configure wrong,now I realy not know how to do.

    this I configure cs42l52 register for AIN3A/AIN3B

    //power down Codec_WriteRegister(0x02, 1);

    //The clock Codec_WriteRegister(0x05, 0x81);
    //slave Codec_WriteRegister(0x06, 0x2C);

    //ADC choose Codec_WriteRegister(0x08,0x40); Codec_WriteRegister(0x09,0x40);

    //ADC volume Codec_WriteRegister(0x16, 0x7F); Codec_WriteRegister(0x17, 0x7F);

    //power on Codec_WriteRegister(0x02, 0x18); Codec_WriteRegister(0x03, 0x01);

Children
No data