English
Language : 

AC164113 Datasheet, PDF (1/1 Pages) Microchip Technology – Using MPLAB ICD 3
Using
1 Install the Latest Software
Install the MPLAB IDE software onto your PC using the MPLAB IDE CD-ROM or
download the software from the MPLAB IDE page of the Microchip web site
(www.microchip.com/MPLAB). Check the latest Release Notes for additional
information.
2 Configure PC USB Communications
Connect MPLAB ICD 3 In-Circuit Debugger to a PC USB port via a USB
cable. If the drivers do not install automatically, then install the drivers as
instructed in: C:\Program Files\Microchip\MPLAB IDE\ICD 3\
Drivers\ddri.htm.
Note: If a USB hub is used, the hub must be powered with its own power supply.
3 Use the ICD 3 Test Interface Board
ICD 3 Test Interface Board
Modular Cable
USB/Power
From PC
Use the supplied ICD 3 Test Interface Board to verify that the MPLAB ICD 3
is functioning properly:
1. Connect the ICD 3 Test Interface board to the debugger using the
modular cable.
2. Ensure that “MPLAB ICD 3” is selected on either the Debugger or
Programmer menu in MPLAB IDE.
3. From that menu, select “Settings”, Status tab, then click on Run ICD 3
Test Interface. The status (pass/fail) is displayed in the Output window.
If a pass message is displayed, the MPLAB ICD 3 is functioning properly.
4 Connect to Target Device
1. Ensure the MPLAB ICD 3 is attached to the PC using the USB cable, if not
already.
2. Remove the ICD 3 Test Interface Board and attach the modular cable
between the debugger and target board.
3. Connect power to the target board.
Typical Debugger System – Device with on-board ICE circuitry
Target Device
or PIM
Target Board
USB from PC
Power
Alternate Debugger System Configuration Using an ICE Device
Processor Pak
Header
Standard
Adapter
Device-ICE
ICD Header
Device-ICE
OR
USB from PC
Transition Socket
Target Board
Power
ADDITIONAL INFORMATION
Circuitry and Connector Pinouts
Target Connector Pinout
Standard Connection
At Target
246
135
Bottom View
Of Target Board
Modular Connector Pin
1
2
3
4
5
6
Microcontroller Pin
MCLR/VPP
VDD
Ground
PGD (ICSPDAT)
PGC (ICSPCLK)
PGM (LVP)
MPLAB ICD 3 RJ-11 Jack Pinout
123456
Pin
PGM
PGC
PGD
Ground
VDD
MCLR/VPP
Signal
1
2
3
4
5
6
Correct
Target VDD (tVDD)
VDD
XTAL*
VPP/MCLR
PGC
PGD
4.7 -
10 kΩ
Typical
2
1
5
4
3
AVDD**
AVSS**
VSS
MPLAB ICD 3
Internal Circuitry (simplified)
4.7 kΩ
tVDD
VPP
tVDD
tVDD
4.7 kΩ
tVDD
tVDD
Target VDD
(tVDD) is used
to power the
Input/Output
drivers in
MPLAB
ICD 3
debugger
Target Application PC Board
*Target device must be running with an oscillator for the debugger to function as a debugger.
**If the device has AVDD and AVSS lines, they must be connected for the debugger to operate.
5 Build Your Project
1. Launch MPLAB IDE.
2. Load your project or use the Project Wizard to create a new one.
3. Build your project based on your configurations and options.
4. Attach the MPLAB ICD 3 to the PC using the USB cable.
5. Select the MPLAB ICD 3 as either a debugger (Debugger>Select Tool>ICD 3)
or as a programmer (Programmer>Select Programmer>ICD 3).
6 Program and Debug
1. Program your device.
2. As a programmer, MPLAB ICD 3 will automatically run your code. As a
debugger, you can run, halt, single step and set breakpoints in your code.
Target Circuit Design Precautions
Incorrect
Target VDD (tVDD)
VDD
VPP/MCLR
XTAL*
V DD
2
1
PGC
5
PGD
4
3
AVDD**
AVSS**
VSS
Target Application PC Board
• Do not use greater than 100 F capacitance on VDD –
depending on the overall load, it will prevent the target
from powering quickly when MPLAB ICD 3 is the source
of power.
• Do not use capacitors on MCLR – they will prevent
fast transitions of VPP.
• Do not use pull-ups on PGC/PGD – they will divide the
voltage levels since these lines have 4.7 k pull-down
resistors in MPLAB ICD 3.
• Do not use multiplexing on PGC/PGD – they are
dedicated for communications to MPLAB ICD 3.
• Do not use capacitors on PGC/PGD – they will prevent
fast transitions on data and clock lines during
programming and debug communications.
• Do not use diodes on PGC/PGD – they will prevent
bidirectional communication between MPLAB ICD 3 and
the target PIC®MCU.
Recommended Settings
COMPONENT
Oscillator
Power
WDT
Code-Protect
Table Read Protect
LVP
BOD
JTAG
AVDD and AVSS
PGCx/PGDx
Programming
SETTING
•OSC bits set properly
•Running
Supplied by target
Disabled (device dependent)
Disabled
Disabled
Disabled
VDD > BOD VDD min
Disabled
Must be connected
Proper channel selected, if
applicable
VDD voltage levels meet
programming specs
Note: See the MPLAB ICD 3 User’s Guide for more component
and setting information.
Reserved Resources
For information on reserved resources used by the debugger, see the MPLAB ICD 3
on-line help.
The Microchip name and logo, the Microchip logo, MPLAB and PIC are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other countries. The MPLAB Certified logo
and ICSP are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
© 2010 Microchip Technology Incorporated. Printed in the U.S.A. All Rights Reserved. 2/10
© 2010 Microchip Technology Inc., 3/10 DS51765C