RESET Macro

A macro that resets the device.

Include

<xc.h>

Prototype

void RESET(void);

Remarks

Where possible, this macro executes a reset instruction. For devices that do not implement this instruction, this macro puts down a jump instruction whose destination is itself. For a Reset to occur, enable the watchdog timer if it is not already and wait for that to expire.

Example

#include <xc.h>

int main (void)
{
  while(1) {
    RESET();
  }
}