Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/25/02 12:49
Read: times


 
#21133 - Is RAM initializing necessary ??
Hi all,

Is it necessary to initialize / reset the RAM bytes to have a value of 00xh starting before the codes starts ??

I recently had a problem. Using a byte from RAM which is used in two routines.

Right after power up:

Routine_1 comes first in the code where the byte has to be zero or the result would corrupt.

Routine_2 comes next and the byte is given a value here so there is no problem.

I never got rid of the problem untill I made the byte zero before the Routine_1.

I was assuming that the RAM bytes are supposed to contain zeros at the power up.

One more strange thing happened:

without byte initializing the code worked perfectly well on 8951 but on 2051 it won't untill the byte is forced to contain zero at the start.

Simon


List of 4 messages in thread
TopicAuthorDate
Is RAM initializing necessary ??            01/01/70 00:00      
RE: Is RAM initializing necessary ??            01/01/70 00:00      
RE: Is RAM initializing necessary ??            01/01/70 00:00      
RE: Is RAM initializing necessary ??            01/01/70 00:00      

Back to Subject List