2.1 Input to the Signal Routing Port Pin (Source)

A signal routing port pin can have multiple sources connected to it, which is selected using the PORTWINx register. There is a separate PORTWINx register for each signal routing port pin in PORTW. For instance, PORTWIN0 register selects input to signal routing port pin RW0, etc.

Typical inputs to a signal routing port pin include:

  • LATWn bit from LATW register (software input)
  • Shifted input from signal routing port pin RW[n+1]
  • Physical I/O pin (typically RCn pin)
  • PPS input from physical I/O pins
  • Other CIPs on the device
Important: PPS input from physical I/O pins is only available on select devices. Refer to the device data sheet for more information.
Tip: Since the input to each signal routing port pin is independently selected by the appropriate PORTWINx register, it is possible for the user to chose a different input for each signal routing port pin. Refer to the device data sheet for a list of selections for the PORTWINx registers.