You could try by experiment, but I think its pretty much random. The
more words you use, the less probability of them being randomly
initiallised to your values. The SRAM content shouldn't change after a
reset, only a power off/on sequence.
One word of warning - after a very brief power off sequence, it is
highly possibly that some words/bits could change and some could remain.
The duration would depend upon several factors i.e. the size of
decoupling caps, etc. In this situation, you may find your two inverted
words are intact but some of the other words are corrupted.
- Allan
________________________________
From:
MPC500@... [mailto:
MPC500@...] On Behalf
Of Sudhersan Lal
Sent: Tuesday, July 01, 2008 10:43 PM
To:
MPC500@...
Subject: [MPC500] Help for init value of SRAM in MPC 562
Hello Everyone
Anybody know or can help me to find out more information regarding the
initialization value of SRAM contents during power up .
I would like to save some values in sram so that I can read that back
after a reset , for eg saving a byte value and its compliment and
check the consistency between these two variables . This would make sure
that, the value is really what I saved prior to reset and not the
garbage value which would appear in the memory after a power up.
Any existing behavior known for mpc microcontrollers related to this?
if it is stored like the value and its compliment , what is the
probability of the random initial values in two bytes to be compliment
of each other and mistaken as the good value
Regards
Sudhersan
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]