AnsweredAssumed Answered

when is SPI clock sent?

Question asked by benedetto.salvatore on Nov 17, 2011
Latest reply on Nov 18, 2011 by benedetto.salvatore
Unfortunately I do not own an oscillope nor a logic analyzer to see this.

I'm having some problem using the SPI controller to communicate with a sensor.

I've managed to get some data, but not in a consistent way.

In particular, when I do something like

spi << command
spi >> result

It does not work. But if I do something like

while (1)
  spi << command
  spi >> value

It always work at the second iteration.

Now I'm wondering when is the clock actually sent? Is it always sent after the controller
is enabled until I disabled it?

Outcomes