I am using PIC32MX795F512L and mikroC PRO PIC32. I want to know how to clear WDT in code. I have to implement WDT for proper functioning of the device.
9.3.4 Resetting the WDT Timer
The WDT is cleared by any of the following:
• On any device Reset.
• By a WDTCONSET = 0x01, or equivalent instruction, during normal execution. Refer to
Example 9-2.
• Exiting from IDLE or SLEEP mode, due to an interrupt
OP - I suspect that you have not appreciated that the PIC18, PIC24, dsPIC33 and similar families of devices all operate using instructions that are (approximately) similar. The way they work means that you can fairly easily transition form one family to the next.
However the PIC32 families are MIPS based and they work is quite a different way. You cannot rely on techniques and code that work for the other families of devices and therefore you must refer to the data sheet and other documentation for the device.
Susan