Use MPLAB® PM3 withMPLAB X IDE to program a device following the steps below:


1

Install MPLAB® X IDE

InstallMPLAB X IDE software on your PC.

2

Setup Programmer Hardware

SetupMPLAB PM3 hardware in preparation for programming a device.

3

Install a Compiler

Install a language toolchain, such as one of theMPLAB XC C compilers, to build the project. UseMPLAB XC8 for 8-bit devices,MPLAB XC16 for 16-bit devices, andMPLAB XC32 for 32-bit devices.

4

Launch MPLAB X IDE and Create/Open a Project

Launch MPLAB X IDE and create or open an existing project. The project will be built to create a HEX file that will be programmed into your device.

To create a project in MPLAB X IDE:

  1. Ensure MPLAB X IDE is aware of your compiler toolchain by selectingTools > Options > Embedded > Build Tools and find yourcompiler in the list.
  2. SelectFile > New Project and set up anMPLAB X IDE project by following the steps in the project wizard. Once complete, the project tree will open in the Projects window.
  3. SelectFile > New File to open afile template in which to enter your code. Or you can import theexisting code into the project by right-clicking on the Source Files folder of the project tree and selecting "Add Existing Item".

To open an existing project, selectFile > Open Project, browse to your project, and clickOpen Project.

5

Setup for Programming

Once you have a project open in MPLAB X IDE, check theproperties for your project and ensure thatMPLAB PM3 is set up correctly to program your device.

6

Generate a Hex File

To build the project to generate a HEX file, right-click on the project name in the Projects window and select "Build" from the drop-down menu. If you havebuild errors, check your project setup and any flagged issues in your code. Then, build again.

IDE_Build.jpg

7

Insert and Program the Device

Insert the device to be programmed into the socket module. Position pin one on the device to match the pin one indicator in the socket module. Secure the device by pushing down the silver lever on the socket or closing the clamshell.

On the MPLAB X IDE toolbar, click on theRun icon. The project will be built (if necessary) and device will be programmed. The program will immediately begin execution on completion of programming.

Click on theUpload Target Project icon to transfer what is in target memory to MPLAB X IDE.

ProgramIcons.gif