8.9 Mapping Limitations

The control schema of the peripheral select pins is not limited to a small range of fixed peripheral configurations. There are no mutual or hardware-enforced lockouts between any of the peripheral mapping SFRs. Literally, any combination of peripheral mappings, across any or all of the RPn pins, is possible. This includes both many-to-one and one-to-many mappings of peripheral inputs and outputs to pins. While such mappings may be technically possible from a configuration point of view, they may not be supportable from an electrical point of view (see Table 8-5).

Table 8-5. Remappable Output Pin Registers(1)
RegisterdsPIC33CK256/128: RP PindsPIC33CK256/128: I/O PortdsPIC33CK64/32: RP PindsPIC33CK64/32: I/O Port
RPOR0[5:0]RP32Port Pin RB0RP32Port Pin RB0
RPOR0[13:8]RP33Port Pin RB1RP33Port Pin RB1
RPOR1[5:0]RP34Port Pin RB2RP34Port Pin RB2
RPOR1[13:8]RP35Port Pin RB3RP35Port Pin RB3
RPOR2[5:0]RP36Port Pin RB4RP36Port Pin RB4
RPOR2[13:8]RP37Port Pin RB5RP37Port Pin RB5
RPOR3[5:0]RP38Port Pin RB6RP38Port Pin RB6
RPOR3[13:8]RP39Port Pin RB7RP39Port Pin RB7
RPOR4[5:0]RP40Port Pin RB8RP40Port Pin RB8
RPOR4[13:8]RP41Port Pin RB9RP41Port Pin RB9
RPOR5[5:0]RP42Port Pin RB10RP42Port Pin RB10
RPOR5[13:8]RP43Port Pin RB11RP43Port Pin RB11
RPOR6[5:0]RP44Port Pin RB12RP44Port Pin RB12
RPOR6[13:8]RP45Port Pin RB13RP45Port Pin RB13
RPOR7[5:0]RP46Port Pin RB14RP46Port Pin RB14
RPOR7[13:8]RP47Port Pin RB15RP47Port Pin RB15
RPOR8[5:0]RP48Port Pin RC0RP48Port Pin RC0
RPOR8[13:8]RP49Port Pin RC1RP49Port Pin RC1
RPOR9[5:0]RP50Port Pin RC2RP50Port Pin RC2
RPOR9[13:8]RP51Port Pin RC3RP51Port Pin RC3
RPOR10[5:0]RP52Port Pin RC4RP52Port Pin RC4
RPOR10[13:8]RP53Port Pin RC5RP53Port Pin RC5
RPOR11[5:0]RP54Port Pin RC6RP54Port Pin RC6
RPOR11[13:8]RP55Port Pin RC7RP55Port Pin RC7
RPOR12[5:0]RP56Port Pin RC8RP56Port Pin RC8
RPOR12[13:8]RP57Port Pin RC9RP57Port Pin RC9
RPOR13[5:0]RP58Port Pin RC10RP58Port Pin RC10
RPOR13[13:8]RP59Port Pin RC11RP59Port Pin RC11
RPOR14[5:0]RP60Port Pin RC12RP60Port Pin RC12
RPOR14[13:8]RP61Port Pin RC13RP61Port Pin RC13
RPOR15[5:0]RP62Port Pin RC14RP65Port Pin RD1
RPOR15[13:8]RP63Port Pin RC15RP72Port Pin RD8
RPOR16[5:0]RP64Port Pin RD0RP74Port Pin RD10
RPOR16[13:8]RP65Port Pin RD1RP77Port Pin RD13
RPOR17[5:0]RP66Port Pin RD2RP176Virtual pin RPV0
RPOR17[13:8]RP67Port Pin RD3RP177Virtual pin RPV1
RPOR18[5:0]RP68Port Pin RD4RP178Virtual pin RPV2
RPOR18[13:8]RP69Port Pin RD5RP179Virtual pin RPV3
RPOR19[5:0]RP70Port Pin RD6RP180Virtual pin RPV4
RPOR19[13:8]RP71Port Pin RD7RP181Virtual pin RPV5
RPOR20[5:0]RP72Port Pin RD8
RPOR20[13:8]RP73Port Pin RD9
RPOR21[5:0]RP74Port Pin RD10
RPOR21[13:8]RP75Port Pin RD11
RPOR22[5:0]RP76Port Pin RD12
RPOR22[13:8]RP77Port Pin RD13
RPOR23[5:0]RP78Port Pin RD14
RPOR23[13:8]RP79Port Pin RD15
RPOR24[5:0]RP176Virtual pin RPV0
RPOR24[13:8]RP177Virtual pin RPV1
RPOR25[5:0]RP178Virtual pin RPV2
RPOR25[13:8]RP179Virtual pin RPV3
RPOR26[5:0]RP180Virtual pin RPV4
RPOR26[13:8]RP181Virtual pin RPV5
Note:
  1. Not all RPn pins are available on all packages. Make sure the selected device variant has the feature 
available on the device.
  2. Availability is dependent on supported I/O ports. Refer to Table 8-1 for availability on device variants.
Table 8-6. Output Selection for Remappable Pins (RPn)(1)
ValuedsPIC33CK256/128: FunctiondsPIC33CK64/32: FunctionOutput Name
0Default PORTDefault PORTRPn tied to Default Pin
1U1TXU1TXRPn tied to UART1 Transmit
2U1RTSU1RTSRPn tied to UART1 Request-to-Send
3U2TXU2TXRPn tied to UART2 Transmit
4U2RTSU2RTSRPn tied to UART2 Request-to-Send
5SDO1SDO1RPn tied to SPI1 Data Output
6SCK1SCK1RPn tied to SPI1 Clock Output
7SS1SS1RPn tied to SPI1 Slave Select
8SDO2SDO2RPn tied to SPI2 Data Output
9SCK2SCK2RPn tied to SPI2 Clock Output
10SS2SS2RPn tied to SPI2 Slave Select
14REFCLKOREFCLKORPn tied to Reference Clock Output
15OCM1OCM1ARPn tied to SCCP1 Output
16OCM2OCM2ARPn tied to SCCP2 Output
17OCM3OCM3ARPn tied to SCCP3 Output
18OCM4OCM4ARPn tied to SCCP4 Output
21CAN1TXReservedRPn tied to CAN1 Output
23CMP1CMP1RPn tied to Comparator 1 Output
27U3TXU3TXRPn tied to UART3 Transmit
28U3RTSU3RTSRPn tied to UART3 Request-to-Send
34PWM4HPWM4HRPn tied to PWM4H Output
35PWM4LPWM4LRPn tied to PWM4L Output
36PWMEAPWMEARPn tied to PWM Event A Output
37PWMEBPWMEBRPn tied to PWM Event B Output
38QEICMPQEICMP1RPn tied to QEI Comparator Output
40CLC1OUTCLC1OUTRPn tied to CLC1 Output
41CLC2OUTCLC2OUTRPn tied to CLC2 Output
44PWMECPWMECRPn tied to PWM Event C Output
45PWMEDPWMEDRPn tied to PWM Event D Output
46PTGTRG24PTGTRG24PTG Trigger Output 24
47PTGTRG25PTGTRG25PTG Trigger Output 25
48SENT1OUTSENT1OUTRPn tied to SENT1 Output
59CLC3OUTCLC3OUTRPn tied to CLC3 Output
60CLC4OUTCLC4OUTRPn tied to CLC4 Output
61U1DTRU1DTRData Terminal Ready Output 1
62U2DTRU2DTRData Terminal Ready Output 2
63U3DTRU3DTRRPn tied to UART3 DTR
Note:
  1. Not all RPn pins are available on all packages. Make sure the selected device variant has the feature 
available on the device.