From the manual
You need to enable the WDT. How about trying thisCode:The Watchdog Timer is used in conjunction with the SLEEP and NAP instructions to wake the PICmicro MCU after a certain period of time.
@device 18F4550, WDT_ON
I do not know if this will work as I've not checked
Bookmarks