19.2 PPS Inputs

Each digital peripheral has a dedicated PPS Peripheral Input Selection (xxxPPS) register with which the input pin to the peripheral is selected. Devices that have 20 leads or less (8/14/16/20) allow PPS routing to any I/O pin, while devices with 28 leads or more allow PPS routing to I/Os contained within two ports (see the table below). The outputs of the Signal Routing Port (SRPORT) can also be used as inputs to other peripherals using PPS.

Important: The notation “xxx” in the generic register name is a placeholder for the peripheral identifier. For example, xxx = T0CKI for the T0CKIPPS register.

Multiple peripherals can operate from the same source simultaneously. Port reads always return the pin level regardless of peripheral PPS selection. If a pin also has analog functions associated, the ANSEL bit for that pin must be cleared to enable the digital input buffer.

Table 19-1. PPS Input Selection Table
PeripheralPPS Input RegisterDefault Pin Selection at PORRegister Reset Value at POR
14/16-Pin Devices20-Pin Devices14/16-Pin Devices20-Pin Devices
External Interrupt INTPPSRA2‘b00 010
Timer0 ClockT0CKIPPSRA2‘b00 010
Timer1 ClockT1CKIPPSRA5‘b00 101
Timer1 GateT1GPPSRA4‘b00 100
Timer3 ClockT3CKIPPSRC5‘b10 101
Timer3 GateT3GPPSRC4‘b10 100
Timer2 InputT2INPPSRA5‘b00 101
Timer4 InputT4INPPSRC1‘b10 001
CCP1CCP1PPSRC5‘b10 101
CCP2CCP2PPSRC3‘b10 011
PWM Input 0PWMIN0PPSRC5‘b10 101
PWM Input 1PWMIN1PPSRC3‘b10 011
PWM1 External ResetPWMIN1ERSPPSRA5‘b00 101
PWM2 External ResetPWMIN2ERSPPSRC1‘b10 001
CWG1CWG1PPSRA2‘b00 010
CLCIN0CLCIN0PPSRC3RA2‘b10 011‘b00 010
CLCIN1CLCIN1PPSRC4RC3‘b10 100‘b10 011
CLCIN2CLCIN2PPSRC1RB4‘b10 001‘b01 100
CLCIN3CLCIN3PPSRA5RB5‘b00 101‘b01 101
SCL1/SCK1SSP1CLKPPS(1)RC0RB6‘b10 000‘b01 110
SDA1/SDI1SSP1DATPPS(1)RC1RB4‘b10 001‘b01 100
SS1SSP1SSPPSRC3RC6‘b10 011‘b10 110
SCL2/SCK2SSP2CLKPPS(1)RC4RB7‘b10 100‘b01 111
SDA2/SDI2SSP2DATPPS(1)RC5RB5‘b10 101‘b01 101
SS2SSP2SSPPSRA0RA1‘b00 000‘b00 001
RX1/DT1RX1PPSRC5RB5‘b10 101‘b01 101
CK1CK1PPSRC4RB7‘b10 100‘b01 111
RX2/DT2RX2PPSRC1‘b010 001
CK2CK2PPSRC0‘b010 000
ADC Conversion TriggerADACTPPSRC2‘b010 010
Signal Routing Port Input 0PORTWIN0PPSRA0‘b000 000
Signal Routing Port Input 1PORTWIN1PPSRA1‘b000 001
Signal Routing Port Clock InputPORTWCLKPPSRA2‘b000 010
Analog Peripheral Manager APMCLKPPSRC4‘b010 100
Note:
  1. Bidirectional pin. The corresponding output must select the same pin.