Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

DE2 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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 ---

    thanks for sending the VHDL code ,this code utilise the clock of 24Mhz i have 50 MHz crystal in my DE2 board so please suggest the change in the code thank u again
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    I'm not quite sure, but I think you can use the SPI SOPC module to build up the communication path to the CODEC Chip. . . .

    Maik