Post Go back to editing

How to configure the MAX9867 as a I2S slave

Category: Hardware
Product Number: MAX9867

I am using the MAX9867 on the MAX78000 FTHR board and want to configure the codec as a slave. At the moment I am testing the sending of audio data from the MAX78000 and I can see the correct I2S data output on a testpoint on the board, but I dont get any output of the codec. Therefore I believe that I am not configuring the codec correctly. In the clock control registers I enabled the PLL and in the power management registers I have enabled the two DACs. Is there anything else to be configured, in order to get an output?

  • Hello, NZorbach,

    There aren't a lot of control registers for this device, so hopefully we can get you up and running quickly.

    The system clock register (0x05) needs to be set properly to start.  Make sure that the PSCLK bits are set properly for the MCLK frequency that you're using.  Do not worry about the FREQ bits now.

    To make the device easier to set up initially, set the Stereo Audio Clock Control registers to PLL mode, or 0x8000.  Once you have your application working, you can see if setting NI values can improve performance.

    For typical I2S mode, the Interface Modes should be set for the following values:

    0x08 = 0x10

    0x09 = 0x00

    Finally, the System Management register (0x17) should be set to 0x8C.  

    If this doesn't work for you, please let me know and we can try to figure out what the problem may be.

    Regards,

    Ed

  • Hi Ed,

    thank you for your quick reply. It was very helpful. I got the codec working now:)

  • That is great news!

    If you have any further questions, I will be happy to answer them.

    Ed