my name is vidya . I am currently doing a project which requires two SPI interfaces to be connected to the Arduino Mega 2560 . One is an SD card and the other is a TI-CC1101 transceiver . I know that there are one set of pins for SPI interfacing in this MCU which is 50 51 52 53 . Please could any one tell me if there is an work around to this.
Typically one can use multiple slave devices with one SPI interface. There is just a requirement for one additional output pin for each extra device (slave select). So in your mega example pin 53 is the default slave select for a slave device, and you would be free to use pin 54 as a second slave select for the second device. Pins 50,51, and 52 would wire to both slave devices. The rest is just software.