Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
공지
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 토론

Generating tones on the DE2 WM8731

Altera_Forum
명예로운 기여자 II
1,602 조회수

Hi! I'm using an assembly file to send commands to the DE2's WM8731 through I2C, and I want to know if there is any way for me to generate a tone to play through the codec without using the microphone/line in ports. Are there some registers containing the data for the sound output that I can modify? Is there some other method for me to change the audio output? I've searched through the data sheet, but I don't see any mention of what I'm trying to do (although it could just be my lack of understanding). 

 

Thanks for your help!
0 포인트
7 응답
Altera_Forum
명예로운 기여자 II
951 조회수

The best start is to use the design example: "DE2 Music Synthesizer" that is on the CD together with the DE2 board.

0 포인트
Altera_Forum
명예로운 기여자 II
951 조회수

Unfortunately, I don't have access to that CD; I'm using the boards in my school's lab. Can I download that somewhere?

0 포인트
Altera_Forum
명예로운 기여자 II
951 조회수

You can download it here (http://www.terasic.com.cn/cgi-bin/page/archive.pl?language=china&categoryno=60&no=31&partno=4). But you need to register first.

0 포인트
Altera_Forum
명예로운 기여자 II
951 조회수

I just got a chance to test this out on a DE2, and it's doing just what I want it to do. Thanks, this is very helpful! 

 

Now, is there any way in which I can create similar functionality within the constraints of a simple computer using an ASM file to talk to the audio codec? Are extra verilog files such as these necessary to allow me access to the actual sound the audio codec is playing? I'm new to the DE2, and I'm still learning what the components can do and how they communicate.
0 포인트
Altera_Forum
명예로운 기여자 II
951 조회수

You can either do this in VHDL or Verilog or you can use a Nios processor to control your Audio Codec. But both require that you get familiar with designing hardware and/or designing embedded systems with Qsys or SOPC.

0 포인트
Altera_Forum
명예로운 기여자 II
951 조회수

Alright, thank you very much! Time to do some more learning :)

0 포인트
Altera_Forum
명예로운 기여자 II
951 조회수

Hello i am just starting to learn VHDL but i have a similar project the problem is i found a good book and i undestand the functions of the code but i have no idea how to create sound can i have a look to your code

0 포인트
응답