Digital circuits are electric circuits based on a number of discrete voltage levels. In most cases there are two voltage levels: one near to zero volts and one at a higher level depending on the supply voltage in use. These two levels are often represented as L and H.

Levels

The two levels are used to represent the binary integers or logic levels of 0 and 1. In active-high logic, L represents binary 0 and H represents binary 1. Active-low logic uses the reverse representation. It is usual to allow some tolerance in the voltage levels used; for example, 0 to 2 volts might represent logic 0, and 3 to 5 volts logic 1. A voltage of 2 to 3 volts would be invalid and would occur only in a fault condition or during a logic level transition, as most circuits are not purely resistive, and therefore cannot instantly change voltage levels. However, few logic circuits can detect such a fault, and most will just choose to interpret the signal randomly as either a 0 or a 1.

Examples of binary logic levels:
TechnologyL voltageH voltageNotes
CMOS0V to VCC/2VCC/2 to VCCVCC = supply voltage
TTL0V to 0.8V2V to VCCVCC is 4.75V to 5.25V

Construction

It is possible to construct digital circuits in forms other than electronic. In principle, any technology capable of representing two discrete states and performing Boolean operations could be used to build a logic circuit. Hydraulic, pneumatic and mechanical versions of logic gates exist and are used in situations where electricity cannot be used. The first two types are considered under the heading of fluidics. One application of fluidic logic is in military hardware that is likely to be exposed to a nuclear electromagnetic pulse (nuclear EMP, or NEMP) that would destroy any electrical circuits.

Logic systems

Logic systems can be constructed from diverse systems including optical, magnetic, chemical, biochemical and quantum systems. In each case, the desired logic function can be found in the interactions of the physical components. For example if two particular enzymes are required to prevent the construction of a particular protein, this is the equivalent of a biological "NAND" gate.

Digital circuits are the most common hardware realisation of Boolean algebra and are the basis of all digital computers. (See also logic gate.)

They can also be used to process digital information without being connected up as a computer. Such circuits are referred to as "random logic".

Recent developments

Digital circuit technological innovations have benefitted from the discovery of superconductivity. Most recently, attempts are being made to construct optical computing systems capable of processing digital information.

Related:

Boolean algebra | Circuit | CMOS | Combinatorial logic | Data strobe encoding | De Morgan's laws | Digital | Electrical network | Electronics | Field effect transistor | Finite state machine | Formal verification | Glitch Ringing | Hardware description language | Instruction pipelining | Integrated circuit | Sequential logic  | Logic analyzer | Logic gate | Microelectronics | Multiplexer | Multiplication ALU | NMOS | Programmable logic device | Reconfigurable system | Register | Transistor | Transistor-transistor logic | Transparent latch | Ternary logic | Runt pulse | Transmission line | VHSIC