Electrical type of schematic symbol pins


#1

The electrical type is used by the electrical rule check (ERC) to determine if you connected everything correctly.
For example if you connect two outputs, ERC will complain.

Where to get the pin types.
Well the datasheet of your component is a good start.

In general:

  • Pins through which your component is supplied (vcc, gnd, vss, …) are power inputs.
  • Digital and analog input pins are inputs.
  • Digital and analog output pins are output (For digital pins, use this only if the pin is push and pull capable or has an internal pull-up or pull-down network.)
  • GPIO pins, bus pins (sda of i2c) , … are bidirectional
  • Pins for passive devices and pins that are always only connected to other passive devices are passive
  • Pins that are intended to supply power to other devices use power output (output pin of a dc/dc converter, a voltage regulator, …)
  • Not connected is used for all pins of the footprint that have no function in the symbol. (You can make them invisible to reduce clutter but don’t stack them. Otherwise they will be connected with each other.)
  • Open collector is used for open collector or open drain outputs (output pins that need an external pull up)
  • Open emitter are used for open emitter or open source outputs (output pins that need an external pull down)
  • Tri-state is used for output pins that have a high impedance state (high Z) Such pins have the following possible states.
    • High -> low impedance connection to high signal voltage (in most cases the positive supply voltage)
    • Low -> low impedance connection to low signal voltage (in most case GND)
    • High Z -> no connection to anything. (high impedance state)

Connecting Multiple Output Pins
If you have multiple output pins or power output pins that need to be connected in parallel, give only one of these pins the type output. The other pins should get the type passive.

Such a configuration can be stacked. (all pins on top of each other with all but one pin set to invisible. Make sure the visible pin is the one with the correct electrical type.)
The symbol editor does not like that. finish all settings of the pins while they are not stacked and move them on top of each other as the last step.
(If you open the pin properties of any stacked pin, all pins in the stack get changed by the editor.)

Invisible Power Input Pins
Another special case are invisible power input pins. They are global labels. This is how power symbols are implemented in kicad. Do not use invisble power input pins in any application other then power symbols. (They can be dangerous)


More details about power output/input

A pin is power input if it is a consumer of power. It is power output if it is the source for power. (outputs of a dc/dc converter, of a ldo, …)
The power flag is used to tell ERC that a pin that is not a power output is the source of power. This is needed if the supply is via a generic connector, or if a passive component is in series to the power supply (a fuse, the inductor of a filter, …)

The direction the current flows alone is not what determines if it is a power input. You also need to take into account the potential of the pin compared to the potential of its counterpart.
Now lets look at the pin with the more positive potential. It is power out iff the current flows out and power in otherwise.
For the more negative pin the current direction is exactly opposite. (The current flows out of the positive pin into the negative pin -> both are power output.)

It gets tricky if the power output side shares a common pin with the power input side. In such cases power input should take precedence. (As the whole circuit will not work if there is no external power provided to the common pin.)

Side note: The current directions mentioned above use the convention of “technical current direction”. In most materials electrons are the charge carriers. Sadly our mathematical models define them as having a negative charge. This means they move (on average) opposite to the technical current direction.


Further reading regarding power symbols: https://electronics.stackexchange.com/a/392977


Electrical type for SPI device MISO pins?
Electrical rules check problem
ERC ErrType 5 Issue
FAQ Index Thread
ErrType(3): Pin connected to some others pins but no pin to drive it
Importing Eagle Schematic of Adafriut Gemma M0 problems
ERC gives a bunch of errors for multiple ICs connected to SPI bus
ErrType(4) on power pins connected to BiDir pins
Transforming a schema into a pcb
Unconnected wires in Power
ERC Checker problems with power line
Barebones ATMEGA328 Circuit and the Conflict Between Pins warning
How do I change path segment?
Component Pins, do's and Don't
Why are certain relevant pins hidden in some schematic symbols?
Tutorial: How to make a symbol
Switching off some of the netlist checker ( the Bug button)
Tutorial: How to make a symbol
ERC with symbol providing multiple ground outputs
ERC with symbol providing multiple ground outputs
Any libraries for the W65C816 processor?
Suggestions to improve KiCAD