Datasheet
PIC18F46J11 FAMILY
DS39932D-page 152 2011 Microchip Technology Inc.
10.7.3.2 Output Mapping
In contrast to inputs, the outputs of the PPS 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. 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-
14).
Because of the mapping technique, the list of
peripherals for output mapping also includes a null
value of ‘00000’. This permits any given pin to remain
disconnected from the output of any of the pin
selectable peripherals.
TABLE 10-14: SELECTABLE OUTPUT SOURCES (MAPS FUNCTION TO OUTPUT)
Function
Output Function
Number
(1)
Output Name
NULL 0 NULL
(2)
C1OUT 1 Comparator 1 Output
C2OUT 2 Comparator 2 Output
TX2/CK2 5 EUSART2 Asynchronous Transmit/Asynchronous Clock Output
DT2 6 EUSART2 Synchronous Transmit
SDO2 9 SPI2 Data Output
SCK2 10 SPI2 Clock Output
SSDMA 12 SPI DMA Slave Select
ULPOUT 13 Ultra Low-Power Wake-up Event
CCP1/P1A 14 ECCP1 Compare or PWM Output Channel A
P1B 15 ECCP1 Enhanced PWM Output, Channel B
P1C 16 ECCP1 Enhanced PWM Output, Channel C
P1D 17 ECCP1 Enhanced PWM Output, Channel D
CCP2/P2A 18 ECCP2 Compare or PWM Output
P2B 19 ECCP2 Enhanced PWM Output, Channel B
P2C 20 ECCP2 Enhanced PWM Output, Channel C
P2D 21 ECCP2 Enhanced PWM Output, Channel D
Note 1: Value assigned to the RPn<4:0> pins corresponds to the peripheral output function number.
2: The NULL function is assigned to all RPn outputs at device Reset and disables the RPn output function.