The WDT is not used and disabled. No clrwdt in the code at all. It's hair pulling time |:-( Alice Campbell wrote: > > >Hello antonio, > by any chance do you have a lot of clrwdts around? clrwdt will reset > the powerup and wakeup bits. also, are your ports initialized ok? > somd pics clear the ports when the program counter resets to 0. try > inserting a few lines that show the status bits 3 and 4 on leds at > the very top of your program, and see if they are always 1 and 1. if > the lights dont come on, your ports are on input. > > good luck, this is trickier than it looks. > > alice > > snip > > but SLEEP(); still does not behave. I haven't checked if the compiler > > version is buggy. Some more testing is called for... > > Nino. -- ****************************************************** * Antonio (Nino) Benci * * Electronic Services Manager * * Monash University - Dept of Physics * * Wellington Rd, Clayton. 3168 * * Victoria, Australia. * * TEL - 61 3 9905 3649, FAX - 61 3 9905 3637 * * Mobile - 0414 764 763 (private and ah only) * * EMAIL - nino.benci@sci.monash.edu.au (work) * * - fleatech@excite.com (private) * * WWW - www.physics.monash.edu.au/ * ******************************************************