Content originally posted in LPCWare by tha on Mon Nov 26 12:56:47 MST 2012
The clock frequency for the EEPROM should be in the System Clock Frequency in kHz not an absolute value. If you are using the CMSIS file, you can first get the System Clock by making a call to:
SystemCoreClockUpdate();
Then in the read/write function, for command[4], you can do this:
command[4] = SystemCoreClock/1000