Altera_Forum
Honored Contributor
16 years agoSPI to I2S upgrade to 24 bit
Hi,
I am currently working on a USB audio signal capture and playback device. I've noticed that all of the audio quality ADC/DACs use I2S to communicate but unfortunately my usb interfacing chip uses SPI. Altera have an example project converting I2S to SPI but it only works for 16 bit. The converters I want to use are 24 bit and so I've been trying to alter the verilog code to accommodate this. Unfortunately I don't know any verilog so this is quite challenging, I just know VHDL and only on a fairly basic level. I tried changing the various inputs/outputs and registers from 15:0 to 23:0 and the counts to 24 bit counters rather than 16 bit counters but when I view the design in the RTL viewer the buffer out section appears to be incorrect. The 16 bit example project and testbench are available at: altera.com/literature/an/AN487_design_example.zip Any help would be greatly appreciated, I'm pretty newbish to this, Regards, Dan