AnsweredAssumed Answered

SPI readout of a sensor

Question asked by yun.yan on Oct 12, 2015
Latest reply on Oct 14, 2015 by yun.yan
Hi,

I am trying a very simple thing: I would like to read a register of a sensor. So the first thing I did is to write the read-register (8 bit) to the sensor. After that the DR register has been filled with dummy data (the data which was on the MISO line while sending the read-register, 0x000000ff).

Next thing is sending dummy data (8 bit) for getting the contents of the sensor. Now the DR register contains 0x00003fff.

For me its not really clear how to read the DR register for clearing its data and to make it free for the next reception.

When is the DR register (containing the data of the RX fifo) cleared?

thanks a lot!

Outcomes