Note: this section primarily deals with npn open collectors, however nMOS open drain generally applies as well.
Logic-level conversion Because the pull-up resistor is external and does not need to be connected to the chip supply voltage, a lower or higher voltage than the chip supply voltage can be used instead (provided it does not exceed the absolute maximum rating of the chip's output). Open outputs are therefore sometimes used to interface different families of devices that have different operating voltage levels. The open collector transistor can be rated to withstand a higher voltage than the chip supply voltage. This technique is commonly used by logic circuits operating at 5 V or lower to drive higher voltage devices such as
electric motors,
LEDs in series, 12 V
relays, 50 V
vacuum fluorescent displays, or
Nixie tubes requiring more than 100 V.
Wired logic . If all inputs are low, each buffer will be in a
high-impedance state and the
pull-up resistor will pull the output high. But if any input is high, the output will be pulled low by the buffer for that input. This corresponds to
wired AND in active-high logic, or to wired OR in active-low logic, and allows multiple inputs to share the same output wire. Another advantage is that more than one open-collector output can be connected to a single line. If all open collector outputs attached to a line are off (i.e. in the high-impedance state), the pull-up resistor will be the only device setting the line's voltage and will pull the line voltage high. But if one or more open-collector outputs attached to the line are on (i.e. conducting to ground), since any one of them are strong enough to overcome the pull-up resistor's limited ability to hold the voltage high, the line voltage will instead be pulled low. This
wired logic connection has several uses. By tying the output of several open collectors together and connecting to a pull-up resistor, the common line becomes a
wired AND in
active high logic. The output will be high (true) only when all gates are in the high-impedance state, and will be low (false) otherwise, like Boolean AND. When treated as active-low logic, this behaves like Boolean OR, since the output is low (true) when any input is low. See .
Line sharing Line sharing is used for
interrupts and
buses (such as
I²C or
1-Wire). Open-collector output enables one active device to drive the shared line without interference from the other inactive devices. If
push–pull output was mistakenly used
instead, the active device attempting to set the line voltage low would be in competition with the other devices attempting to set the line voltage high, which would result in unpredictable output and heat.
SCSI-1 devices use open collector for electrical signaling. SCSI-2 and SCSI-3 may use
EIA-485.
Analog Open collector outputs can also be useful for analog weighting, summing, limiting,
digital-to-analog converters, etc., but such applications are not discussed here. == Disadvantages ==