Hi,
I recently bought an Ethernet/SDcard shield for using on a new project.
I'm facing a question that i couldn't find the answer.
While using the SHIELD, as it is SPI, can i use pin 53 (SPI - SS) on my arduino MEGA2560 for enabling another component (such as an SPI-EEPROM) ?
I found this text inside the ArduinoEthernetShield REFERENCE :
Arduino communicates with both the W5100 and SD card using the SPI bus (through the ICSP header). This is on digital pins 11, 12, and 13 on the Duemilanove and pins 50, 51, and 52 on the Mega. On both boards, pin 10 is used to select the W5100 and pin 4 for the SD card. These pins cannot be used for general i/o. On the Mega, the hardware SS pin, 53, is not used to select either the W5100 or the SD card, but it must be kept as an output or the SPI interface won't work.
By the way, there are others questions relating the SPI features : setDataMode, setClockDivider and setBitOrder ...
Is it possible to switch these 3 features during "relat time code execution" ?
I'm looking at a solution to drive "ETHERNET", "SD CARD" and my "SPI-EEPROM".
I will not use the SPI-EEPROM a lot, it is just for saving some values if some shut-down suddenly happens.
On the next POWER ON, the arduino will be configured to look inside the EEPROM to take the last values saved and continues the code execution with them.
So i will probably use the EEPROM 2 time/hour, not more.
Thanks !