Quintin Beukes wrote: > Firstly, the WDT is disabled. We have an exit(0) in the code, though > it was removed in a version of the code I was using to test > something, and this exact one accidentally went to the client (mix > up). And it also had this problem. i know this because I changed the > "name" being printed at startup, and when having a look at the device > it was this name being printed repeatedly. So it's safe to say that > it's not the WDT or a programmatic exit(). If you use C, there is always an implicit "exit" at the end of main(). When you reach the end of main you exit it, and most compilers for embedded systems (re)start at the reset vector. > Maybe it's not connected to an LED. I'm not sure. Though I know that > it is configured as either an INPUT/OUTPUT. I'm working from memory > now, but I'm sure I remember the MCLR being configured as an OUTPUT. > I know for a fact that it is configured to not be an MCLR. I asked > about this earlier and he said that it is done in the configuration > bits when programming the PIC. As others have said, independently of whether this pin is an input or MCLR (which is also an input), it should always be pulled to one of the rails by external circuitry. Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist