EmbDev.net

Forum: FPGA, VHDL & Verilog Help with VHDL code - Digital Audio Meter project


Author: Josh Gow (joshgow)
Posted on:

Rate this post
0 useful
not useful
Hi Folks,

I need help to mod the code for  this FPGA based (Altera CycloneII 
EP2C5T144) Digital Peak Level Meter:
http://www.beis.de/Elektronik/DPLCM/DPLCM.html

The code is available at the bottom of the page.
The problem:
I don't need the SPDIF feature, so I would like to implement
an I2S input, which would be directly connected to the output of the
A/D Converter.

The I2S lines are:
BCK (Serial Bit Clock)
WS (Word Select, or LRCLK)
SDI (Audio Serial Data Input)

The I2S timing and standard description can be found at:
http://www.classic.nxp.com/acrobat_download2/vario...

Can anyone help?

Thanks in advance.

Author: Lothar Miller (lkmiller) (Moderator)
Posted on:

Rate this post
0 useful
not useful
> Can anyone help?
Cut out the SPDIF-Rx.vhd and replace it by your I2S-Rx.vhd
Inside this I2S-Rx.vhd you have to implement the I²S decoder. And thats 
fairly simple: for sure the I²S decoder will cost less than 50 lines of 
code...

Data afterwards is passed to the upper level module by
AudioData0  : out std_logic_vector(23 downto 0);
AudioData1  : out std_logic_vector(23 downto 0);

> Can anyone help?
With what?
Pls ask more specific questions instead of "who can do my work?"

Author: Josh Gow (joshgow)
Posted on:

Rate this post
0 useful
not useful
Lothar Miller wrote:
>> Can anyone help?
> Cut out the SPDIF-Rx.vhd and replace it by your I2S-Rx.vhd
> Inside this I2S-Rx.vhd you have to implement the I²S decoder. And thats
> fairly simple: for sure the I²S decoder will cost less than 50 lines of
> code...
>
> Data afterwards is passed to the upper level module by
> AudioData0  : out std_logic_vector(23 downto 0);
> AudioData1  : out std_logic_vector(23 downto 0);
>
>> Can anyone help?
> With what?
> Pls ask more specific questions instead of "who can do my work?"

Who can do my work:
I should have been clearer: I'm not a programmer, it's not my work. I 
wouldn't know where to start.
So the help is for the code itself.

Author: Manni (Guest)
Posted on:

Rate this post
0 useful
not useful
Did you manage to run the I2S Interface? This would be interesting to my 
too.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.