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.

When to use:

  • Debugging pin conflicts (multiple blocks using same pin)
  • Verifying GPIO allocation before hardware design finalized
  • Visualizing PPS (Peripheral Pin Select) mappings for remappable devices
  • Identifying available GPIO pins for new features
  • Documenting pin usage for team collaboration or production

โœ— This block is never harmful:

  • Informational utility only โ€” no code generation impact
  • Add to model during development for pin conflict detection
  • Remove if not needed โ€” purely a diagnostic aid

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 Output

The report below was produced by the Port Info block inside the MCLV-48V-300W (dsPIC33AK256MPS306, BlueRidge DIM) motor-control template. It lists every pin claimed by the model’s blocks โ€” ADC channels, the three Op-Amps, the QEI encoder, PWM1/2/3 H&L, UART1, and the digital I/O โ€” and flags a pin that two features both requested:

port_info โ€” Tab 1: Report

Screenshots taken with chip 33AK256MPS306

Each line is [Pin] Port - Signal(s) - ( owning block(s) ). In the live Command Window each block name is a clickable link that highlights the block in the model. The red *** WARNING line shows a detected pin conflict and how the blockset resolves it.

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.