Datasheet
2010 Microchip Technology Inc. DS39951C-page 125
PIC24FJ64GA104 FAMILY
10.4.3.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.
Each register contains up to two 5-bit fields, with each
field being associated with one RPn pin (see
Register 10-15 through Register 10-27). 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-3).
Because of the mapping technique, the list of peripherals
for output mapping also includes a null value of ‘000000’.
This permits any given pin to remain disconnected from
the output of any of the pin-selectable peripherals.
TABLE 10-3: SELECTABLE OUTPUT SOURCES (MAPS FUNCTION TO OUTPUT)
Output Function Number
(1)
Function Output Name
0 NULL
(2)
Null
1 C1OUT Comparator 1 Output
2 C2OUT Comparator 2 Output
3 U1TX UART1 Transmit
4U1RTS
(3)
UART1 Request To Send
5 U2TX UART2 Transmit
6U2RTS
(3)
UART2 Request To Send
7 SDO1 SPI1 Data Output
8 SCK1OUT SPI1 Clock Output
9 SS1OUT SPI1 Slave Select Output
10 SDO2 SPI2 Data Output
11 SCK2OUT SPI2 Clock Output
12 SS2OUT SPI2 Slave Select Output
18 OC1 Output Compare 1
19 OC2 Output Compare 2
20 OC3 Output Compare 3
21 OC4 Output Compare 4
22 OC5 Output Compare 5
23-28 (unused) NC
29 CTPLS CTMU Output Pulse
30 C3OUT Comparator 3 Output
31
(unused) NC
Note 1: Setting the RPORx register with the listed value assigns that output function to the associated RPn pin.
2: The NULL function is assigned to all RPn outputs at device Reset and disables the RPn output function.
3: IrDA
®
BCLK functionality uses this output.