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.

EVM 5517 Reading Microphone on Codec 1 and Codec 2 at the same time.

Hello all,

I'm using a EVM 5517 Board, for sound applications.

I'm trying to read samples from Codec 1 and Codec 2 at the same time, but I couldn't make it work. Thanks to the example microphone loop on HP, I can hear how nicelly works, but I would like to get the sound from the other codec two.

I try to activate the second code as well as enable interruption, coping the examples, but it doesn't work. How should I enable and read both on the same time?

  • The codecs have some flexibility in their confiugration

    Lets just make it simple and connect the U19 codec to I2S0 and the U72 codec to I2S2
    Then make sure the software configures I2S0 and I2S2 (check EBSR for both serial ports are configured to I2S)

    JP15 matches JP50

    J27 no jumpers
    J28 no jumpers
    J29 jumpers from 1 to 3 and 2 to 4
    J30 jumpers from 1 to 3 and 2 to 4


    Since both codecs use the same I2C address I2C goes through a mux to...
    Codec 1 only
    Codec 2 only
    or Both codecs simultaneously      
    That mux is selected by SEL_I2C_S0, SEL_I2C_S1

    These select lines are driven by the I2C IO expander, so reuse the IO expander software from the examples to route I2C to the second codec.
    P02 and P03 drive the select lines (or you could pull these select lines high and low through J15 header) - they both default low with a pull-down resistor.

    Hope this helps,
    Mark

  • First of all, thanks for your answer!

    Yes, for sure it helps.

    ok, for jumpers.

    In order to connect both codecs simultaneously, should I connect SEL_I2C_S0=1 and SEL_I2C_S1=1 or other address?

    I don't see the io expander software from the example to route i2C to second codec. I didn't get that point. Could you give me some tips or orientation?

    Best Regards and Thank you !
  • Please, how do I route i2C to use the two codecs at the same time? I couldn't make it work..