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:
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
| Information | Description |
|---|
| Port Assignments | All GPIO pins used by model with their function |
| PPS Mappings | Remappable peripheral assignments |
| Conflicts | Duplicate pin assignments (highlighted in red) |
| Available Pins | Unused GPIO pins |
Example Output
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.