I am using PIC18F67K22 controller in my circuit.
I don't know how to enable or configure Watch Dog Timers(WDT) in my controller.
Any one have explanation with some demo code of Enable Watch Dog Timer ???
Set the 0th bit in WDTCON register
WDTCON.0 = 1
The rest of the bits in WDTCON let you configure this peripheral, see datasheet for more brief notes. In this context, datasheets and microcontroller-header are your best-friends.
Note: Before you enable SWDTEN, You will have to make sure WDTEN is disabled, else you wouldn't be able to enable Watchdog Timer via SWDTEN. This can be done by clearing WDTEN bits in CONFIG2H Register.