Forum Discussion

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

DE2: Audio Codec development - Walk with me please :)

Hello,

I'm going to start working on writing the VHDL for the Audio Codec in the DE2. I was hoping that by posting my progress here, I'd:

  1. Be able to work step by step and clearly ask questions on each one

  2. Build an informative document that could serve as a tutorial for other users interested in doing the same thing.

I'll be using the datasheet hosted here (http://www.johnloomis.org/altera/de2/datasheets/audio%20codec/wm8731_wm8731l.pdf).

Thanks to anyone who helps and I hope others find it useful. :)

6 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    So,

    I originally thought I'd start with the first item in the datasheet, but after having a read, it seems I should be starting with clock. For (what I think would be) ease of use, I've decided to use the Internal Crystal Oscillator for my clock. Page 32 describes it as what seems to be a reliable source for my purposes.

    So far it looks like I'll be using these features:

    • Internal Clock

    • Master Mode

    • DSP Mode

    Now I just have to read up on how to achieve this in the datasheet :)

    TBC...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hey MMalik , did you compiled the vhdl code for audio codec? if you have the coded , can you share with me..

    i am using audio codec as adc for my final year project...

    thanks. help is appreciated..
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    hey MMalik , did you compiled the vhdl code for audio codec? if you have the coded , can you share with me..

    i am using audio codec as adc for my final year project...

    thanks. help is appreciated..

    --- Quote End ---

    Hello,

    I'm afraid I never took the time to start. I have recently decided to come back to FPGAs, but am considering using Lucid or Scala and convert to HDL. None of this would be of any help to you at the moment though.

    Good luck.

    Edit, found a nice paper in Verilog:

    http://www.eecg.toronto.edu/~jayar/ece241_08f/audiovideocores/audio/audio.html
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    hey MMalik , did you compiled the vhdl code for audio codec? if you have the coded , can you share with me..

    i am using audio codec as adc for my final year project...

    thanks. help is appreciated..

    --- Quote End ---

    his utilization is not a hello world demo.... if start from zero, it would be time consuming when ther eis no example design as reference.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    his utilization is not a hello world demo.... if start from zero, it would be time consuming when ther eis no example design as reference.

    --- Quote End ---

    When I last read the intro, the code was included, for the audio codec itself, not sure about any other modules. You seem to just want the full answer and not learn by example. I hope you get what you would like, but don't you think that if you're training to be a professional that it's important to learn a bit of what you'll be involved in(if you're lucky)?

    How much do you know about HDLs? If you'd like, we could exchange messages and try to learn this together.