Forum Discussion

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

Question about sample rate of audio codec WM8731 on DE2

hi, everyone.

I have read code from the DE2 I2Sound Demonstration and compared with WM7831 datasheet. Everything is quite clear, except the setting of sample rate.

According to the datasheet, when using sample rate of 48 khz, mclk frequency is required to be 12.288 mhz.

http://hahoangthach.googlepages.com/sample.jpg

but the demonstration provides the clock of 25 mhz ( 50/2 AUD_XCK pin). I have also check the configure of CLKIDIV2 in sampling control register, core clock is also MCLK ( not divided by 2 ).

Could you please explain me why ?? Because I intend to use the sample rate of 44.1 Khz and don't know what frequency for MCLK.

http://hahoangthach.googlepages.com/sample2.jpg

15 Replies