18.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 18-2. PPS Output Selection Table
RxyPPS Output Source Available Output Ports
28-Pin Devices 40-Pin Devices
0x23 ADGRDB A C A C
0x22 ADGRDA A C A C
0x21 CLKR B C B C
0x20 NCO1 A C A D
0x1F TMR0 B C B C
0x1E SDA2/SDO2(1) B C B D
0x1D SCL2/SCK2(1) B C B D
0x1C SDA1/SDO1(1) B C B C
0x1B SCL1/SCK1(1) B C B C
0x1A C2OUT A C A E
0x19 C1OUT A C A D
0x18 DT2 B C B D
0x17 Reserved
0x16 TX2/CK2 B C B D
0x15 DT1 B C B C
0x14 Reserved
0x13 TX1/CK1 B C B C
0x12 PWM4S1P2_OUT B C B C
0x11 PWM4S1P1_OUT B C B C
0x10 PWM3S1P2_OUT B C B D
0x0F PWM3S1P1_OUT B C B D
0x0E PWM2S1P2_OUT B B D
0x0D PWM2S1P1_OUT B B D
0x0C PWM1S1P2_OUT B C B C
0x0B PWM1S1P1_OUT B C B C
0x0A CCP2 B C B C
0x09 CCP1 B C B C
0x08 CWG1D B C B D
0x07 CWG1C B C B D
0x06 CWG1B B C B D
0x05 CWG1A B C B C
0x04 CLC4OUT B C B D
0x03 CLC3OUT B C B D
0x02 CLC2OUT A C A C
0x01 CLC1OUT A C A C
0x00 LATxy A B C A B C D E
Note:
  1. Bidirectional pin. The corresponding input must select the same pin.