electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

I need help with AVR RAM check.


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> I need help with AVR RAM check.
Author Message
ltg



Joined: 24 Feb 2002
Posts: 75


Post04 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
Google Adsense




Post04 Dec 2003 22:54   

Ads




Back to top
GeorgeM



Joined: 19 Nov 2003
Posts: 37


Post09 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


Post10 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
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> I need help with AVR RAM check.
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Need help with ram - want to create a matrix 16x8 (3)
need help with AVR (2)
condactor - need help with program timer by avr (1)
Need help in AVR- want to do C programming for AVR (2)
How to check a used RAM piece is working properly or not ??? (2)
how can we check cells and working of ram memory chip (2)
Help with NVR Ram (1)
AVR efficient ram usage (4)
Need help, check my circuit (6)
[need help] types of ram (2)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS