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
28-Pin Devices40-Pin Devices48-Pin Devices
0x35RW7A—CA——D—A——D——
0x34RW6—BC—B—D——B—D——
0x33RW5A—CA——D—A——D——
0x32RW4—BC—B—D——B—D——
0x31RW3A—CA——D—A——D——
0x30RW2—BC—B—D——B—D——
0x2FRW1A—CA——D—A——D——
0x2ERW0—BC—B—D——B—D——
0x2DADGRDBABCABCDEABCDEF
0x2CADGRDAABCABCDEABCDEF
0x2BCLKR—BC—BC———B——E—
0x2ANCO1A—CA——D—A——D——
0x29TU16B—BC—B—D——B—D——
0x28TU16A—BC—BC————C——F
0x27TMR0—BC—BC————C——F
0x26I2C2 SDA(1)—BC—B—D——B—D——
0x25I2C2 SCL(1)—BC—B—D——B—D——
0x24I2C1 SDA(1)—BC—BC———BC———
0x23I2C1 SCL(1)—BC—BC———BC———
0x22SPI2 SSA—CA——D—A——D——
0x21SPI2 SDO—BC—B—D——B—D——
0x20SPI2 SCK —BC—B—D——B—D——
0x1FSPI1 SSA—CA——D—A——D——
0x1ESPI1 SDO—BC—BC———BC———
0x1DSPI1 SCK —BC—BC———BC———
0x1CC2OUTA—CA———EA———E—
0x1BC1OUTA—CA——D—A——D——
0x1AUART2 RTS—BC—B—D——B—D——
0x19UART2 TXDE—BC—B—D——B—D——
0x18UART2 TX—BC—B—D——B—D——
0x17UART1 RTS—BC—BC————C——F
0x16UART1 TXDE—BC—BC————C——F
0x15UART1 TX—BC—BC————C——F
0x14PWM3S1P2_OUT—BC—B—D——B—D——
0x13PWM3S1P1_OUT—BC—B—D——B—D——
0x12PWM2S1P2_OUT—BC—B—D——B—D——
0x11PWM2S1P1_OUT—BC—B—D——B—D——
0x10PWM1S1P2_OUT—BC—BC————C——F
0x0FPWM1S1P1_OUT—BC—BC————C——F
0x0ECCP2—BC—B—D——B—D——
0x0DCCP1—BC—B—D——B—D——
0x0CCWG1D—BC—B—D——B—D——
0x0BCWG1C—BC—B—D——B—D——
0x0ACWG1B—BC—B—D——B—D——
0x09CWG1A—BC—BC———BC———
0x08CLC8OUT—BC—B—D——B—D——
0x07CLC7OUT—BC—B—D——B—D——
0x06CLC6OUTA—CA—C——A————F
0x05CLC5OUTA—CA—C——A————F
0x04CLC4OUT—BC—B—D——B—D——
0x03CLC3OUT—BC—B—D——B—D——
0x02CLC2OUTA—CA—C——A————F
0x01CLC1OUTA—CA—C——A————F
0x00LATxyABCABCDEABCDEF
Note:
  1. Bidirectional pin. The corresponding input must select the same pin.