9.7 Virtual Connections

The dsPIC33CK512MPT608 devices support six virtual RPn pins (RP176-RP181), which are identical in functionality to all other RPn pins, with the exception of pinouts. These six pins are internal to the devices and are not connected to a physical device pin.

These pins provide a simple way for inter-peripheral connection without utilizing a physical pin. For example, the output of the analog comparator can be connected to RP176 and the PWM Fault input can be configured for RP176 as well. This configuration allows the analog comparator to trigger PWM Faults without the use of an actual physical pin on the device.

Table 9-4. Selectable Input Sources (Maps Input to Function)
Input Name(1)Function NameRegisterRegister Bits
External Interrupt 1INT1RPINR0INT1R[7:0]
External Interrupt 2INT2RPINR1INT2R[7:0]
External Interrupt 3INT3RPINR1INT3R[7:0]
Timer1 External ClockT1CKRPINR2T1CK[7:0]
SCCP Timer1TCKI1RPINR3TCKI1R[7:0]
SCCP Capture 1ICM1RPINR3ICM1R[7:0]
SCCP Timer2TCKI2RPINR4TCKI2R[7:0]
SCCP Capture 2ICM2RPINR4ICM2R[7:0]
SCCP Timer3TCKI3RPINR5TCKI3R[7:0]
SCCP Capture 3ICM3RPINR5ICM3R[7:0]
SCCP Timer4TCKI4RPINR6TCKI4R[7:0]
SCCP Capture 4ICM4RPINR6ICM4R[7:0]
SCCP Timer5TCKI5RPINR7TCKI5R[7:0]
SCCP Capture 5ICM5RPINR7ICM5R[7:0]
SCCP Timer6TCKI6RPINR8TCKI6R[7:0]
SCCP Capture 6ICM6RPINR8ICM6R[7:0]
SCCP Timer7TCKI7RPINR9TCKI7R[7:0]
SCCP Capture 7ICM7RPINR9ICM7R[7:0]
SCCP Timer8TCKI8RPINR10TCKI8R[7:0]
SCCP Capture 8ICM8RPINR10ICM8R[7:0]
xCCP Fault AOCFARPINR11OCFAR[7:0]
xCCP Fault BOCFBRPINR11OCFBR[7:0]
PWM PCI 8PCI8RPINR12PCI8R[7:0]
PWM PCI 9PCI9RPINR12PCI9R[7:0]
PWM PCI 10PCI10RPINR13PCI10R[7:0]
PWM PCI 11PCI11RPINR13PCI11R[7:0]
QEI1 Input AQEIA1RPINR14QEIA1R[7:0]
QEI1 Input BQEIB1RPINR14QEIB1R[7:0]
QEI1 Index 1 InputQEINDX1RPINR15QEINDX1R[7:0]
QEI1 Home 1 InputQEIHOM1RPINR15QEIHOM1R[7:0]
QEI2 Input AQEIA2RPINR16QEIA2R[7:0]
QEI2 Input BQEIB2RPINR16QEIB2R[7:0]
QEI2 Index 1 InputQEINDX2RPINR17QEINDX2R[7:0]
QEI2 Home 1 InputQEIHOM2RPINR17QEIHOM2R[7:0]
UART1 ReceiveU1RXRPINR18U1RXR[7:0]
UART1 Data-Set-ReadyU1DSRRPINR18U1DSRR[7:0]
UART2 ReceiveU2RXRPINR19U2RXR[7:0]
UART2 Data-Set-ReadyU2DSRRPINR19U2DSRR[7:0]
SPI1 Data InputSDI1RPINR20SDI1R[7:0]
SPI1 Clock InputSCK1INRPINR20SCK1R[7:0]
SPI1 Client SelectSS1RPINR21SS1R[7:0]
Reference Clock InputREFOIRPINR21REFOIR[7:0]
SPI2 Data InputSDI2RPINR22SDI2R[7:0]
SPI2 Clock InputSCK2INRPINR22SCK2R[7:0]
SPI2 Client SelectSS2RPINR23SS2R[7:0]
QEI3 Input AQEIA3RPINR24QEIA3R[7:0]
QEI3 Input BQEIB3RPINR24QEIB3R[7:0]
QEI3 Index 1 InputQEINDX3RPINR25QEINDX3R[7:0]
QEI3 Home 1 InputQEIHOM3RPINR25QEIHOM3R[7:0]
CAN1 InputCAN1RXRPINR26CAN1RXR[7:0]
CAN2 InputCAN2RXRPINR26CAN2RXR[7:0]
UART3 ReceiveU3RXRPINR27U3RXR[7:0]
UART3 Data-Set-ReadyU3DSRRPINR27U3DSRR[7:0]
SPI3 Data InputSDI3RPINR29SDI3R[7:0]
SPI3 Clock InputSCK3INRPINR29SCK3R[7:0]
SPI3 Client SelectSS3RPINR30SS3R[7:0]
MCCP Timer9TCKI9RPINR32TCKI9R[7:0]
MCCP Capture 9ICM9RPINR33ICM9R[7:0]
xCCP Fault COCFCRPINR37OCFCR[7:0]
PWM Input 17PCI17RPINR37PCI17R[7:0]
PWM Input 18PCI18RPINR38PCI18R[7:0]
PWM Input 12PCI12RPINR42PCI12R[7:0]
PWM Input 13PCI13RPINR42PCI13R[7:0]
PWM Input 14PCI14RPINR43PCI14R[7:0]
PWM Input 15PCI15RPINR43PCI15R[7:0]
PWM Input 16PCI16RPINR44PCI16R[7:0]
SENT1 InputSENT1RPINR44SENT1R[7:0]
SENT2 InputSENT2RPINR45SENT2R[7:0]
CLC Input ACLCINARPINR45CLCINAR[7:0]
CLC Input BCLCINBRPINR46CLCINBR[7:0]
CLC Input CCLCINCRPINR46CLCINCR[7:0]
CLC Input DCLCINDRPINR47CLCINDR[7:0]
ADC Trigger Input (ADTRIG31)ADCTRGRPINR47ADCTRGR[7:0]
xCCP Fault DOCFDRPINR48OCFDR[7:0]
UART1 Clear-to-SendU1CTSRPINR48U1CTSR[7:0]
UART2 Clear-to-SendU2CTSRPINR49U2CTSR[7:0]
UART3 Clear-to-SendU3CTSRPINR49U3CTSR[7:0]
Note:
  1. Unless otherwise noted, all inputs use the Schmitt Trigger input buffers.