Microchip Technology PICkit 3 Debug Express Debugger/Programmer (DV164131) PICkit 3 Debug Express DV164131 Manual De Usuario

Los códigos de productos
DV164131
Descargar
Página de 94
Operation
 2013 Microchip Technology Inc.
DS52116A-page 27
Another way to get a breakpoint is to select Debug>Pause. This toggles the PGC and 
PGD lines so that the in-circuit debug mechanism of the target device switches the 
program counter from the user’s code in program memory to the debug executive. 
Again, the target application program is effectively halted, and MPLAB X IDE uses the 
debugger communications with the debug executive to interrogate the state of the 
target device.
2.8
PROGRAMMING
There are three ways to program a device with the PICkit 3 unit:
• Through MPLAB X IDE with the PICkit 3 connected to the PC.
• Through PICkit 3 Programmer-To-Go, after setting it up through MPLAB X IDE. 
• Through PICkit 3 Programmer Application, a software program that allows you to 
program devices with PICkit 3 without using MPLAB X IDE. (See “PICkit 3 
Programmer Application User’s Guide”
 for instructions.)
Use the PICkit 3 as a programmer to program an actual (non -ICE/-ICD) device, i.e., a 
device not on a header board. Set the PICkit 3 as the current tool (Edit>Project 
Properties
, Advanced, MPLAB Environment) to perform these actions:
• When Run>Run 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 device. This increases programming speeds for 
devices with large memories.
• Special “in-circuit debug” registers in the target device are disabled by MPLAB 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 the MCLR line to Reset and start the target.
The PICkit 3 In-Circuit Debugger/Programmer system programs the target using ICSP. 
V
PP
, PGC and PGD lines should be connected as described previously. No clock is 
required while programming, and all modes of the processor can be programmed, 
including code protection, Watchdog Timer, and table read protection.
2.9
RESOURCES USED BY THE DEBUGGER
For a complete list of resources used by the debugger for your device, please see 
MPLAB X IDE Start Page, click on Release Notes and Support Documentation, then 
click on link for the Reserved Resources for PICkit 3.