PDA

View Full Version : unexpected reset 2



netstranger.nz
- 13th October 2009, 07:36
Hi Everyone,

I came across interesting problem and though someone else may trip over it. I attached the code which I run on 12F683 using 8Mhz internal oscillator. Option_reg should appear only once as “11111111” upon Pic startup. Then GPIO.4 gets toggled in a loop. Instead you will see “11111111” appearing periodically which means that the Pic resets periodically and executes the code from the beginning. The solution I found is to disable Watchdog timer. I hope it will be of some use to a beginner like me.