Forum Discussion
Altera_Forum
Honored Contributor
17 years agoQuestion 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, wh...
Altera_Forum
Honored Contributor
17 years ago --- Quote Start --- But the demonstration provides the clock of 25 Mhz ( 50/2 AUD_XCK pin). --- Quote End --- It's divided by 4, not by 2. The output clock changes state every second pulse of the input clock. So the full cycle is every four incoming clock pulses. Simulate it for better understanding. Also, as you can see in the table, it doesn't have to be 12.288 MHz. It can also be 18.432 MHz. It depends on the BOSR bit. Instead of using a divided clock, you can use a PLL to get a clock closer to the nominal value.