Microchip Technology MA330031-2 Data Sheet

Page of 530
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X AND PIC24EPXXXGP/MC20X
DS70000657H-page 180
 2011-2013 Microchip Technology Inc.
11.4.4.2
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 
 through 
). The
value of the bit field corresponds to one of the periph-
erals and that peripheral’s output is mapped to the pin
(see 
 and 
).
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 REMAPPABLE 
OUTPUT FOR RPn
11.4.4.3
Mapping Limitations
The control schema of the peripheral select pins is not lim-
ited 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.
RPxR<5:0>
0
49
1
Default
U1TX Output
SDO2 Output
2
REFCLKO Output
48
QEI1CCMP Output
Output Data
RPn
TABLE 11-3:
OUTPUT SELECTION FOR REMAPPABLE PINS (RPn)
Function
RPxR<5:0>
Output Name
Default PORT
000000
RPn tied to Default Pin
U1TX
000001
RPn tied to UART1 Transmit
U2TX
000011
RPn tied to UART2 Transmit
SDO2
001000
RPn tied to SPI2 Data Output
SCK2
001001
RPn tied to SPI2 Clock Output
SS2
001010
RPn tied to SPI2 Slave Select
C1TX
(
001110
RPn tied to CAN1 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
C1OUT
011000
RPn tied to Comparator Output 1
C2OUT
011001
RPn tied to Comparator Output 2
C3OUT
011010
RPn tied to Comparator Output 3
SYNCO1
(
101101
RPn tied to PWM Primary Time Base Sync Output
QEI1CCMP
(
101111
RPn tied to QEI 1 Counter Comparator Output 
REFCLKO
110001
RPn tied to Reference Clock Output
C4OUT
110010
RPn tied to Comparator Output 4
Note 1:
This function is available in dsPIC33EPXXXMC20X/50X and PIC24EPXXXMC20X devices only.
2:
This function is available in dsPIC33EPXXXGP/MC50X devices only.