Using an atmega328 and some arduino libraries.
I am using a lm95071 temperature sensor, it uses one pin for both MOSI and MISO. It has two phases, read data and then write.
So lets say I am in read mode of the temp sensor
and I bridge the write ( master out slave in ) and read pin (Master in slave out) with a resistor.
I cannot write 0x00 or else I will read 0x00. I want to be able to write certain codes to the sensor and consequently read data back.
So the way I see it, is this problem can be remedied by either:
A. Rework of the SPI library to read and write separately, then bridging MOSI and MISO with a 10k resistor, like depicted in the datasheet. However I would need to have an analog switch or tristate buffer there if I wanted to use any other SPI device.
B. external tri state buffers