Make sure fuse settings actually set MCLR to an I/O port. Remove the led if necessary and pull MCLR to VCC just to be sure the same issue exists when using MCLR as a reset line. Is there any ripple on the supply? What kind of oscillator are you using (what's the load capacitance), and does it have capacitors from each side to ground, and if so what value? Is there any resistance across the crystal? A schematic and graphic of the board layout including ground plane would help. Since you have serial communication that can help you debug, change the code to show the reset source on powerup through the serial port so you can figure out why it's resetting. Tony Picbits Sales wrote: > I've seen this happen a lot in PICs that aren't adequately decoupled. > > Check you have a decoupling capacitor (or capacitors) as close to the power > pins as possible. Try the circuit with a 100nF + 10nF + 1nF in parallel to > the power pins. > > Are you using an internal or external oscillator ? It could be the > oscillator design becomes unstable when the extra capacitance of the human > body enters the equation. > > Dom > > ----- Original Message ----- > From: "Quintin Beukes" > To: > Sent: Tuesday, September 22, 2009 3:39 PM > Subject: Static Reboot > > > >> Hey, >> >> We discovered a very odd problem with our PIC18LF2520's. When you >> approach the PIC it reboots. With some experimentation we found that >> it's because of sensitivity to static electricity. In other words >> grounding onself it doesn't happen, and deliberate charging causes the >> PIC to reboot at physically further distances depending on the amount of >> charge you're carrying. >> >> This is bad. >> >> > > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist