| Author |
Message |
ltg
Joined: 24 Feb 2002 Posts: 75
|
04 Dec 2003 22:54 I need help with AVR RAM check. |
|
|
|
|
Hi,
I need help with AVR RAM check. Do you have algorithm/methode/link in C routine? How should I treat data when I do RAM check? Would they be destroyed? Thank you for your help!
Best Regards,
ltg
|
|
| Back to top |
|
 |
Google AdSense

|
04 Dec 2003 22:54 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
GeorgeM
Joined: 19 Nov 2003 Posts: 37
|
09 Dec 2003 14:26 Re: I need help with AVR RAM check. |
|
|
|
|
| ltg wrote: |
I need help with AVR RAM check. Do you have algorithm/methode/link in C routine? How should I treat data when I do RAM check? Would they be destroyed?
ltg |
The simplest check algorithm is as follows:
1) Save the local byte
2) Put the 0x55
3) Read and check it
4) Put the 0xAA
5) Read and check it
6) Restore the local byte
You can see the data in the memory cell is restored. Do it for for all memory cells.
Next you can implement the gallope 0 and 1 and so on...like it
was in past when RAMs were not such reliable as now.
But I wonder why on the earth do you need to check the RAM?
Regards,
George
|
|
| Back to top |
|
 |
manitooo
Joined: 30 Oct 2001 Posts: 142 Helped: 2
|
10 Dec 2003 11:01 |
|
|
|
|
or test it with the moving bit technic :
1. save local data
2. for (i=0;i<7;i++) {
3. write i<<i to RAM
4. read data and compare
5. loop to step2
|
|
| Back to top |
|
 |