As a part of a school project I'm making a R2R-DAC with an FPGA but I'm having trouble understanding how to convert the I2S data into electrical signals I can use to drive my R2R ladder. Some of the online posts I've read, simply shift in the I2S data into registers and then latch the data onto the outputs once the LRCLK changes, but when I try this, I do get audio out of the system but it is heavily distorted.
So my question is; Do I need to make some sort of conversion of the data before I "write" them to my R2R ladder outputs?
The blockdiagram of my system is shown below. The FPGA is master in the system, providing all the clocks to the ADC. All clocks have been verified to be working as specified with an oscilloscope.
[IMGDEAD]https://imgur.com/a/TDoBICO[/IMGDEAD]
In the datasheet for the PCM4220 ADC im using, they write the following which makes me suspect that some conversion is needed
[IMGDEAD]https://imgur.com/a/OF0Yuik[/IMGDEAD]
Any and all help is appreaciated, I've been stuck on this problem for a while
/Kenneth
So my question is; Do I need to make some sort of conversion of the data before I "write" them to my R2R ladder outputs?
The blockdiagram of my system is shown below. The FPGA is master in the system, providing all the clocks to the ADC. All clocks have been verified to be working as specified with an oscilloscope.
[IMGDEAD]https://imgur.com/a/TDoBICO[/IMGDEAD]
In the datasheet for the PCM4220 ADC im using, they write the following which makes me suspect that some conversion is needed
[IMGDEAD]https://imgur.com/a/OF0Yuik[/IMGDEAD]
Any and all help is appreaciated, I've been stuck on this problem for a while
/Kenneth