I have a project where I have data written to the ATmega but it seems whenever it losses power, it loses all data. Could someone explain why? and if possible, a solution.
I have a project where I have data written to the ATmega but it seems whenever it losses power, it loses all data. Could someone explain why? and if possible, a solution.
Hi,
Your question is incomplete.
The atmega has RAM. It also has program memory.
If you send it some data and you have a program that stores that in RAM, then this data will be lost in a power-cycle.
If you send a program to the atmega (I don't know how that works with the gertboard) it is stored in program memory and should remain in place the next time you boot.
Please use a few more words to explain your problem.
Your message can be explained as:
You send it data, which does not get stored in program memory, but in RAM, so I have now explained to you why it does not remember it and your problem has been solved.
But I suspect you might mean something else. Feel free to explain what you mean.