Post Go back to editing

Setting up correctly EVAL-ADAU1467Z board for higher Fs

Thread Summary

The user is configuring a SigmaDSP board for 192 kHz or 96 kHz sampling rates but encounters issues with the filter cutoff frequency and codec settings. The solution involves changing the CLKGEN1 ratio to 2/3 for 192 kHz and programming the AD1937 codec via I2C to match the desired sample rate. The START_PULSE should remain at 48 kHz, and the codec configuration must be re-applied after each reset or power cycle. The user also needs to ensure the serial input port settings are correct for the number of channels and bit depth used.
AI Generated Content
Category: Software
Product Number: ADAU1467
Software Version: SigmaStudio 4.7

Project : active filtering for hifi.

I'm just at the beginning, but yet confused with clocking configuration.

I intend to run the board at 192 kHz sampling, or 96 kHz.
Changing Fs by dropping down the toolbar selector is not enough, as my filter's cutting frequency turns to be wrong by ×4 or ×2.

I finally succeeded by changing START_PULSE in Hardware config: filter's cutoff is ok.

But in some forum threads I saw this was not the right way to do.
Why?
I'm not even sure codec's i/o's Fs has followed.

So I tried to change CLKGEN1 ratio to 2 / 3, but it turns the board to silence.

Please see my project attached.
That would be great if someone could explain what parameters I missed to change, and give an overview of those involved in the whole chain's sampling frequency.

I would like to understand that and solve this point before going further.

Simple 2 voies sym+asym auto Fs ok.dspproj

Thank you,

Nicolas

Parents
  • Trying — Succeeds with your project, Harish, but not when inserted into mine: I got white noises or loud noise on one output only, and not consistent results over many runs.

    Is there anything else to touch? I don't see anything special in your project.
    Of course I've changed Clock1 with the 2 / 3 ratio.

    I'm trying to uderstand what is twicked by the XML, regarding AD1937 manual, I stay confused.

    I see we mute the DAC and finally unmute it. Ok.
    But why do we set DAC wordsize to 20 bits ?

    Which of these parameters change the sampling rate?
    Then for 96 kHz, what should be changed?

    Can we take away the default values writing XML lines, or are they all mandatory?

    ...will try again to succeed.

    Thanks

Reply
  • Trying — Succeeds with your project, Harish, but not when inserted into mine: I got white noises or loud noise on one output only, and not consistent results over many runs.

    Is there anything else to touch? I don't see anything special in your project.
    Of course I've changed Clock1 with the 2 / 3 ratio.

    I'm trying to uderstand what is twicked by the XML, regarding AD1937 manual, I stay confused.

    I see we mute the DAC and finally unmute it. Ok.
    But why do we set DAC wordsize to 20 bits ?

    Which of these parameters change the sampling rate?
    Then for 96 kHz, what should be changed?

    Can we take away the default values writing XML lines, or are they all mandatory?

    ...will try again to succeed.

    Thanks

Children
  • Hello Nicolas,

    the codec config should be done once, or is it needed on every boot? --> The second, I understand.

    The Codec can be programmed once for it to run continuously, but if you reset the board or give a power cycle then you have to program it again.

    Then the Codec boot switch will remain in the I2C position? --> Guess yes.

    Yes, putting the switch S2 in standalone mode makes the Codec's SCL, SDA pin grounded, which sets the codec at 48KHz default. Please refer the AD1937's datasheet for that info. So, if you want to run the ADC/DAC at different sample rate then you have to program the Codec via its I2C pins, putting switch S2 to I2C mode makes the connection between DSP's master I2C port to codec's I2C port.

    Why should the START_PULSE stay at 48 kHz, as it seems to run the DSP computing ?

    So, if you look at the START PULSE setting carefully, it says, "Base_Fs (48 kHz for 48 kHz base sample rate) (Clock generator 1's x1 output)", it uses CG1's output as is. We made the CG's N/M ratio to 2/3 (288000x2/3 = 192KHz).

    So CG1's output is 192KHz, it's the Base rate now, using CG 1's x1 output gives you 192KHz. You don't change the START PULSE setting, you just change the CG1's ratio will be enough.

    Another method is letting the N/M ratio 'as is' which is1/6 by default. Now CG1 will produce 48kHz, then you have to change the START PULSE and serial ports to Base_Fs*4. which will give you 192KHz. You can see people use this way as well in the forum posts.

    I prefer using the first method, just changing the CG1.

    Now comes, how to program the codec or create the XML file. You can program the codec parameters like sample rate, master/slave, etc. 

    Just open sigma studio and drag/drop AD193x DLL and connect it with USBi and go to hardware registers.

    You can make your required changes in parameter settings and click on the 'X' mark in the capture window like below.

    Then click Link compile download, you can the transaction in the capture window below, just mark all of it and right click and select 'Add to sequence window'.

    Then export the XML files and add it in your Sigma studio program.

    I replaced the DC block with a switch, just trigger it after link compile download, the I2C commands will be sent on your trigger then the CODEC will be programmed and you can listen to the audio.

    There is also a startup boot master control port module that you can try.

    Hope I have answered your questions.

    Regards,

    Harish

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.