-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > >> if you want to clear *all* the RAM, wouldn't a quick/easy way of > >> doing it be to tie one pin to MCLR to force a processor reset, > >> but at the same time, store the current address of the PC to > >> EEPROM before doing the reset, and have a startup routine that > >> reloads the PC to the value in the EEPROM? > > > > Wow. > > > > Where's the candle burning through the string, the > > spring-loaded > > trapdoor through which the ball drops, the sprinkling can that > > tips over and fills the boot with water, etc.? > > > > -Andy > > I can see you have been looking at too many books by Heath Robinson > :)) > > > > P.S. By the way, a processor reset doesn't clear the data > > RAM. > > I hadn't checked, but did wonder when I saw the post, if this > really did happen, seeing as it is not implemented in other > processors, and besides which, is there a brownout or watchdog > timer, and if so would these cause the ram to be cleared??? I would > hope not. Now, see, if *I* were designing a processor, a reset (i.e. external or reset instruction) would clear the entire contents of memory. Any of these other "resets" are, in fact, irrecoverable interrupts (i.e. interrupts with a PC (and stack?) clear), and should be handled as such. But, then I don't design processors, now do I? - --Brendan -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.8 for non-commercial use iQA/AwUBPWJxsQVk8xtQuK+BEQJ25gCg9/kLwbjvYz2LQQOjwdD6kK+Nh08AoMQw 0A/rI00Wg5vozuQF+akEkKVv =Ae2t -----END PGP SIGNATURE----- -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads