1 Features

Even though a Signal Routing Port may seem similar to a regular I/O port, their operation and behavior are very different. Table 1-1 shows feature comparisons between a Signal Routing Port and a regular I/O port.

Table 1-1. Feature Comparison Between Signal Routing Port and Regular I/O Port
FeatureSignal Routing PortRegular I/O Port
Port NomenclaturePORTWPORTx (x = A, B, C, …)
Pins per PortEight RWn signal routing port pins (n = 0 … 7)Eight Rxn physical I/O pins (n = 0 … 7)
Software Read/WritePORTW/LATW registersPORTx/LATx registers
Data DirectionSupports virtual input (PORTWINx registers) and virtual output (PORTW register) simultaneouslyTRISx register typically determines whether a pin reads a physical input or outputs to a physical pin
Other I/O Port FeaturesFeatures do not apply to Signal Routing Port since there is no external pin connection
  • Analog Select (ANSELx register)
  • Weak Pull-ups (WPUx register)
  • Open-Drain Control (ODCONx register)
  • Slew Rate Control (SLRCONx register)
  • Input Level Control (INLVLx register)
Other Signal Routing Port Features
  • Clock Selection and Control (PORTWCLK/PORTWCON registers)
  • Data Flip Flop Control (PORTWDF register)
Features not available on regular I/O Port
Source of the Pin
  • LATW register
  • Shifted signal routing port pin
  • Physical I/O pin
  • PPS input from a physical I/O pin(1)
  • Outputs of various CIPs
  • TRISx Input mode: Physical I/O pin
  • TRISx Output mode: LATx register or PPS output from other CIPs
Destination of the Pin
  • Input PPS for other CIPs
  • PPS output to a physical I/O pin(1)
  • TRISx Input mode: PORTx register and PPS input to other CIPs
  • TRISx Output mode: Physical I/O pin
Peripheral Pin Select (PPS) SupportYesYes
Interrupt-on-ChangeIOCSR interruptIOC interrupt
DMA/ADC TriggersIOCSR and Individual signal routing port pin outputsIOC only
Note:
  1. PPS input and PPS output from/to physical pins is available on select devices only. Refer to the device data sheet for more information.