In 4-phase ICSP mode, the TDI, TDO and TMS device pins are multiplexed onto PGEDx in four
clocks, see Figure 5-4. The LSb is shifted first; and TDI and TMS
are sampled on the falling edge of PGECx, while TDO is driven on the same edge. The
4-phase ICSP mode facilitates both read and write data transfers.Figure 5-4. Two-Wire and 4-Phase