about EEPROM IAP write and read command

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

about EEPROM IAP write and read command

803 次查看
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 项奖励
5 回复数

791 次查看
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 项奖励

776 次查看
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 项奖励

773 次查看
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 项奖励

765 次查看
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 项奖励

760 次查看
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 项奖励