Hi guys,
I am currently trying to connect PCM 5252 DAC to SPartan-6 FPGA, so I need to write an SPI protocol.
The problem is that I don't fully understand what is said in the datasheet, so I want to clarify if I understood right:
When SPI mode is used (MODE1 is pulled to DVDD), it is stated that there is the audio data input DIN (pin 28) and there is MOSI -Input data for SPI (pin 17), which is used to program registers. At the same very moment, section 8 of this datasheet describes the usage of DIN (pin 28) only as I2S port and does not mention anything about using audio data with SPI. The SPI is only mentioned when it comes down to programming DSP registers. So there is a hole in my understanding of how to use SPI, in spite of the fact that SPI and I2S are mutually exclusive protocols and I don't know how to write audio words to DIN using SPI. Also I did not find how exactly I can control a bit-resolution when I use SPI. When I2S is used, then there are registers to control bit resolution, yet I didn't find anything for SPI.
So my first question is the following:
1) Just to clarify, SPI and I2S are mutually exclusive. And if that is so, then when SPI protocol is used, registers are programmed via MOSI (pin 17) while the audio words are later supplied to DIN (pin 28), right?
2) How exactly can I set up a 32-bit resolution when SPI protocol is used?
Thanks in advance,
Roman.


