Skip to main content
aditya
Associate II
July 19, 2017
Question

CS43L22 analog passthrough

  • July 19, 2017
  • 4 replies
  • 3215 views
Posted on July 19, 2017 at 13:28

Can anyone help me with using the codec CS43L22 in analog passthrough mode on STM32F4-Discovery.

Flow of application

Analog Input ---> ADC ---> DAC ---> CS43L22 ---> Headphone or Speaker

I have got ADC and DAC working, but the codec is not working.

    This topic has been closed for replies.

    4 replies

    waclawek.jan
    Super User
    July 19, 2017
    Posted on July 19, 2017 at 13:33

    CS43L22 *is* a DAC, so you want

    Analog Input ---> ADC ---> [data in processor] --->[I2S]---> CS43L22 ---> Headphone or Speaker

    JW

    aditya
    adityaAuthor
    Associate II
    July 19, 2017
    Posted on July 19, 2017 at 13:39

    Hi Jan,

    CS43L22 requires data in PCM format. I'm recording audio over an external microphone and need to transfer as analog data to codec.

    waclawek.jan
    Super User
    July 19, 2017
    Posted on July 19, 2017 at 14:17

    0690X00000607ckQAA.png

    This looks pretty much I2S to me.

    PCM is just to say that ''amplitude samples are taken regularly'' (as opposed to other forms of modulation, for example delta-sigma).

    JW

    vuahoa07
    Associate
    June 5, 2018
    Posted on June 05, 2018 at 06:03

    I've made my CS43L22 Passthrough worked: provide MCLK by calling 'HAL_I2S_Transmit_DMA' even we do not use I2S audio data.

    The Beep is the same.