1

I have interfaced sd card and ADS1262 (ADC module) with Arduino mega board and sharing the SPI control pin i.e. SCK, MISO and MOSI. I have found that sd card is not initialized and ADS1262 is giving garbage value. Now if I remove the MISO pin of sd card then ADS1262 is giving right (although SD card is not initialized.) Vice-versa, if I remove the MISO pin of ADS1262, sd card is initialized and working perfectly (although ADS1262 is giving garbage value.)

Certainly, there is issue of MISO pin. How can I share MISO pin with both slaves so that both can work properly.

Any comments please.

I am using shifter - TXS0108E.

For SPI interfacing, I have tested two slaves with Mega board and found the below result when MISO is connected with both slaves and MISO pin is removing one by one from slaves.

enter image description here

From Above result, I thing it may be the problem of MISO pin.

I am not getting the idea, how to solve the problem in SPI interfacing in multiple slaves.

Schematic:

enter image description here

Majenko
  • 105,851
  • 5
  • 82
  • 139
user29850
  • 41
  • 4

2 Answers2

1

You probably want to use two SPI busses. If you absolutely need to use one bus, attach a digital out pin to each of the CS pins, one on the 1262 and one on the SD card. When you need to talk to one of the deviced, pull its CS line low to enable it.

woo2
  • 101
  • 4
0

Some sd card modules which use 5v-3.3v logic level shifters may not have a proper circuit wich is very well explained in this guys blog

http://www.vishnumaiea.in/projects/hardware/interfacing-catalex-micro-sd-card-module

so until you don't make some changes in the sd card module you wont be able to have multiple slaves on your spi bus.