4.1 Four-Wire Interface

One possible interface is the Four-Wire JTAG (IEEE 1149.1) port. Table 4-1 lists the required pin connections. This interface uses the following four communication lines to transfer data to and from the PIC32 device being programmed:
  • Test Clock Input (TCK)
  • Test Mode Select Input (TMS)
  • Test Data Input (TDI)
  • Test Data Output (TDO)
Table 4-1. Four-Wire Interface Pins
Device Pin NamePin TypePin Description
MCLRInputProgramming enable
ENVREG(2)InputEnable for on-chip voltage regulator
VDD, VDDIO, VDDCORE(2), VDDR1V8(2), VBAT(2) and AVDD(1)PowerPower supply
VSS, VSS1V8(2) and AVSS(1)PowerGround
VCAP(2)PowerCPU logic filter capacitor connection
TDIInputTest Data In
TDOOutputTest Data Out
TCKInputTest Clock
TMSInputTest Mode State
Note:
  1. All power supply and ground pins must be connected, including analog supplies (AVDD) and ground (AVSS).
  2. This pin is not available on all devices. Refer to the “Pin Diagrams” or “Pin Tables” section in the specific device data sheet to determine availability.

Test Clock Input (TCK)

TCK is the clock that controls the updating of the TAP controller and the shifting of data through the Instruction or selected Data registers. TCK is independent of the processor clock with respect to both frequency and phase.

Test Mode Select Input (TMS)

TMS is the control signal for the TAP controller. This signal is sampled on the rising edge of the TCK.

Test Data Input (TDI)

TDI is the test data input to the Instruction or selected Data register. This signal is sampled on the rising edge of the TCK for some TAP controller states.

Test Data Output (TDO)

TDO is the test data output from the Instruction or Data registers. This signal changes on the falling edge of TCK. TDO is only driven when data is shifted out, otherwise the TDO is tri-stated.