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.
| 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 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