Introduction to JTAG

This programmer/debugger is an older model and is no longer for sale. Please visit Microchip’s Programmers and Debuggers page to find currently available options.

Joint Test Action Group (JTAG) is the common name used for a debugging, programming, and testing interface typically found on microcontrollers, ASICs, and FPGAs. It enables all components with this interface to be tested, programmed, and/or debugged using a single connector on a PC board which can daisy chain them together.

JTAG is the name of the group that defined the IEEE 1149.1 standard. This standard defines the Test Access Port (TAP) controller logic used in processors with JTAG interfaces.

For detailed information, please see this Wikipedia JTAG article.

Typical JTAG System and Pin Definitions

A full JTAG interface requires five pins. In many systems, the optional TRST pin is not implemented, resulting in a four wire interface.

Pin Name JTAG Pin Description
TMS Test Mode Select
TCK Test Clock Input
TDI Test Data Input
TDO Test Data Output
TRST Test Reset (optional)

Typical Implementation

The figure below illustrates how a typical JTAG system could be configured:

  • TMS - selects the device under test
  • TCK - clocks data into TDI
  • TDI - the test or programming data input, cascaded through all JTAG compliant devices in the system
  • TDO - the resulting output
jtag_system.jpg

JTAG Connector

There is no standard JTAG connector or pinout, so suppliers are able to define their own. Microchip uses the pin arrangement illustrated below on those development boards, such as the Explorer 16 Development Board, that are JTAG enabled. Note that most PIC®32 starter kits are NOT JTAG enabled because they contain an on-board equivalent of the PICkit.

jtag_connector.jpg
© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.