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.
RxyPPS | Output Source | Available Output Ports | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28-Pin Devices | 40-Pin Devices | 48-Pin Devices | |||||||||||||
0x35 | RW7 | A | — | C | A | — | — | D | — | A | — | — | D | — | — |
0x34 | RW6 | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x33 | RW5 | A | — | C | A | — | — | D | — | A | — | — | D | — | — |
0x32 | RW4 | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x31 | RW3 | A | — | C | A | — | — | D | — | A | — | — | D | — | — |
0x30 | RW2 | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x2F | RW1 | A | — | C | A | — | — | D | — | A | — | — | D | — | — |
0x2E | RW0 | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x2D | ADGRDB | A | B | C | A | B | C | D | E | A | B | C | D | E | F |
0x2C | ADGRDA | A | B | C | A | B | C | D | E | A | B | C | D | E | F |
0x2B | CLKR | — | B | C | — | B | C | — | — | — | B | — | — | E | — |
0x2A | NCO1 | A | — | C | A | — | — | D | — | A | — | — | D | — | — |
0x29 | TU16B | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x28 | TU16A | — | B | C | — | B | C | — | — | — | — | C | — | — | F |
0x27 | TMR0 | — | B | C | — | B | C | — | — | — | — | C | — | — | F |
0x26 | I2C2 SDA(1) | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x25 | I2C2 SCL(1) | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x24 | I2C1 SDA(1) | — | B | C | — | B | C | — | — | — | B | C | — | — | — |
0x23 | I2C1 SCL(1) | — | B | C | — | B | C | — | — | — | B | C | — | — | — |
0x22 | SPI2 SS | A | — | C | A | — | — | D | — | A | — | — | D | — | — |
0x21 | SPI2 SDO | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x20 | SPI2 SCK | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x1F | SPI1 SS | A | — | C | A | — | — | D | — | A | — | — | D | — | — |
0x1E | SPI1 SDO | — | B | C | — | B | C | — | — | — | B | C | — | — | — |
0x1D | SPI1 SCK | — | B | C | — | B | C | — | — | — | B | C | — | — | — |
0x1C | C2OUT | A | — | C | A | — | — | — | E | A | — | — | — | E | — |
0x1B | C1OUT | A | — | C | A | — | — | D | — | A | — | — | D | — | — |
0x1A | UART2 RTS | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x19 | UART2 TXDE | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x18 | UART2 TX | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x17 | UART1 RTS | — | B | C | — | B | C | — | — | — | — | C | — | — | F |
0x16 | UART1 TXDE | — | B | C | — | B | C | — | — | — | — | C | — | — | F |
0x15 | UART1 TX | — | B | C | — | B | C | — | — | — | — | C | — | — | F |
0x14 | PWM3S1P2_OUT | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x13 | PWM3S1P1_OUT | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x12 | PWM2S1P2_OUT | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x11 | PWM2S1P1_OUT | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x10 | PWM1S1P2_OUT | — | B | C | — | B | C | — | — | — | — | C | — | — | F |
0x0F | PWM1S1P1_OUT | — | B | C | — | B | C | — | — | — | — | C | — | — | F |
0x0E | CCP2 | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x0D | CCP1 | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x0C | CWG1D | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x0B | CWG1C | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x0A | CWG1B | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x09 | CWG1A | — | B | C | — | B | C | — | — | — | B | C | — | — | — |
0x08 | CLC8OUT | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x07 | CLC7OUT | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x06 | CLC6OUT | A | — | C | A | — | C | — | — | A | — | — | — | — | F |
0x05 | CLC5OUT | A | — | C | A | — | C | — | — | A | — | — | — | — | F |
0x04 | CLC4OUT | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x03 | CLC3OUT | — | B | C | — | B | — | D | — | — | B | — | D | — | — |
0x02 | CLC2OUT | A | — | C | A | — | C | — | — | A | — | — | — | — | F |
0x01 | CLC1OUT | A | — | C | A | — | C | — | — | A | — | — | — | — | F |
0x00 | LATxy | A | B | C | A | B | C | D | E | A | B | C | D | E | F |
Note:
- Bidirectional pin. The corresponding input must select the same pin.