IT lexicon › Hardware › JTAG TAP controller

JTAG TAP controller

Hardware På svenska → Updated: 2026-11-04

The small 16-state machine behind every JTAG port that decides what the bits on the cable actually mean.

JTAG has no commands in the usual sense. There is a clock (TCK), a control line (TMS) and two data lines (TDI in, TDO out). The value of TMS on each clock edge walks the TAP controller through a fixed state diagram defined in IEEE 1149.1. Two parallel branches do the work: one shifts an instruction into the instruction register, the other shifts data through whichever register that instruction selected — IDCODE, BYPASS or the boundary-scan chain.

One detail makes the protocol hard to wedge: five clocks with TMS held high always land in Test-Logic-Reset, wherever the machine happened to be. Several chips on a board are chained in series, and the ones not being addressed sit in BYPASS, a single-bit register. A surprising share of OpenOCD is devoted to counting those bits correctly.

← Back to the lexicon