3-wire interface + atmega16l

Started by anaymalaviya January 7, 2011
Hi all,

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 :
PB1:TLC4541D_SDO_pin
PB2:TLC4541D_CS_pin
PB3:A25L40P_CS_pin
PB4:A25L40P_WP_pin
PB5:A25L40P_MOSI_pin
PB6:A25L40P_MISO_pin
PB7:A25L40P_&_TLC4541D_SCK_pin