Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21608 Discussions

ADC, DAC problem in audio codec

Altera_Forum
Honored Contributor II
1,375 Views

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!
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
699 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
699 Views

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).

0 Kudos
Altera_Forum
Honored Contributor II
699 Views

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.

0 Kudos
Reply