PICkit? 3 User’s Guide
halted. The debugger communicates with the debug executive via PGC and PGD, gets
the breakpoint status information and sends it back to MPLAB IDE. MPLAB IDE then
sends a series of queries to the debugger to get information about the target device,
such as file register contents and the state of the CPU. These queries are ultimately
performed by the debug executive.
The debug executive runs just like an application in program memory. It uses some
locations on the stack for its temporary variables. If the device does not run, for
whatever reason, such as no oscillator, a faulty power supply connection, shorts on the
target board, etc., then the debug executive cannot communicate to the PICkit 3
programmer/debugger and MPLAB IDE will issue an error message.
Another way to get a breakpoint is to press the MPLAB IDE’s Halt button (the “pause”
symbol to the right of the Run arrow). 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 IDE uses the debugger communications with
the debug executive to interrogate the state of the target device.
2.7
2.8
PROGRAMMING
Use the PICkit 3 programmer/debugger as a programmer to program an actual (non
-ICE/-ICD) device, i.e., a device not on a header board. Select “PICkit 3” from
Programmer>Select Programmer and compile/assemble your application code with
the “Build Configuration” list box on the MPLAB IDE toolbar set to “Release”. Also, it
may be set by selecting Project>Build Configuration>Release .
All debug features are turned off or removed when the debugger is used as a
programmer. When using the Programmer>Program selection to program a device,
MPLAB IDE will disable the in-circuit debug registers so the PICkit 3
programmer/debugger will program only the target application code and the
Configuration bits (and EEPROM data, if available and selected) into the target device.
The debug executive will not be loaded. As a programmer, the debugger can only
toggle the MCLR line to reset and start the target. A breakpoint cannot be set, and
register contents cannot be seen or altered.
The PICkit 3 programmer/debugger 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.
RESOURCES USED BY THE DEBUGGER
For a complete list of resources used by the debugger for your device, please see the
on-line help file in MPLAB IDE for the PICkit 3 programmer/debugger.
DS51795A-page 22
? 2009 Microchip Technology Inc.
相关PDF资料
DV164132 KIT EVAL F1 FOR PIC12F1/PIC16F1
DV243003 KIT STARTER FOR SRL MEM PRODUCTS
DVA1001 ADAPTER FOR PIC16F716 18DIP
DVA1004 DEVICE ADAPTER 8/14/20DIP
E3R-D12GP-P RELAY RCVR PLUG-IN DIMMER
E3R-R12-3HOTP RCVR 3WIRE RELAY 120V
E3R-R12GP RCVR PLUG-IN RELAY
E3T-MICFP-40 CONVERTER 4-CH SLT SENSOR
相关代理商/技术参数
DV164131 制造商:Microchip Technology Inc 功能描述:PICKIT 3 DEBUG EXPRESS
DV164131-XLP 制造商:Microchip Technology Inc 功能描述:KIT DEV PICKIT 3-XLP/NANOWAT
DV164132 功能描述:开发板和工具包 - PIC / DSPIC F1 Evaluation Kit RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DV164132 制造商:Microchip Technology Inc 功能描述:PIC12F1xxx/PIC16F1xxx F1 Evaluation Kit
DV164133 功能描述:电源管理IC开发工具 Energy Harvesting Development Tool RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V
DV164136 功能描述:开发板和工具包 - PIC / DSPIC PIC18F DEV Kit (with PICkit 3) RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DV164139 功能描述:开发板和工具包 - PIC / DSPIC Lo PIn Count USB Dev Kit (w/PICkit 3) RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DV17K3225T 制造商:SEI Stackpole Electronics Inc 功能描述:- Tape and Reel 制造商:SEI Stackpole Electronics Inc 功能描述:Var MOV 17VAC/22VDC 100A 27V 3225 SMD T/R