Analog-to-digital conversion circuit

The reference voltage is switched through the multi-channel selection circuit hardware, which solves the problems of resource waste and low sampling frequency in the existing technology, and achieves high-precision and high-sampling rate analog-to-digital conversion performance.

CN114499526BActive Publication Date: 2024-10-11HANGZHOU SILAN MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111665699.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2024-10-11
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

When existing analog-to-digital conversion circuits process different analog signals, they need to increase the number of ADCs or software-controlled reference voltage switching, resulting in a waste of resources, low sampling frequency, and insufficient performance.

Method used

Design an analog-to-digital conversion circuit that uses multi-channel selection circuit hardware to switch the reference voltage. The appropriate analog signal and reference voltage signal are selected for analog-to-digital conversion through the channel selection signal, thereby improving the analog-to-digital conversion accuracy and sampling rate.

Benefits of technology

It achieves high-precision analog-to-digital conversion of a variety of analog signals, requires little hardware resources, has low cost, and supports high sampling rate analog-to-digital conversion performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114499526B_ABST
    Figure CN114499526B_ABST
Patent Text Reader

Abstract

Disclosed is an analog-to-digital conversion circuit, which is provided with a first multiplexer circuit for selecting an analog signal output to a conversion module, and a second multiplexer circuit for selecting a reference voltage signal output to the conversion module. The analog-to-digital conversion circuit provided by the present invention can select a corresponding reference voltage signal to participate in analog-to-digital conversion according to the type of the output analog signal, thereby improving the accuracy of analog-to-digital conversion of multiple analog signals, and can realize high-precision analog-to-digital conversion of multiple analog signals through a single conversion module, with small hardware resource requirements and low cost, and can support high sampling rates through the selection of the multiplexer circuit hardware.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic systems, and in particular to an analog-to-digital conversion circuit. Background Art

[0002] Analog-to-Digital Converter (ADC) is a device that converts continuous analog quantities such as voltage, current, temperature or image into digital quantities represented in binary after comparing them with standard quantities. Its accuracy and cost greatly affect the performance and cost of the actual system.

[0003] ADC requires a reference analog quantity as the conversion standard, also called the ADC reference voltage. The more common reference voltage is the maximum convertible signal size, and the output digital quantity represents the size of the input signal relative to the reference voltage. Reference voltage selection can usually be divided into two types: external reference voltage and internal reference voltage.

[0004] The external reference voltage is a standard voltage provided by the ADC as a reference based on the external power supply voltage. It changes with the fluctuation of the external power supply voltage and can offset the influence of the fluctuation of the external power supply voltage. It is suitable for analog-to-digital conversion of analog signals affected by the external power supply voltage. The internal reference voltage is a standard reference voltage generated by circuit design inside the ADC as a reference. Fluctuations in the external power supply voltage within a reasonable range will not cause voltage fluctuations in the internal reference voltage. It is suitable for analog-to-digital conversion of analog signals that are not affected by the external power supply voltage.

[0005] In practical applications, different reference voltages need to be selected for different analog signals. In the prior art, the number of ADCs is increased or the switching of reference voltages is controlled by software. However, multiple ADCs only partially work at the same time, resulting in a waste of resources, a low sampling frequency controlled by software, and insufficient performance. Summary of the invention

[0006] In view of the above problems, an object of the present invention is to provide an analog-to-digital conversion circuit, so that the switching of the reference voltage is realized by hardware, the sampling frequency is guaranteed, and the analog-to-digital conversion performance is guaranteed.

[0007] According to one aspect of the present invention, there is provided an analog-to-digital conversion circuit, comprising: a first multi-way selection circuit, having a plurality of input terminals configured to receive a plurality of analog signals, wherein the first multi-way selection circuit outputs a selected analog signal according to a channel selection signal; a second multi-way selection circuit, having a plurality of input terminals configured to receive a plurality of reference voltage signals, wherein the second multi-way selection circuit outputs a reference voltage signal corresponding to the selected analog signal as a selected reference voltage signal based on the channel selection signal; and a conversion module, configured to receive the selected analog signal and the selected reference voltage signal, and convert the selected analog signal into a digital signal according to the selected reference voltage signal.

[0008] Optionally, the analog-to-digital conversion circuit also includes: a third multi-way selection circuit, having multiple input terminals configured to receive multiple reference voltage selection signals, the third multi-way selection circuit outputs the selected reference voltage selection signal according to the channel selection signal, and the second multi-way selection circuit selects a corresponding reference voltage signal for output according to the selected reference voltage selection signal.

[0009] Optionally, the multiple input terminals of the third multiple-way selection circuit correspond one-to-one to the multiple input terminals of the first multiple-way selection circuit.

[0010] Optionally, the multi-channel analog signals include at least a first type of analog signal and a second type of analog signal, the first type of analog signal is a signal related to the power supply voltage, and the second type of analog signal is a signal unrelated to the power supply voltage.

[0011] Optionally, the multiple reference voltage signals include at least an external reference voltage signal related to the power supply voltage and an internal reference voltage signal independent of the power supply voltage.

[0012] Optionally, the channel selection signal has: a first logic state, used to cause the first multiplexer circuit to select the first type of analog signal as the selected analog signal and cause the second multiplexer circuit to select the external reference voltage signal as the selected reference voltage signal; and a second logic state, used to cause the first multiplexer circuit to select the second type of analog signal as the selected analog signal and cause the second multiplexer circuit to select the internal reference voltage signal as the selected reference voltage signal.

[0013] Optionally, the channel selection signal is a multi-bit digital signal having a binary coding relationship with multiple input terminals of the first multiplexer circuit.

[0014] Optionally, the first multiplexer circuit opens the channel corresponding to the input end with the corresponding number according to the channel selection signal; the second multiplexer circuit opens the channel corresponding to the input end with the corresponding number according to the value of the lowest bit or any other bit of the channel selection signal.

[0015] Optionally, the number of bits of the multi-bit digital signal matches the number of channels of the first multiplexing circuit.

[0016] Optionally, the analog-to-digital conversion circuit also includes: a software configurable control register, used to provide the multi-way reference voltage selection signal to each input end of the third multi-way selection circuit according to the type of each analog signal received by each input end of the first multi-way selection circuit.

[0017] The analog-to-digital conversion circuit provided by the present invention is provided with a first multiplexer circuit to select an analog signal output to a conversion module, and a second multiplexer circuit to select a reference voltage signal output to the conversion module. The corresponding reference voltage signal can be selected according to the type of the output analog signal to participate in the analog-to-digital conversion, thereby improving the analog-to-digital conversion accuracy of the analog-to-digital conversion for a variety of analog signals. The analog-to-digital conversion of a variety of analog signals is realized by a single conversion module, with small hardware resource requirements and low cost. The selection can be realized by hardware of the multiplexer circuit, and a high sampling rate can be supported. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:

[0019] Figure 1 A schematic diagram of the structure of a sampling circuit for a first type of analog signal according to the prior art is shown;

[0020] Figure 2 A schematic diagram of the structure of a sampling circuit for a second type of analog signal according to the prior art is shown;

[0021] Figure 3 A schematic structural diagram of an analog-to-digital conversion circuit according to an embodiment of the present invention is shown;

[0022] Figure 4 A schematic structural diagram of an analog-to-digital conversion circuit according to another embodiment of the present invention is shown. DETAILED DESCRIPTION

[0023] Various embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. In each of the accompanying drawings, the same elements are represented by the same or similar reference numerals. For the sake of clarity, the various parts in the accompanying drawings are not drawn to scale.

[0024] The specific implementation of the present invention is further described in detail below in conjunction with the drawings and examples.

[0025] Figure 1 A schematic structural diagram of a sampling circuit for a first type of analog signal is shown.

[0026] Reference Figure 1 The sampling circuit is, for example, a temperature sensor sampling circuit. The second resistor R2 and the first resistor R1 are connected in series between the voltage source VDD and the ground GND in sequence. The second resistor R2 is a temperature-sensitive resistor. The sampling voltage VAD1=VDD×R1 / (R1+R2). When the temperature is stable, the resistance values ​​of R1 and R2 remain unchanged. The sampling voltage VAD1 will fluctuate with the fluctuation of the power supply voltage provided by the voltage source VDD. The reference voltage is obtained by dividing the power supply voltage, which can offset part of the fluctuation of the voltage source, ensure the analog-to-digital conversion accuracy of the sampling voltage VAD1, ensure the calculation of the resistance value of the second resistor R2, and ensure the temperature sampling accuracy.

[0027] The sampling voltage VAD1 is easily affected by the power supply voltage VDD. If the internal reference voltage is used as the reference voltage, since the internal reference voltage is independent of the power supply voltage VDD, the reference voltage remains unchanged, and the fluctuation of the actual power supply voltage will cause the fluctuation of the sampling voltage VAD1. The sampling voltage VAD1 has a greater influence on the calculation of the resistance value of the second resistor R2 with the fluctuation of the power supply voltage, affecting the accuracy of the sampling temperature. Therefore, when sampling this type of analog signal related to the power supply voltage, it is suitable to use an external reference voltage as the ADC reference voltage.

[0028] Figure 2 A schematic structural diagram of a sampling circuit for a second type of analog signal is shown.

[0029] Reference Figure 2 In this embodiment, the non-inverting input terminal of the operational amplifier U1 is grounded through the sixth resistor R6, connected to one end of the sampling resistor Rs through the fifth resistor R5, the inverting input terminal is connected to the other end of the sampling resistor Rs through the third resistor R3, and connected to the output terminal through the fourth resistor R4, providing a sampling voltage VAD2 at the output terminal, converting the current I to be processed into the sampling voltage VAD2, the sampling voltage VAD2 = Gain × Rs × I, wherein Gain = R4 / R3 = R6 / R5, Rs is the resistance value of the sampling resistor Rs, and R3, R4, R5, and R6 correspond to the resistance values ​​of the third resistor R3, the fourth resistor R4, the fifth resistor R5, and the sixth resistor R6.

[0030] Among them, the converted sampling voltage VAD2 is only related to the current to be processed I when Gain and Rs remain unchanged. A reference voltage source is used to provide a reference voltage so that the sampling voltage VAD2 and the reference voltage are both stable and accurate values, thereby ensuring the analog-to-digital conversion accuracy of the sampling voltage VAD2 and the detection accuracy of the current to be processed I.

[0031] The sampling voltage VAD2 is independent of the power supply voltage. If the reference voltage provided by the external power supply voltage is used, since the sampling voltage VAD2 is an accurate value and the reference voltage fluctuates with the fluctuation of the power supply voltage, the accuracy of the analog-to-digital conversion result of the sampling voltage VAD2 is reduced, thereby reducing the detection accuracy of the processed current I. Therefore, when sampling this type of signal that has no direct relationship with the power supply voltage, it is suitable to use the internal reference voltage as the ADC reference voltage.

[0032] Figure 3 A structural schematic diagram of an analog-to-digital conversion circuit according to an embodiment of the present invention is shown.

[0033] Reference Figure 3 The analog-to-digital conversion circuit 100 of the embodiment of the present invention includes a conversion module 110, which converts the analog signal VADX into a digital signal according to the received analog signal VADX and the reference voltage signal VREF.

[0034] The analog signal VADX is selected from multiple analog signals received at multiple input terminals of the first multiplexer circuit 121. In the present embodiment, the first multiplexer circuit 121 is a four-channel multiplexer circuit. The four channels are numbered 0 to 3, and the zeroth analog signal to the third analog signal (VAD-0 to VAD-3) are connected to select one of them and provide it to the conversion module 110 for analog-to-digital conversion.

[0035] The reference voltage signal VREF is selected from the first reference voltage signal VREF1 and the second reference voltage signal VREF2 connected to the two input terminals of the second multiplexer circuit 122. In the present embodiment, the first reference voltage signal VREF1 is an external reference voltage signal related to the power supply voltage, and it fluctuates along with the power supply voltage fluctuation. The second reference voltage signal VREF2 is an internal reference voltage signal independent of the power supply voltage and is a stable value.

[0036] In this embodiment, the first multiplexer circuit 121 and the second multiplexer circuit 122 are both controlled by the channel selection signal VADSEL to access the channel, select the output analog signal and the output reference voltage signal, and the channel selection signal VADSEL is a two-bit binary digital signal, and has a binary coding relationship with multiple input terminals of the first multiplexer circuit 121, and the corresponding states of the channel selection signal VADSEL include 00, 01, 10, and 11, respectively corresponding to the selection of channels 0, 1, 2, and 3 of the first multiplexer circuit 121, and the lowest bit of the channel selection signal VADSEL has a binary coding relationship with the two input terminals of the second multiplexer circuit 122, respectively corresponding to the selection of channels 0, 1, and 3 of the second multiplexer circuit 122.

[0037] With the 00 and 10 states of the channel selection signal VADSEL as the first logic state, when the channel selection signal VADSEL is in the first logic state, the first multiplexer circuit 121 selects channels 0 and 2, and channels 0 and 2 of the first multiplexer circuit 121 are connected to the zeroth processed signal VAD-0 and the second processed signal VAD-2 related to the power supply voltage, and the corresponding second multiplexer circuit 122 selects channel 0, and selects the first reference voltage signal VREF1 related to the power supply voltage.

[0038] With the 01 and 11 states of the channel selection signal VADSEL as the second logic state, when the channel selection signal VADSEL is in the second logic state, when the first multiplexer selection circuit 121 selects channels 1 and 3, the second multiplexer selection circuit 122 selects channel 1, and the first to-be-processed signal VAD-1 and the third to-be-processed signal VAD-3 connected to channels 1 and 3 of the corresponding first multiplexer selection circuit 121 are analog signals independent of the power supply voltage. At this time, the second reference voltage signal VREF2 independent of the power supply voltage is selected as the selected reference voltage signal.

[0039] In this embodiment, the channel selection signal VADSEL is a 2-bit binary number and has a binary coding relationship with the multiple input terminals of the first multiplexer selection circuit 121. The second multiplexer selection circuit 122 uses the lowest bit of the channel selection signal VADSEL as the selection control logic of the two channels. In an optional embodiment, the channel selection signal VADSEL is a multi-bit binary number, and the second multiplexer selection circuit 122 can also use any other bit of the channel selection signal VADSEL as the channel selection control logic (applicable to the first multiplexer selection circuit 121 including more than four input terminals).

[0040] Among them, the number of bits of the channel selection signal VADSEL matches the number of channels of the first multiplexer circuit 121. For example, the encoding number of a two-bit binary number is 0 to 3, including 4 numbers, and the encoding number of a three-bit binary number is 0 to 7, including 8 numbers. When the first multiplexer 121 includes less than four input terminals, the number of bits of the channel selection signal VADSEL is at least two bits. When the first multiplexer 121 includes more than four and less than eight input terminals, the number of bits of the channel selection signal VADSEL is at least three bits. That is, the number of bits of the channel selection signal VADSEL of the present invention matches the number of channels of the first multiplexer circuit 121. The number of bits of the channel selection signal VADSEL can actually be set according to specific needs.

[0041] Figure 4 FIG. 2 shows a schematic diagram of the structure of an analog-to-digital conversion circuit according to another embodiment of the present invention. Figure 3 Part of the structure of the analog-to-digital conversion circuit 100 shown is the same, and the same parts are not repeated here.

[0042] Reference Figure 4 The analog-to-digital conversion circuit 200 of this embodiment is further provided with a third multiplexer selection circuit 223. In this embodiment, the number of channels of the third multiplexer selection circuit 223 is equal to the number of channels of the first multiplexer selection circuit 121. The corresponding channel synchronization selection is controlled according to the same channel selection signal VADSEL. The reference voltage selection signals VREFSEL-0 to VREFSEL-3 connected to each channel of the third multiplexer selection circuit 223 are used to control the selection of the access channel of the second multiplexer selection circuit 122.

[0043] The reference voltage selection signal connected to each channel of the third multiplexer circuit 223 matches the type of the to-be-processed signal connected to the corresponding channel of the first multiplexer circuit 121. For example, the to-be-processed signals connected to channels 0, 1, and 2 of the first multiplexer circuit 121 are signals related to the power supply voltage, and the to-be-processed signal connected to channel 3 is an analog signal unrelated to the power supply voltage. Then, channels 0, 1, and 2 of the third multiplexer circuit 223 are the first reference voltage selection signal, corresponding to the number 0, which controls the selection of channel 0 of the second multiplexer circuit 122 and provides the first reference voltage signal VREF1 output; channel 3 of the third multiplexer circuit 223 is the second reference voltage selection signal, corresponding to the number 1, which controls the selection of channel 1 of the second multiplexer circuit 122 and provides the second reference voltage signal VREF2 output.

[0044] That is, the analog-to-digital conversion circuit 200 of this embodiment can flexibly configure the reference voltage selection signal connected to the corresponding channel of the third multiplexer circuit 223 according to the type of the access signal of each channel of the first multiplexer circuit 121, and after selecting the corresponding channel according to the same channel selection signal VADSEL, the channel selection of the second multiplexer circuit 122 can be automatically controlled, without limiting the type of the to-be-processed signal connected to each channel of the first multiplexer circuit 121, and the configuration method is flexible. Among them, in an optional embodiment, the reference voltage selection signals VREFSEL-0 to VREFSEL-3 can be configured through a software-configurable control register, and the reference voltage selection signal connected to each input end of the third multiplexer circuit 223 can be conveniently configured according to the relationship between the analog signal connected to each input end of the first multiplexer circuit 121 and the power supply voltage, and the matching relationship can be adjusted according to actual needs to adapt to a variety of actual needs.

[0045] And it can also be applied to systems with multiple alternative reference voltage signals. The number of channels of the second multiplexer circuit 122 is selected according to the number of alternative reference voltage signals, and the reference voltage selection signal accessed by the third multiplexer circuit 223 is configured according to the requirement of the access signal of the first multiplexer circuit 121 for the reference voltage signal. There is no need to provide additional channel selection signal to control the second multiplexer circuit 122.

[0046] For example, there are three alternative reference voltage signals, and the corresponding second multiplexer circuit 122 is a three-channel multiplexer circuit, and channels 0, 1, and 2 are controlled by binary numbers 00, 01, and 10 respectively. Then the reference voltage selection signals VREFSEL-0~VREFSEL-3 can be configured to 00, 01, and 10 according to the requirements of the zeroth analog signal to the fourth analog signal for the reference voltage signal.

[0047] In this embodiment, the first multiplexer circuit 121 and the third multiplexer circuit 223 are four-channel multiplexer circuits. In practice, the multiplexer circuits of corresponding channels can be selected according to the functional requirements of the system and the specific number of sampling circuits. As the number of channels increases, the number of bits of the binary channel selection signal VADSEL can be increased accordingly.

[0048] The analog-to-digital conversion circuit of the present invention is provided with a first multiplexer circuit for selecting an analog signal to be output to a conversion module, and a second multiplexer circuit for selecting a reference voltage signal to be output to the conversion module. The corresponding reference voltage signal can be selected according to the type of the output analog signal to participate in the analog-to-digital conversion, thereby improving the accuracy of the analog-to-digital conversion of multiple analog signals. The hardware control selection can realize high-reliability analog-to-digital conversion of multiple analog signals according to a single conversion module, with small hardware resource requirements and low cost.

[0049] According to the embodiments of the present invention as described above, these embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made based on the above description. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can make good use of the present invention and the modified use based on the present invention. The present invention is limited only by the claims and their full scope and equivalents.

Claims

1. An analog-to-digital conversion circuit, comprising: A first multiplexer selection circuit having a plurality of input terminals configured to receive multiple analog signals, wherein the first multiplexer selection circuit outputs a selected analog signal according to a channel selection signal; a second multiplexer circuit having a plurality of input terminals configured to receive a plurality of reference voltage signals, wherein the second multiplexer circuit outputs a reference voltage signal corresponding to the selected analog signal as a selected reference voltage signal based on the channel selection signal; as well as a conversion module, configured to receive the selected analog signal and the selected reference voltage signal, and convert the selected analog signal into a digital signal according to the selected reference voltage signal, The multi-channel analog signals at least include a first type of analog signal and a second type of analog signal. The first type of analog signal is a signal related to the power supply voltage, and the second type of analog signal is a signal unrelated to the power supply voltage. The multiple reference voltage signals include at least an external reference voltage signal related to the power supply voltage and an internal reference voltage signal unrelated to the power supply voltage. The channel selection signal has: a first logic state for causing the first multiplexer circuit to select the first type of analog signal as a selected analog signal and causing the second multiplexer circuit to select the external reference voltage signal as a selected reference voltage signal; and The second logic state is used to make the first multiplexer circuit select the second type of analog signal as the selected analog signal and make the second multiplexer circuit select the internal reference voltage signal as the selected reference voltage signal.

2. The analog-to-digital conversion circuit according to claim 1, wherein: Also includes: The third multi-way selection circuit has multiple input terminals configured to receive multiple reference voltage selection signals. The third multi-way selection circuit outputs the selected reference voltage selection signal according to the channel selection signal, and the second multi-way selection circuit selects the corresponding reference voltage signal for output according to the selected reference voltage selection signal.

3. The analog-to-digital conversion circuit according to claim 1, wherein: The channel selection signal is a multi-bit digital signal in a binary coding relationship with multiple input terminals of the first multiplexer circuit.

4. The analog-to-digital conversion circuit according to claim 3, wherein: The first multiplexer circuit opens the channel corresponding to the input end with the corresponding number according to the channel selection signal; The second multiplexer circuit opens the channel corresponding to the input terminal with the corresponding number according to the value of the least significant bit or any other bit of the channel selection signal.

5. The analog-to-digital conversion circuit according to claim 4, wherein: The number of bits of the multi-bit digital signal matches the number of channels of the first multiplexing circuit.

6. The analog-to-digital conversion circuit according to claim 2, wherein: The channel selection signal is a multi-bit digital signal in a binary coding relationship with multiple input terminals of the first multiplexer circuit.

7. The analog-to-digital conversion circuit according to claim 6, wherein: The multiple input terminals of the third multiplexer circuit correspond one-to-one to the multiple input terminals of the first multiplexer circuit, and both the first multiplexer circuit and the third multiplexer circuit open channels corresponding to the input terminals with corresponding numbers according to the channel selection signal.

8. The analog-to-digital conversion circuit according to claim 7, wherein: The number of bits of the multi-bit digital signal matches the number of channels of the first multiplexing circuit.

9. The analog-to-digital conversion circuit according to claim 2, wherein: Also includes: The software configurable control register is used to provide the multiple reference voltage selection signals to the input terminals of the third multiple selection circuit according to the types of the analog signals received by the input terminals of the first multiple selection circuit.