PICkit 4 Quick Start Guide

PICkit-4_Quick_Start_Guide

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 3

QUICK START GUIDE
MPLAB® PICkitTM 4 In-Circuit Debugger
GETTING STARTED
Install the Latest Software
Download the MPLAB X IDE software from www.microchip.com/mplabx and install onto your computer. The installer
automatically loads the USB drivers. Launch MPLAB X IDE.
Connect to Target Device
1. Connect the MPLAB PICkit 4 to the computer
using the supplied Micro-B USB cable.
2. Attach the communications cable between the
debugger and target board.
3. Connect external power to target board.
1
2
www.microchip.com/pickit4
Create, Build and Run Project
1. Refer to the MPLAB X IDE User's Guide or online help
for instructions to install language tools, create or
open a project, and congure project properties.
2. Check that the conguration bits in your code match
the Recommended Settings below.
3. To execute your code in Debug mode, perform a
debug run. To execute your code in Non-Debug
(release) mode, perform a run. To hold a device in
Reset after programming, use the Hold in Reset icon
in the toolbar.
Recommended Settings
Component Setting
Oscillator • OSC bits set properly
• Running
Power Supplied by target
WDT Disabled (device dependent)
Code-Protect Disabled
Table Read Protect Disabled
LVP Disabled
BOD Vdd > BOD Vdd min.
JTAG Disabled
AVdd and AVss Must be connected
PGCx/PGDx Proper channel selected, if applicable
Programming Vdd voltage levels meet programming spec
Note: See MPLAB PICkit 4 In-Circuit Debugger online help for more information.
Reserved Resources
For information on reserved resources used by the
debugger, see the MPLAB
PICkit
4 In-Circuit Debugger
online help.
3
*External target board power supply to be provided by user.
Typical Debugger System – Device with
On-Board Debug Circuitry
Alternative Debugger System – ICE Device
C: 10 M: 100 Y: 100 K: 20 PMS: 7621C
Transition Socket
if needed
Device-ICE
Standard
Adapter
Header
Power
Micro-B USB
from computer
Target Board
Micro-B USB
from computer
Target Device
Power
Target Board
www.microchip.com/pickit4
The Microchip name and logo, the Microchip logo, MPLAB and PICkit are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. All other trademarks mentioned
herein are property of their respective companies. © 2018, Microchip Technology Incorporated. All Rights Reserved. 2/18 DS50002721A
ADDITIONAL INFORMATION
Target Circuit Design Precautions
Do not use pull-ups on PGC/PGD
:
they will disrupt the voltage levels, since these lines have
programmable pull-down resistors in the debugger.
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 capacitors on MCLR
:
they will prevent fast transitions of VPP. A simple pull-up
resistor is generally sucient.
Do not use diodes on PGC/PGD
:
they will prevent bidirectional communication between the
debugger and the target device.
Do
not exceed recommended cable lengths: Refer to the Hardware Specication of the
MPLAB PICkit 4 online help or user's guide for cable lengths.
2
1
5
4
3
6
7
8
Target VDD (tVDD)
Target Application PC Board
VDD
PGC
PGD
VSS
AVDD**
AVSS**
XTAL*
Incorrect
VPP /MCLR
Target Application
Device
V
Pinouts for Additional Interfaces
MPLAB® PICkit 4 Debugging and Programming Data Stream
Pin # ICSP MIPS EJTAG Cortex® SWD DMCI/DGI
U(S)ART/CDC DGI SPI
1Vpp/NMCLR
2 Vdd VIO_REF VTG VTG
3 GND GND GND GND
4 PGD TDO SWo MISO
5 PGC TCK SWCLK SCK
6AUX NRESET NRST (SCK)
7 TDI TDI TX MOSI
8 TMS TMS SWDIO RX SS
Circuitry and Connector Pinouts
2
1
5
4
3
6
7
8
Target VDD (tVDD)
50 kΩ
Typical
Target Application PC Board
VDD
PGC
PGD
VSS
AVDD
AVSS
XTAL
Correct
VPP /MCLR
Typical cable
length is 6 inches
Target Application
Device
** 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.
Typical 6-Pin ICSP Pinout
Pin Target MPLAB® PICkit 4
1MCLR/Vpp NMCLR
2 Vdd Target Vdd
3 Vss (ground) Ground
4 PGD (ICSPDAT) PGD
5 PGC (ICSPCLK) PGC
6Do Not Connect Do Not Connect
7Reserved for Future use
8Reserved for Future use
Connect
Pin 1 to Pin 1
Mouser Electronics
Authorized Distributor
Click to View Pricing, Inventory, Delivery & Lifecycle Information:
Microchip:
PG164140

Navigation menu