Might sound glaringly obvious but could it possible be a watchdog timer reset ? Other things I've noticed that cause suprious resets are lack of decoupling capacitors (I had big problems with this once). It could also be that you are experiencing a stack overflow reset - make sure any calls/returns etc are matched and you're not jumping outside any loops. Dom ----- Original Message ----- From: "Stephen D. Barnes" To: "MIT PICList" Sent: Wednesday, August 13, 2008 1:37 PM Subject: [PIC] How to determine cause of reset > I'm using the dsPIC30F2010. Rolled my own RC servo routine for one > servo. Every once in a while (approx 23 sec) the servo will twitch. > Using ICD2 in debug mode, found the PIC is going to the reset vector. I > have, I hope, examined the code in detail and found no reason that I can > see for the behavior. Is there a non-volatile register that retains the > micro's status/reason for reset? I have RTFM but do not seem to find, or > have overlooked the answer to this. Any pointers are appreciated! > > -- > Regards, > Stephen D. Barnes > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.138 / Virus Database: 270.6.1/1608 - Release Date: 12/08/2008 > 16:59 > > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist