Using SPI Sainsmart MicroSD and need both pin 2 & 3 for interrupts can I?

I'm working on a sketch that uses the MPU-6050, a Hall Switch, and a Sainsmart MicroSD card interface. The SD uses SPI. I need both pins 2 & 3 for separate interrupts for the Hall Switch and MPU-6050 respectively.

The above documentation says I can use pin 13 or 3 for SCK. I'm confused as to whether or not I can actually just use pin 13 for SCK and what I need to do for the SD library instead of using pin 3 for SD.

The Hall Switch monitors a rotor and I have a working interrupt handler attached to pin 2 for this. The MPU-6050 seems to need an interrupt also which I can attach to pin 3 for notification that it has data ready for reading as I will be using the DMP and the example sketch uses the interrupt line. I also need to log data to the SD card.

I'm developing on the Arduino UNO but will be using the Arduino Nano to run on the instrument with the rotor that will be monitored by the Hall Switch.

Is this possible? If so, do I need to do anything to tell the SPI library that SCK is on pin 13 and not 3?

Thanks,
David

dsteuber:
Is this possible? If so, do I need to do anything to tell the SPI library that SCK is on pin 13 and not 3?

Thanks,
David

SPI pins on the Arduino UNO

Arduino / Genuino Board

MOSI

MISO

SCK

SS (slave)

SS (master)

Level

Uno

11

12

13

10

-

5V

Now on the pinout of the ICSP connector it is on pin designated as 3 but Pin 3 on the ICSP connector is directly connected to pin 13 on the UNO headers.

which is located here:

Since the SPI interface is a hardware item of the chip I do not believe pin 3 is part of the SPI interface
Z