Connecons
User Guide
© 2023 Microchip Technology Inc. and its subsidiaries
DS-50003529B - 28
Table 3-13. debugWIRE Pin Mapping
AVR Port Pins Target pins debugWIRE Pinout
Pin 1 (TCK)
Pin 2 (GND) GND 6
Pin 3 (TDO)
Pin 4 (VTref) VTref 2
Pin 5 (TMS)
Pin 6 (nSRST) RESET 5
Pin 7 (Not connected)
Pin 8 (nTRST)
Pin 9 (TDI)
Pin 10 (GND)
3.3.6 PIC32M Connecons
PIC32M MIPS-based devices use EJTAG for debug and programming.
3.3.6.1 Connecng to a PIC32M EJTAG Target
The MPLAB ICD 5 provides a direct connection for new designs or a legacy 14-pin 10-mil JTAG/EJTAG
connection using the adapter board.
3.3.6.2 PIC32M EJTAG Pinout - 4-Wire JTAG
PIC32M EJTAG pin names and descriptions are shown in the table below. Pin numbers are shown for
MPLAB ICD 5 direct connection and Debugger Adapter Board 14-pin connection.
Table 3-14. PIC32M JTAG Connector 14-Pin Descripon
MPLAB ICD 5
Pin
Adapter Board
(14-Pin) Pin
Name Description
1 11 MCLR Reset (optional). Used to reset the target device. Connecting this pin is
recommended since it allows the MPLAB ICD 5 to hold the target device in a
reset state, which can be essential to debugging in certain scenarios.
2 14 VDD MPLAB ICD 5 providing power to target (optional) or target providing power to
MPLAB ICD 5 (PTG).
3 2, 4, 6, 8, 10 GND Ground. All must be connected to ensure that the MPLAB ICD 5 and the target
device share the same ground reference.
4 3 TDO Test Data Out (data transmitted from the target device into the MPLAB ICD 5).
5 9 TCK Test Clock (clock signal from the MPLAB ICD 5 into the target device).
6 1 NC Not connected.
7 5 TDI Test Data In (data transmitted from the MPLAB ICD 5 into the target device).
8 7 TMS Test Mode Select (control signal from the MPLAB ICD 5 into the target device).
3.3.7 PIC MCUs - ICSP Connecon
The MPLAB
®
ICD 5 In-Circuit Debugger supports debug and programming of PIC microcontrollers
(MCUs) and dsPIC digital signal controllers (DSCs) through ICSP
™
(In-Circuit Serial Programming
™
)
connections.
3.3.7.1 ICSP Target Connecon
Connect a debugger directly to a PIC
®
MCU target using the ICSP
®
modular connector or inline
connector on most MPLAB
®
debug tools. The connections to the debugger adapter board are the
same as connections to target boards.
If the debugger and target have dierent connections (modular-to-inline or inline-to-modular
respectively) a small adapter can be purchased to enable proper connections: “RJ11 to ICSP Adapter”
(AC164110).