MICROCHIP AC164113

Using
1 Install the Latest Software
ADDITIONAL INFORMATION
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.
Circuitry and Connector Pinouts
Target Connector Pinout
2 Configure PC USB Communications
Modular Connector Pin
1
2
3
4
5
6
Standard Connection
At Target
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.
2 4 6
MPLAB ICD 3 RJ-11 Jack Pinout
Microcontroller Pin
MCLR/VPP
VDD
Ground
PGD (ICSPDAT)
PGC (ICSPCLK)
PGM (LVP)
Pin
PGM
PGC
PGD
Ground
VDD
MCLR/VPP
1 2 3 4 5 6
Signal
1
2
3
4
5
6
1 3 5
Bottom View
Of Target Board
3 Use the ICD 3 Test Interface Board
ICD 3 Test Interface Board
Target Circuit Design Precautions
Correct
Target VDD (tVDD)
USB/Power
From PC
XTAL*
Target
Application
Device
VPP/MCLR
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.
PGC
PGD
VDD
4.7 10 kΩ
Typical
tVDD
2
1
5
4
3
VPP
tVDD
4.7 kΩ
tVDD
AVSS**
USB from PC
Power
Target Application PC Board
AVSS**
VSS
Target Application PC Board
Recommended Settings
COMPONENT
Oscillator
1.
2.
3.
4.
5.
Launch MPLAB IDE.
Load your project or use the Project Wizard to create a new one.
Build your project based on your configurations and options.
Attach the MPLAB ICD 3 to the PC using the USB cable.
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
Processor Pak
Standard
Adapter
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.
Device-ICE
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.
USB from PC
Device-ICE
Power
2
1
5
4
3
tVDD
5 Build Your Project
Alternate Debugger System Configuration Using an ICE Device
Transition Socket
V DD
PGC
PGD
• 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.
*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.
Target Device
or PIM
OR
XTAL*
4.7 kΩ
Typical Debugger System – Device with on-board ICE circuitry
ICD Header
VPP/MCLR
AVDD**
tVDD
VSS
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.
Header
Target VDD
(tVDD) is used
to power the
Input/Output
drivers in
MPLAB
ICD 3
debugger
AVDD**
4 Connect to Target Device
Target Board
Incorrect
Target VDD (tVDD)
VDD
Target
Application
Device
Modular Cable
MPLAB ICD 3
Internal Circuitry (simplified)
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
Target Board
© 2010 Microchip Technology Inc., 3/10 DS51765C