Altera_Forum
Honored Contributor
13 years agoQuestion about WM8731 - I already read the datasheet.
There is something I am not able to understand.
I'd like to record a few seconds of data from line in, store them into a ram and then playback the recorded data. Looking at the connections provided by Altera in the schematic content, the only INPUT signal from the codec to FPGA is AUD_ADCDAT. I got many questions: a) Shouldn't AUD_ADCLRCK be an input signal, since it is the left/right line clock? b) Shouldn't AUD_BCLK be an input signal (or bidir), since it is provided by the CODEC to sync the output data in master mode? c) I was used to believe that I can assign pin directions in FPGA, so why "they" have placed only monodirectional pins in those signals, where other ones are bidir? d) I tried to watch AUD_ADCLRCK ond AUD_BCLK connecting GPIO (using schematic ports, not in HDL) pins and wiring them to an oscilloscope (100MHz bw, so i should be able to see at least few harmonics of the pulsed signal..), but doing that the entire project does not work. I mean, it compiles, i get a programmer file but then the design does not work. On the same port I drive as output a PLL 18.4MHz signal, without the AUD_BCLK or AUD_ADCLRCK I can see it with the oscope, with another compilation with the signals internally connected, PLL signal disappears. Anyone could explain me if I am wrong and where I am wrong? Best regards, L. p.s. I am able to configure the module via I2c (using NiosII and opencores modules), so that's not a problem.