LIB-4 Wrong pin electrical type¶
| Severity | Status | Implementation |
|---|---|---|
| warning | planned | mid, depends on NET-7, IMP-9, IMP-10 |
Looks at. Pin electrical types, pin roles from part data.
What it catches. A symbol pin whose electrical type does not match its function: a supply input typed passive, a regulator output typed passive or input, an open-drain output typed push-pull output, an MCU GPIO typed input.
Why it matters. ERC and most of better_erc's checks reason over pin types. "Input power pin not driven" only fires when the pin is typed power input; "two outputs on one net" only when both are typed output; an open-drain pin typed output makes a wired-OR bus look like a conflict, and the reviewer starts ignoring the noise. A wrong type is therefore a hole in every check that depends on it, not just a cosmetic error.
Example. An LDO symbol with its OUT pin typed passive: the rail it feeds has no power output on it, so every part on that rail reports "power input not driven" and the designer adds PWR_FLAG symbols until it is quiet, which also hides the real undriven rail next to it. The opposite case: a sensor's INT open-drain output typed output, shared with a second sensor's INT: ERC reports an output conflict on a correct circuit.
How to check. Candidates from the netlist alone: pins whose names say power (VDD, VCC, VIN, GND, VSS) but whose type is not power; outputs named INT, ALERT, PG typed push-pull. The full check compares the type with the pin role from part data (NET-7, pin tables per IMP-9/IMP-10).
Fix. Correct the type in the library symbol: power input and power output for supply pins, open collector/open emitter for open-drain outputs, bidirectional for programmable MCU IOs.
References. KLC S4.4 (pin electrical type); KiCad ERC "Input Power pin not driven by any Output Power pins" and the pin conflicts map.