4.2 Two-Wire Interface

Another possible interface is the Two-Wire In-Circuit Serial Programming (ICSP) port. Table 4-2 lists the required pin connections. This interface uses the following two communication lines to transfer data to and from the PIC32 device being programmed:
  • Serial Program Clock (PGECx)
  • Serial Program Data (PGEDx)

These signals are described in the following two sections. Refer to the specific device data sheet for the connection of the signals to the chip pins.

Table 4-2. Two-Wire Interface Pins
Device Pin NameProgrammer Pin NamePin TypePin Description
MCLRMCLRPowerProgramming enable
ENVREG(2)N/AInputEnable for on-chip voltage regulator
VDD, VDDIO, VBAT(2) and AVDD(1)VDDPowerPower supply
VDDCORE(2) and VDDR1V8(2)N/APowerPower supply for DDR interface
VSS, VSS1V8(2) and AVSS(1)VSSPowerGround
VCAP(2)N/APowerCPU logic filter capacitor connection
PGECxPGECInputPrimary programming pin pair:
  • Serial clock
PGEDxPGEDInput/OutputPrimary programming pin pair:
  • Serial data
Note:
  1. Ensure to connect all power supply and ground pins, 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.

For more details on the connection of the signals to the device pins, refer to the specific device data sheet.

Serial Program Clock (PGECx)

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

Serial Program Data (PGEDx)

PGEDx is the data input/output to the Instruction or selected Data Registers, it is also the control signal for the TAP controller. This signal is sampled on the falling edge of the PGECx for some TAP controller states.