3-wire interface + atmega16l
I am trying to connect a SPI based ADC (tlc4541d) and a SPI based EEPROM (A25L40P) to Atmega16.
I have understood that I need two different chip select lines for interfacing the ICs.
My problem is that the ADC is using a 3-wire SPI interface. I know that for using a 3-wire SPI interface MOSI and MISO need to be tied up. But I am not sure how can we do that. I would really be grateful if anyone can provide me with a hardware schematic and a simple algorithmic as to how to connect both the ICs on the same SPI pins of atmega16l.
What I have done for the schematic is as follows:
atmega 16l pins :