Answer the question
In order to leave comments, you need to log in
How to connect this sensor via SPI?
Magnetometer sensor IIS2MDC
Port 1 - understandable
Port 3 - understandable
Port 4 - understandable. For SPI, here is SDI, but where is SDO?
I am doing work for a university, I have already made many different sensors, but this is the first time I have encountered the lack of an SDO port. How to be? Why is that? Or if I'm missing something, please explain!
Answer the question
In order to leave comments, you need to log in
There, half-duplex, SDI and SDO go on the same wire. When the master needs to transmit, it switches this pin to the output, when it should receive - to the input. In many controllers this is already implemented in hardware called "Half-Duplex SPI", "3-wire SPI" or something similar.
If your controller does not know how, you can either pull SPI programmatically, or connect MISO directly, and MOSI through a resistor. https://www.totalphase.com/support/articles/200350...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question