User manual

MPLAB
®
X PICkit™ 3 USERS GUIDE
2013 Microchip Technology Inc. DS52116A-page 29
Chapter 3. Debugger Usage
3.1 INTRODUCTION
The following topics regarding how to install and use the PICkit 3 In-Circuit
Debugger/Programmer system are discussed here.
Installation and Setup
Common Debug Features
Connecting the Target
Setting Up the Target Board
Setting Up MPLAB X IDE
Starting and Stopping Debugging
Viewing Processor Memory and Files
For more on the Editor, see NetBeans Help, IDE Basics>Basic File Features.
3.2 INSTALLATION AND SETUP
Refer to the Help file “Getting Started with MPLAB X IDE” for details on installing the
IDE and setting up the debugger to work with it.
In summary:
1. Install MPLAB X IDE.
2. Connect the PICkit 3 to the PC and allow the default drivers to install. For more
information on target connections, see Chapter 2. “Operation”.
3. Install the language toolsuite/compiler you want to use for development.
4. Launch MPLAB X IDE.
5. Use the New Project wizard (File>New Project
) to add your “PICkit 3” to your
project.
6. Use the project Properties dialog (File>Project Properties
) to set up options.
7. Use the project Properties dialog (File>Project Properties<Hardware tool>
) to set
up tool options for programming.
8. Run the project (build and run) from Run>Run Project
.
Items of note are:
1. Each debugger contains a unique identifier which, when first installed, will be
recognized by the OS, regardless of which computer USB port is used.
2. MPLAB X IDE operation connects to the hardware tool at runtime (Run or Debug
Run). To always be connected to the hardware tool (like MPLAB IDE v8), see
Tools>Options
, Embedded button, Generic Settings tab, “Keep hardware tool
connected” checkbox.
3. Configuration bits can only be viewed in the Configuration Bits window. To set
them in code, select W
indow>PIC Memory Views. Then, select “Configuration
Bits” from the Memory drop list, and select “Read/Write” from the Format drop list
to enable access to the settings.
Note: The debugger can power a target board only up to 100 mA.