Microchip Technology PICkit 3 Starter Kit DV164130 DV164130 用户手册

产品代码
DV164130
下载
页码 98
PICkit™ 3 User’s Guide
DS51795A-page 32
© 2009 Microchip Technology Inc.
FIGURE 5-1:
CONNECTING THE DEMO BOARD TO THE PICkit™ 3
5.3.3
Configuration Bits and Debug Express
PIC microcontroller devices that do not require an ICD Header and may be debugged 
directly contain a DEBUG bit in the Configuration Word(s) that enables and disables 
the debug mode on the PIC microcontroller.
This bit is automatically set appropriately by the MPLAB IDE when using PICkit 3 
Debug Express and should not be specified in source code configuration settings.
Many 16-bit PIC microcontroller devices such as PIC24 and dsPIC33 families have 
multiple ICSP programming and debugging port pins labeled PGC1/EMUC1 and 
PGD1/EMUD1, PGC2/EMUC2 and PGD2/EMUD2, etc. While any ICSP port may be 
used for programming, only one port is active at a time for debugging. The active EMU 
port is set in the device Configuration bits. If the active port setting does not match the 
EMU port to which the PICkit 3 is connected, the device will be unable to enter debug 
mode. In the MPLAB IDE Configuration Bits dialog, these bits are usually referred to as 
the “Comm Channel Select” bits.
CAUTION
The DEBUG configuration bit value should not be specified in source code Configura-
tion settings under normal conditions. Doing so may cause the bit to be asserted when 
programming a device outside the debugger. This will cause the device to function 
improperly or not all at in the application circuit.