Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21594 Discussions

DE2 Audio Codec Programming

Altera_Forum
Honored Contributor II
9,110 Views

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.
0 Kudos
25 Replies
Altera_Forum
Honored Contributor II
905 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
905 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
905 Views

Hi, I'm doing speech recognition system by using FPGA, anyone have source code about this project?

0 Kudos
Altera_Forum
Honored Contributor II
905 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
905 Views

is there any verilog code?

0 Kudos
Reply