PCB TOOLS / PINOUT & INTERFACE REFERENCE
JTAG / SWD Pinouts and Debug Connector Reference
Compare Cortex 10-pin, the source 6-pin layout and legacy ARM, MIPS, AVR, MAXQ and MSP430 debug headers. Identify the target board connector before connecting by signal name.
Quick answer
JTAG uses TCK, TMS, TDI and TDO; SWD mainly uses SWDIO and SWDCLK. Equal pin counts do not guarantee compatible wiring. VTref/VREF normally lets the probe sense target logic voltage; it is not an arbitrary power output.
Scope
This is a collection of vendor and legacy layouts, not one universal JTAG connector standard. Cortex 10-pin, ARM 20-pin, 6-pin and vendor headers are not interchangeable. Check device/probe manuals for legacy MSP430 TEST/VPP functions. Paired table columns show pin numbers only; they do not assert an unverified mating-face, solder-side or cable-back view.
Reading example
For a confirmed Cortex 10-pin SWD header, check 1=VTref, 2=SWDIO, 3/5=GND, 4=SWDCLK and 10=nRESET; position 7 is the key. Locate pin 1 and connector direction from the board and official manual, then verify target voltage and common ground.
Checked reference tables
| Signal | Direction / purpose |
|---|---|
| TCK / SWDCLK | Probe → target, clock |
| TMS / TDI | Probe → target, mode / data |
| TDO / SWO | Target → probe, data / trace |
| SWDIO | Bidirectional debug data |
| VTref / VREF | Target-voltage reference sense; not a universal supply |
Interfaces, pinouts and technical reference
10-pin JTAG/SWD
| Name | Pin | Pin | Name |
|---|---|---|---|
| Vref | 1 | 2 | SWDIO/TMS |
| GND | 3 | 4 | SWDCLK/TCKLegacy record: “SWDCLK/TCLK”. The source TCLK at this Cortex 10-pin position is JTAG clock TCK; explicitly corrected against Arm KAN339. |
| GND | 5 | 6 | SWO/TDO |
| - | 7 | 8 | NC/TDI |
| GNDDetect | 9 | 10 | nRESET |
6-pin JTAG/SWD
| Name | Pin | Pin | Name |
|---|---|---|---|
| Vref | 1 | 2 | SWDIO |
| nRESET | 3 | 4 | SWDCLK |
| GND | 5 | 6 | SWO |
ARM-20 JTAG
| Name | Pin | Pin | Name |
|---|---|---|---|
| VREF | 1 | 2 | VSUPPLY |
| nTRST | 3 | 4 | GND |
| TDI | 5 | 6 | GND |
| TMS | 7 | 8 | GND |
| TCK | 9 | 10 | GND |
| RTCK | 11 | 12 | GND |
| TDO | 13 | 14 | GND |
| nSRST | 15 | 16 | GND |
| DBGRQ | 17 | 18 | GND |
| DGBACK | 19 | 20 | GND |
ARM-14 JTAG
| Name | Pin | Pin | Name |
|---|---|---|---|
| VREF | 1 | 2 | GND |
| nTRST | 3 | 4 | GND |
| TDI | 5 | 6 | GND |
| TMS | 7 | 8 | GND |
| TCK | 9 | 10 | GND |
| TDO | 11 | 12 | nSRST |
| VREF | 13 | 14 | GND |
MIPS EJTAG
| Name | Pin | Pin | Name |
|---|---|---|---|
| nTRST | 1 | 2 | GND |
| TDI | 3 | 4 | GND |
| TDO | 5 | 6 | GND |
| TMS | 7 | 8 | GND |
| TCK | 9 | 10 | GND |
| nSRST | 11 | 12 | |
| DINT | 13 | 14 | VREF |
AVR JTAG
| Name | Pin | Pin | Name |
|---|---|---|---|
| TCK | 1 | 2 | GND |
| TDO | 3 | 4 | VREF |
| TMS | 5 | 6 | nSRST |
| - | 7 | 8 | nTRST |
| TDI | 9 | 10 | GND |
Maxim MAXQ JTAG
| Name | Pin | Pin | Name |
|---|---|---|---|
| TCK | 1 | 2 | GND |
| TDO | 3 | 4 | VREF |
| TMS | 5 | 6 | nSRST |
| - | 7 | 8 | VSUPPLY |
| TDI | 9 | 10 | GND |
Texas Instruments MSP430 JTAG
| Name | Pin | Pin | Name |
|---|---|---|---|
| TDO | 1 | 2 | VREF |
| TDI | 3 | 4 | - |
| TMS | 5 | 6 | TCLK |
| TCK | 7 | 8 | VPP |
| GND | 9 | 10 | - |
| nSRST | 11 | 12 | - |
| - | 13 | 14 | - |
Legacy source notes and applicability
These notes retain the legacy record. For corrected facts and applicability, use this page’s quick answer, scope and visible table corrections.
6-pin JTAG/SWD
ARM-20 JTAG
ARM-14 JTAG
MIPS EJTAG
AVR JTAG
Maxim MAXQ JTAG
Texas Instruments MSP430 JTAG
Note: There are usually different way to connect JTAG header to the target. Always check the datasheet.
Frequently asked questions
Can JTAG and SWD use one header?
Some Cortex debug headers multiplex both modes, but the target, probe and software must support the selected mode. Not every SWD pin has a one-to-one JTAG meaning.
How do I locate pin 1 without a missing pin?
Check board triangles, dots, square pads and manufacturer connector drawings against the schematic. A square pad is a common clue, not a guarantee. Cable stripes or the left/right arrangement here alone are insufficient.
Related tools and references
Sources and verification
- Arm / Keil: Cortex and ARM debug connectors
- Arm KAN339: CoreSight connectors and signals
- Microchip: VTref target-voltage sense
- Texas Instruments: MSP430 headers and TEST/VPP
Legacy baseline: the Electrodoc Pro 5.2 data package. Raw records are retained and checked factual corrections are shown explicitly.