We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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