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.

PCM5242 coefficients from PurePath Studio

Other Parts Discussed in Thread: PCM5142, PCM5242

Hello,

     I am trying to generate custom EQ from PPS using the PCM5142 framework for sample rates that aren't allowed with the hybrid flows available with pure path console.  I have built and ported the coefficients to my microcontroller project, however after programming the 5242 on my target board there is no change in sound.  I have verified that the coefficients are indeed programmed to the DSP by reading the coefficient and instruction registers.  Do I need a different framework in order to use the 5242 with PPS?  Is there something else I am missing? 

Thanks,

Kris 

  • Hi Kris,

    When programming coefficients to the DSP while it is running, there are actually two sets of RAM (CRAM) for the DSP. One is used by the DSP while running, the other is available to write to and read from. You must switch the RAM block the DSP is reading from after you write the new settings. Please see register 44 on page 1 of the register map.

    Justin
  • Justin,

          I was previously running in adaptive mode and when I loaded coefficients generated from PP console, I could get the EQ to work (only at 48K of course).  I tried to use the same code for loading coefficients from PP studio with no luck.  I just tried your suggestion of switching CRAM with adaptive mode disabled and it still doesn't work.  Is there a way to get PP studio to work with the PCM5242 eval board?  Any other suggestions?

    FYI, I have set up a simple test config in PP studio with 3 blocks: I2S in, stereo biquad with 60Hz boost, then 4x interp out (96K sample rate).

    Here is the register setup procedure I am running:

    Pre-init: (register, data)

    { 0x00, 0x00 },
    { 0x03, 0x11 },
    { 0x2A, 0x00 },
    { 0x02, 0x10 },
    { 0x01, 0x11 },
    { 0x00, 0x01 },
    { 0x03, 0x04 },

    followed by CRAM programming (not shown),

    Post Init:

    { 0x00, 0x00 },
    { 0x2B, 0x1F },
    { 0x00, 0x2c },
    { 0x01, 0x01 },
    { 0x00, 0x00 },
    { 0x02, 0x00 },
    { 0x07, 0x00 },
    { 0x08, 0x20 },
    { 0x55, 0x07 },
    { 0x03, 0x11 },
    { 0x2a, 0x11 },
    { 0x3b, 0x00 },
    { 0x29, 0x00 },
    { 0x28, 0x02 },
    { 0x25, 0x00 },
    { 0x41, 0x07 },
    { 0x03, 0x00 }

    Kris

  • Justin,

         Any response?

    -Kris

  • Hi Kris,

    Try using the attached framework for the PCM5242. Put this zip file in your component library, it should be in your \Documents\Texas Instruments Inc\PurePath Studio (Home Audio) MiniDSP 5.95\ folder.

    PCM5242App_TI_v1.zip

    Justin

  • Justin,

         Apparently my response to your post never showed up here Thursday (probably because I didn't hit the "post" button after typing my response).  The framework you sent worked and I am able to run the programmed coefficients from PPS.  Thanks for your help!

    -Kris