Have you ever wondered what happens when you flip a switch and turn on a light? How does that electrical signal travel from the wall to the bulb, and what makes it work? What do you achieve when you flip a switch?
You don’t need to wonder any longer! The circuit is an interactive computational tool. It helps you explore how to translate analog electrical signals into digital signals and back again. Start by exploring the circuit shown below. We connect the source, or power source (a battery), to a circuit by a light bulb or bulb socket. Then turn the switch on to see what happens.
A circuit is in many ways similar to the electrical circuits you use every day. The difference is that the electricity flows in an electrical circuit in a continuous loop. In contrast, the electricity flows with a series of switches and electronic components in an analog circuit.
An analog electrical signal is a voltage (like static electricity) that you can turn on and off. That’s why you sometimes hear about something being ‘on/off’ or ‘high/low.’ In your home, there are switches on at least some of your lights.
What is a digital circuit?
A digital circuit is an electrical circuit that uses binary logic to process binary data. The term ‘digital circuit’ is usually used interchangeably with ‘digital logic circuit.’
A digital circuit processes binary data composed of two discrete values. We represent them by the numbers 1 and 0. Binary data is the language of computers and other digital devices. Examples include calculators, mobile phones, and cars diagnostics computers.
Digital circuits are the basis for all modern computing. You will find them on LCD screens and lights on different devices. These devices include automobiles, cellular phones, and appliances.
The digital circuit is in every digital device. These electronic devices use binary logic circuits that process digital data. Popular examples include digital switches and counters in all computer applications.
The blue circuit consists of the switch, the light bulb, the capacitor, and the resistor. The red circuit consists of two wires. We connect the switch to one wire using an electronic component called a ‘toggle switch.
How does Digital Circuit work?
There are two common types of digital circuits: combinational logic and sequential logic.
Digital circuits consist of logic gates that use binary signals for their inputs. These are the red and blue wires found in the circuit. The output of a logic gate is either 0 or 1. It corresponds to a voltage’s absence or presence (a ‘low’ signal or a ‘high’ signal). If a wire carries a ‘low’ signal, you may connect it to the ground without changing the circuit’s operation. All inputs are either high or low signals.
The CPU occupies a central role in modern computers and other digital devices. The (CPU) performs calculations based on the binary data that it receives. One type of CPU is the modern microprocessor. It contains millions of transistors that Rayming PCB & Assembly to process trillions of binary bits in parallel.
Transistors help build logic gates that act as switches to turn signals on and off in digital circuits. They act as a transistor in an amplifier that we can either turn ‘off’ or ‘on.
The digital gates are physical chunks of semiconductor silicon that act as electronic switches. The ‘on’ state is binary 1, and its ‘off state is binary 0.
Each switch in each circuit in a computer can be either on or off. Likewise, each transistor in an integrated circuit can be either on or off. They are both on, but one is lower than the other. This binary data move conductive wires, the transmission medium for binary instructions.
Types of Logic Circuits
We connect the logic gates in the circuit using a combination of wires and transistors to form a logic gate. Then, the output of one logic gate connects to the input of another logic gate, producing a chain reaction.
This chain reaction is a series of ‘on’ and ‘off’ signals. These signals travel from one end of the circuit, lighting up the light bulb. Of course, the details will vary from one type of digital circuit to another. But all digital circuits use variations on this basic principle.
They obey logic rules similar to math, such as the ‘AND’ and ‘OR’ logic rules. However, the input is only considered true in digital logic if all inputs are true. In this case, we consider the output true only if both 2 and 3 are true. This is because both A and B had to be on simultaneously for this to happen.
1. Combinational Digital Logic Circuit
Combinational circuits are the most common type of digital circuit. They can perform simple arithmetic and logical operations. Such operations include addition, subtraction, multiplication, and division. They depend on logic gates such as NAND gate, NOR gate, NOT gate, AND gate, an OR gate.
Combinational digital logic circuits can perform repetitive tasks without any external clock signal. Instead, the circuit itself provides the clock by resetting its state after a set period.
Computers are examples of combinational digital logic circuits, as are the following objects:
- Digital clocks, alarm clocks, and timers (with an interval timer)
- Light dimmers
- Electronic thermometers
- Automatic doors and windows controllers
2. Sequential Digital Logic Circuits
Sequential circuits are digital logic circuits. They change state after a timed period in response to a triggering event. For example, they respond to triggers such as the flip of a switch or the rising or falling edge of a clock signal.
Sequential digital logic circuits include memory (storage) elements. Good examples include flip-flops, latches, and registers. They are essential in modern computers. This is because they store information while performing tasks in other system parts. As a result, the device’s output does not depend on the input values but rather the device’s current state.
Sequential circuits consist of digital logic gates and memory devices. They can perform repetitive tasks at timed intervals, such as an alarm clock or television that turns on at a specific time.
Computers are also helpful for sequential digital logic circuits, for example:
- Cash registers
- Digital clock
- Alarm clocks
- Telephone handsets
Digital clock machines use sequential digital logic circuits to store the time and set the time.
3. Circuits with Clock-Driven Components
Digital logic circuits can also synchronize with the clock that controls their operation. This produces digital pulses at regular intervals, just like an analog clock.
Digital circuits that respond to a regular pulse are periodic or synchronous.
Circuits can run together or parallel and synchronize their behavior with the same clock pulses. But, first, we connect all clock lines and attach them to a common output line or wire.
We often clock together two or more digital circuits that use the same clock signal.
When a common clock signal clocks a circuit, we call it a synchronous circuit. In this book, we will only discuss synchronous digital logic circuits.
An example of an asynchronous digital logic circuit is an asynchronous RAM. It consists of flip-flops connected in parallel. This enables the system to read and write all of them simultaneously.
4. Circuits with Event-Driven Components
Instead of a clock, circuits can react to an external or internal signal or event. We refer to these event-driven digital logic circuits. An event-driven circuit responds only when the triggering condition is present. It ignores all other input signals during that time.
Difference Between Analog Circuit and Digital Circuit
Both circuits serve a vital role in electronics and are an integral part of electronics. In addition, both circuits help process information in digital hardware. It uses binary numbers instead of analog hardware that uses continuous values.
Digital circuit processing is faster than analog circuits. However, digital circuits require more power. Therefore, Digital circuits have their merit and demerits. They are widely helpful in different fields of electronics.
Circuits are a building block for any electronic device or system. So, the study of circuits is very significant for a person who will make electronic systems.
An analog circuit is a circuit in which the information moves through varying physical quantities. These quantities include electric charge, current, magnetic flux, etc.
The word analog comes from the Greek word analogos (αν λος), meaning “proportionate,” “corresponding to.”
Analog circuits help control physical processes such as amplifying a signal or filtering noise out of power lines. In addition, the analog circuit efficiently handles processes where large amounts of data need processing, and other signals change over time.
Analog circuits are helpful in process control, temperature sensors, and video systems.
Analog circuits are always helpful in varying the value of a variable (voltage or current) applied to the points in the circuit. The continuous variation of voltage (or current) makes it look at a continuous function.
A digital circuit is an integrated circuit (IC) used in computers to store data. We can consider it a mini-computer. A computer system needs a storage unit, which acts as a storage and processing power medium. This storage unit could be in the form of a magnetic disc, optical disc, or paper tape.
The problem with these previous methods is that they are mechanical. Therefore, they can also fail due to mechanical factors such as heat, shock, etc.
Digital circuits overcome this problem by using electrical switches to store the data. The transistors control these switches, which store or release electrical power.
The binary data is not stored directly in a digital circuit. Instead, we convert it into a series of ones and zeros, called bits (short for “binary digits”). Combining these bits allows you to write numbers on a computer the same way you write letters on paper.
Digital circuits have some advantages over analog circuits.
1. O/P Quality
Analog-to-digital converter (ADC) is the first conversion stage from an analog signal to a digital signal. An analog-to-digital converter requires extensive calibration for sufficient precision and accuracy. An ADC acts as a standard simulator and tests various systems. They work best in measurement instrumentation, medical devices, etc.
Digital circuits are more helpful due to their ease of use and precision in data handling.
2. Efficiency of a Circuit
Analog circuits in use depend on rheostat (an indirect variable) & potentiometer (direct variable). A variable resistor or potentiometer helps adjust the output of an analog circuit. Digital circuits do not need a variable resistor or potentiometer. They control electrical signals directly. Due to their nature, digital circuits are more efficient. They need less power than analog circuits.
3. Precision and Reproducibility
Digital circuits are more precise and reproducible than analog circuits.
When we convert analog signals to digital form, we capture the imperfection in the original signal by sampling. However, Digital signals do not capture this imperfection as in the original signal. Therefore, digital signals are helpful in highly accurate measurements and industrial control applications. For example, level sensing with a level transmitter is very accurate.
• Analog circuits process information continuously, while digital circuits process information in steps.
• Analog circuits use continuous signals instead of digital. It uses “on” and “off” signals.
• Analog circuit is always used by varying the value of a variable (voltage or current) applied to the points in the circuit. The continuous voltage variation appears to be looking at a continuous function. While in digital circuit processing, a binary number helps represent a number between 0 and 1.
• 2-state Digital circuits do not have the problem of function approximation and noise.
A channel is a component that allows you to connect signals to your circuit.
There are two types of channels in digital circuits: input and output. Digital buses are essential for the connection to other electronic devices. Therefore, your circuit’s input and output channels can connect to other electronic devices. We use CMOS logic levels & serial communication to achieve this.
Mixing Analogue and Digital
We can conduct the digital and analog worlds together through an analog-to-digital converter. One can convert a digital signal into an analog binary code. The ADC converts the analog signal into a digital signal. We can then process these signals further by a digital circuit.
Ground noise is also known as a ground loop. It is a type of noise that occurs in mains supply and ground wires. Nearby appliances and electric motors can cause this noise. A ground loop can cause random digital output values on the circuit. It is similar to the “crosstalk” problem.
Once we make the circuit, it is essential to ensure no ground loops. It is usually impossible to remove the ground loop entirely. Therefore, it ensures no components in the line path of any power supply wires can help solve this problem. It’s usually essential to install a separate ground wire for each power supply wire. Placing the ground wire away from the power supply wires and components such as switches and relays is the best practice.
One signal goes from the A input (microcontroller) to the digital bus. Then, other devices connected to that bus receive this signal. Finally, this signal then goes back to the A input of the microcontroller for processing and storage.
We filter out the noise caused by all connected devices (i.e., mains supply). In addition, filters help to exclude noise in the output signal. There are different kinds of filters depending on their application. But all filters will have low pass (LP), high pass (HP), and bandpass (BP) characteristics.
It is important to note that filters can affect the characteristics of the circuit. Therefore, we must choose them in this regard. It is best to select a filter that can provide a large bandwidth with a low attenuation rate.
Single-board systems are the simplest type. They have all the components attached to a single circuit board. This means that all of the components connect. To achieve this, you must isolate the board itself. You will achieve isolation using copper planes, plastic planes, or both. It is important to note that isolation must be good enough. It helps to avoid short circuits occurring between grounds on the board.
Multichip systems are more complicated than single-board systems. This is because they have more than one circuit board. For the boards to communicate (i.e., send/receive signals), they need a physical connection. You must make this connection using a copper plane and connecting both boards. For example, a ribbon cable could transmit the signal from one board to the other. However, using a copper plane is not ideal for multiple boards. This is because of the added difficulty in routing these planes between the components.
Multichip systems are commonly helpful in large-scale projects. They allow you to separate your system into different sections. In addition, it makes maintenance and service easier.
Single-board systems require less hardware and are good for smaller-scale projects.
These systems have multiple circuit boards and use cables to connect them. The advantage of this is that you can tailor each system to a specific application. In addition, they use a bus (a common connection) to connect all of the boards. We can use the bus for control and signal transfer between devices.
Analog-to-Digital Conversion (ADC)
The conversion of analog, continuous signals to discrete data is Analogue-to-Digital Conversion. We do this using an ADC (analog to digital convertor). The ADC takes the analog signal and converts it into a digital code. The greatest advantage of an ADC is the more accurate has lower noise. It also has a higher resolution than digital data can be.
Digital-to-Analogue Conversion (DAC)
The conversion of discrete binary data into continuous analog signals is Analogue-to-Digital Conversion. We do this using a DAC. The DAC takes the digital data into a continuous analog signal. The great advantage of a DAC is that you can make changes to data.
ADC Vs. DAC
An ADC converts a continuous analog or digital variable (resolution) signal to digital number series. On the other hand, a DAC converts digital number series into a continuous analog signal.
The output amplitude & frequency of an ADC relates to the input analog value or digital code. That of a DAC relates to the value of the digital code.
CMOS Vs. TTL
The CMOS vs. TTL is an internal signal level of a digital circuit. CMOS stands for Complimentary Metal Oxide Semiconductor. It is an alternative to the basic standard and older TTL (Transistor-Transistor Logic). A CMOS device can use a smaller power supply voltage and longer integration time. The output voltage for a CMOS device is higher than that for a TTL device. A TTL device uses a low power supply voltage and has shorter integration times than CMOS devices. A TTL device can be essential for applications that need a short response time.
Integrated Circuits (IC)
An integrated circuit is a small electronic component that can perform several functions. An IC enables you to design and develop digital circuits using one component. This is instead of using several individual components. The small size makes it suitable for use in large systems.
Programmable Logic Devices (PLD)
A programmable logic device (PLD) is a device that sometimes we call an programmable array. It is a microprocessor-like circuit. It allows precise control of multiple functions through programming. PLDs are often helpful with microprocessors as system controllers. Therefore, E often uses the terms programmable and logic. We use it when referring to PLDs and microprocessors. However, the specific implementation of a programmable logic device is different. There are several differences compared to that of a microprocessor in many ways.
The use of digital electronics has revolutionized our modern way of life. Computer systems are everywhere. They are a necessity in almost every single industry. The digital interface has made communication and control easier. Digital circuits are helpful in many ways to control simple devices. We can even use it to solve complex tasks. Digital electronics is a vast field. It is always expanding and evolving. The characteristics of digital circuits make it very easy to convert analog signals into discrete data. These conversion techniques are essential in many applications. The most common is to convert analog signals into digital data using an ADC or DAC.
Furthermore, we can convert this data back into an analog signal using a DAC or ADC. However, before converting the analog signal back into a digital signal, you need to configure the components of the circuit. It is best to select a filter that can provide a large bandwidth with a low attenuation rate.