I need help with AVR RAM check.

Status
Not open for further replies.

ltg

Member level 4
Joined
Feb 24, 2002
Messages
76
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
533
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
 

ltg said:
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
 

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
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…