21.3 PPS Outputs

Each digital peripheral has a dedicated Pin Rxy Output Source Selection (RxyPPS) register with which the pin output source is selected. With few exceptions, the port TRIS control associated with that pin retains control over the pin output driver. Peripherals that control the pin output driver as part of the peripheral operation will override the TRIS control as needed. The I2C module is an example of such a peripheral.

Important: The notation ‘Rxy’ is a placeholder for the pin identifier. The ‘x’ holds the place of the PORT letter and the ‘y’ holds the place of the bit number. For example, Rxy = RA0 for the RA0PPS register.

The table below shows the output codes for each peripheral, as well as the available Port selections.

Table 21-2. PPS Output Selection Table
RxyPPSOutput SourceAvailable Output Ports
14-Pin Devices20-Pin Devices
0x28ADGRDBACABC
0x27ADGRDAACABC
0x26DSM1ACABC
0x25CLKRACABC
0x24NCO1ACABC
0x23TMR0ACABC
0x22I2C1 SDA(1)ACABC
0x21I2C1 SCL(1)ACABC
0x20SPI2 SSACABC
0x1FSPI2 SDOACABC
0x1ESPI2 SCKACABC
0x1DSPI1 SSACABC
0x1CSPI1 SDOACABC
0x1BSPI1 SCK ACABC
0x1AC2OUTACABC
0x19C1OUTACABC
0x18UART3 RTSACABC
0x17UART3 TXDEACABC
0x16UART3 TXACABC
0x15UART2 RTSACABC
0x14UART2 TXDEACABC
0x13UART2 TXACABC
0x12UART1 RTSACABC
0x11UART1 TXDEACABC
0x10UART1 TXACABC
0x0FPWM3S1P2_OUTACABC
0x0EPWM3S1P1_OUTACABC
0x0DPWM2S1P2_OUTACABC
0x0CPWM2S1P1_OUTACABC
0x0BPWM1S1P2_OUTACABC
0x0APWM1S1P1_OUTACABC
0x09CCP1ACABC
0x08CWG1DACABC
0x07CWG1CACABC
0x06CWG1BACABC
0x05CWG1AACABC
0x04CLC4OUTACABC
0x03CLC3OUTACABC
0x02CLC2OUTACABC
0x01CLC1OUTACABC
0x00LATxyACABC
Note:
  1. Bidirectional pin. The corresponding input must select the same pin.