>One question: Is there any command I can put in the code to tell the >programmer to turn the watchdog timer off? I always wonder why my chip >keeps resetting only to find that I forgot to turn the watchdog timer off >when I programmed it. I do use the watchdog timer in the end product but >until I can chase down all of the loops which may require a clrwdt >instruction, it sure would be nice to have it automatically turned off. > >------------------------------------------------------------------------ >Tracy Reed http://rohan.sdsu.edu/home/treed IRC-Maelcum > Check out DALnet! The best IRC network around: http://www.dal.net > "She moves in mysterious ways..." I don't believe the WDT on/off state is under program control in any way whatsoever. That would defeat its purpose, no? In the parallax programmer you can *program* the part with WDT ON or OFF, it's your choice. Putting a CLRWDT everywhere there is a loop or delay kind of defeats the purpose of the watchdog also, doesn't it? Isn't "good" practice to put the CLRWDT in the main program loop only, where you know the program is almost assuredly working normally? Otherwise, how do you know the program is running properly? It might be in an endless loop that calls the routine where you have inserted the CLRWDT, especially if your program employs interrupts. James President Radix/Cobalt Instruments, Inc. Designers of Industrial Instrumentation for Manufacture check out our home page http://rdx.com PS: I have never used anyone's simulator. We prefer to debug code in the actual target system for robustness.