Picbits Sales wrote: > Let us know how you get on - its always nice to see an actual solution to > the problem :-) > > Good luck > > Dom > ----- Original Message ----- > From: "Stephen D. Barnes" > To: "Microcontroller discussion list - Public." > Sent: Wednesday, August 13, 2008 9:56 PM > Subject: Re: [PIC] How to determine cause of reset > > > >> Picbits Sales wrote: >> >>> 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 >>>> >>>> >>>> >>>> >>>> >>> >> Thanks for the reply. Target is properly de-coupled, call/return >> structures appear ok. Olin posted some good ideas that I will try this >> evening. Thanks. >> >> -- >> 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.3/1610 - Release Date: 13/08/2008 >> 16:14 >> >> >> >> > > Will do. Getting started in about an hour. -- 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