2.3 Bare Metal Code
The first step is to configure the microcontroller to disable the Watchdog Timer (WDT) and to enable the Low-Voltage Programming (LVP).
/* WDT operating mode → WDT Disabled */
#pragma config WDTE = OFF
/* Low-voltage programming enabled, RE3 pin is MCLR */
#pragma config LVP = ON