This library makes it possible to use the 23K256 (Datasheet - PDF), a 32K SRAM chip from Microchip together with the Ethernetshield. The library is an adaptation from the SRAM lib written by Carl Morey.
Connect the SRAM chip to the arduino pins as follows:
PIN | 23K256 | Arduino |
1 | /CS | 9 |
2 | SO | 12 |
3 | NC | |
4 | GND | GND |
5 | SI | 11 |
6 | SCK | 13 |
7 | /HOLD | 5V |
8 | 5V |
When you use an older version of the Ethernetshield (without the SD connector) connect pin 2 of the prog connector to pin 9 of the Arduino. This takes care of disabling the SPI interface of the Ethernetshield during SRAM access.
The SRAM9 library is an adaptation of the SRAM lib. The main changes are the that pin 9 is used to select the SRAM chip instead of the pin 10. Furthermore a few digital I/O statements have been changed. You can download the library here: http://vanillamusic.vectrus.nl/arduino/download/SRAM9.zip