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
0x1FADGRDBA—CABC
0x1EADGRDAA—CABC
0x1DI2C1 SDA(1)A—CABC
0x1CI2C1 SCL(1)A—CABC
0x1BSPI1 SSA—CABC
0x1ASPI1 SDOA—CABC
0x19SPI1 SCK A—CABC
0x18UART2 TXDEA—CABC
0x17UART2 RTSA—CABC
0x16UART2 TXA—CABC
0x15UART1 TXDEA—CABC
0x14UART1 RTSA—CABC
0x13UART1 TXA—CABC
0x12CLC4OUTA—CABC
0x11CLC3OUTA—CABC
0x10CLC2OUTA—CABC
0x0FCLC1OUTA—CABC
0x0ECWG1DA—CABC
0x0DCWG1CA—CABC
0x0CCWG1BA—CABC
0x0BCWG1AA—CABC
0x0APWM2S1P2_OUTA—CABC
0x09PWM2S1P1_OUTA—CABC
0x08PWM1S1P2_OUTA—CABC
0x07PWM1S1P1_OUTA—CABC
0x06CCP2A—CABC
0x05CCP1A—CABC
0x04TU16BA—CABC
0x03TU16AA—CABC
0x02TMR0A—CABC
0x01CLKRA—CABC
0x00LATxyA—CABC
Note:
  1. Bidirectional pin. The corresponding input must select the same pin.