3.3.3.2.2 SAM/PIC32C SWD Pinout
SAM/PIC32C SWD pin names and descriptions are shown in the table below. Pin numbers are shown for MPLAB PICkit 5 direct connection and Debugger Adapter Board 10-pin and 20-pin connections.
MPLAB PICkit 5 Pin | Adapter Board (10-Pin) Pin | Adapter Board (20-Pin) Pin | Name | Description |
---|---|---|---|---|
8 | 2 | 7 | SWDIO | Serial Wire Debug Data Input/Output. |
5 | 4 | 9 | SWDCLK | Serial Wire Debug Clock. |
4 | 8 | 5 | SWO | Serial Wire Output (used with ITM - not implemented on all devices). |
3 | 3, 5, 9 | 4,6,8,10,12,14,16,18,20 | GND | Ground |
2 | 1 | 1 | VDD\VTG* | VDD: MPLAB PICkit 5 providing power
to target (optional) or target providing power to MPLAB PICkit 5 (PTG) VTG: Target voltage reference. The MPLAB PICkit 5 samples the target voltage on this pin in order to power the level converters correctly. The MPLAB PICkit 5 draws less than 1mA from this pin in this mode. |
1 | 10 | 15 | MCLR | Reset (optional). Used to reset the target device. Connecting this pin is recommended since it allows the MPLAB PICkit 5 to hold the target device in a reset state, which can be essential to debugging in certain scenarios. |
* Remember to include a decoupling capacitor between this pin and GND. See AN4451: SAMA5D2 Hardware Design Considerations. |