Microchip Technology PICkit 3 Debug Express Debugger/Programmer (DV164131) PICkit 3 Debug Express DV164131 Manual De Usuario
Los códigos de productos
DV164131
MPLAB
®
X PICkit™ 3 User’s Guide
DS52116A-page 24
2013 Microchip Technology Inc.
2.6
DEBUGGING
There are two steps to using the PICkit 3 In-Circuit Debugger/Programmer system as
a debugger. The first step requires that an application be programmed into the target
device (usually with the PICkit 3 itself). The second step uses the internal in-circuit
debug hardware of the target Flash device to run and test the application program.
These two steps are directly related to the MPLAB X IDE operations:
1. Programming the code into the target and activating special debug functions
a debugger. The first step requires that an application be programmed into the target
device (usually with the PICkit 3 itself). The second step uses the internal in-circuit
debug hardware of the target Flash device to run and test the application program.
These two steps are directly related to the MPLAB X IDE operations:
1. Programming the code into the target and activating special debug functions
(see the next section for details).
2. Using the debugger to set breakpoints and run.
If the target device cannot be programmed correctly, the PICkit 3 In-Circuit
Debugger/Programmer will not be able to debug.
Figure 2-6 shows the basic interconnections required for programming. Note that this
is the same as Figure 2-4, but for the sake of clarity, the V
If the target device cannot be programmed correctly, the PICkit 3 In-Circuit
Debugger/Programmer will not be able to debug.
Figure 2-6 shows the basic interconnections required for programming. Note that this
is the same as Figure 2-4, but for the sake of clarity, the V
DD
and V
SS
lines from the
debugger are not shown.
FIGURE 2-6:
PROPER CONNECTIONS FOR PROGRAMMING
A simplified diagram of some of the internal interface circuitry of the PICkit 3 In-Circuit
Debugger/Programmer is shown. For programming, no clock is needed on the target
device, but power must be supplied. When programming, the debugger puts
programming levels on V
Debugger/Programmer is shown. For programming, no clock is needed on the target
device, but power must be supplied. When programming, the debugger puts
programming levels on V
PP
/MCLR, sends clock pulses on PGC, and serial data via
PGD. To verify that the part has been programmed correctly, clocks are sent to PGC
and data is read back from PGD. This conforms to the ICSP protocol of the device
under development.
and data is read back from PGD. This conforms to the ICSP protocol of the device
under development.
+5V
Programming
4.7 k
4.7 k
V
PP
/MCLR
PGC
PGD
1
5
4
Internal Circuits
V
SS
V
DD
Voltage