6.5.5.2 Remappable Output
The remappable pin output assigns a peripheral output function to an output pin. When the group for the output pin is identified, see the following table, which shows peripheral output functions and their group.
Each remappable output can be programmed to an output function that is from its same output group number. For example, if RPA0 is part of Group 2, then the user can program it to have any Group 2 output function on its pin. Therefore, for a given output peripheral signal, the user must first choose which remappable pin to use, choose a group number for that pin, then program the control registers for that pin. For example, RPA<0-10, 13, 14> G<1, 2, 3, 4> R or RPB<0-13> G<1, 2, 3, 4>R. See Remappable Output Pin Configuration – Group 1, Remappable Output Pin Configuration – Group 2, Remappable Output Pin Configuration – Group 3 and Remappable Output Pin Configuration – Group 4 tables in the Output Mapping in PIC32CX-BZ3 Family of Devices from Related Links.
The user must follow the rules for which group belong to which pin such that multiple peripherals are not driving the same pin from different groups. For instance, pin RPA0 (PA0) as an output belongs to Group 2 and Group 3. If the peripheral driving the signal to RPA0 is coming from Group 2, the software must ensure that all Group 3 signals for RPA0 are disabled with an OFF value in the corresponding RPA0G3R control register.
A null output is associated with the output register Reset value of ‘0’. By default, do this to ensure that remappable outputs remain disconnected from all output pins.