11.4.4.3 Input Mapping

The inputs of the Peripheral Pin Select options are mapped on the basis of the peripheral; that is, a control register associated with a peripheral dictates the pin it will be mapped to. The RPINRx registers are used to configure peripheral input mapping. Each register contains sets of 8-bit fields, with each set associated with one of the remappable peripherals. Programming a given peripheral’s bit field with an appropriate 8-bit value maps the RPn pin with the corresponding value to that peripheral.

Example: Interrupt 1 input (from Table 11-10) mapped to PWM Event 4 (from Table 11-11)

_INT1R[7:0] = 168; // 168 = PWM EVENT 4