yes it is a 18F device, thanks for the heads up on the RESET instruction. --- On Thu, 11/6/08, Jan-Erik Soderholm wrote: > From: Jan-Erik Soderholm > Subject: Re: [PIC] Bootloader question - auto reset? > To: "Microcontroller discussion list - Public." > Date: Thursday, November 6, 2008, 12:57 AM > Harold Hallikainen wrote: > >> I'm in the process of defining what has to > occur during a bootload > >> operation, at a high level. > >> > >> The actual code delivery will be from another PIC > that talks to the target > >> over a serial connection. So the code essentially > passes from a host on > >> one serial port, and then to the target. > >> > >> When its 'done'...I'm guessing that > the final command can be...goto 0x000 > >> for a soft reset. Reasonable? > >> > > > > That should work. If you have the WDT enabled, you > could also go into an > > infinite loop and let it time out. That would put all > SFRs back at their > > power up values (I think), where a goto 0 would not. > > The RESET instruction on PIC18 will get all SFRs back to > the POR > state. I guess the same is true for the new RESET > instruction > on the new PIC161xxx... > > Jan-Erik. > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist