MPLAB X IDE - Using MPLAB ICD 3 In-Circuit Debugger Poster

Integrated Development Environment
Using MPLAB ICD 3 In-Circuit Debugger
1 Install the Latest Software
5 Create, Build and Run Project
Install the MPLAB®X IDE software onto your computer by downloading it from
www.microchip.com/mplabx. Launch the application.
2 Configure USB Communications
When you install MPLAB X IDE on a Mac or Linux computer, the installer automatically
loads the USB drivers.
When you install MPLAB X IDE on a Windows® computer, you must follow the instructions
on the Start Page, “MPLAB IDE v8 Users - Important,” to correctly install the USB drivers.
3 Use the ICD 3 Test Interface Board
ICD 3 Test Interface Board
Modular Cable
USB/Power
From Computer
ADDITIONAL INFORMATION
1. Select and install the language tools (compiler, assembler, etc.) for developing your code.
See the www.microchip.com web site for more choices.
2. Use the New Project wizard (File>New Project) to create a project, or open an existing
project (File>Open Project).
3. Configure the debugger by right clicking on the main project and selecting “Properties.”
Click on “ICD 3” for options.
4. Configure your language tools in the Properties dialog by clicking the language tool name
for options. Click OK when done.
5. Check that the configuration bits in your code match the Recommended Settings listed
below.
6. To execute your code in Debug mode, perform a debug run (Debug>Debug Project). A
debug run will build the project, program the target with the image and debug executive,
and start a debug session.
OR
To execute your code in Non-Debug (release) mode, perform a run (Run>Run Project). A
run will build the project, program the target with the image and run the device.
To hold a device in Reset after programming, use the Hold in Reset icon in the toolbar
instead of using Run Project.
Recommended Settings
COMPONENT
Oscillator
Power
WDT
Code-Protect
Table Read Protect
LVP
BOD
JTAG
AVDD and AVSS
PGCx/PGDx
Programming
Note: See MPLAB ICD 3 in-circuit debugger online help for more information.
Reserved Resources
Use the supplied ICD 3 Test Interface Board to verify that the debugger is functioning
properly:
1. Disconnect the debugger from the computer.
2. Connect the ICD 3 Test Interface Board to the debugger using the modular cable.
3. Reconnect the debugger to the computer.
4. Launch MPLAB X IDE. Ensure that all existing projects are closed.
5. Select Debug>Run Debugger/Programmer Self Test, then, select the specific “ICD 3”
you want to test and click OK.
6. Ensure the ICD 3 Test Interface Board and cable are connected. Click Yes to continue.
7. View the self test results in the debugger’s Output window.
8. After the debugger passes the self test, disconnect the ICD 3 Test Interface board from
the debugger.
4 Connect to Target Device
For information on reserved resources used by the debugger,
see the MPLAB ICD 3 in-circuit debugger online help.
Circuitr y and Connector Pinouts
Target Connector Pinout
Modular Connector Pin
1
2
3
4
5
6
Standard Connection
At Target
2 4 6
1. Ensure the MPLAB ICD 3 is attached to the computer 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 Debug Circuitry
*Reserved for future use.
1 3 5
MPLAB ICD 3 RJ-11 Jack Pinout
Microcontroller Pin
MCLR/VPP
VDD
Ground
PGD (ICSPDAT)
PGC (ICSPCLK)
Do not connect*
1 2 3 4 5 6
Correct
MPLAB ICD 3
Internal Circuitry (simplified)
Incorrect
Target VDD (tVDD)
VDD
Power
PGC
PGD
VDD
50 kΩ
Typical
tVDD
2
1
5
4
3
VPP
tVDD
4.7 kΩ
tVDD
Target VDD
(tVDD) is used
to power the
Input/Output
drivers in
MPLAB
ICD 3
debugger
AVDD**
AVSS**
tVDD
VSS
4.7 kΩ
Alternate Debugger System Configuration (without loss of pins)
VPP/MCLR
XTAL*
V DD
Target
Application
Device
Target
Application
Device
VPP/MCLR
USB from computer
PGC
PGD
2
1
5
4
3
AVDD**
AVSS**
VSS
tVDD
Processor Pak
Target Application PC Board
Standard
Adapter
Header
*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.
Device-ICE
Header
OR
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.
• Do not exceed recommended cable lengths: refer to the Hardware
Specification section of the MPLAB ICD 3 online help or user’s
guide for cable lengths.
USB from computer
Device-ICE
Transition Socket
Target Board
Power
Signal
1
2
3
4
5
6
Target Circuit Design Precautions
XTAL*
Target Device
or PIM
Pin
PGM
PGC
PGD
Ground
VDD
MCLR/VPP
Bottom View
Of Target Board
Target VDD (tVDD)
Target Board
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 spec
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.
© 2011-2014 Microchip Technology Incorporated. Printed in the U.S.A. All Rights Reserved. 9/14
DS50002011B
www.microchip.com