Im trying to interface SAME70 as mater to slave device which supports SPI mode 0 ( inactive CLK = 0V and data captured on leading edge (rising) and changed on following edge (falling). And Im using NPCS3. I have successfully setup the SPI device CPOL= 0 and NCPHA = 1 (SPI_CSR=0x1014802). Writing data is fine but reading data is corrupted and Im reading one bit shifted data. (ie 0xFE intead of 0xFF or 0x60 instead of 0x30. I have tried to use ASF or some another Atmel SW package to setup the SPI and always with the same output. In attachment is picture from OSC where is visible that the transfer is OK - the first two rising edges are 0 and then next two edges are 1 and the rest have to be 0, so it should be 0x30 but SPI returns 0x60. The preceding and following bytes are bad too.
Any ideas what should be wrong?