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.

PCM9211: PCM9211EVM analog to SPDIF issues

Part Number: PCM9211

Hi!
I'm working on a project where I need to convert an analog audio signal to SPDIF. I purchased the PCM9211 EVM evaluation board to explore this IC and try to make it do what I want. It turns out, I can't!

I've been searching all way, but I still haven't found out how to make this work.

My goal is to use the PCM9211 to convert analog audio to SPDIF without having to rely on other ICs such as the TAS1020.

I read somewhere on this forum that I had to connect the input and output i2s lines on the chip in order to "route" the digital audio back into the chip. I therefore connected pin 7 to 20, 19 to 8, 18 to 9 and 17 to 10, but I still haven't been able to make it work by using the CodecControl software.

Can someone help me with this by either helping me with a script or a screenshot along with a physical connection setup?

Thanks!

  • Hi Hans,

    Welcome to e2e Forum and thanks for the question regarding the PCM9211. It can definitely convert the Line input to S/PDIF input and I can share the configuration in a few hours once I do not have access to the file at this very moment. I'll share the details in a few hours.

    Thanks and best regards,

    Ravi

  • Thank you for your reply! I'm looking forward to see the result.

    Does the analog to SPDIF conversion require any hardware modifications to the EVM board, except for the on-board jumpers?
    Like I already mentioned in the previous post I connected the output and input i2s lines by soldering four wires, but I'm not sure it's really needed for this application.

  • Any updates on this Ravi?

    Thanks!
  • Hi Hans,

    apologies for the delay.

    As far as conversion of line input to S/PDIF is concerned, there is no need to make any hardware changes. You can use codeccontrol software which is available at below link -

    The SW is available to download under 'Software' section.

    For the given requirement, you will configure the part w below shown signal path -

    If you are configuring the device on your board, please write the below registers w respective values -

    #------------------------------ MPO0 settings------------------------------

    #REG. 35h, RECOUT0 Output Biphase Source Settings Register

    w 80 35 0C

     

    #REG. 36h, RECOUT1 Output Biphase Source Settings Register

    w 80 36 54

     

    #------------------------------Start DIT settings------------------------------

    #REG. 60h, DIT Function Control Register 1/3 | Select DIT System Clock Source & BCK/LRCK & Data Source

    w 80 60 22

     

    #REG. 78h, MPO1, MPO0 Function Assign Setting Register

    w 80 78 3D

    Hope this helps. 

    Best regards,
    Ravi

  • Perfect, it worked! Thank you so much!

    It's strange though. If I execute your script everything works fine. However I'm not able to make this work if only configure the board using the graphical interface.

    Does your script enable something that's not exposed in the GUI?

    EDIT:

    I also tried to enter the values directly into the registers using the register inspector, and this doesn't work either.

    I connected a microcontroller to the SDA and SCL lines, and was able to enable analog to SPDIF conversion. The chip noe does exactly what I want, but I think it's strange that I wasn't able to do this in the GUI or register inspector.

  • Hi Hans,

    First off, glad the script is working for your requirements to convert line input to S/PDIF. 

    Also, thanks for letting me know the discrepancy w the GUI you are experiencing. I have tried to configure the part directly using I2C master using register writes and have not played w. the GUI much...it's an OLD GUI and does have some issues and i'll look at the issue you experienced and we will try our best to correct the same.


    Thanks again.

    Best regards,
    Ravi