Yuxian, do you have enough time to check the RCON register (assuming this chip has one)? That might give you some idea of what's going on. Also, have you looked at VDD and MCLR with a 'scope? Maybe there are spikes or something? Regards, - Marcel On Jan 10, 2008 10:25 PM, Yuxian Yao wrote: > I'm developmeng [PIC]18F8527 with ht-PICC C compiler. The PIC is > programmed ok but always restart himself after several lines of code. > I disabled WDT, BrownOut, Vdd = 5V. but the problem still exist. I > can't figure out why this happens. Can any one help me? > -- > 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