Hi, I've followed the tutorial through and had some success. I'm trying to use the eeprom for counters so I know how often and on what mode the product is used and so at a point I want to increment one in an array of counters.
I tried to follow through on the example code but convert it to uint16_t array. Some save, some don't. Is my eeprom update block statement correct? Can I even do this?
Thanks you for helping
...
- Log in or register to post comments
TopEvery Atmel Datasheet I've seen has code examples on how to access the EEPROM similar to this:
Containing a wait loop looking at the EEPROM busy bit. No external delay needed. How did you miss that?
Jim
(Possum Lodge oath) Quando omni flunkus, moritati.
"I thought growing old would take longer"
- Log in or register to post comments
TopHi, I've followed the tutorial through and had some success. I'm trying to use the eeprom for counters so I know how often and on what mode the product is used and so at a point I want to increment one in an array of counters.
I tried to follow through on the example code but convert it to uint16_t array. Some save, some don't. Is my eeprom update block statement correct? Can I even do this?
Thanks in advance,
markah
- Log in or register to post comments
Top10 bytes is not the length of a 10 element array of 16bit values. The size is actually 20 bytes (10 lots of 2 bytes). Of course you could just use:
This way if you value the [10] dimension the number of bytes read/written will vary.
- Log in or register to post comments
TopDoh!
Not the first time you have come to my rescue! Much appreciated
Mark
markah
- Log in or register to post comments
TopPages