11.2.5.2.2 Step 2. Connect MPLAB ICE 4 to a Target

Connect the MPLAB ICE 4 In-Circuit Emulator (DV244140) to your target hardware using one of the following methods:

  1. Connect MPLAB ICE 4 40-pin ribbon cable to the MPLAB ICE 4 Breakout Board (AC244141). Then connect the Breakout Board pins to the corresponding target ICSP modular connector pins as specified in the table below.
  2. Connect MPLAB ICE 4 40-pin ribbon cable directly to a 40-pin connector on the target. Ensure that the 40-pin connector pins map to the target device ICSP pins as specified in the table below.

The ICSP pins are required to debug and program the device, and the DGI_VCP_TXD and DGI_VCP_RXD pins are required to read the serial output. The DGI_VCP_TXD and DGI_VCP_RXD need to be connected to the pins which you have configured for your serial driver to use.

Table 11-1. Connection Summary
ICE 4 Function Names1,2ICE 4 Breakout Board Pins1ICE 4 Connector Pins at Target2Target ICSP Names3Target ICSP Pins3
TVPP_IOJ4/5 1937MCLR/VPP1
TVDD_PWRJ2/3/4/5 2039,40VDD2
GNDJ2/3 6,8,10,12,14,1612,16,20,24,28,32VSS3
TPGD_IOJ2/3 1938TGO/PGD4
TPGC_IOJ4/5 1835TCK/PGC5
TAUX_IOJ2/3 1836TAUX6
DGI_VCP_TXDJ4/5 1325TMS47 - TX pin used by configured serial driver
DGI_VCP_RXDJ4/5 1223TDI48 - RX pin used by configured serial driver
  1. Refer to the MPLAB ICE 4 Breakout Board User’s Guide (DS-50003479)
  2. Refer to the MPLAB ICE 4 In-Circuit Emulator User’s Guide (DS-50003242), 3.3.1 “Target Connection Pinout” table.
  3. Refer to the MPLAB ICE 4 In-Circuit Emulator User’s Guide, 3.3.5.1 “ICSP Target Connection” figures.
  4. The MPLAB ICE 4 ICSP Adapter Board connects TMS and TDI to ICE 4 Connector Pins 34 and 33 respectively. Therefore this board cannot be used for CI/CD.
Figure 11-8. Hardware Connections using MPLAB ICE 4 Breakout Board
Figure 11-9. Hardware Connections directly from the ICE 4 40-pin Cable