SLEEP Macro

A macro that puts the device into sleep mode.

Include

<xc.h>

Prototype

void SLEEP(void);

Remarks

This macro executes a sleep instruction.

Example

#include <xc.h>

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