The Hi-Z state's purpose is to effectively remove a device's influence from the rest of the circuit. If multiple devices output to a shared wire, no device should drive the shared wire to one logical voltage level when another device drives the shared wire to another logical voltage level, since that competition would result in excessive current draw through the
short circuit and an uncertain voltage level. Three-state devices on many shared
electronic buses present a Hi-Z output when not actively communicating, so that shared wires are available to be driven. For example, in a
Serial Peripheral Interface bus in multidrop configuration, only a single peripheral chip at a time may be selected using its (
chip select), while all other peripheral chips present a Hi-Z output to avoid corrupting the data sent by the one selected chip. Three-state buses are typically used between chips on a single
printed circuit board (PCB), or sometimes between PCBs plugged into a common
backplane. Three-state buffers can also be used to implement efficient
multiplexers, especially those with large numbers of inputs. Tri-state multiplexing, also known as
Charlieplexing, is used to reduce the number of wires needed to drive a set of
light-emitting diodes. == Output enable vs. chip select ==