lpcware

LPC Flash writing time

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Dore on Fri Dec 13 03:17:35 MST 2013
Hi,

I am using LPC1114FHI33/302 controller with the LPC Xpresso IDE.
I had written my erase flash routine is here as follows:

unsigned long int ulnCommand[5] = {0};

ulnCommand[0] = 52;
ulnCommand[1] = 1;
ulnCommand[2] = 1;
ulnCommand[3] = (48000000) / 1000; /* Clock frequency in KHz */

ulnOCommand = CallIAP(ulnCommand);

My operating frequency is 48 MHz. The clock frequency given for the internal flash is 48MHz with this I am able to pass through the execution in 100 msec time as mentioned in the datasheet. Is it possible to exceed that? For ex.,

unsigned long int ulnCommand[5] = {0};

ulnCommand[0] = 52;
ulnCommand[1] = 1;
ulnCommand[2] = 1;
ulnCommand[3] = (48000000); /* Clock frequency in KHz */

ulnOCommand = CallIAP(ulnCommand);

With this I am able to execute the erase sequence in 8 msec time. Is this a reliable way?

Outcomes