Watchdog On / Off

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
alvin
Posts: 2
Joined: Wed Dec 03, 2008 10:58 am

Watchdog On / Off

Post by alvin »

I have written my software in flowcode and switched watchdog on. I then programmed my 12f675 via MPLAB using the ICD2. The watchdog seems to be constantly resetting my processor and my output is very distorted. But whenI disable the watchdog the processor runs perfectly with a clean output. can some help me on setting up the watchdog please.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Watchdog On / Off

Post by Benj »

Hello Alvin

May I suggest that you do not use the watchdog timer unless you really need it for an application. The watchdog acts to reset your microcontroller if the timer does not get cleared by software. This means that if the chip ever crashes, the timer will timeout and reset the chip. The C code command to reset the watchdog timer is clr_wdt(); if you need it.

alvin
Posts: 2
Joined: Wed Dec 03, 2008 10:58 am

Re: Watchdog On / Off

Post by alvin »

thanks. I will give it try and let you know.

Post Reply