I have a variable set as an array of 10 elements and I would like to read and write all the data of that array into EEprom memory.
Can it be done in some way or do you have to read and write them cyclically, one by one each element of the array in a memory location?
C.
Read and write an array to the microcontroller EEPROM
-
- Posts: 123
- http://meble-kuchenne.info.pl
- Joined: Thu Oct 14, 2021 10:04 am
- Has thanked: 50 times
- Been thanked: 4 times
-
- Matrix Staff
- Posts: 1955
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 626 times
- Been thanked: 656 times
Re: Read and write an array to the microcontroller EEPROM
Hello.
You can use a loop and increment the count of the loop the count will be the address and send one element at a time as the data value.'
I can post a simple example if you like?
Just don't keep writing as there is a limit to how many times EEPROM can be written to.
You can use a loop and increment the count of the loop the count will be the address and send one element at a time as the data value.'
I can post a simple example if you like?
Just don't keep writing as there is a limit to how many times EEPROM can be written to.
Martin
-
- Posts: 18
- Joined: Wed Jan 12, 2022 8:25 am
Re: Read and write an array to the microcontroller EEPROM
Hellomedelec35 wrote: ↑Fri May 30, 2025 7:25 pmHello.
You can use a loop and increment the count of the loop the count will be the address and send one element at a time as the data value.'
I can post a simple example if you like?
Just don't keep writing as there is a limit to how many times EEPROM can be written to.
Could you please post a simple example? I am now have the same question.
Many thanks!
Best regards
Deqiang