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.
RxyPPS | Output Source | Available Output Ports | ||
---|---|---|---|---|
28-Pin Devices | ||||
0x09 | TMR0 | — | B | C |
0x08 | SDA1/SDO1(1) | — | B | C |
0x07 | SCL1/SCK1(1) | — | B | C |
0x06 | DT1 | — | B | C |
0x05 | TX1/CK1 | — | B | C |
0x04 | PWM4 | — | B | C |
0x03 | PWM3 | — | B | C |
0x02 | CCP2 | — | B | C |
0x01 | CCP1 | — | B | C |
0x00 | LATxy | A | B | C |
Note:
- Bidirectional pin. The corresponding input must select the same pin.