English
Language : 

PIC24HJ12GP201 Datasheet, PDF (95/234 Pages) Microchip Technology – High-Performance, 16-Bit Microcontrollers
PIC24HJ12GP201/202
9.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.
Like the RPINRx registers, each register contains sets
of 5-bit fields, with each set associated with one RPn
pin (see Register 9-10 through Register 9-17). The
value of the bit field corresponds to one of the periph-
erals, and that peripheral’s output is mapped to the pin
(see Table 9-2 and Figure 9-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 9-3:
MULTIPLEXING OF REMAPPABLE OUTPUT FOR RPn
RPnR<4:0>
default
0
U1TX Output enable 3
U1RTS Output enable 4
Output enable
OC1 Output enable 18
OC2 Output enable
19
default
0
U1TX Output
3
U1RTS Output 4
Output Data
OC1 Output 18
OC2 Output 19
RPn
TABLE 9-2: OUTPUT SELECTION FOR REMAPPABLE PIN (RPn)
Function
RPnR<4:0>
Output Name
NULL
U1TX
U1RTS
SDO1
SCK1OUT
SS1OUT
OC1
OC2
00000
00011
00100
00111
01000
01001
10010
10011
RPn tied to default port pin
RPn tied to UART 1 Transmit
RPn tied to UART 1 Ready To Send
RPn tied to SPI 1 Data Output
RPn tied to SPI 1 Clock Output
RPn tied to SPI 1 Slave Select Output
RPn tied to Output Compare 1
RPn tied to Output Compare 2
© 2007 Microchip Technology Inc.
Preliminary
DS70282B-page 93