CN116436464A - ADC circuit and conversion method thereof - Google Patents

ADC circuit and conversion method thereof Download PDF

Info

Publication number
CN116436464A
CN116436464A CN202310484077.XA CN202310484077A CN116436464A CN 116436464 A CN116436464 A CN 116436464A CN 202310484077 A CN202310484077 A CN 202310484077A CN 116436464 A CN116436464 A CN 116436464A
Authority
CN
China
Prior art keywords
signal
sub
digital signal
conversion
digital
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.)
Pending
Application number
CN202310484077.XA
Other languages
Chinese (zh)
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.)
Shanghai Yingheng Electronic Co ltd
Original Assignee
Shanghai Yingheng Electronic 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 Shanghai Yingheng Electronic Co ltd filed Critical Shanghai Yingheng Electronic Co ltd
Priority to CN202310484077.XA priority Critical patent/CN116436464A/en
Publication of CN116436464A publication Critical patent/CN116436464A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/10Calibration or testing
    • H03M1/1071Measuring or testing
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • 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
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses an ADC circuit and a conversion method thereof, wherein the conversion method comprises the following steps: acquiring a first theoretical digital signal, a second theoretical digital signal and an input analog signal; the first theoretical digital signal is a theoretical digital signal which carries out analog-to-digital conversion on the standard analog signal according to a first reference relation; the second theoretical digital signal is a theoretical digital signal which carries out analog-to-digital conversion on the standard analog signal according to a second reference relation; the ADC circuit is controlled to convert the standard analog signal into a first digital signal according to the first reference relation, and the ADC circuit is controlled to convert the standard analog signal into a second digital signal according to the second reference relation; and determining the conversion relation of the ADC circuit according to the first theoretical digital signal, the second theoretical digital signal, the first digital signal and the second digital signal. By adopting the technical scheme, whether the ADC circuit is reliable can be judged, and the reliability of the conversion result of the ADC circuit for carrying out analog-to-digital conversion on the input analog signal is ensured.

Description

ADC circuit and conversion method thereof
Technical Field
The invention relates to the technical field of analog-to-digital conversion, in particular to an ADC circuit and a conversion method thereof.
Background
At present, analog signal acquisition and analog-to-digital conversion are widely applied in various fields. For example, real world analog signals, such as temperature, pressure, sound, images, etc., need to be converted into digital form that is easier to store, process, and transmit. A typical analog-to-digital conversion (Analog to Digital Converter, ADC) circuit converts an analog signal into a digital signal representing a proportional voltage value. The ADC circuit is a high-precision data conversion device, is easily influenced by external environment in the actual use process, and can be invalid or can not reach the calibrated precision, so that the reliability and stability of the ADC circuit are reduced, and the performance of the whole system is greatly influenced.
Disclosure of Invention
The invention provides an ADC circuit and a conversion method thereof, which are used for judging and ensuring the reliability of the ADC circuit.
According to an aspect of the present invention, there is provided a conversion method of an ADC circuit, including:
acquiring a first theoretical digital signal, a second theoretical digital signal and an input analog signal; the first theoretical digital signal is a theoretical digital signal which carries out analog-to-digital conversion on a standard analog signal according to a first reference relation; the second theoretical digital signal is a theoretical digital signal which carries out analog-to-digital conversion on the standard analog signal according to a second reference relation;
Controlling the ADC circuit to convert the standard analog signal into a first digital signal according to the first reference relation, and controlling the ADC circuit to convert the standard analog signal into a second digital signal according to the second reference relation;
and determining the conversion relation of the ADC circuit according to the first theoretical digital signal, the second theoretical digital signal, the first digital signal and the second digital signal.
Optionally, determining the conversion relationship of the ADC circuit according to the first theoretical digital signal, the second theoretical digital signal, the first digital signal, and the second digital signal includes:
if the first digital signal is the same as the first theoretical digital signal, determining that the conversion relation of the ADC circuit is the first reference relation; or alternatively, the process may be performed,
and if the second digital signal is the same as the second theoretical digital signal, determining the conversion relation of the ADC circuit as the second reference relation.
Optionally, determining the conversion relationship of the ADC circuit according to the first theoretical digital signal, the second theoretical digital signal, the first digital signal, and the second digital signal includes:
If the first digital signal is the same as the first theoretical digital signal and the second digital signal is the same as the second theoretical digital signal, controlling the ADC circuit to convert an input analog signal into a third digital signal according to the first reference relation and controlling the ADC circuit to convert the input analog signal into a fourth digital signal according to the second reference relation;
normalizing the third digital signal and the fourth digital signal to determine a normalized digital signal of the third digital signal and a normalized digital signal of the fourth digital signal;
judging whether the normalized digital signal of the third digital signal is the same as the normalized digital signal of the fourth digital signal;
if yes, determining that the conversion relation of the ADC circuit is the first reference relation or the second reference relation.
Optionally, determining the conversion relationship of the ADC circuit according to the first theoretical digital signal, the second theoretical digital signal, the first digital signal, and the second digital signal further includes:
and if the normalized digital signal of the third digital signal is different from the normalized digital signal of the fourth digital signal, prompting a system error.
Optionally, determining the conversion relationship of the ADC circuit according to the first theoretical digital signal, the second theoretical digital signal, the first digital signal, and the second digital signal further includes:
and if the first digital signal is different from the first theoretical digital signal and the second digital signal is different from the second theoretical digital signal, reminding the system error.
Optionally, determining the conversion relationship of the ADC circuit according to the first theoretical digital signal, the second theoretical digital signal, the first digital signal, and the second digital signal further includes:
normalizing the first digital signal and the second digital signal if the first digital signal is different from the first theoretical digital signal and the second digital signal is different from the second theoretical digital signal, and determining normalized digital signals of the first digital signal and the second digital signal;
judging whether the normalized digital signal of the first digital signal is the same as the normalized digital signal of the second digital signal;
if yes, determining that the conversion relation of the ADC circuit is the first reference relation or the second reference relation.
Optionally, determining the conversion relationship of the ADC circuit according to the first theoretical digital signal, the second theoretical digital signal, the first digital signal, and the second digital signal further includes:
normalizing the first digital signal and the second digital signal if the first digital signal is different from the first theoretical digital signal and the second digital signal is different from the second theoretical digital signal, and determining normalized digital signals of the first digital signal and the second digital signal;
judging whether the normalized digital signal of the first digital signal is the same as the normalized digital signal of the second digital signal;
if yes, the ADC circuit is controlled to convert an input analog signal into a third digital signal according to the first reference relation, and the ADC circuit is controlled to convert the input analog signal into a fourth digital signal according to the second reference relation;
normalizing the third digital signal and the fourth digital signal to determine a normalized digital signal of the third digital signal and a normalized digital signal of the fourth digital signal;
Judging whether the normalized digital signal of the third digital signal is the same as the normalized digital signal of the fourth digital signal;
if yes, determining that the conversion relation of the ADC circuit is the first reference relation or the second reference relation.
Optionally, the standard analog signal includes a first standard analog signal and a second standard analog signal;
the first theoretical digital signal comprises a first sub-signal and a second sub-signal; the first sub-signal is a theoretical digital signal which carries out analog-to-digital conversion on the first standard analog signal according to the first reference relation; the second sub-signal is a theoretical digital signal which carries out analog-to-digital conversion on the second standard analog signal according to the first reference relation;
the second theoretical digital signal comprises a third sub-signal and a fourth sub-signal; the third sub-signal is a theoretical digital signal which carries out analog-to-digital conversion on the first standard analog signal according to the second reference relation; the fourth sub-signal is a theoretical digital signal which carries out analog-to-digital conversion on the second standard analog signal according to the second reference relation;
the first digital signal includes a fifth sub-signal and a sixth sub-signal; the fifth sub-signal is a result of the ADC circuit converting the first standard analog signal according to the first reference relationship; the sixth sub-signal is a result of the ADC circuit converting the second standard analog signal according to the first reference relationship;
The second digital signal includes a seventh sub-signal and an eighth sub-signal; the seventh sub-signal is a result of the ADC circuit converting the first standard analog signal according to the second reference relationship; the eighth sub-signal is a result of the ADC circuit converting the second standard analog signal according to the second reference relationship;
determining a conversion relationship of the ADC circuit according to the first theoretical digital signal, the second theoretical digital signal, the first digital signal, and the second digital signal, including:
and determining the conversion relation of the ADC circuit according to the first sub-signal, the second sub-signal, the third sub-signal, the fourth sub-signal, the fifth sub-signal, the sixth sub-signal, the seventh sub-signal and the eighth sub-signal.
Optionally, determining the conversion relationship of the ADC circuit according to the first sub-signal, the second sub-signal, the third sub-signal, the fourth sub-signal, the fifth sub-signal, the sixth sub-signal, the seventh sub-signal, and the eighth sub-signal includes:
if the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is the same as the second sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the first reference relationship or the second reference relationship;
Or if the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is different from the first sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is different from the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the first reference relationship or the second reference relationship;
or if the fifth sub-signal is different from the first sub-signal, the sixth sub-signal is the same as the first sub-signal, the seventh sub-signal is different from the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the first reference relationship or the second reference relationship.
Optionally, determining the conversion relationship of the ADC circuit according to the first sub-signal, the second sub-signal, the third sub-signal, the fourth sub-signal, the fifth sub-signal, the sixth sub-signal, the seventh sub-signal, and the eighth sub-signal, further includes:
if the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is the same as the first sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is different from the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the first reference relationship;
Or if the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is the same as the first sub-signal, the seventh sub-signal is different from the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the first reference relationship;
or if the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is the same as the first sub-signal, the seventh sub-signal is different from the third sub-signal, and the eighth sub-signal is different from the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the first reference relationship.
Optionally, determining the conversion relationship of the ADC circuit according to the first sub-signal, the second sub-signal, the third sub-signal, the fourth sub-signal, the fifth sub-signal, the sixth sub-signal, the seventh sub-signal, and the eighth sub-signal, further includes:
if the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is different from the first sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the second reference relationship;
Or if the fifth sub-signal is different from the first sub-signal, the sixth sub-signal is the same as the first sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the second reference relationship;
or if the fifth sub-signal is different from the first sub-signal, the sixth sub-signal is different from the first sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, the conversion relationship of the ADC circuit is determined to be the second reference relationship.
Optionally, determining the conversion relationship of the ADC circuit according to the first sub-signal, the second sub-signal, the third sub-signal, the fourth sub-signal, the fifth sub-signal, the sixth sub-signal, the seventh sub-signal, and the eighth sub-signal, further includes:
and if the fifth sub-signal is different from the first sub-signal, the eighth sub-signal is different from the fourth sub-signal, and/or the sixth sub-signal is different from the first sub-signal, and the seventh sub-signal is different from the third sub-signal, reminding of system errors is performed.
According to another aspect of the present invention, there is provided an ADC circuit comprising: a controller and an ADC conversion module;
the ADC conversion module comprises a first reference quantity receiving end, a second reference quantity receiving end, a standard analog signal receiving end, an input analog signal receiving end, a control signal receiving end and a digital signal output end;
the controller comprises a control signal output end and a digital signal receiving end;
the control signal receiving end is electrically connected with the control signal output end; the digital signal output end is electrically connected with the digital signal receiving end;
the controller is used for executing the conversion method of the ADC circuit;
the ADC conversion module is used for carrying out analog-to-digital conversion on the standard analog signal or the input analog signal according to the first reference relation or the second reference relation.
Optionally, the ADC conversion module includes a signal selection circuit and an ADC conversion circuit;
the signal selection circuit comprises a first input end, a second input end, a reference quantity output end and a first control end;
the ADC conversion circuit comprises a reference quantity receiving end, a first receiving end, a second receiving end, a first output end and a second control end;
The first input end is electrically connected with the first reference quantity receiving end; the second input end is electrically connected with the second reference quantity receiving end; the reference quantity output end is electrically connected with the reference quantity receiving end; the first receiving end is electrically connected with the standard analog signal receiving end; the second receiving end is electrically connected with the input analog signal receiving end; the first output end is electrically connected with the digital signal output end; the first control end and the second control end are electrically connected with the control signal receiving end;
the signal selection circuit is used for outputting the first reference quantity or the second reference quantity according to a first control signal received by the first control end;
the ADC circuit is used for performing analog-to-digital conversion on the standard analog signal or the input analog signal according to a second control signal received by the second control end.
Optionally, the ADC conversion module includes a first ADC conversion circuit and a second ADC conversion circuit;
the first ADC conversion circuit comprises a first reference sub-end, a first standard sub-end, a first input sub-end, a first conversion output sub-end and a first control signal receiving end;
The second ADC conversion circuit comprises a second reference sub-end, a second standard sub-end, a second input sub-end, a second conversion output sub-end and a second control signal receiving end;
the first reference sub-terminal is electrically connected with the first reference quantity receiving terminal; the second reference sub-terminal is electrically connected with the second reference quantity receiving terminal; the first standard sub-terminal and the second standard sub-terminal are electrically connected with the standard analog signal receiving terminal; the first input sub-end and the second input sub-end are connected with the input analog signal receiving end; the first conversion output sub-end and the second conversion output sub-end are electrically connected with the digital signal output end; the first control signal receiving end and the second control signal receiving end are electrically connected with the control signal receiving end;
the first ADC conversion circuit is configured to perform analog-to-digital conversion on the standard analog signal or the input analog signal according to the first reference relationship under the control of the first control signal received by the first control signal receiving end;
the second ADC conversion circuit is configured to perform analog-to-digital conversion on the standard analog signal or the input analog signal according to the second reference relationship under control of a second control signal received by the second control signal receiving end.
According to the technical scheme, the first theoretical digital signal and the second theoretical digital signal are obtained, the ADC circuit is controlled to convert the standard analog signal, the first digital signal and the second digital signal can be obtained, whether the first reference relation and the second reference relation are normal or not can be determined according to the first theoretical digital signal, the second theoretical digital signal, the first digital signal and the second digital signal, the normal reference relation is used as a conversion relation, the input analog signal is converted, whether the ADC circuit is reliable or not can be judged, and the reliability of the conversion result of the ADC circuit for carrying out analog-to-digital conversion on the input analog signal is ensured.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a conversion method of an ADC circuit according to a first embodiment of the invention;
fig. 2 is a flowchart of a conversion method of an ADC circuit according to a second embodiment of the invention;
fig. 3 is a flowchart of a conversion method of an ADC circuit according to a third embodiment of the invention;
fig. 4 is a flowchart of a conversion method of an ADC circuit according to a fourth embodiment of the invention
Fig. 5 is a schematic structural diagram of an ADC circuit according to a fifth embodiment of the invention;
fig. 6 is a schematic structural diagram of yet another ADC circuit according to a fifth embodiment of the invention;
fig. 7 is a schematic structural diagram of another ADC circuit according to a fifth embodiment of the invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a conversion method of an ADC circuit according to a first embodiment of the invention, where the method may be performed by a conversion device of the ADC circuit, the conversion device may be implemented in hardware and/or software, and the conversion device may be configured in the ADC circuit. As shown in fig. 1, the method includes:
S110, acquiring a first theoretical digital signal, a second theoretical digital signal and an input analog signal.
The first theoretical digital signal is a theoretical digital signal which carries out analog-digital conversion on the standard analog signal according to a first reference relation, and the first reference relation is a switching relation which takes a first reference quantity as a conversion standard. The second theoretical digital signal is a theoretical digital signal which carries out analog-digital conversion on the standard analog signal according to a second reference relation, and the second reference relation is a switching relation which takes a second reference quantity as a conversion standard. The standard analog signal is an analog signal set for judging the reliability of the ADC circuit, and the input analog signal is an analog signal to be subjected to analog-to-digital conversion, where the standard analog signal is a fixed analog signal, and the input analog signal may be an unfixed analog signal.
Illustratively, the first reference and the second reference are both analog signals, the first reference being the ratio of the analog signal to the first reference multiplied by 4096, the second reference being the ratio of the analog signal to the second reference multiplied by 4096. The first theoretical digital signal is an expected conversion result obtained by multiplying 4096 by the ratio of the standard analog signal to the first reference amount, and the second theoretical digital signal is an expected conversion result obtained by multiplying 4096 by the ratio of the standard analog signal to the first reference amount.
It should be noted that the first reference amount and the second reference amount may be the same or different, which is not limited in the embodiment of the present invention.
S120, the ADC circuit is controlled to convert the standard analog signal into a first digital signal according to the first reference relation, and the ADC circuit is controlled to convert the standard analog signal into a second digital signal according to the second reference relation.
Specifically, the conversion device of the ADC circuit may control the ADC circuit to convert the standard analog signal into a first digital signal by using the first reference relationship as the conversion relationship, where the first digital signal is obtained by conversion of the ADC circuit; the conversion device of the ADC circuit can also control the ADC circuit to convert the standard analog signal into a second digital signal by taking the second reference relationship as the conversion relationship, and the second digital signal is also obtained through the conversion of the ADC circuit.
S130, determining the conversion relation of the ADC circuit according to the first theoretical digital signal, the second theoretical digital signal, the first digital signal and the second digital signal.
Specifically, comparing the first digital signal with a first theoretical digital signal, and judging whether the first digital signal is identical with the first theoretical digital signal or not; and comparing the second digital signal with the second theoretical digital signal, and judging whether the second digital signal is identical with the second theoretical digital signal or not. By comparing the first digital signal with the first theoretical digital signal and comparing the second digital signal with the second theoretical digital signal, it can be judged whether the first reference relationship and the second reference relationship are normal.
For example, if the first digital signal is the same as the first theoretical digital signal and the second digital signal is the same as the second theoretical digital signal, it is indicated that the first reference relationship and the second reference relationship are both normal, it may be determined that the first reference amount, the second reference amount, the standard analog signal, and the conversion function of the ADC circuit are all normal, at this time, any one of the first reference relationship and the second reference relationship may be selected as the conversion relationship of the ADC circuit, and the input analog signal may be converted according to the conversion relationship, so as to obtain an accurate digital signal corresponding to the input analog signal.
Optionally, if the first digital signal is the same as the first theoretical digital signal, and the second digital signal is different from the second theoretical digital signal, the first reference relationship is normal, the second reference relationship is abnormal, the second reference relationship can be determined to be abnormal, the first reference value, the standard analog signal and the conversion function of the ADC circuit are all normal, at this time, the first reference relationship can be selected as the conversion relationship of the ADC circuit, and the input analog signal is converted according to the first reference relationship, so that an accurate digital signal corresponding to the input analog signal can be obtained. If the first digital signal is different from the first theoretical digital signal, the second digital signal is identical to the second theoretical digital signal, the first reference relation is abnormal, the second reference relation is normal, the first reference quantity is abnormal, the second reference quantity, the standard analog signal and the conversion function of the ADC circuit are all normal, at the moment, the second reference relation can be selected as the conversion relation of the ADC circuit, the input analog signal is converted according to the second reference relation, and the accurate digital signal corresponding to the input analog signal can be obtained.
Optionally, if the first digital signal is different from the first theoretical digital signal and the second digital signal is different from the second theoretical digital signal, it is indicated that the first reference relationship and the second reference relationship are abnormal, or the conversion functions of the standard analog signal and the ADC circuit are abnormal, at this time, the conversion of the input analog signal may be abandoned, the system error reporting may be performed, the user may be reminded that the analog-to-digital conversion of the ADC circuit is abnormal, and the output of the distorted digital signal may be avoided.
According to the first embodiment of the invention, the first theoretical digital signal and the second theoretical digital signal are obtained, the ADC circuit is controlled to convert the standard analog signal, the first digital signal and the second digital signal can be obtained, whether the first reference relation and the second reference relation are normal or not can be determined according to the first theoretical digital signal, the second theoretical digital signal, the first digital signal and the second digital signal, the normal reference relation is used as the conversion relation, the input analog signal is converted, whether the ADC circuit is reliable or not can be judged, and the reliability of the conversion result of the ADC circuit for carrying out analog-to-digital conversion on the input analog signal is ensured.
Example two
Fig. 2 is a flowchart of a conversion method of an ADC circuit according to a second embodiment of the invention, and in this embodiment, verification of a conversion result of an ADC circuit on an input analog signal is increased compared with the above embodiment. As shown in fig. 2, the method includes:
S210, acquiring a first theoretical digital signal, a second theoretical digital signal and an input analog signal.
S220, the ADC circuit is controlled to convert the standard analog signal into a first digital signal according to the first reference relation, and the ADC circuit is controlled to convert the standard analog signal into a second digital signal according to the second reference relation.
And S230, if the first digital signal is the same as the first theoretical digital signal and the second digital signal is the same as the second theoretical digital signal, controlling the ADC circuit to convert the input analog signal into a third digital signal according to the first reference relation, and controlling the ADC circuit to convert the input analog signal into a fourth digital signal according to the second reference relation.
S240, normalizing the third digital signal and the fourth digital signal, and determining the normalized digital signal of the third digital signal and the normalized digital signal of the fourth digital signal.
S250, if the normalized digital signal of the third digital signal is the same as the normalized digital signal of the fourth digital signal, determining that the conversion relationship of the ADC circuit is a first reference relationship or a second reference relationship; if the normalized digital signal of the third digital signal is different from the normalized digital signal of the fourth digital signal, reminding of system errors is carried out.
For example, when the first digital signal is the same as the first theoretical digital signal and the second digital signal is the same as the second theoretical digital signal, there may still be a situation that the first reference relationship and the standard analog signal are abnormal at the same time, or the second reference relationship and the standard analog signal are abnormal at the same time, which results in inaccurate conversion results of the ADC circuit performing analog-to-digital conversion on the input analog signal. If the normalized digital signal of the third digital signal after analog-to-digital conversion of the input analog signal by the ADC circuit is the same as the normalized digital signal of the fourth digital signal, the first reference relation and the second reference relation can be considered, and the conversion functions of the standard analog signal and the ADC circuit are normal; if the normalized digital signal of the third digital signal is different from the normalized digital signal of the fourth digital signal, it can be determined that the ADC conversion circuit is abnormal, and there may be other abnormal situations such as that the first reference relationship and the standard analog signal are abnormal at the same time, or that the second reference relationship and the standard analog signal are abnormal at the same time, the conversion result of the ADC circuit is inaccurate, at this time, the input analog signal may be abandoned for conversion, a system error may be performed, the user may be reminded that the analog-to-digital conversion of the ADC circuit is abnormal, and the distorted digital signal is avoided being output.
According to the second embodiment of the invention, after the first digital signal is identical to the first theoretical digital signal and the second digital signal is identical to the second theoretical digital signal, the third digital signal and the fourth digital signal after the ADC circuit carries out analog-to-digital conversion on the input analog signal are obtained, whether the normalized digital signal of the third digital signal is identical to the normalized digital signal of the fourth digital signal or not is judged, whether the first reference relation and the second reference relation are normal or not can be further determined, namely whether the first reference quantity and the second reference quantity are normal or not is further determined, and therefore the reliability of the ADC circuit and the accuracy of a conversion result are improved.
Example III
Fig. 3 is a flowchart of a conversion method of an ADC circuit according to a third embodiment of the invention, and in this embodiment, compared with the above embodiment, verification of a conversion result of a standard analog signal by the ADC circuit is increased. As shown in fig. 3, the method includes:
s310, acquiring a first theoretical digital signal, a second theoretical digital signal and an input analog signal.
S320, the ADC circuit is controlled to convert the standard analog signal into a first digital signal according to the first reference relation, and the ADC circuit is controlled to convert the standard analog signal into a second digital signal according to the second reference relation.
S330, if the first digital signal is different from the first theoretical digital signal and the second digital signal is different from the second theoretical digital signal, normalizing the first digital signal and the second digital signal, and determining normalized digital signals of the first digital signal and the second digital signal.
S340, if the normalized digital signal of the first digital signal is the same as the normalized digital signal of the second digital signal, determining that the conversion relationship of the ADC circuit is the first reference relationship or the second reference relationship.
For example, when the first digital signal is different from the first theoretical digital signal and the second digital signal is different from the second theoretical digital signal, there may be a case that the first reference relationship and the second reference relationship are normal, but the standard analog signal is abnormal, and at this time, the ADC circuit performs the analog-to-digital conversion on the input analog signal, and the conversion result is accurate. If the first digital signal is different from the first theoretical digital signal and the second digital signal is different from the second theoretical digital signal, the normalized digital signal of the first digital signal and the normalized digital signal of the second digital signal are the same, the first reference relationship and the second reference relationship can be considered normal, the standard analog signal is abnormal, any one of the first reference relationship and the second reference relationship can be selected as a conversion relationship of the ADC circuit, and the input analog signal is converted according to the conversion relationship, so that an accurate digital signal corresponding to the input analog signal can be obtained.
According to the third embodiment of the invention, after the first digital signal is different from the first theoretical digital signal and the second digital signal is different from the second theoretical digital signal, the normalized digital signal of the first digital signal and the normalized digital signal of the second digital signal are obtained, and whether the normalized digital signal of the first digital signal and the normalized digital signal of the second digital signal are identical is judged, so that whether the first reference relation and the second reference relation are normal or not can be further determined, namely whether the first reference quantity and the second reference quantity are normal or not is further determined, and the reliability of the ADC circuit and the accuracy of a conversion result are improved.
Optionally, before determining that the conversion relationship of the ADC circuit is the first reference relationship or the second reference relationship when the first digital signal is different from the first theoretical digital signal and the second digital signal is different from the second theoretical digital signal, the method further includes: if the normalized digital signal of the first digital signal is the same as the normalized digital signal of the second digital signal, controlling the ADC circuit to convert the input analog signal into a third digital signal according to the first reference relation, and controlling the ADC circuit to convert the input analog signal into a fourth digital signal according to the second reference relation; normalizing the third digital signal and the fourth digital signal to determine a normalized digital signal of the third digital signal and a normalized digital signal of the fourth digital signal; if the normalized digital signal of the third digital signal is the same as the normalized digital signal of the fourth digital signal, determining that the conversion relationship of the ADC circuit is the first reference relationship or the second reference relationship.
Therefore, through the fact that the normalized digital signals of the first digital signal and the normalized digital signals of the second digital signal are identical, after the first reference relation and the second reference relation are considered to be normal, the third digital signal and the fourth digital signal after the ADC circuit carries out analog-to-digital conversion on the input analog signal are obtained, whether the normalized digital signals of the third digital signal and the normalized digital signals of the fourth digital signal are identical or not is judged, whether the first reference relation and the second reference relation are normal or not can be further determined, namely whether the first reference quantity and the second reference quantity are normal or not is further determined, and therefore reliability of the ADC circuit and accuracy of conversion results are improved.
Example IV
Fig. 4 is a flowchart of a conversion method of an ADC circuit according to a fourth embodiment of the invention, in which verification of conversion results of a plurality of standard analog signals is added compared with the above embodiment. As shown in fig. 4, the method includes:
s410, acquiring a first theoretical digital signal, a second theoretical digital signal and an input analog signal; the first theoretical digital signal includes a first sub-signal and a second sub-signal, and the second theoretical digital signal includes a third sub-signal and a fourth sub-signal.
The first sub-signal is a theoretical digital signal which carries out analog-to-digital conversion on the first standard analog signal according to a first reference relation; the second sub-signal is a theoretical digital signal which carries out analog-to-digital conversion on the second standard analog signal according to the first reference relation; the third sub-signal is a theoretical digital signal which carries out analog-to-digital conversion on the first standard analog signal according to the second reference relation; the fourth sub-signal is a theoretical digital signal which performs analog-to-digital conversion on the second standard analog signal according to the second reference relation.
S420, controlling the ADC circuit to convert the standard analog signal into a first digital signal according to a first reference relation, and controlling the ADC circuit to convert the standard analog signal into a second digital signal according to a second reference relation; the standard analog signal comprises a first standard analog signal and a second standard analog signal; the first digital signal includes a fifth sub-signal and a sixth sub-signal, and the second digital signal includes a seventh sub-signal and an eighth sub-signal.
Wherein the first standard analog signal is different from the second standard analog signal. The fifth sub-signal is a result of the ADC circuit converting the first standard analog signal according to the first reference relation; the sixth sub-signal is a result of the ADC circuit converting the second standard analog signal according to the first reference relation; the seventh sub-signal is a result of the ADC circuit converting the first standard analog signal according to the second reference relation; the eighth sub-signal is the result of the ADC circuit converting the second standard analog signal according to the second reference relationship.
S430, determining the conversion relation of the ADC circuit according to the first sub-signal, the second sub-signal, the third sub-signal, the fourth sub-signal, the fifth sub-signal, the sixth sub-signal, the seventh sub-signal and the eighth sub-signal.
Specifically, by comparing the fifth sub-signal with the first sub-signal, it can be determined whether the fifth sub-signal is identical to the first sub-signal, thereby determining whether the first reference relationship and the first standard signal, and the ADC circuit is abnormal; comparing the sixth sub-signal with the second sub-signal to judge whether the sixth sub-signal is identical with the second sub-signal or not, and further judging whether the first reference relation and the second standard signal and the ADC circuit are abnormal or not; by comparing the seventh sub-signal with the third sub-signal, whether the seventh sub-signal is identical with the third sub-signal or not can be judged, and whether the second reference relation and the first standard signal and the ADC circuit are abnormal or not can be further judged; by comparing the eighth sub-signal with the fourth sub-signal, it can be determined whether the eighth sub-signal is identical to the fourth sub-signal, and further, whether the second reference relationship and the second standard signal, and the ADC circuit are abnormal.
For example, if the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is the same as the second sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, it is indicated that the conversion functions of the ADC circuit are normal, and at this time, any one of the first reference relationship and the second reference relationship may be selected as the conversion relationship of the ADC circuit, and the input analog signal may be converted according to the conversion relationship, so as to obtain an accurate digital signal corresponding to the input analog signal. If the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is different from the first sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is different from the fourth sub-signal, it is indicated that the conversion functions of the ADC circuit, the first reference quantity, the second reference quantity, the first standard analog signal, and the ADC circuit are all normal, the second standard analog signal is abnormal, and any one of the first reference relation and the second reference relation may be selected as the conversion relation of the ADC circuit. If the fifth sub-signal is different from the first sub-signal, the sixth sub-signal is the same as the first sub-signal, the seventh sub-signal is different from the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, it is indicated that the conversion functions of the ADC circuit, the first reference quantity, the second standard analog signal, and the ADC circuit are all normal, the first standard analog signal is abnormal, and any one of the first reference relation and the second reference relation may be selected as the conversion relation of the ADC circuit.
In an alternative embodiment, if the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is the same as the first sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is different from the fourth sub-signal, it is indicated that the first reference amount of the ADC circuit, the first standard analog signal, and the conversion function of the ADC circuit are all normal, and the second reference amount and the second standard analog signal may have stability problems, so that the ADC circuit may not accurately convert the second standard analog signal according to the second reference relationship, and the first reference relationship may be selected as the conversion relationship of the ADC circuit, and convert the input analog signal according to the first reference relationship, so as to obtain an accurate digital signal corresponding to the input analog signal. If the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is the same as the first sub-signal, the seventh sub-signal is different from the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, the conversion relationship of the ADC circuit is determined to be the first reference relationship, which indicates that the conversion functions of the first reference amount, the second standard analog signal, and the ADC circuit are normal, and stability problems may exist in the second reference amount and the first standard analog signal, which results in inaccurate conversion results of the first standard analog signal by the ADC circuit according to the second reference relationship, and the first reference relationship may be selected as the conversion relationship of the ADC circuit. If the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is the same as the first sub-signal, the seventh sub-signal is different from the third sub-signal, and the eighth sub-signal is different from the fourth sub-signal, it is indicated that the conversion functions of the ADC circuit, the first reference quantity, the first standard analog signal, the second standard analog signal, and the ADC circuit are all normal, the second reference quantity is abnormal, that is, the second reference relation is abnormal, and the first reference relation may be selected as the conversion relation of the ADC circuit.
In an alternative embodiment, if the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is different from the first sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, which indicates that the second reference amount of the ADC circuit, the first standard analog signal, and the conversion function of the ADC circuit are all normal, the first reference amount and the second standard analog signal may have stability problems, so that the ADC circuit may not accurately convert the second standard analog signal according to the first reference relationship, and the second reference relationship may be selected as the conversion relationship of the ADC circuit. If the fifth sub-signal is different from the first sub-signal, the sixth sub-signal is the same as the first sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, it is indicated that the second reference amount of the ADC circuit, the second standard analog signal, and the conversion function of the ADC circuit are all normal, and stability problems may exist in the first reference amount and the first standard analog signal, which results in inaccurate conversion results of the ADC circuit on the first standard analog signal according to the first reference relationship, and the second reference relationship may be selected as the conversion relationship of the ADC circuit. If the fifth sub-signal is different from the first sub-signal, the sixth sub-signal is different from the first sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, it is indicated that the conversion functions of the ADC circuit, the first standard analog signal, the second standard analog signal, and the ADC circuit are all normal, the first reference is abnormal, i.e., the first reference relationship is abnormal, and the second reference relationship may be selected as the conversion relationship of the ADC circuit.
Optionally, if the fifth sub-signal is different from the first sub-signal and the eighth sub-signal is different from the fourth sub-signal, and/or if the sixth sub-signal is different from the first sub-signal and the seventh sub-signal is different from the third sub-signal, a system error is reminded.
For example, if the fifth sub-signal is different from the first sub-signal and the eighth sub-signal is different from the fourth sub-signal, it is indicated that the first reference amount, the second reference amount, the first standard analog signal, and the second standard analog signal of the ADC circuit may have stability problems, so that the ADC circuit converts the first standard analog signal according to the first reference relationship and the second standard analog signal according to the second reference relationship, and the ADC circuit converts the second standard analog signal and the second standard analog signal is inaccurate. If the sixth sub-signal is different from the first sub-signal and the seventh sub-signal is different from the third sub-signal, it is also indicated that the first reference amount, the second reference amount, the first standard analog signal, and the second standard analog signal of the ADC circuit may have stability problems, so that the ADC circuit converts the second standard analog signal according to the first reference relationship, and the ADC circuit converts the first standard analog signal according to the second reference relationship, and at this time, may forgo converting the input analog signal to perform system error reporting.
According to the fourth embodiment of the invention, the conversion relation of the ADC circuit is determined according to the first sub-signal, the second sub-signal, the third sub-signal, the fourth sub-signal, the fifth sub-signal, the sixth sub-signal, the seventh sub-signal and the eighth sub-signal, so that whether the first reference relation, the second reference relation, the first standard analog signal and the second standard analog signal are stable or not can be determined, the stable reference relation is used as the conversion relation, the input analog signal is converted, whether the ADC circuit is reliable or not can be judged, and the reliability and the stability of the conversion result of the ADC circuit for carrying out analog-to-digital conversion on the input analog signal are ensured.
Example five
Fig. 5 is a schematic structural diagram of an ADC circuit according to a fifth embodiment of the invention. As shown in fig. 4, the ADC circuit includes: a controller 10 and an ADC conversion module 20; the ADC conversion module 20 includes a first reference receiving terminal 01, a second reference receiving terminal 02, a standard analog signal receiving terminal 03, an input analog signal receiving terminal 04, a control signal receiving terminal 05, and a digital signal output terminal 06; the controller 10 includes a control signal output terminal 07 and a digital signal receiving terminal 08; the control signal receiving end 05 is electrically connected with the control signal output end 07; the digital signal output terminal 06 is electrically connected to the digital signal receiving terminal 08.
The controller 10 includes, but is not limited to, a central processing unit (Central Processing Unit, CPU), a micro control unit (Micro Controller Unit, MCU) and other devices with operation and control functions, and may be used to perform the conversion method of the ADC circuit provided in any embodiment of the present invention. The ADC conversion module is used for carrying out analog-to-digital conversion on the standard analog signal or the input analog signal according to the first reference relation or the second reference relation.
Specifically, the controller 10 may output a control signal to the ADC conversion module, so that the ADC conversion module performs analog-to-digital conversion on the standard analog signal or the input analog signal according to the first reference amount or the second reference amount, and outputs a digital signal to the controller 10.
Optionally, fig. 6 is a schematic structural diagram of yet another ADC circuit provided in the fifth embodiment of the present invention, and as shown in fig. 6, the ADC conversion module 20 includes a signal selection circuit 201 and an ADC conversion circuit 202;
the signal selection circuit 201 includes a first input terminal 11, a second input terminal 12, a reference output terminal 13, and a first control terminal 14; the ADC conversion circuit 202 includes a reference amount receiving terminal 21, a first receiving terminal 22, a second receiving terminal 23, a first output terminal 24, and a second control terminal 25; the first input end 11 is electrically connected with the first reference quantity receiving end 01; the second input terminal 12 is electrically connected with the second reference quantity receiving terminal 02; the reference quantity output end 13 is electrically connected with the reference quantity receiving end 21; the first receiving end 22 is electrically connected with the standard analog signal receiving end 03; the second receiving terminal 23 is electrically connected with the input analog signal receiving terminal 04; the first output end 24 is electrically connected with the digital signal output end 06; the first control terminal 14 and the second control terminal 25 are electrically connected to the control signal receiving terminal 05.
Specifically, the signal selection circuit 201 may output the first reference amount or the second reference amount according to the first control signal received by the first control terminal 14; the ADC circuit 202 may perform analog-to-digital conversion on the standard analog signal or the input analog signal according to the second control signal received by the second control terminal 25.
Illustratively, with continued reference to fig. 6, the control signal receiving terminal 05 includes a first control signal receiving terminal 051 and a second control signal receiving terminal 052, the first control terminal 14 is electrically connected to the first control signal receiving terminal 051, and the second control terminal 25 is electrically connected to the second control signal receiving terminal 052. The control signal output terminal 07 includes a first control signal output terminal 071 and a second control signal output terminal 072, the first control signal output terminal 071 is electrically connected to the first control signal receiving terminal 051, and the second control signal output terminal 072 is electrically connected to the second control signal receiving terminal 052. The controller 10 may output a first control signal to the signal selection circuit 201, and the control signal selection circuit 201 outputs the first reference amount or the second reference amount to the ADC circuit; the controller 10 may also output a second control signal to the ADC circuit 202, which controls the ADC circuit 202 to perform analog-to-digital conversion on the standard analog signal or the input analog signal.
Optionally, fig. 7 is a schematic structural diagram of yet another ADC circuit provided in the fifth embodiment of the present invention, as shown in fig. 7, the ADC conversion module 20 includes a first ADC conversion circuit 203 and a second ADC conversion circuit 204; the first ADC conversion circuit 203 includes a first reference sub-terminal 31, a first reference sub-terminal 33, a first input sub-terminal 34, a first conversion output sub-terminal 35, and a first control signal receiving terminal 36; the second ADC conversion circuit 204 includes a second reference sub-terminal 42, a second reference sub-terminal 43, a second input sub-terminal 44, a second conversion output sub-terminal 45, and a second control signal receiving terminal 46; the first reference sub-terminal 31 is electrically connected to the first reference receiving terminal 01; the second reference sub-terminal 42 is electrically connected to the second reference quantity receiving terminal 02; the first standard sub-terminal 33 and the second standard sub-terminal 43 are electrically connected with the standard analog signal receiving terminal 03; the first input sub-terminal 34 and the second input sub-terminal 44 are both connected to the input analog signal receiving terminal 04; the first conversion output sub-terminal 35 and the second conversion output sub-terminal 45 are electrically connected with the digital signal output terminal 06; the first control signal receiving terminal 36 and the second control signal receiving terminal 46 are electrically connected to the control signal receiving terminal 05.
Specifically, the first ADC conversion circuit 203 may perform analog-to-digital conversion on the standard analog signal or the input analog signal according to the first reference relationship under the control of the first control signal received by the first control signal receiving end 36; the second ADC conversion circuit 204 may perform analog-to-digital conversion on the standard analog signal or the input analog signal according to the second reference relationship under the control of the second control signal received by the second control signal receiving terminal 46.
Illustratively, with continued reference to fig. 7, the control signal receiving terminal 05 includes a first control signal receiving terminal 051 and a second control signal receiving terminal 052, the first control signal receiving terminal 36 is electrically connected to the first control signal receiving terminal 051, and the second control signal receiving terminal 46 is electrically connected to the second control signal receiving terminal 052. The control signal output terminal 07 includes a first control signal output terminal 071 and a second control signal output terminal 072, the first control signal output terminal 071 is electrically connected to the first control signal receiving terminal 051, and the second control signal output terminal 072 is electrically connected to the second control signal receiving terminal 052. The digital signal output port 06 includes a first digital signal output port 061 and a second digital signal output port 062, the first digital signal output port 061 is electrically connected to the first conversion output sub-port 35, and the second digital signal output port 062 is electrically connected to the second conversion output sub-port 45. The digital signal receiving end 08 includes a first digital signal receiving end 081 and a second digital signal receiving end 082, the first digital signal receiving end 081 is electrically connected with the first digital signal output end 06, and the second digital signal receiving end 082 is electrically connected with the second digital signal output end 062. The controller 10 may output a first control signal to the signal first ADC conversion circuit 203, control the first ADC conversion circuit 203 to perform analog-to-digital conversion on a standard analog signal or an input analog signal according to a first reference relationship, and output a first digital signal or a third digital signal to the controller 10; the controller 10 outputs a second control signal to the signal second ADC conversion circuit 204, controls the second ADC conversion circuit 204 to perform analog-to-digital conversion on the standard analog signal or the input analog signal according to the second reference relationship, and outputs a second digital signal or a fourth digital signal to the controller 10.
The ADC circuit provided by the embodiment of the invention can execute the conversion method of the ADC circuit provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (15)

1. A conversion method of an ADC circuit, comprising:
acquiring a first theoretical digital signal, a second theoretical digital signal and an input analog signal; the first theoretical digital signal is a theoretical digital signal which carries out analog-to-digital conversion on a standard analog signal according to a first reference relation; the second theoretical digital signal is a theoretical digital signal which carries out analog-to-digital conversion on the standard analog signal according to a second reference relation;
Controlling the ADC circuit to convert the standard analog signal into a first digital signal according to the first reference relation, and controlling the ADC circuit to convert the standard analog signal into a second digital signal according to the second reference relation;
and determining the conversion relation of the ADC circuit according to the first theoretical digital signal, the second theoretical digital signal, the first digital signal and the second digital signal.
2. The conversion method of an ADC circuit according to claim 1, wherein determining the conversion relationship of the ADC circuit based on the first theoretical digital signal, the second theoretical digital signal, the first digital signal, and the second digital signal comprises:
if the first digital signal is the same as the first theoretical digital signal, determining that the conversion relation of the ADC circuit is the first reference relation; or alternatively, the process may be performed,
and if the second digital signal is the same as the second theoretical digital signal, determining the conversion relation of the ADC circuit as the second reference relation.
3. The conversion method of an ADC circuit according to claim 1, wherein determining the conversion relationship of the ADC circuit based on the first theoretical digital signal, the second theoretical digital signal, the first digital signal, and the second digital signal comprises:
If the first digital signal is the same as the first theoretical digital signal and the second digital signal is the same as the second theoretical digital signal, controlling the ADC circuit to convert an input analog signal into a third digital signal according to the first reference relation and controlling the ADC circuit to convert the input analog signal into a fourth digital signal according to the second reference relation;
normalizing the third digital signal and the fourth digital signal to determine a normalized digital signal of the third digital signal and a normalized digital signal of the fourth digital signal;
judging whether the normalized digital signal of the third digital signal is the same as the normalized digital signal of the fourth digital signal;
if yes, determining that the conversion relation of the ADC circuit is the first reference relation or the second reference relation.
4. The conversion method of an ADC circuit according to claim 3, wherein determining the conversion relationship of the ADC circuit based on the first theoretical digital signal, the second theoretical digital signal, the first digital signal, and the second digital signal, further comprises:
And if the normalized digital signal of the third digital signal is different from the normalized digital signal of the fourth digital signal, prompting a system error.
5. A conversion method of an ADC circuit according to claim 2 or 3, wherein determining the conversion relationship of the ADC circuit based on the first theoretical digital signal, the second theoretical digital signal, the first digital signal and the second digital signal, further comprises:
and if the first digital signal is different from the first theoretical digital signal and the second digital signal is different from the second theoretical digital signal, reminding the system error.
6. A conversion method of an ADC circuit according to claim 2 or 3, wherein determining the conversion relationship of the ADC circuit based on the first theoretical digital signal, the second theoretical digital signal, the first digital signal and the second digital signal, further comprises:
normalizing the first digital signal and the second digital signal if the first digital signal is different from the first theoretical digital signal and the second digital signal is different from the second theoretical digital signal, and determining normalized digital signals of the first digital signal and the second digital signal;
Judging whether the normalized digital signal of the first digital signal is the same as the normalized digital signal of the second digital signal;
if yes, determining that the conversion relation of the ADC circuit is the first reference relation or the second reference relation.
7. A conversion method of an ADC circuit according to claim 2 or 3, wherein determining the conversion relationship of the ADC circuit based on the first theoretical digital signal, the second theoretical digital signal, the first digital signal and the second digital signal, further comprises:
normalizing the first digital signal and the second digital signal if the first digital signal is different from the first theoretical digital signal and the second digital signal is different from the second theoretical digital signal, and determining normalized digital signals of the first digital signal and the second digital signal;
judging whether the normalized digital signal of the first digital signal is the same as the normalized digital signal of the second digital signal;
if yes, the ADC circuit is controlled to convert an input analog signal into a third digital signal according to the first reference relation, and the ADC circuit is controlled to convert the input analog signal into a fourth digital signal according to the second reference relation;
Normalizing the third digital signal and the fourth digital signal to determine a normalized digital signal of the third digital signal and a normalized digital signal of the fourth digital signal;
judging whether the normalized digital signal of the third digital signal is the same as the normalized digital signal of the fourth digital signal;
if yes, determining that the conversion relation of the ADC circuit is the first reference relation or the second reference relation.
8. The method of converting an ADC circuit according to claim 1, wherein the standard analog signal comprises a first standard analog signal and a second standard analog signal;
the first theoretical digital signal comprises a first sub-signal and a second sub-signal; the first sub-signal is a theoretical digital signal which carries out analog-to-digital conversion on the first standard analog signal according to the first reference relation; the second sub-signal is a theoretical digital signal which carries out analog-to-digital conversion on the second standard analog signal according to the first reference relation;
the second theoretical digital signal comprises a third sub-signal and a fourth sub-signal; the third sub-signal is a theoretical digital signal which carries out analog-to-digital conversion on the first standard analog signal according to the second reference relation; the fourth sub-signal is a theoretical digital signal which carries out analog-to-digital conversion on the second standard analog signal according to the second reference relation;
The first digital signal includes a fifth sub-signal and a sixth sub-signal; the fifth sub-signal is a result of the ADC circuit converting the first standard analog signal according to the first reference relationship; the sixth sub-signal is a result of the ADC circuit converting the second standard analog signal according to the first reference relationship;
the second digital signal includes a seventh sub-signal and an eighth sub-signal; the seventh sub-signal is a result of the ADC circuit converting the first standard analog signal according to the second reference relationship; the eighth sub-signal is a result of the ADC circuit converting the second standard analog signal according to the second reference relationship;
determining a conversion relationship of the ADC circuit according to the first theoretical digital signal, the second theoretical digital signal, the first digital signal, and the second digital signal, including:
and determining the conversion relation of the ADC circuit according to the first sub-signal, the second sub-signal, the third sub-signal, the fourth sub-signal, the fifth sub-signal, the sixth sub-signal, the seventh sub-signal and the eighth sub-signal.
9. The method of converting an ADC circuit according to claim 8, wherein determining the conversion relationship of the ADC circuit based on the first sub-signal, the second sub-signal, the third sub-signal, the fourth sub-signal, the fifth sub-signal, the sixth sub-signal, the seventh sub-signal, and the eighth sub-signal comprises:
if the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is the same as the second sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the first reference relationship or the second reference relationship;
or if the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is different from the first sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is different from the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the first reference relationship or the second reference relationship;
or if the fifth sub-signal is different from the first sub-signal, the sixth sub-signal is the same as the first sub-signal, the seventh sub-signal is different from the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the first reference relationship or the second reference relationship.
10. The method of converting an ADC circuit according to claim 9, wherein determining the conversion relationship of the ADC circuit based on the first sub-signal, the second sub-signal, the third sub-signal, the fourth sub-signal, the fifth sub-signal, the sixth sub-signal, the seventh sub-signal, and the eighth sub-signal, further comprises:
if the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is the same as the first sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is different from the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the first reference relationship;
or if the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is the same as the first sub-signal, the seventh sub-signal is different from the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the first reference relationship;
or if the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is the same as the first sub-signal, the seventh sub-signal is different from the third sub-signal, and the eighth sub-signal is different from the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the first reference relationship.
11. The method of converting an ADC circuit according to claim 9, wherein determining the conversion relationship of the ADC circuit based on the first sub-signal, the second sub-signal, the third sub-signal, the fourth sub-signal, the fifth sub-signal, the sixth sub-signal, the seventh sub-signal, and the eighth sub-signal, further comprises:
if the fifth sub-signal is the same as the first sub-signal, the sixth sub-signal is different from the first sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the second reference relationship;
or if the fifth sub-signal is different from the first sub-signal, the sixth sub-signal is the same as the first sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, determining that the conversion relationship of the ADC circuit is the second reference relationship;
or if the fifth sub-signal is different from the first sub-signal, the sixth sub-signal is different from the first sub-signal, the seventh sub-signal is the same as the third sub-signal, and the eighth sub-signal is the same as the fourth sub-signal, the conversion relationship of the ADC circuit is determined to be the second reference relationship.
12. The method of converting an ADC circuit according to claim 9, wherein determining the conversion relationship of the ADC circuit based on the first sub-signal, the second sub-signal, the third sub-signal, the fourth sub-signal, the fifth sub-signal, the sixth sub-signal, the seventh sub-signal, and the eighth sub-signal, further comprises:
and if the fifth sub-signal is different from the first sub-signal, the eighth sub-signal is different from the fourth sub-signal, and/or the sixth sub-signal is different from the first sub-signal, and the seventh sub-signal is different from the third sub-signal, reminding of system errors is performed.
13. An ADC circuit, comprising: a controller and an ADC conversion module;
the ADC conversion module comprises a first reference quantity receiving end, a second reference quantity receiving end, a standard analog signal receiving end, an input analog signal receiving end, a control signal receiving end and a digital signal output end;
the controller comprises a control signal output end and a digital signal receiving end;
the control signal receiving end is electrically connected with the control signal output end; the digital signal output end is electrically connected with the digital signal receiving end;
The controller being configured to perform the conversion method of the ADC circuit of any one of claims 1 to 12;
the ADC conversion module is used for carrying out analog-to-digital conversion on the standard analog signal or the input analog signal according to the first reference relation or the second reference relation.
14. The ADC circuit according to claim 13, wherein the ADC conversion module includes a signal selection circuit and an ADC conversion circuit;
the signal selection circuit comprises a first input end, a second input end, a reference quantity output end and a first control end;
the ADC conversion circuit comprises a reference quantity receiving end, a first receiving end, a second receiving end, a first output end and a second control end;
the first input end is electrically connected with the first reference quantity receiving end; the second input end is electrically connected with the second reference quantity receiving end; the reference quantity output end is electrically connected with the reference quantity receiving end; the first receiving end is electrically connected with the standard analog signal receiving end; the second receiving end is electrically connected with the input analog signal receiving end; the first output end is electrically connected with the digital signal output end; the first control end and the second control end are electrically connected with the control signal receiving end;
The signal selection circuit is used for outputting the first reference quantity or the second reference quantity according to a first control signal received by the first control end;
the ADC circuit is used for performing analog-to-digital conversion on the standard analog signal or the input analog signal according to a second control signal received by the second control end.
15. The ADC circuit according to claim 13, wherein the ADC conversion module comprises a first ADC conversion circuit and a second ADC conversion circuit;
the first ADC conversion circuit comprises a first reference sub-end, a first standard sub-end, a first input sub-end, a first conversion output sub-end and a first control signal receiving end;
the second ADC conversion circuit comprises a second reference sub-end, a second standard sub-end, a second input sub-end, a second conversion output sub-end and a second control signal receiving end;
the first reference sub-terminal is electrically connected with the first reference quantity receiving terminal; the second reference sub-terminal is electrically connected with the second reference quantity receiving terminal; the first standard sub-terminal and the second standard sub-terminal are electrically connected with the standard analog signal receiving terminal; the first input sub-end and the second input sub-end are connected with the input analog signal receiving end; the first conversion output sub-end and the second conversion output sub-end are electrically connected with the digital signal output end; the first control signal receiving end and the second control signal receiving end are electrically connected with the control signal receiving end;
The first ADC conversion circuit is configured to perform analog-to-digital conversion on the standard analog signal or the input analog signal according to the first reference relationship under the control of the first control signal received by the first control signal receiving end;
the second ADC conversion circuit is configured to perform analog-to-digital conversion on the standard analog signal or the input analog signal according to the second reference relationship under control of a second control signal received by the second control signal receiving end.
CN202310484077.XA 2023-04-28 2023-04-28 ADC circuit and conversion method thereof Pending CN116436464A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310484077.XA CN116436464A (en) 2023-04-28 2023-04-28 ADC circuit and conversion method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310484077.XA CN116436464A (en) 2023-04-28 2023-04-28 ADC circuit and conversion method thereof

Publications (1)

Publication Number Publication Date
CN116436464A true CN116436464A (en) 2023-07-14

Family

ID=87079667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310484077.XA Pending CN116436464A (en) 2023-04-28 2023-04-28 ADC circuit and conversion method thereof

Country Status (1)

Country Link
CN (1) CN116436464A (en)

Similar Documents

Publication Publication Date Title
CN100459435C (en) Device for detecting A/D converter disorder
CA1320583C (en) Error limiting analog to digital converter
EP1531334A2 (en) Electrical power measuring devices
US20030174082A1 (en) A/D conversion method and apparatus therefor
CN101221225A (en) Calibration method and device for battery voltage sampling
WO2021063058A1 (en) Adc (error automatic correction) method and apparatus, analog-digital conversion circuit and storage medium
CN110995265A (en) Automatic calibration method and system for offset error of analog-to-digital converter
EP1538450A1 (en) Electrical power meter
CN116436464A (en) ADC circuit and conversion method thereof
JPS5828665A (en) Watthour meter
US9684383B1 (en) Electronic apparatus and method for detecting status of keys thereof
CN110263417B (en) Time sequence characteristic acquisition method and device and electronic equipment
CN110456271A (en) Detection method, device, equipment and the storage medium of motor hall signal
EP0247117A1 (en) Improvements in or relating to transducer interfaces
TW202017321A (en) Calibration method and calibration system
CN100427958C (en) Agitating measuring device and measuring method
CN114755475A (en) Current detection circuit and method and overcurrent protection system
US6718357B2 (en) Microcomputer including an upper and lower clip circuit
US6628181B2 (en) Tuning circuit having a resonance circuit and a negative resistance circuit
US8099659B2 (en) Logic tester and method for simultaneously measuring delay periods of multiple tested devices
CN113885968B (en) Adaptive digital-analog mixed starting mode setting system and method
CN108494405A (en) A kind of gradual approaching A/D converter
CN113899941B (en) Current acquisition circuit and acquisition method
CN108549006B (en) Self-error-detecting time-to-digital conversion circuit
CN219611747U (en) Hysteresis comparator circuit and electronic device

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