Programming
Use theMPLAB® ICD 4 as a programmer to program non-ICE/-ICD devices (i.e., devices not on a header board). Set the MPLAB ICD 4 In-Circuit Debugger as the current tool (File>Project Properties) to perform these actions:
- WhenRun>Run Main Project is selected, the application code is programmed into the device’s memory via the ICSP protocol. No clock is required while programming and all modes of the processor can be programmed — including code protect, watchdog timer enabled, and table read protect.
- A small “program executive” program may be loaded into the high area of program memory for some target devices. This increases programming speeds for devices with large memory.
- Special “in-circuit debug” registers in the target device are disabled byMPLAB X IDE, along with all debug features. This means that a breakpoint cannot be set and register contents cannot be seen or altered.
- The target device is run in Release mode. As a programmer, the debugger can only toggle theMCLR line to Reset and start the target device.

