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.

PCM1861EVM: SPI Communication Example

Part Number: PCM1861EVM
Other Parts Discussed in Thread: PCM1861, PCM1863, PCM9211

I am trying to get data out (from DOUT) of PCM1861EVM board through SPI stream using a NI-8452 but fail to get anything back. I assume there is something I didn't set up right for the registers or the stream configuration. Is there any LabVIEW SPI Stream example available for this board that I can refer to? Thanks!

  • Hi, YSL,

    Welcome to E2E, Thanks for your interest in our products!.

    The PCM1861 is an audio codec which is configured via hardware and supports digital audio data streaming in a PCM format (I²S, LJ,. RJ, TDM). So, SPI is not supported for either configuration or data streaming by the PCM1861. The PCM1863 is a different device from the PCM186x family with the same performance and number of channels of the PCM1861, it is configurable by software and for that, SPI and I²C interfaces are supported.

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer

  • Hi Diego,

    Thanks for your reply. I have one signal source on channel 1 through the RCA connectors on the EVM board and would like to get the digital audio data out. I am relatively new to this so my question may sound stupid but how do I get the PCM signal out? Do I need another data acquisition instrument to do that or is there something built into the EVM board that I can take advantage of? I have the I2X board that came with the EVM and I think in mode 2 I should be able to read the data via USB, right? When I opened the board in PurePath2, I got the error saying "Deice found has no FWID" and I saw on a different post mentioned this warning means the I2X board is not working correctly. Is there a way that I can load a firmware into the I2X to make it work? Are there some defined USB commands that I can use to retrieve the data?

    Thank you,

    YSL

  • Hi, YSL,

    With the EVM, you should be able to connect the board to the provided USB-I2X board, which can be used to configure the devices around the PCM1861 from the computer by using the GUI (PurePath Console 2) of the device.  Additionally, the USB-I2X board can be used to capture the digital audio data from the PCM1861 and record it in your computer by your preferred software, just select it as the input source.

    For additional information, please refer to the User's Guide of the EVM.

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer

  • Hi Diego,

    When I opened the board in PurePath2, I got the error saying "Deice found has no FWID" and I saw on a different post mentioned this warning means the I2X board is not working correctly. Is there a way that I can load a firmware into the I2X to make it work?

    Thanks,
    YSL
  • Hello Diego,

    I think I got the mode 2 working. Is there a way that I can programmatically change the board from mode 0 to mode 2 (not going through PurePath Console 2)? I want to use this board as part of a fully automated test and it will not work if the end user has to open PurePath to reconfigure the board whenever the EVM gets power-cycled. Could you please let me know if there are some scripts or standard commands that I can use to set it up outside of PurePath?

    Thank you very much!

    YSL

  • Hi, YSL,

    If you are getting the message saying that "Device found has no FWID", it is possible that the issue is with the EVM and not the motherboard. When you open the GUI and click on  Connect this device as PCM186x..."are you able to connect to the EVM? (see the bottom left corner of the GUI). If not, you might need to re-program the USB-I2X, which is possible by following the steps mentioned in this wiki entry.

    Regarding your last question, in order to configure the EVM in mode 2, you need to set the PCM9211 of the EVM to slave mode to make the USB-I2X board the master of the I²S bus. Please refer to below script as reference.

    w 80 40 00
    w 80 6d ff
    w 80 6e ff
    w 80 6d 00
    w 80 6f 40
    w 80 6b 55
    w 80 6d 00

    Please note values are in hex. 0x80 is the address of the PCM9211, the next value is the register address and next is the data.

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer