22.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 22-2. PPS Output Selection Table
RxyPPSOutput SourceAvailable Output Ports
14-Pin Devices20-Pin Devices
0x1FADGRDBACABC
0x1EADGRDAACABC
0x1DI2C1 SDA(1)ACABC
0x1CI2C1 SCL(1)ACABC
0x1BSPI1 SSACABC
0x1ASPI1 SDOACABC
0x19SPI1 SCK ACABC
0x18UART2 TXDEACABC
0x17UART2 RTSACABC
0x16UART2 TXACABC
0x15UART1 TXDEACABC
0x14UART1 RTSACABC
0x13UART1 TXACABC
0x12CLC4OUTACABC
0x11CLC3OUTACABC
0x10CLC2OUTACABC
0x0FCLC1OUTACABC
0x0ECWG1DACABC
0x0DCWG1CACABC
0x0CCWG1BACABC
0x0BCWG1AACABC
0x0APWM2S1P2_OUTACABC
0x09PWM2S1P1_OUTACABC
0x08PWM1S1P2_OUTACABC
0x07PWM1S1P1_OUTACABC
0x06CCP2ACABC
0x05CCP1ACABC
0x04TU16BACABC
0x03TU16AACABC
0x02TMR0ACABC
0x01CLKRACABC
0x00LATxyACABC
Note:
  1. Bidirectional pin. The corresponding input must select the same pin.