PIC:How to enable watch dog timer in PIC18F67K22 controller?
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.