AnsweredAssumed Answered

adsp-21479 spi read

Question asked by sander on Apr 9, 2013
Latest reply on Apr 26, 2013 by jeyanthi.jegadeesan



Im using an adsp-21479 to interface an adau1977 using the spi B interface.

I created a read and write function to configure the register. see code attached.


Writing data seems to work just fine, but reading data does not.

When reading data I send 3 bytes

1) read command (0x01)

2) register address.

3) dummy byte (0x00).


on my oscilloscope i see that the write data is being send correctly and that the adau1977 sends back the data I expect.

This data is send when the dsp sends the dummy byte. At this moment I expect the MISO pin to read this.


But the outcome of read_spi_data function is always 0xFF as if the data is not read correctly.


Could you explain what I'm doing wrong?!

Kind regards,