Watchdog On / Off
Watchdog On / Off
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.
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel