Hi, I'm trying to connect ENC25J60 and SD card module to Arduino Uno at the same time. They work fine separately, but whenever I try to connect them together, they fail.
I have connected the devices as follows: - MISO to pin 12, MOSI to pin 11 and SCK to pin 13 for both modules - CS of ENC25J60 to pin 8 - CS of SD card module to pin 4
For ethernet module I'm using EtherCard library.
To test the modules, I have first connected only one of them to Arduino and they work fine (I've used backSoon example from EtherCard and ReadWrite example from SD library). Then I've connected them together and tested them with the same examples - ReadWrite example works, but backSoon doesn't (unless I unplug SD card cables, then it starts working immediately).
I've tried setting pin 4 to high before attempting to communicate with ethernet module, but still nothing. I have also tried using another Arduino Uno and the problem remained.
Is there something I'm missing about SPI?