4.3 Bare Metal Code
The first step will be to configure the microcontroller to disable the WDT and to enable the LVP.
/* WDT operating mode → WDT Disabled */
#pragma config WDTE = OFF
/* Low-voltage programming enabled, RE3 pin is MCLR */
#pragma config LVP = ON