Datasheet

© 2008-2012 Microchip Technology Inc. DS70318F-page 157
dsPIC33FJ06GS101/X02 and dsPIC33FJ16GSX02/X04
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 6-bit fields, with each set associated with one RPn
pin (see Register 10-15 through Register 10-31). The
value of the bit field corresponds to one of the
peripherals, and that peripheral’s output is mapped to
the pin (see Table 10-2 and Figure 10-3).
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 10-3: MULTIPLEXING OF
REMAPPABLE OUTPUT
FOR RPn
TABLE 10-2: OUTPUT SELECTION FOR REMAPPABLE PIN (RPn)
0
45
3
RPORn<5:0>
Default
U1TX Output Enable
U1RTS Output Enable
4
PWM4L Output Enable
19
OC2 Output Enable
0
45
3
Default
U1TX Output
U1RTS Output
4
PWM4L Output
19
OC2 Output
Output Enable
Output Data
RPn
Function RPORn<5:0> Output Name
NULL 000000 RPn tied to default port pin
U1TX 000011 RPn tied to UART1 transmit
U1RTS
000100 RPn tied to UART1 ready to send
SDO1 000111 RPn tied to SPI1 data output
SCK1 001000 RPn tied to SPI1 clock output
SS1
001001 RPn tied to SPI1 slave select output
OC1 010010 RPn tied to Output Compare 1
OC2 010011 RPn tied to Output Compare 2
SYNCO1 100101 RPn tied to external device synchronization signal via PWM master time base
REFCLKO 100110 REFCLK output signal
ACMP1 100111 RPn tied to Analog Comparator Output 1
ACMP2 101000 RPn tied to Analog Comparator Output 2
ACMP3 101001 RPn tied to Analog Comparator Output 3
ACMP4 101010 RPn tied to Analog Comparator Output 4
PWM4H 101100 RPn tied to PWM output pins associated with PWM Generator 4
PWM4L 101101 RPn tied to PWM output pins associated with PWM Generator 4