CN115603751A - Control method, device and medium for ADC (analog to digital converter) acquisition - Google Patents

Control method, device and medium for ADC (analog to digital converter) acquisition Download PDF

Info

Publication number
CN115603751A
CN115603751A CN202211257854.9A CN202211257854A CN115603751A CN 115603751 A CN115603751 A CN 115603751A CN 202211257854 A CN202211257854 A CN 202211257854A CN 115603751 A CN115603751 A CN 115603751A
Authority
CN
China
Prior art keywords
adc
excitation voltage
output signal
adc acquisition
adjustment factor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211257854.9A
Other languages
Chinese (zh)
Other versions
CN115603751B (en
Inventor
何永正
丁永坤
张少锋
丁大磊
李亚飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Henan Xiangyu Medical Equipment Co Ltd
Original Assignee
Henan Xiangyu Medical Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Henan Xiangyu Medical Equipment Co Ltd filed Critical Henan Xiangyu Medical Equipment Co Ltd
Priority to CN202211257854.9A priority Critical patent/CN115603751B/en
Publication of CN115603751A publication Critical patent/CN115603751A/en
Application granted granted Critical
Publication of CN115603751B publication Critical patent/CN115603751B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/18Automatic control for modifying the range of signals the converter can handle, e.g. gain ranging
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/124Sampling or signal conditioning arrangements specially adapted for A/D converters
    • H03M1/1245Details of sampling arrangements or methods
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Measuring Fluid Pressure (AREA)

Abstract

The application discloses control method, device and medium for ADC (analog to digital converter) acquisition, in order to enable a voltage value input to an ADC not to exceed an ADC acquisition range, an initial adjustment factor is set to obtain an excitation voltage calculation formula, excitation voltage is obtained according to the excitation voltage calculation formula and the initial adjustment factor, the excitation voltage is input to a sensor output circuit, an output signal of a current ADC acquisition circuit is obtained, whether the current output signal exceeds the ADC acquisition range or not is judged, if yes, the initial adjustment factor is adjusted to change the excitation voltage, and the output signal meets the ADC acquisition range. The control unit changes the excitation voltage by adjusting the initial adjustment factor, so that the output voltage of the sensor output circuit meets the ADC acquisition range, and the condition that the calculated pressure value is inaccurate because the voltage value input to the ADC exceeds the ADC acquisition range is avoided.

Description

Control method, device and medium for ADC (analog to digital converter) acquisition
Technical Field
The present disclosure relates to the field of ADCs (Analog-to-digital converters), and in particular, to a method, an apparatus, and a medium for controlling ADC acquisition.
Background
Nowadays, many electronic and electrical products on the market involve the conversion between voltage and pressure values. Generally, by using the principle that the resistance of a piezoresistive pressure sensor can change along with the change of pressure, a resistance bridge or a voltage division network is matched to convert the resistance change into a measurable voltage value, and the voltage value is quantized through an analog-digital converter, so that a digital quantity related to the pressure can be obtained. In the process, the key point is that the ADC quantizes the voltage value, and in the measurement process, when the ADC is saturated, due to the truncation effect of an input signal, the vector statistical characteristic of original data does not obey joint Gaussian distribution any more, so that the correlation between a vector quantization codebook and data to be compressed is greatly reduced, and the mismatch between the vector quantization codebook and the statistical characteristic of the data to be compressed is caused.
Therefore, how to make the voltage value input to the ADC not exceed the ADC acquisition range is an urgent technical problem to be solved by those skilled in the art.
Disclosure of Invention
The purpose of the application is to provide a control method for ADC acquisition, which enables the voltage value input to the ADC not to exceed the acquisition range of the ADC.
In order to solve the above technical problem, the present application provides a control method for ADC acquisition, which is applied to a control unit in a circuit composed of a sensor output circuit, an ADC acquisition circuit, and a control unit, and includes:
setting an initial adjustment factor;
acquiring an excitation voltage calculation formula;
obtaining an excitation voltage according to an excitation voltage calculation formula and an initial adjustment factor;
inputting an excitation voltage to a sensor output circuit;
acquiring an output signal of a current ADC acquisition circuit;
judging whether the current output signal exceeds the ADC acquisition range;
if yes, adjusting the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range.
Preferably, in the above method for controlling ADC acquisition, determining whether the current output signal exceeds an ADC acquisition range includes:
obtaining a data proportion exceeding a preset ADC sampling maximum value according to the output signal;
judging whether the data proportion exceeds the maximum preset proportion or not;
correspondingly, adjusting the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range includes:
and reducing the initial adjusting factor to change the excitation voltage until the data proportion is smaller than the maximum preset proportion.
Preferably, in the above method for controlling ADC acquisition, determining whether the current output signal exceeds an ADC acquisition range includes:
obtaining a data proportion exceeding a preset ADC sampling maximum value according to the output signal;
judging whether the data proportion is smaller than a minimum preset proportion or not;
correspondingly, adjusting the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range includes:
the initial adjustment factor is increased to change the excitation voltage until the data rate is greater than the minimum preset rate.
Preferably, in the control method for ADC acquisition, obtaining the excitation voltage according to a preset excitation voltage calculation formula and an initial adjustment factor includes:
and sending the initial adjustment factor to the DAC, so that the DAC obtains the excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor.
Preferably, in the method for controlling ADC acquisition, the inputting of the excitation voltage to the sensor output circuit includes:
the DAC is controlled to input an analog signal of the excitation voltage to the sensor output circuit.
Preferably, in the above method for controlling ADC acquisition, adjusting the initial adjustment factor to change the excitation voltage until the saturation of ADC acquisition meets the ADC acquisition range, the method further includes:
obtaining the strain resistance of the current sensor according to a preset pressure calculation formula;
and obtaining a pressure value corresponding to the strain resistance of the current sensor according to the preset corresponding relation.
Preferably, in the method for controlling ADC acquisition, obtaining a data ratio exceeding a preset maximum sampling value of the ADC according to the output signal includes:
screening the number of effective data in the output signal as total data quantity;
screening the number of data which are greater than a preset ADC sampling maximum value in the output signals as a target data volume;
and obtaining a data proportion according to the target data quantity and the total data quantity.
In order to solve the above technical problem, the present application further provides a control device for ADC acquisition, including:
the setting module is used for setting an initial adjustment factor;
the acquisition module is used for acquiring an excitation voltage calculation formula;
the calculation module is used for obtaining the excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor;
the control input module is used for inputting excitation voltage to the sensor output circuit;
the acquisition output signal module is used for acquiring the output signal of the current ADC acquisition circuit;
the judging module is used for judging whether the current output signal exceeds the ADC acquisition range; if yes, triggering the adjusting module;
and the adjusting module is used for adjusting the initial adjusting factor so as to change the excitation voltage until the output signal meets the acquisition range of the ADC.
In order to solve the above technical problem, the present application further provides a control device for ADC acquisition, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the control method for ADC acquisition when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the control method for ADC acquisition are implemented.
The application provides a control method that ADC gathered is applied to the control unit who constitutes the circuit by sensor output circuit, ADC acquisition circuit, control unit, includes: setting an initial adjustment factor; acquiring an excitation voltage calculation formula; obtaining an excitation voltage according to an excitation voltage calculation formula and an initial adjustment factor; inputting an excitation voltage to a sensor output circuit; acquiring an output signal of a current ADC acquisition circuit; judging whether the current output signal exceeds the ADC acquisition range; if so, adjusting the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range. The control unit changes the size of the excitation voltage by adjusting the size of the initial adjustment factor, so that the output voltage of the sensor output circuit meets the ADC acquisition range, and the problem that the calculated pressure value is inaccurate because the voltage value input to the ADC exceeds the ADC acquisition range is solved.
In addition, the application also provides a control device and a computer readable storage medium for ADC acquisition, which correspond to the control method for ADC acquisition and have the same effects.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a control method for ADC acquisition according to an embodiment of the present disclosure;
fig. 2 is a circuit diagram of a sensor output circuit according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a control device for ADC acquisition according to an embodiment of the present disclosure;
fig. 4 is a block diagram of another control device for ADC acquisition according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The core of the application is to provide a control method, a device and a medium for ADC acquisition.
In order that those skilled in the art will better understand the disclosure, the following detailed description is given with reference to the accompanying drawings.
An analog-to-digital converter, i.e., an a/D converter, generally refers to an electronic component that converts an analog signal into a digital signal. A typical analog-to-digital converter converts an input voltage signal into an output digital signal. Since digital signals do not have practical significance per se, only one relative magnitude is represented. Therefore, any analog-to-digital converter needs a reference analog quantity as a conversion standard, and a common reference standard is the maximum convertible signal size. And the output digital quantity represents the magnitude of the input signal relative to the reference signal. Since the ADC operates over a certain voltage range, the ADC saturates when the input signal exceeds the upper limit. When the saturation point is exceeded, the ADC is no longer able to distinguish between different input intensities. Therefore, the voltage input to the ADC needs to be limited to a certain threshold to ensure the accuracy of the measurement.
Nowadays, many electronic and electrical products on the market involve the conversion between voltage and pressure values. Generally, by using the principle that the resistance of a piezoresistive pressure sensor can change along with the change of pressure, a resistance bridge or a voltage division network is matched to convert the resistance change into a measurable voltage value, and the voltage value is quantized through an analog-digital converter, so that a digital quantity related to the pressure can be obtained. In this process, the key point is that the ADC quantizes the voltage value, and during the measurement process, the voltage entering the ADC needs to be limited within the acquisition range of the ADC.
In order to make the voltage value input to the ADC not exceed the ADC acquisition range, this embodiment provides a preferred scheme, and a control method for ADC acquisition, which is applied to a control unit in a circuit composed of a sensor output circuit, an ADC acquisition circuit, and a control unit, and fig. 1 is a flowchart of a control method for ADC acquisition provided in this embodiment of the present application, as shown in fig. 1, including:
s11: setting an initial adjustment factor;
s12: acquiring an excitation voltage calculation formula;
s13: obtaining an excitation voltage according to an excitation voltage calculation formula and an initial adjustment factor;
s14: inputting an excitation voltage to a sensor output circuit;
s15: acquiring an output signal of a current ADC acquisition circuit;
s16: judging whether the current output signal exceeds the ADC acquisition range; if yes, entering S17;
s17: the initial adjustment factor is adjusted to change the excitation voltage until the output signal meets the ADC acquisition range.
It should be noted that, in this embodiment, the sensor is an array pressure sensor, an output end of the sensor output circuit is connected to an input end of the ADC acquisition circuit, the control unit controls an output voltage of the sensor output circuit by controlling an excitation voltage of the sensor output circuit, and the control unit is connected to the ADC acquisition circuit to obtain an output signal of the ADC acquisition circuit.
Preferably, the control unit is a Field Programmable Gate Array (FPGA), and the FPGA device belongs to a semi-custom circuit in an asic, and is a Programmable logic Array, which can effectively solve the problem of a small number of Gate circuits in the conventional device. The basic structure of the FPGA comprises a programmable input/output unit, a configurable logic block, a digital clock management module, an embedded block RAM, wiring resources, an embedded special hard core and a bottom layer embedded functional unit. The FPGA has the characteristics of rich wiring resources, high repeatable programming and integration level and low investment.
For better understanding of the present solution, the present embodiment provides a sensor output circuit, as shown in fig. 2, where U3 denotes an array type pressure sensor, and when several sensing points are subjected to an applied pressure, the circuit with the bottom layers disconnected from each other is conducted through the lower conductive layer. 1/Rvar (Rvar is the sensor strain resistance) is approximately linear with pressure (1/R = K F, K is the proportionality coefficient, F is the pressure), the output voltage Vout of the sensor output circuit = (R1R 3 Vin/R2) = (1/Rvar) (where Vout is the sensor output voltage, vin is the excitation voltage, R1, R2, R3 are the fixed resistances, rvar is the sensor strain resistance).
Therefore, vout (sensor output voltage) is linearly related to 1/Rvar (sensor strain resistance) when Vin (excitation voltage) is constant (i.e.: 1/Rvar = (Vout × R2)/(R1 × R3 × Vin)).
It follows that the pressure value can be determined from the sensor output voltage when the excitation voltage is unchanged, so that the sensor voltage output and the pressure value range can be changed as long as the excitation voltage range can be controlled.
Because the output voltage of the sensor can be finally used as the input voltage of the ADC acquisition circuit, the saturation of the output voltage of the pressure sensor can be well and dynamically controlled as long as the output voltage range of the sensor is dynamically matched with the ADC acquisition voltage range.
In order to keep the output voltage range of the sensor and the ADC acquisition voltage range dynamically matched, an excitation voltage calculation formula can be obtained according to the excitation power circuit chip, namely step S12. For example, an excitation voltage calculation formula obtained according to a DAC chip manual is excitation voltage Vin (unit: V) = (N x 3.3V)/256, N is used as an initial adjustment factor, and the sensor output voltage range and the ADC acquisition voltage range are kept matched by changing the size of the initial adjustment factor.
Step S13, after obtaining the excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor, step S14 inputs the excitation voltage to the sensor output circuit, at the moment, the output voltage of the sensor output circuit is used as the input signal of the ADC acquisition circuit, and step S15 obtains the output signal of the current ADC acquisition circuit; step S16, judging whether the current output signal exceeds the ADC acquisition range; that is, whether the output voltage range of the sensor and the ADC acquisition voltage range match in the initial adjustment factor N at this time is determined, if yes, step S17 is performed to adjust the initial adjustment factor to change the excitation voltage until the output signal satisfies the ADC acquisition range. Because the best test performance can only be obtained if the voltage range of the sensor matches the voltage range of the ADC acquisition.
The control method for ADC acquisition is applied to a control unit in a circuit consisting of a sensor output circuit, an ADC acquisition circuit and a control unit, and an initial adjustment factor is set; acquiring an excitation voltage calculation formula; obtaining an excitation voltage according to an excitation voltage calculation formula and an initial adjustment factor; inputting an excitation voltage to a sensor output circuit; acquiring an output signal of a current ADC acquisition circuit; judging whether the current output signal exceeds the ADC acquisition range; if so, adjusting the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range. The control unit changes the size of the excitation voltage by adjusting the size of the initial adjustment factor, so that the output voltage of the sensor output circuit meets the ADC acquisition range, and the problem that the calculated pressure value is inaccurate because the voltage value input to the ADC exceeds the ADC acquisition range is solved.
According to the foregoing embodiments, this implementation provides a preferable scheme for determining whether the current output signal exceeds the ADC acquisition range, including:
obtaining a data proportion exceeding a preset ADC sampling maximum value according to the output signal;
judging whether the data proportion exceeds the maximum preset proportion or not;
correspondingly, adjusting the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range includes:
the initial adjustment factor is decreased to change the excitation voltage until the data rate is less than the maximum preset rate.
According to the above embodiment, the dot matrix pressure sensor comprises a plurality of contact points, each contact point is effectively pressed, accordingly, the sensor output circuit outputs a pressure signal, that is, outputs a set of pressures, and correspondingly, the ADC acquisition circuit outputs a plurality of output signals. Therefore, the data proportion exceeding the preset ADC sampling maximum value is obtained according to the output signals, namely, the proportion occupied by the numerical value exceeding the preset ADC sampling maximum value in the output signals is judged, whether the data proportion exceeds the maximum preset proportion or not is judged, and if the data proportion exceeds the maximum preset proportion, the initial adjustment factor is reduced to change the excitation voltage until the data proportion is smaller than the maximum preset proportion.
According to the above embodiment, correspondingly, the determining whether the current output signal exceeds the ADC acquisition range includes:
obtaining a data proportion exceeding a preset ADC sampling maximum value according to the output signal;
judging whether the data proportion is smaller than a minimum preset proportion or not;
correspondingly, adjusting the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range includes:
the initial adjustment factor is increased to change the excitation voltage until the data rate is greater than the minimum preset rate.
And obtaining a data proportion exceeding the preset ADC sampling maximum value according to the output signals, namely judging the proportion occupied by the numerical value exceeding the preset ADC sampling maximum value in the plurality of output signals, judging whether the data proportion is smaller than the minimum preset proportion, and if so, increasing an initial adjustment factor to change the excitation voltage until the data proportion is larger than the minimum preset proportion.
The present embodiment provides a preferred scheme for outputting an excitation voltage to a past output circuit, and obtaining the excitation voltage according to a preset excitation voltage calculation formula and an initial adjustment factor, including:
sending the initial adjustment factor to the DAC so that the DAC can obtain an excitation voltage according to an excitation voltage calculation formula and the initial adjustment factor;
the control DAC inputs an analog signal of the excitation voltage to the sensor output circuit.
The control unit does not directly output the excitation voltage, but sends an adjustment factor to a digital-to-analog converter (DAC), and the DAC receives the digital signal, calculates the value of the excitation voltage according to an excitation voltage calculation formula, and outputs the value to the sensor output circuit as an analog signal to serve as the excitation voltage of the sensor output circuit. Thus, the control unit does not need to directly output the voltage value.
When the size of the initial adjustment factor is adjusted to change the size of the excitation voltage, after the output voltage of the sensor output circuit meets the ADC acquisition range, the pressure value applied to the pressure sensor can be calculated according to the output voltage, this implementation provides a preferred scheme, the initial adjustment factor is adjusted to change the excitation voltage, and after the ADC acquisition saturation meets the ADC acquisition range, the method further includes:
obtaining the strain resistance of the current sensor according to a preset pressure calculation formula;
and obtaining a pressure value corresponding to the current sensor strain resistance according to the preset corresponding relation.
Under the condition that the excitation voltage is not changed, the pressure value can be obtained through the output voltage of the sensor, the current sensor strain resistance can be obtained by combining the current excitation voltage value according to a preset pressure calculation formula, the sensor strain resistance and the received pressure are in an approximate linear relation, the relation can be obtained through experiments in advance, namely, a preset corresponding relation is obtained, and the pressure value corresponding to the current sensor strain resistance is obtained according to the preset corresponding relation.
In the foregoing embodiment, it is necessary to determine that the output signal obtains the data proportion exceeding the preset maximum sampling value of the ADC, and therefore, the implementation provides a preferable scheme that obtaining the data proportion exceeding the preset maximum sampling value of the ADC according to the output signal includes:
screening the number of effective data in the output signal as total data quantity;
screening the number of data which are greater than a preset ADC sampling maximum value in the output signals as a target data volume;
and obtaining a data proportion according to the target data quantity and the total data quantity.
The effective data number of the contact points of the array pressure sensor, which are stressed by pressure, is used as total data volume, the data number larger than the preset ADC sampling maximum value is used as target data volume, and the ratio of the target data volume to the total data volume is the data proportion of the output signal, which exceeds the preset ADC sampling maximum value.
In the above embodiments, the control method for ADC acquisition is described in detail, and the present application also provides embodiments corresponding to the control device for ADC acquisition. It should be noted that the present application describes the embodiments of the apparatus portion from two perspectives, one from the perspective of the function module and the other from the perspective of the hardware.
Fig. 3 is a schematic diagram of a control device for ADC acquisition according to an embodiment of the present disclosure, and as shown in fig. 3, the control device for ADC acquisition includes:
a setting module 31, configured to set an initial adjustment factor;
an obtaining module 32, configured to obtain an excitation voltage calculation formula;
the calculation module 33 is configured to obtain an excitation voltage according to an excitation voltage calculation formula and an initial adjustment factor;
a control input module 34 for inputting an excitation voltage to the sensor output circuit;
an output signal acquiring module 35, configured to acquire an output signal of the current ADC acquisition circuit;
a judging module 36, configured to judge whether the current output signal exceeds an ADC acquisition range; if yes, triggering the adjusting module;
and an adjusting module 37, configured to adjust the initial adjustment factor to change the excitation voltage until the output signal satisfies the ADC acquisition range.
Specifically, the setting module 31 sets an initial adjustment factor, the obtaining module 32 obtains an excitation voltage calculation formula, the calculating module 33 obtains an excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor, and the input module 34 is controlled to input the excitation voltage to the sensor output circuit; the output signal acquiring module 35 acquires an output signal of the current ADC acquisition circuit, the determining module 36 determines whether the current output signal exceeds an ADC acquisition range, and if so, the adjusting module is triggered, and the adjusting module 37 adjusts an initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range. The size of the excitation voltage is changed by adjusting the size of the initial adjustment factor, so that the output voltage of the sensor output circuit meets the ADC acquisition range, and the problem that the calculated pressure value is inaccurate because the voltage value input to the ADC exceeds the ADC acquisition range is solved.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Fig. 4 is a structural diagram of another control device for ADC acquisition according to an embodiment of the present application, and as shown in fig. 4, the control device for ADC acquisition includes: a memory 40 for storing a computer program;
and a processor 41, configured to implement the steps of the control method for ADC acquisition according to the above embodiment when executing the computer program.
The control device for ADC acquisition provided by this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, or a desktop computer.
Processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The Processor 41 may be implemented in hardware using at least one of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), and a Programmable Logic Array (PLA). The processor 41 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 41 may be integrated with a Graphics Processing Unit (GPU) which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 41 may also include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
Memory 40 may include one or more computer-readable storage media, which may be non-transitory. Memory 40 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least used for storing the following computer program 401, wherein after being loaded and executed by the processor 41, the computer program can implement the relevant steps of the control method for ADC acquisition disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 40 may also include an operating system 402, data 403, and the like, and the storage manner may be a transient storage or a permanent storage. Operating system 402 may include, among other things, windows, unix, linux, and the like. The data 403 may include, but is not limited to, data related to the control method implementing the ADC acquisition, and the like.
In some embodiments, the control device for ADC acquisition may further include a display 42, an input/output interface 43, a communication interface 44, a power supply 45, and a communication bus 46.
It will be appreciated by those skilled in the art that the arrangement shown in figure 4 does not constitute a limitation of the control means for the ADC acquisition and may include more or fewer components than those shown.
The control device for ADC acquisition provided by the embodiment of the application comprises a memory and a processor, wherein when the processor executes a program stored in the memory, the following method can be realized: the control method of ADC acquisition comprises the steps of setting an initial adjustment factor, obtaining an excitation voltage calculation formula, obtaining excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor, inputting the excitation voltage to a sensor output circuit, and obtaining an output signal of a current ADC acquisition circuit; judging whether the current output signal exceeds the ADC acquisition range; if so, adjusting the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range. The control unit changes the size of the excitation voltage by adjusting the size of the initial adjustment factor, so that the output voltage of the sensor output circuit meets the ADC acquisition range, and the problem that the calculated pressure value is inaccurate because the voltage value input to the ADC exceeds the ADC acquisition range is solved.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps as described in the above-described control method embodiment of ADC acquisition.
It is understood that, if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods of the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of: the control method of ADC acquisition comprises the steps of setting an initial adjustment factor, obtaining an excitation voltage calculation formula, obtaining an excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor, inputting the excitation voltage to a sensor output circuit, and obtaining an output signal of a current ADC acquisition circuit; judging whether the current output signal exceeds the ADC acquisition range; if yes, adjusting the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range. The control unit changes the size of the excitation voltage by adjusting the size of the initial adjustment factor, so that the output voltage of the sensor output circuit meets the ADC acquisition range, and the problem that the calculated pressure value is inaccurate because the voltage value input to the ADC exceeds the ADC acquisition range is solved.
The detailed description of the control method, device and medium for ADC acquisition provided by the present application is provided above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed in the embodiment corresponds to the method disclosed in the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A control method for ADC acquisition is applied to a control unit in a circuit consisting of a sensor output circuit, an ADC acquisition circuit and the control unit, and is characterized by comprising the following steps:
setting an initial adjustment factor;
acquiring an excitation voltage calculation formula;
obtaining an excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor;
inputting the excitation voltage to the sensor output circuit;
acquiring the output signal of the ADC acquisition circuit at present;
judging whether the current output signal exceeds an ADC (analog-to-digital converter) acquisition range;
and if so, adjusting the initial adjustment factor to change the excitation voltage until the output signal meets the acquisition range of the ADC.
2. The method for controlling ADC acquisition according to claim 1, wherein said determining whether the current output signal exceeds an ADC acquisition range includes:
obtaining a data proportion exceeding a preset ADC sampling maximum value according to the output signal;
judging whether the data proportion exceeds a maximum preset proportion or not;
correspondingly, the adjusting the initial adjustment factor to change the excitation voltage until the output signal meets an ADC acquisition range includes:
and reducing the initial adjustment factor to change the excitation voltage until the data proportion is smaller than the maximum preset proportion.
3. The method of claim 1, wherein the determining whether the output signal currently exceeds the ADC acquisition range comprises:
obtaining a data proportion exceeding a preset ADC sampling maximum value according to the output signal;
judging whether the data proportion is smaller than a minimum preset proportion or not;
correspondingly, the adjusting the initial adjustment factor to change the excitation voltage until the output signal satisfies an ADC acquisition range includes:
increasing the initial adjustment factor to change the excitation voltage until the data proportion is greater than the minimum preset proportion.
4. The method of controlling ADC acquisition according to claim 1, wherein said obtaining an excitation voltage according to the preset excitation voltage calculation formula and the initial adjustment factor comprises:
and sending the initial adjustment factor to a DAC (digital-to-analog converter), so that the DAC obtains an excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor.
5. The method of controlling ADC acquisition according to claim 4, wherein said inputting said excitation voltage to said sensor output circuit comprises:
and controlling the DAC to input the analog signal of the excitation voltage to the sensor output circuit.
6. The method of claim 1, wherein the adjusting the initial adjustment factor to change the excitation voltage until after the ADC acquisition saturation meets an ADC acquisition range further comprises:
obtaining the strain resistance of the current sensor according to a preset pressure calculation formula;
and obtaining a pressure value corresponding to the strain resistance of the sensor at present according to a preset corresponding relation.
7. The method for controlling ADC acquisition according to claim 2, wherein said deriving the proportion of data exceeding a preset ADC sample maximum value according to the output signal comprises:
screening the number of effective data in the output signal as total data quantity;
screening the number of data which are larger than the preset ADC sampling maximum value in the output signals as target data quantity;
and obtaining the data proportion according to the target data quantity and the total data quantity.
8. A control device for ADC acquisition, comprising:
the setting module is used for setting an initial adjustment factor;
the acquisition module is used for acquiring an excitation voltage calculation formula;
the calculation module is used for obtaining the excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor;
a control input module for inputting the excitation voltage to the sensor output circuit;
an output signal acquisition module, configured to acquire the output signal of the current ADC acquisition circuit;
the judging module is used for judging whether the current output signal exceeds the ADC acquisition range; if yes, triggering the adjusting module;
and the adjusting module is used for adjusting the initial adjusting factor so as to change the excitation voltage until the output signal meets the acquisition range of the ADC.
9. A control device for ADC acquisition, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of controlling ADC acquisition according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, realizes the steps of the method of controlling ADC acquisition according to any one of claims 1 to 7.
CN202211257854.9A 2022-10-13 2022-10-13 ADC acquisition control method, ADC acquisition control device and medium Active CN115603751B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211257854.9A CN115603751B (en) 2022-10-13 2022-10-13 ADC acquisition control method, ADC acquisition control device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211257854.9A CN115603751B (en) 2022-10-13 2022-10-13 ADC acquisition control method, ADC acquisition control device and medium

Publications (2)

Publication Number Publication Date
CN115603751A true CN115603751A (en) 2023-01-13
CN115603751B CN115603751B (en) 2024-03-01

Family

ID=84846296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211257854.9A Active CN115603751B (en) 2022-10-13 2022-10-13 ADC acquisition control method, ADC acquisition control device and medium

Country Status (1)

Country Link
CN (1) CN115603751B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10318602A1 (en) * 2003-04-24 2004-11-18 Infineon Technologies Ag Adjusting device for signal-noise ratio between signal level and noise level in test signal emits test signal dependent on detected measurable variable
CN101075374A (en) * 2007-06-26 2007-11-21 北京必创科技有限公司 Apparatus for realizing low-consumption wireless monitor
US20090241014A1 (en) * 2008-03-19 2009-09-24 Alstom Transport Sa Safe threshold-detection device for a railway system
CN204963880U (en) * 2015-09-16 2016-01-13 成都众山科技有限公司 Multichannel intelligence becomes send device
CN108306645A (en) * 2018-01-19 2018-07-20 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Sensor digital collection capacity acquisition methods, apparatus and system
CN108716754A (en) * 2018-05-29 2018-10-30 安徽泽川智合网络科技有限责任公司 A kind of indoor air quality on-line monitoring system
CN110702972A (en) * 2019-10-08 2020-01-17 浙江大学 Adaptive sampling method and device for analog signals
CN111929493A (en) * 2020-08-24 2020-11-13 通号(北京)轨道工业集团有限公司轨道交通技术研究院 Current acquisition equipment and circuit monitoring system
CN113624397A (en) * 2021-08-16 2021-11-09 苏州司南传感科技有限公司 Silicon piezoresistive pressure sensor calibration compensation method
US20210381854A1 (en) * 2020-06-03 2021-12-09 Nxp Usa, Inc. Sensor interface circuit, sensor system, and method of signal measurement
CN114264384A (en) * 2021-12-25 2022-04-01 南京英锐创电子科技有限公司 Temperature sensor, temperature sensing method, and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10318602A1 (en) * 2003-04-24 2004-11-18 Infineon Technologies Ag Adjusting device for signal-noise ratio between signal level and noise level in test signal emits test signal dependent on detected measurable variable
CN101075374A (en) * 2007-06-26 2007-11-21 北京必创科技有限公司 Apparatus for realizing low-consumption wireless monitor
US20090241014A1 (en) * 2008-03-19 2009-09-24 Alstom Transport Sa Safe threshold-detection device for a railway system
CN204963880U (en) * 2015-09-16 2016-01-13 成都众山科技有限公司 Multichannel intelligence becomes send device
CN108306645A (en) * 2018-01-19 2018-07-20 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Sensor digital collection capacity acquisition methods, apparatus and system
CN108716754A (en) * 2018-05-29 2018-10-30 安徽泽川智合网络科技有限责任公司 A kind of indoor air quality on-line monitoring system
CN110702972A (en) * 2019-10-08 2020-01-17 浙江大学 Adaptive sampling method and device for analog signals
US20210381854A1 (en) * 2020-06-03 2021-12-09 Nxp Usa, Inc. Sensor interface circuit, sensor system, and method of signal measurement
CN111929493A (en) * 2020-08-24 2020-11-13 通号(北京)轨道工业集团有限公司轨道交通技术研究院 Current acquisition equipment and circuit monitoring system
CN113624397A (en) * 2021-08-16 2021-11-09 苏州司南传感科技有限公司 Silicon piezoresistive pressure sensor calibration compensation method
CN114264384A (en) * 2021-12-25 2022-04-01 南京英锐创电子科技有限公司 Temperature sensor, temperature sensing method, and storage medium

Also Published As

Publication number Publication date
CN115603751B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
US10003353B2 (en) Time-based delay line analog comparator
US20080068245A1 (en) A-d converter and a-d convert method
TW201810955A (en) Microcontroller with digital delay line analog-to-digital converter
CN114553222B (en) Device and method for improving gain range of sample holder
CN111381152B (en) Measuring circuit for quantifying circuit operation speed change
KR970707485A (en) DIGITAL TRIMMING OF ON-CHIP ANALOG COMPONENTS
CN110289821B (en) Radio frequency signal output power control circuit, method and device adapting to working condition environment
CN102262172B (en) Power monitoring method and device
CN113904632A (en) Method, device and system for calibrating offset voltage of operational amplification circuit
CN100546195C (en) A kind of improved voltage marking D/A converter
CN115603751A (en) Control method, device and medium for ADC (analog to digital converter) acquisition
CN111819796B (en) Analog-to-digital conversion method, device, chip, electronic equipment and storage medium
US20100145640A1 (en) System and method for electrical parameter estimation
CN104702283B (en) The non-analog conversion to number of random coded
CN113839631A (en) Circuit and method for quickly predicting sensing value
CN107329102B (en) Sensor calibration method and user-calibratable sensor structure
CN107578242B (en) Fingerprint sensing system and method
CN112564710B (en) Analog-to-digital conversion method, device, circuit and computer readable storage medium
US6999011B2 (en) Microcode driven adjustment of analog-to-digital converter
US8907827B2 (en) A/D converter reference calibration
CN112114264B (en) Battery electric quantity detection system
US20040080439A1 (en) System for and method for optimizing audio transfer resolution through the analog to digital conversion process
CN110866595B (en) Method, device and circuit for operating activation function in integrated circuit
CN113364461A (en) Analog-to-digital conversion calibration method and system for chip to be tested
WO2019155985A1 (en) Recording device and recording method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant