18.2 PPS Outputs

Each I/O pin has a PPS 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. These peripherals include:

  • EUSART (synchronous operation)
  • MSSP (I2C)

Although every pin has its own PPS peripheral selection register, the selections are identical for every pin as shown in RxyPPS.

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 detailed output routing options for each peripheral.

Table 18-2. Peripheral PPS Output Selection Codes
RxyPPSPin Rxy Output SourcePORT To Which Output Can Be Directed
0x13ADGRDBAC
0x12ADGRDAAC
0x11DSMAC
0x10CLKRBC
0x0FTMR0BC
0x0EMSSP1 (SDO/SDA)BC
0x0DMSSP1 (SCK/SCL)BC
0x0CCMP2AC
0x0BCMP1AC
0x0AEUSART1 (DT)BC
0x09EUSART1 (TX/CK)BC
0x08PWM4AC
0x07PWM3AC
0x06CCP2BC
0x05CCP1BC
0x04CWG1DBC
0x03CWG1CBC
0x02CWG1BBC
0x01CWG1ABC
0x00LATxyABC