while interfacing SPI with EEPROM we generally send some commands before writing or reading how does slave differentiates that incoming data is DATA or Address or COMMAND?
Keil has a SPI program for the LPC2148, the part it is to interface with is a Atmel AT25160 SPI EEPROM. Here is the datasheet for that part.
www.atmel.com/.../doc0675.pdf