The general principle of the ADC

Let's look at the main range of issues that can be attributed to the principle of operation of analog-to-digital converters (ADCs) of various types. Sequential counting, bitwise balancing - what is hidden behind these words? What is the principle of operation of the ADC microcontroller? These, as well as a number of other issues, we will consider in the framework of the article. The first three parts we will devote to the general theory, and from the fourth subheading we will study the principle of their work. You can find the terms ADC and DAC in various literature. The principle of operation of these devices is slightly different, so do not confuse them. So, the article will consider the conversion of signals from analog to digital form, while the DAC works the other way around.

Definition

Before considering the principle of the ADC, let's find out what kind of device it is. Analog-to-digital converters are devices that convert a physical quantity into an appropriate numerical representation. As an initial parameter, almost anything can be used - current, voltage, capacitance, resistance, angle of rotation of the shaft, pulse frequency, and so on. But to be certain, we will only work with one transformation. This is the voltage code. The choice of this format of work is not accidental. After all, the ADC (the principle of operation of this device) and its features largely depend on what concept of measurement is used. By this we mean the process of comparing a certain value with a previously established standard.

ADC working principle

ADC Characteristics

The main ones are bit depth and conversion frequency. The first is expressed in bits, and the second in counts per second. Modern analog-to-digital converters can have a bit capacity of 24 bits or a conversion speed that comes to GSPS units. Please note that the ADC can provide you with only one of its characteristics at a time. The greater their performance, the more difficult it is to work with the device, and even it costs more. But the benefit can be obtained the necessary indicators of capacity, sacrificing the speed of the device.

ADC Types

The principle of operation varies among different groups of devices. We will consider the following types:

  1. With direct conversion.
  2. With a consistent approximation.
  3. With parallel conversion.
  4. Charge-balanced analog-to-digital converter (delta-sigma).
  5. Integrating ADCs.

There are many other conveyor and combined types that have their own special characteristics with different architectures. But those samples that will be considered in the framework of the article are of interest due to the fact that they play a significant role in their niche of devices of this specificity. Therefore, let's study the principle of the ADC, as well as its dependence on the physical device.

Direct A / D Converters

They became very popular in the 60-70s of the last century. In the form of integrated circuits produced since the 80s. These are very simple, even primitive devices that can not boast of significant indicators. Their bit capacity is usually 6-8 bits, and the speed rarely exceeds 1 GSPS.

The principle of operation of this type of ADC is as follows: the input signal is simultaneously input to the positive inputs of the comparators. A negative voltage is applied to the negative terminals. And then the device determines its mode of operation. This is done due to the reference voltage. Let's say we have a device with 8 comparators. When Β½ of the reference voltage is applied, only 4 of them will be switched on. The priority encoder generates a binary code, which is fixed by the output register. Regarding the advantages and disadvantages, we can say that this principle of operation allows you to create high-speed devices. But to get the required bit depth you have to sweat a lot.

ADC working principle

The general formula for the number of comparators is as follows: 2 ^ N. Under N it is necessary to put the number of digits. The example considered earlier can be used again: 2 ^ 3 = 8. In total, 8 comparators are needed to obtain the third rank. This is the principle of operation of the ADCs that were created first. Not very convenient, so other architectures subsequently appeared.

Analog-to-Digital Converters

The β€œweighting” algorithm is used here. In abbreviated form, devices operating by this technique are simply called ADCs of serial counting. The principle of operation is as follows: the device measures the value of the input signal, and then it is compared with the numbers that are generated by a certain method:

  1. Half of the possible voltage reference is set.
  2. If the signal has overcome the limit value from point No. 1, it is compared with a number that lies in the middle between the remaining value. So, in our case it will be ΒΎ of the reference voltage. If the reference signal does not reach this indicator, then the comparison will be carried out with another part of the interval according to the same principle. In this example, this is ΒΌ of the reference voltage.
  3. Step 2 must be repeated H times, which will give us H bits of the result. This is due to the H number of comparisons.

This principle of operation allows to obtain devices with a relatively high conversion speed, which are the ADCs of successive approximation. The principle of operation, as you see, is simple, and these devices are great for various occasions.

ADC sequential approximation working principle

Parallel A / D Converters

They work like serial devices. The calculation formula is (2 ^ N) -1. For the case considered earlier, we need (2 ^ 3) -1 comparators. For work, a certain array of these devices is used, each of which can compare the input and individual reference voltage. Parallel analog-to-digital converters are fairly fast devices. But the principle of construction of these devices is such that considerable support is needed to support their operability. Therefore, it is impractical to use them with battery power.

Bit-to-Bit Analog-to-Digital Converter

It operates in a similar pattern as the previous device. Therefore, to explain the functioning of the ADC bitwise balancing, the principle of work for beginners will be considered literally on the fingers. The basis of these devices is the phenomenon of dichotomy. In other words, a sequential comparison of the measured value with a certain part of the maximum value is carried out. Values ​​of Β½, 1/8, 1/16 and so on can be taken. Therefore, an analog-to-digital converter can perform the entire process in N iterations (sequential steps). Moreover, H is equal to the ADC capacity (look at the previously given formulas). Thus, we have a significant gain in time, if the speed of technology is especially important. Despite the significant speed, these devices are also characterized by low static error.

ADC and DAC working principle

Charge Balanced Analog to Digital Converters (Delta Sigma)

This is the most interesting type of device, not least due to its principle of operation. It consists in comparing the input voltage with what the integrator has accumulated. Pulses with negative or positive polarity are applied to the input (it all depends on the result of the previous operation). Thus, it can be said that such an analog-to-digital converter is a simple tracking system. But this is just an example for comparison, so you can understand what a delta-sigma ADC is. The principle of operation is systemic, but for the effective functioning of this analog-to-digital converter is not enough. The end result is an endless stream of ones and zeros that goes through the digital low-pass filter. A certain bit sequence is formed from them. There are first and second order ADC converters.

Integrating Analog-to-Digital Converters

This is the last special case that will be considered in the framework of the article. Next, we will describe the principle of operation of these devices, but at a general level. This ADC is a push-pull analog-to-digital converter. You can meet a similar device in a digital multimeter. And this is not surprising, because they provide high accuracy and at the same time suppress noise well.

Now let's focus on its working principle. It lies in the fact that the input signal charges the capacitor for a fixed time. As a rule, this period is a unit of the frequency of the network that powers the device (50 Hz or 60 Hz). It can also be a multiple. Thus, high frequency interference is suppressed. At the same time, the influence of the unstable voltage of the network source of power generation on the accuracy of the result is leveled.

ADC dual integration working principle

When the charge time of the analog-to-digital converter ends, the capacitor begins to discharge at a certain fixed speed. The internal device counter counts the number of clock pulses that are generated during this process. Thus, the longer the time period, the greater the performance.

Push-pull ADCs have high accuracy and resolution. Due to this, as well as a relatively simple structure, they are implemented as microcircuits. The main drawback of this principle of operation is its dependence on the network metric. Remember that its capabilities are tied to the duration of the frequency period of the power source.

This is how dual integration ADCs work. The principle of operation of this device, although it is quite complex, but it provides quality indicators. In some cases, this is simply necessary.

We select AOC with the principle of work that we need

Let's say we have a specific task. How to choose a device so that it can satisfy all our needs? First, let's talk about resolution and accuracy. They are often confused, although in practice they are very weakly dependent on one of the second. Remember that a 12-bit A / D converter may have less accuracy than an 8-bit one. In this case, resolution is a measure of how many segments can be extracted from the input range of the measured signal. So, 8-bit ADCs have 2 8 = 256 such units.

Accuracy is the total deviation of the obtained conversion result from the ideal value, which should be at a given input voltage. That is, the first parameter characterizes the potential capabilities that the ADC has, and the second shows what we have in practice. Therefore, a simpler type (for example, direct analog-to-digital converters) may be suitable for us, which will allow us to satisfy our needs due to high accuracy.

the principle of operation of the apc microcontroller

To have an idea of ​​what you need, first you need to calculate the physical parameters and build a mathematical formula for the interaction. Important in them are the static and dynamic errors, because when using various components and principles of the construction of the device, they will affect its characteristics in different ways. More detailed information can be found in the technical documentation that the manufacturer of each particular device offers.

Example

Let's look at the SC9711 ADC. The principle of operation of this device is complicated due to its size and capabilities. By the way, speaking about the latter, it should be noted that they are truly diverse. So, for example, the frequency of possible operation ranges from 10 Hz to 10 MHz. In other words, it can do 10 million samples per second! And the device itself is not something solid, but has a modular structure. But it is used, as a rule, in complex technology, where it is necessary to work with a large number of signals.

ADC bitwise balancing principle of work for beginners

Conclusion

As you can see, ADCs basically have different operating principles. This allows us to select devices that will satisfy the requests that have arisen, and at the same time allow us to reasonably manage the available funds.

Source: https://habr.com/ru/post/G16652/


All Articles