Is it possible that the watchdog could start running even if I disabled it in the configuration when I programmed the PIC? I took out all of the loops, and the chip still resets after about 3 seconds. Going to try assembly next or else try another chip. Also, I am currently turning on and off an LED via the below code: I am using the MPLAB C18 compiler. //set RB1 as output TRISBbits.TRISB1=0; //turn on LED on RB1 LATBbits.LATB1 = 0; PORTBbits.RB1 = 0; //wait a little Delay10KTCYx(1); //turn off LED on RB1 LATBbits.LATB1 = 1; PORTBbits.RB1 = 1; The guide was not very specific on how this should really be done. If there is a better or more efficient way of doing this, could someone please offer advice? Thanks again! -----Original Message----- From: Peter L. Peres [mailto:plp@ACTCOM.CO.IL] Sent: Wednesday, July 10, 2002 3:02 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: 18C452 reset problems On Wed, 10 Jul 2002 James.Hyslop@BMWMC.COM wrote: >+5 through a 4.7K resistor. Have also tried connecting a .1uF cap between >MCLR and GND but doesn't seem to make a difference. The program loop >actually starts runnning, but will only loop a couple of times before >resetting. This sounds like the watchdog is running and you're not clearing it. Peter -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender immediately. This footnote also confirms that this email message has been swept by MIMEsweeper and Symantec Norton AntiVirus for the presence of computer viruses. ********************************************************************** -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads