Port Info Block Icon
The PortInfo block displays a summary of GPIO port assignments and Peripheral Pin Select (PPS) mappings for all blocks in the model, helping detect conflicts and verify pin usage.

Display Information

InformationDescription
Port AssignmentsAll GPIO pins used by model with their function
PPS MappingsRemappable peripheral assignments
ConflictsDuplicate pin assignments (highlighted in red)
Available PinsUnused GPIO pins

Example Display

PORT A:
  RA0: ADC1_AN0 (Analog Input)
  RA1: Digital Output
  RA2: UART1_TX (PPS - RP20)
  RA3: [Available]

PORT B:
  RB0: PWM1H (Fixed)
  RB1: PWM1L (Fixed)
  RB2: QEI1_A (PPS - RP2)
  ⚠️ RB3: CONFLICT - Digital Input + UART2_RX

Usage

  • Add PortInfo block to model
  • Double-click to open display
  • Review port assignments
  • Resolve any conflicts shown Conflict Resolution: Conflicts must be fixed before code generation. Change pin assignments in the conflicting peripheral blocks.

See Also

  • [MCHP_TimerInfo] - Timer resource allocation
  • [MCHP_Digital_Input] - GPIO configuration