Microchip Technology MA330025-1 Data Sheet

Page of 622
 2009-2012 Microchip Technology Inc.
DS70616G-page 215
dsPIC33EPXXX(GP/MC/MU)806/810/814 and PIC24EPXXX(GP/GU)810/814
11.4.4.1
Output Mapping
In contrast to inputs, the outputs of the Peripheral Pin
Select options are mapped on the basis of the pin. In
this case, a control register associated with a particular
pin dictates the peripheral output to be mapped. The
RPORx registers are used to control output mapping.
Like the RPINRx registers, each register contains sets
of 6 bit fields, with each set associated with one RPn
pin (see 
). The
value of the bit field corresponds to one of the periph-
erals and that peripheral’s output is mapped to the pin
(see 
).
A null output is associated with the Output Register
Reset value of ‘0’. This is done to ensure that remap-
pable outputs remain disconnected from all output pins
by default.
FIGURE 11-3:
MULTIPLEXING OF 
REMAPPABLE OUTPUT 
FOR RPn
RPnR<5:0>
0
49
1
Default
U1TX Output
U1RTS Output
2
REFCLK Output
48
QEI2CCMP Output
Output Data
RPn
TABLE 11-3:
OUTPUT SELECTION FOR REMAPPABLE PINS (RPn)
Function
RPnR<5:0>
Output Name
DEFAULT PORT
000000
RPn tied to Default Pin
U1TX
000001
RPn tied to UART1 Transmit
U1RTS
000010
RPn tied to UART1 Ready-to-Send
U2TX
000011
RPn tied to UART2 Transmit
U2RTS
000100
RPn tied to UART2 Ready-to-Send
SDO1
000101
RPn tied to SPI1 Data Output
SCK1
000110
RPn tied to SPI1 Clock Output
SS1
000111
RPn tied to SPI1 Slave Select
SS2
001010
RPn tied to SPI2 Slave Select
CSDO
001011
RPn tied to DCI Data Output
CSCK
001100
RPn tied to DCI Clock Output
COFS
001101
RPn tied to DCI FSYNC Output
C1TX
001110
RPn tied to CAN1 Transmit
C2TX
001111
RPn tied to CAN2 Transmit
OC1
010000
RPn tied to Output Compare 1 Output
OC2
010001
RPn tied to Output Compare 2 Output
OC3
010010
RPn tied to Output Compare 3 Output
OC4
010011
RPn tied to Output Compare 4 Output
OC5
010100
RPn tied to Output Compare 5 Output
OC6
010101
RPn tied to Output Compare 6 Output
OC7
010110
RPn tied to Output Compare 7 Output
OC8
010111
RPn tied to Output Compare 8 Output
C1OUT
011000
RPn tied to Comparator Output 1
C2OUT
011001
RPn tied to Comparator Output 2
C3OUT
011010
RPn tied to Comparator Output 3
U3TX
011011
RPn tied to UART3 Transmit
U3RTS
011100
RPn tied to UART3 Ready-to-Send
Note 1: This function is available in dsPIC33EPXXX(MC/MU)806/810/814 devices only.