drumanart 0 Posted April 10, 2014 Report Share Posted April 10, 2014 Hello. Code for 18F4420 At the beginning of my code I tell the preprocessor to activate the watch dog. #pragma DATA _CONFIG2H, _WDT_ON_2H & _WDTPS_2048_2H // WDTON, prescaler 1/2024. Is there a possibility to deactivate the watchdog while the code is running but not with _asm clrwdt? Thanks Martin Quote Link to post Share on other sites
Reynard 0 Posted April 18, 2014 Report Share Posted April 18, 2014 Hi Martin, Use the software watchdog enable bit. wdtcon.SWDTEN It's the software version of the config bit. See page 258 of the data sheet. Cheers Reynard Quote Link to post Share on other sites
drumanart 0 Posted April 30, 2014 Author Report Share Posted April 30, 2014 Thanks Quote Link to post Share on other sites
WalterFax 0 Posted March 3, 2016 Report Share Posted March 3, 2016 Ahmet - Sorry, but its not clear to me what you want. Are you looking for code to read the chip IDLOC area? Quote Link to post Share on other sites
JorgeF 0 Posted March 6, 2016 Report Share Posted March 6, 2016 Hi Your IDLOC question has nothing to do with WDT control. BTW, why are you ressurecting all those old threads? If you have any question of yours, just open anew thread, instead of ressurecting threads that are several years old. Look at the dates! Best regards Jorge Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.