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