| ??? 08/08/03 05:30 Read: times |
#52265 - RE: Does reset clear internal RAM? Responding to: ???'s previous message |
I wouldn't think that the internal RAM would be automatically cleared, especially if power is maintained during the reset.
I once did a test with a traditional 8052 where I set memory to a certain value and actually removed power from the unit. When I turned it back on the memory contents were still correct. I actually went so far as to leave it off overnight and when I powered back up the next morning it was STILL correct. This was existing hardware and perhaps there was some slowly draining capacitor providing just enough charge to keep the memory intact--but the memory was definitely not cleared on power-up or reset. If you're using 'C' then most C compilers will initialize internal RAM as part of their startup routines before your program actually takes control. You can usually modify those startup routines to not initialize RAM, or in some cases you can declare specific variables in internal RAM to not be initialized. This depends on the compiler. If you are using assembly language then I would think you'd find the same values in internal RAM after a reset as you did before--although if your tests indicate otherwise, well, I'd have to yield to that. :) But I wouldn't think Analog Devices would intentionally clear memory when that's something that should be left to software to do if that's the desire of the developer. Regards, Craig Steiner |
| Topic | Author | Date |
| Does reset clear internal RAM? | 01/01/70 00:00 | |
| RE: Does reset clear internal RAM? | 01/01/70 00:00 | |
| RE: Does reset clear internal RAM? | 01/01/70 00:00 | |
| RE: Does reset clear internal RAM? | 01/01/70 00:00 | |
| RE: Does reset clear internal RAM? | 01/01/70 00:00 | |
| RE: Does reset clear internal RAM? | 01/01/70 00:00 | |
| RE: Does reset clear internal RAM? | 01/01/70 00:00 | |
| RE: Does reset clear internal RAM? | 01/01/70 00:00 | |
| RE: Does reset clear internal RAM? | 01/01/70 00:00 | |
RE: Does reset clear internal RAM? | 01/01/70 00:00 |



