Microchip Technology DM330023-2 Data Sheet

Page of 330
© 2007-2012 Microchip Technology Inc.
DS70283K-page 121
dsPIC33FJ32MC202/204 and dsPIC33FJ16MC304
10.6.2.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 5-bit fields, with each set associated with one RPn
pin (see 
value of the bit field corresponds to one of the periph-
erals, and that peripheral’s output is mapped to the pin
(see 
 and 
). 
The list of peripherals for output mapping also includes
a null value of 00000  because of the mapping tech-
nique. This permits any given pin to remain uncon-
nected from the output of any of the pin selectable
peripherals.
FIGURE 10-3:
MULTIPLEXING OF 
REMAPPABLE OUTPUT 
FOR RPn
TABLE 10-2:
OUTPUT SELECTION FOR REMAPPABLE PIN (RPn) 
0
26
3
RPnR<4:0>
Default
U1TX Output Enable
U1RTS Output Enable 4
UPDN Output Enable
19
OC2 Output Enable
0
26
3
Default
U1TX Output
U1RTS Output 4
UPDN Output
19
OC2 Output
Output Enable
Output Data
RPn
Function
RPnR<4:0>
Output Name
NULL
00000
RPn tied to default port pin
U1TX
00011
RPn tied to UART1 Transmit
U1RTS
00100
RPn tied to UART1 Ready To Send
SDO1
00111
RPn tied to SPI1 Data Output
SCK1OUT
01000
RPn tied to SPI1 Clock Output
SS1OUT
01001
RPn tied to SPI1 Slave Select Output
OC1
10010
RPn tied to Output Compare 1
OC2
10011
RPn tied to Output Compare 2
UPDN
11010
RPn tied to QEI direction (UPDN) status