Forum Discussion

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

audio

Hello all,

I want to get a sine out of the de2 board using only vhdl code. I only really don't know where to start. I already read some of the datasheet of the audio codec but obviously there isn't anything in there about vhdl. So how can I write VHDL code for a sine?

2 Replies

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

    Hello,

    if you don't want to use the NIOS II to control the audio chip, you will

    have to control the chip via your own I2S interface.

    So I would write an I2S Interface for the chip, a ROM containing the

    sinus data and some control logic to get some configuration data and

    the sinus data via I2S to the audio controller.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    so far I've done what's in the attachment. I've found some code on this site and used, but I'm getting a lot of static. Can someone tell me why I've a lot of static?