>> 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. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads