你先要了解fpga 然后了解nios 做一些实验,看一些资料,有了基础就要好些了。 DE2中有个这方面的例子,就是手册中的5.5例,卡拉OK机,你可以看看。 5.5 A Karaoke Machine This demonstration uses the microphone-in, line-in, and line-out ports on the DE2 board to create a Karaoke Machine application. The Wolfson WM8731 audio CODEC is configured in the master mode, where the audio CODEC generates AD/DA serial bit clock (BCK) and the left/right channel clock (LRCK) automatically. As indicated in Figure 5.7, the I2C interface is used to configure the Audio CODEC. The sample rate and gain of the CODEC are set in this manner, and the data input from the line-in port is then mixed with the microphone-in port and the result is sent to the line-out port. For this demonstration the sample rate is set to 48 kHz. Pressing the pushbutton KEY0 reconfigures the gain of the audio CODEC via the I2C bus, cycling through one of the ten predefined gains (volume levels) provided by the device.
[此贴子已经被作者于2007-7-14 13:03:17编辑过] |