Forum Discussion
Altera_Forum
Honored Contributor
16 years agoDE2 Audio Codec Programming
Hi,
I am engg student.I are working on SOPC baesd speech to text conversion.I am confused with how to to program audio codec for Audio to Digital conversion for input from microphone and give it to FPGA.25 Replies
- Altera_Forum
Honored Contributor
is there any verilog code?
- Altera_Forum
Honored Contributor
You should better have asked that in a new thread.
... and provided some information what you need in detail. For those you intend to do AUDIO with a 50MHz OSC: There is a relation of MUL/DIV configuration of 57/14 for the PLL which can generate nearly exactly the 64 x Fs frequency = 12.288 which is the S/PDIF frequency. Some OSC tuning will help to synch to an external S/PDIF clock, such as generated by the AUDIO Codecs. I already made this real in some projects. - Altera_Forum
Honored Contributor
Hi, I'm doing speech recognition system by using FPGA, anyone have source code about this project?
- Altera_Forum
Honored Contributor
I had a short look at this audio codec interface, posted at the first page.
It seems, bbcount indirectly controls the 48kpulse and produces someting like: f = 48kHz = "CLK" / 10 / 50 -> "CLK" = 500 * 48kHz = 24 MHz Therefore one could change this easily, adapting the counters. The only thing is the DAC information, which also hangs at this clock thing (?) I would recommend to rewrite it at least to something like this: (with " CLK / 10 / 50 equals CLK / 4 / 125") f* = 48kHz * 125 / 10 = 125/10 * "CLK" / 4 / 125 and transform it to an "enable clock" running at 24MHz, obtaining 24 * 5 * 5 = 600MHz for the ALTPLL. Then you get IN 50 MHz * 12 = 600 MHz OUT 600 MHz / 25 / 125 = 24 MHz / 125 = 192 kHz - Altera_Forum
Honored Contributor
hi
i test g00.. . clock_500 give data be g00 but how can i have input with LDATA & RDATA ?? clock_500 get one data 24bit clock_500 is datasheet i2sound PLEASE help me - Altera_Forum
Honored Contributor
--- Quote Start --- Hello, I am attaching a VHDL file which describes an interface to the Wolfson WM8731 Audio Codec chip located on the Altera DE1 and DE2 boards. This version just does output, but you can augment it to do input. For this you will have to read over the WM8731 datasheet. I have tested this on both the DE1 and DE2 boards. I hope you find it useful, but there is no warranty implied! Jim --- Quote End --- Maybe you could explain to newbie why the code is designed for a 24MHz clock. Doesn't both DE1 and DE2 have 50MHz and 27MHz clocks? - Altera_Forum
Honored Contributor
Thanks.. I think this will be very helpfull since i need to use Audio Codec in De2 board.
- Altera_Forum
Honored Contributor
hi i am having same trouble i need to use the line in or mic in as well can anybody help in that whatever i do the sound gets output automatically how to control it???
- Altera_Forum
Honored Contributor
Hello.I'm new here.Soo I have to work on a project that needs to analize music frequency and display it on the leds on the DE2.My question is : How do I use the DE2 to turn music into analazible data?
- Altera_Forum
Honored Contributor
Thank you . It's what i finding .