Microchip Technology MA330019-2 Data Sheet

Page of 436
© 2007-2012 Microchip Technology Inc.
DS70292G-page 163
dsPIC33FJ32GP302/304, dsPIC33FJ64GPX02/X04, AND dsPIC33FJ128GPX02/X04
11.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 
). The
value of the bit field corresponds to one of the
peripherals, 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
technique. This permits any given pin to remain
unconnected from the output of any of the pin
selectable peripherals. 
FIGURE 11-3:
MULTIPLEXING OF 
REMAPPABLE OUTPUT 
FOR RPn
TABLE 11-2:
OUTPUT SELECTION FOR REMAPPABLE PIN (RPn) 
0
21
3
RPnR<4:0>
default
U1TX Output enable
U1RTS Output enable 4
OC4 Output
0
21
3
default
U1TX Output
U1RTS Output 4
OC4 Output
Output Enable
Output Data
RPn
Function
RPnR<4:0>
Output Name
NULL
00000
RPn tied to default port pin
C1OUT
00001
RPn tied to Comparator1 Output
C2OUT
00010
RPn tied to Comparator2 Output
U1TX
00011
RPn tied to UART1 Transmit
U1RTS
00100
RPn tied to UART1 Ready To Send
U2TX
00101
RPn tied to UART2 Transmit
U2RTS
00110
RPn tied to UART2 Ready To Send
SDO1
00111
RPn tied to SPI1 Data Output
SCK1
01000
RPn tied to SPI1 Clock Output
SS1
01001
RPn tied to SPI1 Slave Select Output
SDO2
01010
RPn tied to SPI2 Data Output
SCK2
01011
RPn tied to SPI2 Clock Output
SS2
01100
RPn tied to SPI2 Slave Select Output
CSDO
01101
RPn tied to DCI Serial Data Output
CSCK
01110
RPn tied to DCI Serial Clock Output
COFS
01111
RPn tied to DCI Frame Sync Output
C1TX
10000
RPn tied to ECAN1 Transmit
OC1
10010
RPn tied to Output Compare 1
OC2
10011
RPn tied to Output Compare 2
OC3
10100
RPn tied to Output Compare 3
OC4
10101
RPn tied to Output Compare 4