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...
Altera_Forum
Honored Contributor
14 years agoI 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