about EEPROM IAP write and read command

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

about EEPROM IAP write and read command

780 Views
mountain777
Contributor I

Hi!

I'm using the microcontroller of LPC15xx series.

I am thinking of writing and reading EEPROM using the following function.

Chip_EEPROM_Write
Chip_EEPROM_Read

I have some question about this function.

Q1)

Is it correct to understand that the EEPROM has been write or read when the processing of this function is completed normally?

Q2)

If the answer to Q1 is No, how much wait does the software need for write and read?

 

Best regards

mountain777

0 Kudos
5 Replies

768 Views
converse
Senior Contributor V

After returning from those calls, the data has been read or written (as appropriate). There is no software delay required.

0 Kudos

753 Views
mountain777
Contributor I

Hi

Thank you for your reply.

I understood very well.

 

I have an additional question.

I checked the write time of EEPROM.

It takes about 210,000 steps from calling the Chip_EEPROM_Write() function to returning.

Is there a way to write in less time?

 

Best regards,

mountain777

 

0 Kudos

750 Views
mountain777
Contributor I

 

I will explain it additionally.

The problem is that no other processing can be done before returning from the function.

Therefore, please let me know if there is a different way to write and read to EEPROM.

 

Thanks

mountain777

0 Kudos

742 Views
converse
Senior Contributor V

There is no other way to program the on-chip EEPROM. Have you thought of buffering the writes so that you write multiple values and only when you have sufficient time to do it.

 

p.s. how did you measure the cycles? Are you sure you measured just the time to write to the EEPROM? 

0 Kudos

737 Views
mountain777
Contributor I

Hi

Thank you for your reply.

I'll check how to measure time again.

For example, when writing 1 byte, how long does it take to finish?

 

Thank you

mountain777

0 Kudos