Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

ADC, DAC problem in audio codec

Hy,

I want to configure in ADC and DAC mode the audio codec. I want fs=48khz, so i need a fmclk=12.288mhz.

How can i obtain sa 12.288 mhz frequency from 50 mhz clock?

Is it ok is i divide by 4 the 50mhz clock? Will not there be errors?

Thank you!

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The straightforward way is by using a PLL. Check it out with Megawizard Plug-In Manager.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    you still won't get 12.288 MHz with a PLL. a quick test on a CII shows the closest achievable clock is 12.345679 MHz. i think all this means is that you won't actually get to 48 ksps, in this case it looks like 12.345679 MHz / 256 = 48,225.3086 ksps (depending on the mode).

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You can come quite near (about 600 ppm) to the nominal frequency e.g. with a Cyclone III PLL by using the factor 15/61.