--- Quote Start ---
Thanks a lot! So I think there was a bit of information that I was missing. Your design actually generates an exact 18MHz clock for the codec, which is not the precise 18.432MHz clock that the wm8731 datasheet says that it requires.
--- Quote End ---
You are correct that my design generates an 18 MHz clock (from a 27 MHz clock on the DE1 board).
--- Quote Start ---
So I guess what you're saying is that you don't absolutely need the exact 18.432MHz clock rate. Is that a correct interpretation? I was thinking if you didn't have the exact clock rate then you would hear all types of distortion - that's not the case?
Thanks for your help!
Jonathon
--- Quote End ---
I checked the FFT on the scope for a 1 KHz sine wave and found that it was pure tone. So it **seems** that you don't need the exact 18.432 MHz clock but you do bring up an interesting point that 18 MHz is off from 18.432 MHz by 432 KHz! Apparently it doesn't matter for my application BUT I would try to get as close as possible to the 18.432 MHz spec.
I quickly reloaded my design and tried generating an 18.432 MHz clock, the best I could do was 18.4 MHz from the 27 MHz using the PLL. The 24 MHz base clock didn't work either, I could only get 18.4 MHz.
Anyway, it would be interesting to get an 18.432 MHz clock. Did you look at the reference design for the DE2 board? Wonder what clock freq. terasic generates...
Bart