Attached is the circuit I have (crudely) drawn up of what I believe is the best way to connect my sensor using SPI.
Data sheet for sensor:
My problem is found on page 26 of the data sheet.
“The LSM303C SPI is a bus slave. The SPI allows writing and reading the registers of the
device. The serial interface interacts with the outside world with 3 wires: CS_XL, CS_MAG, SPC,
SDI. 3-wire mode is entered by setting the CTRL_REG4_A (SIM) and CTRL_REG3_M (SIM) bit
equal to ‘1’ (SPI serial interface mode selection).”
It appears both the MOSI and MISO lines form the arduino are connected to the SDI line on the sensor. Is this correct and is my diagram for my circuit correct? I am a little confused about this conjoined lines thing the sensor is doing.