about EEPROM IAP write and read command

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

about EEPROM IAP write and read command

1,843件の閲覧回数
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 返答(返信)

1,831件の閲覧回数
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 件の賞賛
返信

1,816件の閲覧回数
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 件の賞賛
返信

1,813件の閲覧回数
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 件の賞賛
返信

1,805件の閲覧回数
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 件の賞賛
返信

1,800件の閲覧回数
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 件の賞賛
返信