First, please change your email settings to not insert a REPLY-TO address so that the default reply goes to the list. Many people here, including me, don't want to waste time writing a reply that only one person reads. > I am new to PICs and I need help in a project of mine. The PIC16F84 that I > was using is exhibiting some erratic behavior. By the way, the 16F84 if obsolete. The 16F628 does more and costs less. > I loaded a program that I > wrote that toggles the state of RA0 every second using the TMR0 timer. I > have seen this program work before (it was my first PIC program) but it does > not toggle RA0 at a steady rate like it used to. I suspected the oscillator > (32.768 kHz)considering it looked like a timing error, but a test with the > digital multimeter proved me wrong. As a test I loaded another program that > toggles the state on RA0 every time RB0 is pulled low. Sometimes it does not > change states and other times it changes without pulling RB0 low. Are these > symptoms of a bad chip? Any help would be appreciated. Is the watchdog timer enabled perhaps? ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads