External input module, design method of external input module, analog-to-digital converter and design method of analog-to-digital converter

By setting the capacitance value and charging time of the third filter capacitor, and combining voltage value comparison, designing the external input module of the analog-to-digital converter, the problem of inaccurate conversion results in the prior art is solved, and the implementation of the Highly accurate conversion effect.

CN118921064APending Publication Date: 2024-11-08SHANGHAI NAEN AUTOMOTIVE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411076881.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The design of external input modules for existing analog/digital converters lacks scientific method guidance, resulting in inaccurate conversion results.

Method used

By setting the capacitance value of the third filter capacitor to be at least 100 times the sum of the first filter capacitor and the second filter capacitor, and making its charging time less than or equal to the sampling time of the internal module, combining the comparison of the actual voltage value with the theoretical voltage value , design external input modules of analog/digital converters to improve conversion accuracy.

Benefits of technology

The accuracy of the conversion result of the analog-to-digital converter is ensured, and the suitability of the design parameters is verified by comparing the actual voltage value with the theoretical voltage value, further improving the conversion accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921064A_ABST
    Figure CN118921064A_ABST
Patent Text Reader

Abstract

The invention relates to an external input module of an analog-to-digital converter, a design method of the external input module, the analog-to-digital converter and a design method of the analog-to-digital converter. The design method of the external input module of the analog-to-digital converter comprises the following steps: setting a capacitance value of a third filter capacitor and a resistance value of a first resistor, so that the capacitance value of the third filter capacitor is at least 100 times of the sum of the capacitance value of the first filter capacitor and the capacitance value of a second filter capacitor, and / or the resistance value of the first resistor is at least 100 times of the sum of the capacitance value of the first filter capacitor and the capacitance value of the second filter capacitor; the charging time of the third filter capacitor is less than or equal to the sampling time of the internal module; calculating a theoretical voltage value of the signal output end according to the capacitance value of the third filter capacitor; the actual voltage value of the signal output end is measured, and the actual voltage value is compared with the theoretical voltage value; when the absolute value of the difference value between the actual voltage value and the theoretical voltage value is smaller than or equal to the threshold value, an external input module of the analog-to-digital converter is designed according to the capacitance value of the third filter capacitor and the resistance value of the first resistor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electronic controllers, and in particular to an external input module of an analog / digital converter and a design method thereof, an analog / digital converter and a design method thereof. Background Art

[0002] At present, in the field of electronic controller technology, there has been no scientific method guidance for the design of the external input module of the analog / digital converter, so that the external input module of the analog / digital converter designed using the existing technology will lead to inaccurate conversion results of the analog / digital converter.

[0003] Therefore, in the art, there is an urgent need for a design method for an external input module of an analog / digital converter, so that the designed external input module of the analog / digital converter can enable the analog / digital converter to have higher conversion accuracy.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The present disclosure aims to provide an external input module of an analog / digital converter and a design method thereof, an analog / digital converter and a design method thereof. The external input module of the analog / digital converter designed by the design method of the external input module of the analog / digital converter can make the conversion result of the analog / digital converter more accurate.

[0006] One aspect of the present disclosure provides a design method for an external input module of an analog / digital converter, the analog / digital converter comprising: an internal module and an external input module, the internal module comprising: a channel selection module and a sampling module, the channel selection module comprising a first filter capacitor, the sampling module comprising a second filter capacitor, the external input module comprising an external charging circuit and a signal output terminal, the external charging circuit comprising: a third filter capacitor and a first resistor, the signal output terminal being connected to the channel selection module, the design method for the external input module of the analog / digital converter comprising:

[0007] Setting the capacitance value of the third filter capacitor and the resistance value of the first resistor so that the capacitance value of the third filter capacitor is at least 100 times the sum of the capacitance value of the first filter capacitor and the capacitance value of the second filter capacitor, and / or so that the charging time of the third filter capacitor is less than or equal to the sampling time of the internal module;

[0008] Calculating a theoretical voltage value of the signal output terminal according to the capacitance value of the third filter capacitor;

[0009] Measuring an actual voltage value of the signal output terminal, and comparing the actual voltage value with the theoretical voltage value;

[0010] When the absolute value of the difference between the actual voltage value and the theoretical voltage value is less than or equal to a threshold value, the analog / digital converter is designed according to the capacitance value of the third filter capacitor and the resistance value of the first resistor.

[0011] In an exemplary embodiment of the present disclosure, setting the capacitance value of the third filter capacitor and the resistance value of the first resistor so that the charging time of the third filter capacitor is less than or equal to the sampling time of the internal module includes:

[0012] Acquiring a sampling time of the internal module according to a capacitance value of the first filter capacitor and a capacitance value of the second filter capacitor;

[0013] According to the sampling time of the internal module, setting the charging time of the third filter capacitor, and making the charging time of the third filter capacitor less than or equal to the sampling time of the internal module;

[0014] According to the charging time of the third filter capacitor, the capacitance value of the third filter capacitor and the resistance value of the first resistor are obtained.

[0015] In an exemplary embodiment of the present disclosure, obtaining the capacitance value of the third filter capacitor and the resistance value of the first resistor according to the charging time of the third filter capacitor includes:

[0016] Presetting the resistance value of the first resistor;

[0017] The capacitance value of the third filter capacitor is obtained according to the charging time of the third filter capacitor and the resistance value of the first resistor.

[0018] In an exemplary embodiment of the present disclosure, obtaining the capacitance value of the third filter capacitor and the resistance value of the first resistor according to the charging time of the third filter capacitor includes:

[0019] Presetting the capacitance value of the third filter capacitor;

[0020] The resistance value of the first resistor is obtained according to the charging time of the third filter capacitor and the capacitance value of the third filter capacitor.

[0021] Another aspect of the present disclosure provides a design method for an analog / digital converter, the design method for the analog / digital converter comprising the design method for an external input module of the analog / digital converter described in any one of the above, and when setting the capacitance value of the third filter capacitor and the resistance value of the first resistor, the design method for the analog / digital converter further comprises:

[0022] The capacitance value of the first filter capacitor and the capacitance value of the second filter capacitor are set.

[0023] In an exemplary embodiment of the present disclosure, setting the capacitance value of the first filter capacitor and the capacitance value of the second filter capacitor includes:

[0024] Setting the capacitance value of the third filter capacitor and the resistance value of the first resistor;

[0025] Obtaining a charging time of the third filter capacitor according to a capacitance value of the third filter capacitor and a resistance value of the first resistor;

[0026] According to the charging time of the third filter capacitor, the sampling time of the internal module is set, and the sampling time of the internal module is made greater than or equal to the charging time of the third filter capacitor;

[0027] According to the sampling time of the internal module, the capacitance value of the first filter capacitor and the capacitance value of the second filter capacitor are obtained.

[0028] In an exemplary embodiment of the present disclosure, obtaining the capacitance value of the first filter capacitor and the capacitance value of the second filter capacitor according to the sampling time of the internal module includes:

[0029] Presetting the capacitance value of the first filter capacitor;

[0030] The capacitance value of the second filter capacitor is obtained according to the sampling time of the internal module and the capacitance value of the first filter capacitor.

[0031] In an exemplary embodiment of the present disclosure, obtaining the capacitance value of the first filter capacitor and the capacitance value of the second filter capacitor according to the sampling time of the internal module includes:

[0032] Presetting the capacitance value of the second filter capacitor;

[0033] The capacitance value of the first filter capacitor is obtained according to the sampling time of the internal module and the capacitance value of the second filter capacitor.

[0034] In another aspect, the present disclosure provides an external input module of an analog / digital converter, the analog / digital converter comprising: an internal module, the internal module comprising: a channel selection module and a sampling module, the channel selection module comprising a first filter capacitor, the sampling module comprising a second filter capacitor, the external input module of the analog / digital converter comprising:

[0035] The input circuit comprises: a first voltage terminal;

[0036] The control circuit includes: a signal receiving terminal connected to the first voltage terminal;

[0037] An output circuit, comprising: an external charging circuit and a signal output terminal, wherein the external charging circuit comprises: a third filter capacitor and a first resistor, wherein one end of the first resistor is connected to the first voltage terminal, and the other end of the first resistor is connected to the third filter capacitor and the signal receiving terminal, wherein the signal receiving terminal can be connected to the channel selection module, and when the signal receiving terminal receives a valid signal, the signal output terminal is connected to the first voltage terminal, and the signal output terminal can output a signal to the channel selection module;

[0038] Among them, the capacitance value of the third filter capacitor is at least 100 times the sum of the capacitance values ​​of the first filter capacitor and the second filter capacitor, and / or the charging time of the third filter capacitor is less than or equal to the sampling time of the internal module.

[0039] Another aspect of the present disclosure provides an analog / digital converter, comprising:

[0040] The internal module comprises: a channel selection module and a sampling module, wherein the channel selection module comprises a first filter capacitor, and the sampling module comprises a second filter capacitor;

[0041] An external input module, wherein the external input module is the external input module of the analog / digital converter described above, and the signal receiving end is connected to the channel selection module.

[0042] The technical solution provided by the present disclosure can achieve the following beneficial effects:

[0043] The present disclosure provides a design method for an external input module of an analog / digital converter. In the design method for the external input module of the analog / digital converter provided by the present disclosure, the capacitance value of the third filter capacitor can be set to at least 100 times the sum of the capacitance value of the first filter capacitor and the capacitance value of the second filter capacitor. When the switch in the channel selection module and the switch in the sampling module are closed, the third filter capacitor is discharged to charge the first filter capacitor and the second filter capacitor. Since the capacitance value of the third filter capacitor is at least set to 100 times the sum of the capacitance value of the first filter capacitor and the capacitance value of the second filter capacitor, the voltage drop of the signal output terminal after the third filter capacitor is discharged is relatively low, so that the voltage of the signal output terminal after the third filter capacitor is discharged is relatively small compared with the voltage of the signal output terminal before the third filter capacitor is discharged, thereby ensuring that the conversion result of the analog / digital converter is accurate.

[0044] In addition, in the design method of the external input module of the analog / digital converter provided by the present disclosure, the charging time of the third filter capacitor can be made less than or equal to the sampling time of the internal module. Thus, when the internal module performs sampling, the third filter capacitor can be fully charged again, so that the voltage at the signal output end at this time is less different from the voltage at the signal output end before the third filter capacitor is discharged, thereby ensuring the accuracy of the conversion result of the analog / digital converter.

[0045] At the same time, the present disclosure compares the actual voltage value of the signal output terminal with the theoretical voltage value. When the absolute value of the difference between the actual voltage value and the theoretical voltage value is less than or equal to the threshold value, the external input module of the analog / digital converter can be designed according to the capacitance value of the third filter capacitor and the resistance value of the first resistor. Thus, by comparing the actual voltage value with the theoretical voltage value, it is possible to further verify whether the parameters of each component of the aforementioned design are appropriate, thereby further ensuring that the designed external input module of the analog / digital converter can enable the analog / digital converter to have a higher conversion accuracy.

[0046] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0048] Figure 1 A schematic flow chart of a design method for an external input module of an exemplary analog / digital converter according to the present disclosure is shown;

[0049] Figure 2 A schematic flow chart of a design method of an exemplary analog / digital converter according to the present disclosure is shown;

[0050] Figure 3 A schematic structural diagram of an internal module according to an exemplary embodiment of the present disclosure is shown;

[0051] Figure 4 A schematic structural diagram of an external input module according to an exemplary embodiment of the present disclosure is shown;

[0052] Figure 5 A schematic structural diagram of an analog / digital converter according to an exemplary embodiment of the present disclosure is shown.

[0053] Description of reference numerals:

[0054] 1. Internal module; 11. Channel selection module; 12. Sampling module; 2. External input module;

[0055] EN, signal receiving end; C1, first filter capacitor; C2, second filter capacitor; C3, third filter capacitor; R1, first resistor; R2, second resistor; R3, third resistor; R4, fourth resistor; R5, fifth resistor; R6, sixth resistor; Q1, first transistor; Q2, second transistor; VCC, first voltage end; A, signal output end. DETAILED DESCRIPTION

[0056] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar structures, and thus their detailed description will be omitted.

[0057] Although relative terms such as "upper" and "lower" are used in this specification to describe the relative relationship of one component of the illustration to another component, these terms are used in this specification only for convenience, such as according to the orientation of the examples described in the drawings. It is understood that if the device of the illustration is turned upside down, the component described as "upper" will become the component "lower". When a structure is "on" other structures, it may mean that the structure is formed integrally on the other structure, or that the structure is "directly" disposed on the other structure, or that the structure is "indirectly" disposed on the other structure through another structure.

[0058] The terms "a", "an", "the", and "said" are used to indicate the presence of one or more elements / components / etc.; the terms "including" and "having" are used to express an open-ended inclusion and mean that additional elements / components / etc. may exist in addition to the listed elements / components / etc.; the terms "first" and "second", etc. are used merely as labels and are not intended to limit the quantity of their objects.

[0059] like Figures 1 to 4 As shown, the present disclosure provides a design method for an external input module 2 of an analog / digital converter. The external input module 2 of an analog / digital converter designed by the design method for an external input module 2 of an analog / digital converter can enable the analog / digital converter to have a higher conversion accuracy.

[0060] The analog / digital converter may include an internal module 1 and an external input module 2. The internal module 1 may include a channel selection module 11 and a sampling module 12. The channel selection module 11 may include a first filter capacitor C1, and the sampling module 12 may include a second filter capacitor C2.

[0061] The external input module 2 may include: an external charging circuit and a signal output terminal A. The external charging circuit may include: a third filter capacitor C3 and a first resistor R1 . The signal output terminal A may be connected to the channel selection module 11 .

[0062] like Figure 1 , Figures 3 to 5 As shown, the design method of the external input module 2 of the above analog / digital converter may include:

[0063] Step S10, calculating the theoretical voltage value of the signal output terminal A;

[0064] Step S20, setting the capacitance value of the third filter capacitor C3 and the resistance value of the first resistor R1, so that the capacitance value of the third filter capacitor C3 is at least 100 times the sum of the capacitance value of the first filter capacitor C1 and the capacitance value of the second filter capacitor C2, and / or so that the charging time of the third filter capacitor C3 is less than or equal to the sampling time of the internal module 1;

[0065] Step S30, measuring the actual voltage value of the signal output terminal A, and comparing the actual voltage value with the theoretical voltage value;

[0066] Step S40: when the absolute value of the difference between the actual voltage value and the theoretical voltage value is less than or equal to the threshold, the external input module 2 of the analog / digital converter is designed according to the capacitance value of the third filter capacitor C3 and the resistance value of the first resistor R1.

[0067] The present disclosure provides a design method for an external input module 2 of an analog / digital converter. In the design method for the external input module 2 of the analog / digital converter provided in the present disclosure, the capacitance value of the third filter capacitor C3 can be set to at least 100 times the sum of the capacitance value of the first filter capacitor C1 and the capacitance value of the second filter capacitor C2. When the switch S1 in the channel selection module 11 and the switch S2 in the sampling module 12 are closed, the third filter capacitor C3 is discharged to charge the first filter capacitor C1 and the second filter capacitor C2. Since the capacitance value of the third filter capacitor C3 is at least set to 100 times the sum of the capacitance value of the first filter capacitor C1 and the capacitance value of the second filter capacitor C2, the voltage drop of the signal output terminal A after the third filter capacitor C3 is discharged is relatively low, so that the voltage of the signal output terminal A after the third filter capacitor C3 is discharged is relatively small compared with the voltage of the signal output terminal A before the third filter capacitor C3 is discharged, thereby ensuring that the conversion result of the analog / digital converter is accurate.

[0068] In addition, in the design method of the external input module 2 of the analog / digital converter provided in the present disclosure, the charging time of the third filter capacitor C3 can be made less than or equal to the sampling time of the internal module 1. Therefore, when the internal module 1 performs sampling, the third filter capacitor C3 can be fully charged again, so that the voltage of the signal output terminal A at this time is less different from the voltage of the signal output terminal A before the third filter capacitor C3 is discharged, thereby ensuring the accuracy of the conversion result of the analog / digital converter.

[0069] Furthermore, in the design method of the external input module 2 of the analog / digital converter provided in the present disclosure, the capacitance value of the third filter capacitor C3 can be made at least 100 times the sum of the capacitance value of the first filter capacitor C1 and the capacitance value of the second filter capacitor C2, and the charging time of the third filter capacitor C3 can be less than or equal to the sampling time of the internal module 1. Such a setting can further improve the accuracy of the conversion result of the analog / digital converter.

[0070] At the same time, the present disclosure compares the actual voltage value of the signal output terminal A with the theoretical voltage value. When the absolute value of the difference between the actual voltage value and the theoretical voltage value is less than or equal to the threshold value, the analog / digital converter can be designed according to the capacitance value of the third filter capacitor C3 and the resistance value of the first resistor R1. Thus, by comparing the actual voltage value with the theoretical voltage value, it is possible to further verify whether the parameters of each component of the aforementioned design are appropriate, thereby further ensuring that the designed external input module 2 of the analog / digital converter can make the analog / digital converter have a higher conversion accuracy.

[0071] In the above step S10, the theoretical voltage value of the signal output terminal A can be calculated. Specifically, the external charging circuit may include: an input circuit, a control circuit and an output circuit. Among them, the input circuit may include: a first voltage terminal VCC and a first transistor Q1, and the first voltage terminal VCC is connected to the input terminal of the first transistor Q1. The control circuit may include: a signal receiving terminal EN, which can be connected to the control terminal of the first transistor Q1. The output circuit may include: an external charging circuit and a signal output terminal A. Among them, one end of the first resistor R1 in the external charging circuit is connected to the output terminal of the first transistor Q1, and the other end is connected to the third filter capacitor C3 and the signal receiving terminal EN.

[0072] The external charging circuit may further include: a second resistor R2, and the second resistor R2 is connected in parallel with the third filter capacitor C3.

[0073] The theoretical voltage value of the signal output terminal A can be:

[0074] V1 = (R2 / (R1+R2))*(V2-V3);

[0075] Among them, V1 is the theoretical voltage value of the signal output terminal A; R1 is the resistance value of the first resistor R1; R2 is the resistance value of the second resistor R2; V2 is the voltage value of the first voltage terminal VCC; V3 is the saturation voltage value between the output terminal and the input terminal of the first transistor Q1.

[0076] For example, when the resistance value of the first resistor R1 is 100KΩ, the resistance value of the second resistor R2 is 15KΩ, the voltage value of the first voltage terminal VCC is 12V, and the saturation voltage value between the output terminal and the input terminal of the first transistor Q1 is 0.2V, the theoretical voltage value of the signal output terminal A can be 1.54V.

[0077] In the above step S20, it can be understood that step S10 may include three solutions.

[0078] The first solution is to set the capacitance of the third filter capacitor C3 and the resistance of the first resistor R1 so that the capacitance of the third filter capacitor C3 is at least 100 times the sum of the capacitance of the first filter capacitor C1 and the capacitance of the second filter capacitor C2.

[0079] The second solution is: setting the capacitance value of the third filter capacitor C3 and the resistance value of the first resistor R1 so that the charging time of the third filter capacitor C3 is less than or equal to the sampling time of the internal module 1 .

[0080] The third solution is: setting the capacitance value of the third filter capacitor C3 and the resistance value of the first resistor R1 so that the capacitance value of the third filter capacitor C3 is at least 100 times the sum of the capacitance value of the first filter capacitor C1 and the capacitance value of the second filter capacitor C2, and the charging time of the third filter capacitor C3 is less than or equal to the sampling time of the internal module 1.

[0081] In the first solution, for example, the capacitance value of the first filter capacitor C1 can be 2pF, and the capacitance value of the second filter capacitor C2 can be 5pF. At this time, the capacitance value of the third filter capacitor C3 can be set to 1nF. When the switch S1 in the channel selection module 11 and the switch S2 in the sampling module 12 are closed, the third filter capacitor C3 discharges to the first filter capacitor C1 and the second filter capacitor C2. At this time, the voltage of the signal output terminal A only decreases by 0.7% relative to the voltage before the third filter capacitor C3 is discharged, so that the voltage of the signal output terminal A after the third filter capacitor C3 is discharged is substantially the same as the voltage before the third filter capacitor C3 is discharged. At this time, the external input module 2 of the analog / digital converter can make the analog / digital converter have a higher conversion accuracy.

[0082] It should be noted that the above steps are only explained through specific embodiments. In the actual design process, the above parameters can be replaced according to actual needs, which is within the protection scope of the present disclosure.

[0083] In one embodiment of the present disclosure, in step S20, the sampling time of the internal module 1 can be obtained according to the capacitance value of the first filter capacitor C1 and the capacitance value of the second filter capacitor C2. The charging time of the third filter capacitor C3 can be set according to the sampling time of the internal module 1, and the charging time of the third filter capacitor C3 is less than or equal to the sampling time of the internal module 1. The capacitance value of the third filter capacitor C3 and the resistance value of the first resistor R1 can be obtained according to the charging time of the third filter capacitor C3.

[0084] In one embodiment, the resistance value of the first resistor R1 can be preset. The capacitance value of the third filter capacitor C3 is obtained according to the charging time of the third filter capacitor C3 and the resistance value of the first resistor R1.

[0085] For example, the capacitance value of the first filter capacitor C1 can be set to 2pF, the capacitance value of the second filter capacitor C2 can be set to 5pF, and it is assumed that the equivalent resistance Rsw of the switch S1 in the channel selection module 11 is 0.5KΩ, and the equivalent resistance Rs of the switch S2 in the sampling module 12 is 1KΩ. At this time, the sampling time of the internal module 1 can be 4μS.

[0086] The charging time of the third filter capacitor C3 can be set according to the sampling time of the internal module 1 of 4μS, so that the charging time of the third filter capacitor C3 is less than or equal to 4μS. For example, the resistance value of the first resistor R1 can be pre-set to 10KΩ, and the capacitance value of the third filter capacitor C3 can be calculated according to the charging time of 4μS. That is, when the capacitance value of the third filter capacitor C3 is less than or equal to 100PF, the above charging time can be met.

[0087] It should be noted that the above steps are only explained through specific embodiments. In the actual design process, the above parameters can be replaced according to actual needs, which is within the protection scope of the present disclosure.

[0088] In another embodiment, the capacitance value of the third filter capacitor C3 may be preset, and the resistance value of the first resistor R1 may be obtained according to the charging time of the third filter capacitor C3 and the capacitance value of the third filter capacitor C3.

[0089] For example, the capacitance value of the first filter capacitor C1 can be set to 2pF, the capacitance value of the second filter capacitor C2 can be set to 5pF, and it is assumed that the equivalent resistance Rsw of the switch S1 in the channel selection module 11 is 0.5KΩ, and the equivalent resistance Rs of the switch S2 in the sampling module 12 is 1KΩ. At this time, the sampling time of the internal module 1 can be 4μS.

[0090] The charging time of the third filter capacitor C3 can be set according to the sampling time of the internal module 1 of 4μS, so that the charging time of the third filter capacitor C3 is less than or equal to 4μS. For example, the capacitance value of the third filter capacitor C3 can be preset to 100PF, and the resistance value of the first resistor R1 can be calculated according to the charging time of 4μS. That is, when the resistance value of the first resistor R1 is less than or equal to 10KΩ, the above charging time can be met.

[0091] It should be noted that the above steps are only explained through specific embodiments. In the actual design process, the above parameters can be replaced according to actual needs, which is within the protection scope of the present disclosure.

[0092] In one embodiment of the present disclosure, the sampling time of the internal module 1 can be greater than or equal to the product of the capacitance value of the third filter capacitor C3 and the resistance value of the first resistor R1, so as to ensure that the third filter capacitor C3 can be fully charged before sampling, so that the voltage of the signal output terminal A can be restored to the voltage before the third filter capacitor C3 is discharged before sampling, thereby making the conversion result of the analog / digital converter accurate.

[0093] In the above step S40, when the absolute value of the difference between the actual voltage value and the theoretical voltage value is less than or equal to the threshold value, the analog / digital converter can be designed according to the capacitance value of the third filter capacitor C3 and the resistance value of the first resistor R1. When the absolute value of the difference between the actual voltage value and the theoretical voltage value is greater than the threshold value, step S20 needs to be re-executed until the absolute value of the difference between the actual voltage value and the theoretical voltage value is less than or equal to the threshold value.

[0094] Another aspect of the present disclosure provides a design method for an analog / digital converter, which may include the design method for the external input module 2 of the analog / digital converter described above. In addition, when setting the capacitance value of the third filter capacitor C3 and the resistance value of the first resistor R1, the design method for the analog / digital converter may further include: setting the capacitance value of the first filter capacitor C1 and the capacitance value of the second filter capacitor C2.

[0095] That is, it can be understood that in step S30, the capacitance value of the first filter capacitor C1, the capacitance value of the second filter capacitor C2, the capacitance value of the third filter capacitor C3 and the resistance value of the first resistor R1 can be set so that the capacitance value of the third filter capacitor C3 is at least 100 times the sum of the capacitance value of the first filter capacitor C1 or the capacitance value of the second filter capacitor C2, and / or so that the charging time of the third filter capacitor C3 is less than or equal to the sampling time of the internal module.

[0096] It should be noted that, in the specific description of the design method of the analog / digital converter, the present disclosure does not repeat the design method of the external input module 2 of the analog / digital converter. The design method of the external input module 2 of the analog / digital converter can refer to the above specific description, which is also within the protection scope of the present disclosure.

[0097] like Figures 2 to 5 As shown, in the design method of the analog / digital converter provided in the present disclosure, the capacitance value of the third filter capacitor C3 can be set to at least 100 times the sum of the capacitance value of the first filter capacitor C1 and the capacitance value of the second filter capacitor C2. When the switch in the channel selection module 11 and the switch in the sampling module 12 are closed, the third filter capacitor C3 is discharged to charge the first filter capacitor C1 and the second filter capacitor C2. Since the capacitance value of the third filter capacitor C3 is at least set to 100 times the sum of the capacitance value of the first filter capacitor C1 and the capacitance value of the second filter capacitor C2, the voltage drop of the signal output terminal A after the third filter capacitor C3 is discharged is relatively low, so that the voltage of the signal output terminal A after the third filter capacitor C3 is discharged is relatively small compared with the voltage of the signal output terminal A before the third filter capacitor C3 is discharged, thereby ensuring that the conversion result of the analog / digital converter is accurate.

[0098] In addition, in the design method of the analog / digital converter provided by the present disclosure, the charging time of the third filter capacitor C3 can be made less than or equal to the sampling time of the internal module 1. Therefore, when the internal module 1 performs sampling, the third filter capacitor C3 can be fully charged again, so that the voltage of the signal output terminal A at this time is less different from the voltage of the signal output terminal A before the third filter capacitor C3 is discharged, thereby ensuring the accuracy of the conversion result of the analog / digital converter.

[0099] At the same time, the present disclosure compares the actual voltage value of the signal output terminal A with the theoretical voltage value. When the absolute value of the difference between the actual voltage value and the theoretical voltage value is less than or equal to the threshold value, the analog / digital converter can be designed according to the capacitance value of the third filter capacitor C3 and the resistance value of the first resistor R1. Thus, by comparing the actual voltage value with the theoretical voltage value, it is possible to further verify whether the parameters of each component of the aforementioned design are appropriate, thereby further ensuring that the designed analog / digital converter has a higher conversion accuracy.

[0100] In one embodiment of the present disclosure, the capacitance value of the first filter capacitor C1 and the capacitance value of the second filter capacitor C2 can be set. Specifically, the capacitance value of the third filter capacitor C3 and the resistance value of the first resistor R1 can be set. The charging time of the third filter capacitor C3 can be obtained according to the capacitance value of the third filter capacitor C3 and the resistance value of the first resistor R1. The sampling time of the internal module 1 can be set according to the charging time of the third filter capacitor C3, and the sampling time of the internal module 1 is greater than or equal to the charging time of the third filter capacitor C3. The capacitance value of the first filter capacitor C1 and the capacitance value of the second filter capacitor C2 can be obtained according to the sampling time of the internal module 1.

[0101] In one embodiment, the capacitance value of the first filter capacitor C1 can be preset. The capacitance value of the second filter capacitor C2 can be obtained according to the sampling time of the internal module 1 and the capacitance value of the first filter capacitor C1.

[0102] For example, the capacitance value of the third filter capacitor C3 can be set to 100pF, the resistance value of the first resistor R1 can be set to 100KΩ, and it is assumed that the equivalent resistance Rsw of the switch S1 in the channel selection module 11 is 0.5KΩ, and the equivalent resistance Rs of the switch S2 in the sampling module 12 is 1KΩ. At this time, the charging time of the third filter capacitor C3 is 40μS.

[0103] The sampling time of the internal module 1 can be set according to the charging time of the third filter capacitor C3 of 40 μS, so that the sampling time of the internal module 1 is greater than or equal to 40 μS. For example: the capacitance value of the first filter capacitor C1 can be preset to 2PF, and the capacitance value of the second filter capacitor C2 can be designed according to the sampling time of the internal module 1 of 40 μS.

[0104] In another embodiment, the capacitance value of the second filter capacitor C2 may be preset. The capacitance value of the first filter capacitor C1 may be obtained according to the sampling time of the internal module 1 and the capacitance value of the second filter capacitor C2.

[0105] For example, the capacitance value of the third filter capacitor C3 can be set to 100pF, the resistance value of the first resistor R1 can be set to 100KΩ, and it is assumed that the equivalent resistance Rsw of the switch S1 in the channel selection module 11 is 0.5KΩ, and the equivalent resistance Rs of the switch S2 in the sampling module 12 is 1KΩ. At this time, the charging time of the third filter capacitor C3 is 40μS.

[0106] The sampling time of the internal module 1 can be set according to the charging time of the third filter capacitor C3 of 40 μS, so that the sampling time of the internal module 1 is greater than or equal to 40 μS. For example: the capacitance value of the second filter capacitor C2 can be preset to 5PF, and the capacitance value of the first filter capacitor C1 can be designed according to the sampling time of the internal module 1 of 40 μS.

[0107] It should be noted that the above steps are only explained through specific embodiments. In the actual design process, the above parameters can be replaced according to actual needs, which is within the protection scope of the present disclosure.

[0108] In one embodiment, in step S40, when the absolute value of the difference between the actual voltage value and the theoretical voltage value is less than or equal to a threshold value, the analog / digital converter can be designed according to the capacitance value of the first filter capacitor C1, the capacitance value of the second filter capacitor C2, the capacitance value of the third filter capacitor C3 and the resistance value of the first resistor R1.

[0109] like Figures 3 to 5 As shown, the present disclosure provides an external input module 2 of an analog / digital converter on another aspect. The analog / digital converter may include: an internal module 1, the internal module 1 may include: a channel selection module 11 and a sampling module 12, the channel selection module 11 may include: a first filter capacitor C1, the sampling module 12 may include: a second filter capacitor C2, and the external input module 2 of the analog / digital converter may include: an input circuit, a control circuit, and an output circuit.

[0110] Wherein, the input circuit may include: a first voltage terminal VCC. The control circuit may include: a signal receiving terminal EN, connected to the first voltage terminal VCC. The output circuit may include: an external charging circuit and a signal output terminal A, the external charging circuit includes: a third filter capacitor C3 and a first resistor R1, one end of the first resistor R1 is connected to the first voltage terminal VCC, the other end of the first resistor R1 is connected to the third filter capacitor C3 and the signal receiving terminal EN, the signal receiving terminal EN can be connected to the channel selection module 11, when the signal receiving terminal EN receives a valid signal, the signal output terminal A is connected to the first voltage terminal VCC, and the signal output terminal A can output a signal to the channel selection module 11.

[0111] The capacitance value of the third filter capacitor C3 may be at least 100 times the sum of the capacitance values ​​of the first filter capacitor C1 and the second filter capacitor C2, and / or the charging time of the third filter capacitor C3 may be less than or equal to the sampling time of the internal module 1.

[0112] When the switch S1 in the channel selection module 11 and the switch S2 in the sampling module 12 are closed, the third filter capacitor C3 is discharged to charge the first filter capacitor C1 and the second filter capacitor C2. Since the capacitance value of the third filter capacitor C3 is at least set to 100 times the sum of the capacitance value of the first filter capacitor C1 and the capacitance value of the second filter capacitor C2, the voltage drop of the signal output terminal A after the third filter capacitor C3 is discharged is relatively low, so that the voltage of the signal output terminal A after the third filter capacitor C3 is discharged is relatively small compared with the voltage of the signal output terminal A before the third filter capacitor C3 is discharged, thereby ensuring that the conversion result of the analog / digital converter is accurate.

[0113] In addition, in the external input module 2 of the analog / digital converter provided in the present disclosure, the charging time of the third filter capacitor C3 is less than or equal to the sampling time of the internal module 1. Therefore, when the internal module 1 performs sampling, the third filter capacitor C3 can be fully charged again, so that the voltage of the signal output terminal A at this time is less different from the voltage of the signal output terminal A before the third filter capacitor C3 is discharged, thereby ensuring the accuracy of the conversion result of the analog / digital converter.

[0114] In one embodiment of the present disclosure, the input circuit may further include: a first transistor Q1, a first voltage terminal VCC may be connected to the input terminal of the first transistor Q1, a signal receiving terminal EN may be connected to the control terminal of the first transistor Q1, and one end of a first resistor R1 in an external charging circuit is connected to the output terminal of the first transistor Q1. By setting the first transistor Q1, the on-off between the input circuit and the output circuit may be controlled by the control circuit. That is, when the signal receiving terminal EN receives a valid signal, the first transistor Q1 is turned on, and the signal output terminal A is turned on with the first voltage terminal VCC, and at this time, the signal output terminal A can output a signal to the channel selection module 11.

[0115] The external charging circuit may further include: a second resistor R2, and the second resistor R2 may be connected in parallel with the third filter capacitor C3.

[0116] In one embodiment, the input circuit may further include: a third resistor R3. One end of the third resistor R3 may be connected to the first voltage terminal VCC, and the other end of the third resistor R3 may be connected to the signal receiving terminal EN, so as to protect the first transistor Q1.

[0117] The control circuit may further include: a second transistor Q2. The input end of the second transistor Q2 may be connected to the control end of the first transistor Q1, the output end of the second transistor Q2 may be grounded, and the control end of the second transistor Q2 may be connected to the signal receiving end EN.

[0118] The control circuit may further include: a fourth resistor R4 and a fifth resistor R5. One end of the fourth resistor R4 may be connected to the signal receiving end EN, and the other end may be connected to the control end of the second transistor Q2 to prevent the voltage or current of the electrical signal received by the signal receiving end EN from being too large and damaging the second transistor Q2 or other components in the circuit.

[0119] One end of the fifth resistor R5 can be connected to an end of the fourth resistor R4 away from the signal receiving end EN, and the other end of the fifth resistor R5 is connected to the output end of the second transistor Q2 to further protect the second transistor Q2 or other components in the circuit.

[0120] The control circuit may further include a sixth resistor R6 . One end of the sixth resistor R6 may be connected to the control end of the first transistor Q1 , and the other end of the sixth resistor R6 may be connected to the input end of the second transistor Q2 to prevent excessive current or voltage between the first transistor Q1 and the second transistor Q2 .

[0121] In one embodiment, the external input module 2 of the analog / digital converter can be designed by the design method of the external input module 2 of the analog / digital converter described above.

[0122] It should be noted that, in this embodiment, the design method of the external input module 2 of the analog / digital converter will not be described again, and reference may be made to the above specific description, which is also within the protection scope of the present disclosure.

[0123] like Figures 3 to 5 As shown, the present disclosure provides an analog / digital converter in another aspect. The analog / digital converter includes: an internal module 1 and an external input module 2 .

[0124] The internal module 1 may include: a channel selection module 11 and a sampling module 12. The channel selection module 11 may include: a first filter capacitor C1, and the sampling module 12 may include: a second filter capacitor C2.

[0125] The external input module 2 may be the external input module 2 of the analog / digital converter mentioned above, and the signal receiving end EN is connected to the channel selection module 11 .

[0126] It should be noted that, in the specific description of the analog / digital converter in the present disclosure, the specific structure and technical effects of the external input module 2 of the analog / digital converter are not repeated. The specific structure and technical effects of the external input module 2 of the analog / digital converter can refer to the above specific description, which is also within the protection scope of the present disclosure.

[0127] The analog / digital converter provided by the present disclosure includes the external input module 2 of the analog / digital converter described above. The external input module 2 of the analog / digital converter described above may include: an input circuit, a control circuit and an output circuit.

[0128] Wherein, the input circuit may include: a first voltage terminal VCC. The control circuit may include: a signal receiving terminal EN, connected to the first voltage terminal VCC. The output circuit may include: an external charging circuit and a signal output terminal A, the external charging circuit includes: a third filter capacitor C3 and a first resistor R1, one end of the first resistor R1 is connected to the first voltage terminal VCC, the other end of the first resistor R1 is connected to the third filter capacitor C3 and the signal receiving terminal EN, the signal receiving terminal EN can be connected to the channel selection module 11, when the signal receiving terminal EN receives a valid signal, the signal output terminal A is connected to the first voltage terminal VCC, and the signal output terminal A can output a signal to the channel selection module 11.

[0129] The capacitance value of the third filter capacitor C3 may be at least 100 times the sum of the capacitance values ​​of the first filter capacitor C1 and the second filter capacitor C2, and / or the charging time of the third filter capacitor C3 may be less than or equal to the sampling time of the internal module 1.

[0130] When the switch S1 in the channel selection module 11 and the switch S2 in the sampling module 12 are closed, the third filter capacitor C3 is discharged to charge the first filter capacitor C1 and the second filter capacitor C2. Since the capacitance value of the third filter capacitor C3 is at least set to 100 times the sum of the capacitance value of the first filter capacitor C1 and the capacitance value of the second filter capacitor C2, the voltage drop of the signal output terminal A after the third filter capacitor C3 is discharged is relatively low, so that the voltage of the signal output terminal A after the third filter capacitor C3 is discharged is relatively small compared with the voltage of the signal output terminal A before the third filter capacitor C3 is discharged, thereby ensuring that the conversion result of the analog / digital converter is accurate.

[0131] In addition, in the external input module 2 of the analog / digital converter provided in the present disclosure, the charging time of the third filter capacitor C3 is less than or equal to the sampling time of the internal module 1. Therefore, when the internal module 1 performs sampling, the third filter capacitor C3 can be fully charged again, so that the voltage of the signal output terminal A at this time is less different from the voltage of the signal output terminal A before the third filter capacitor C3 is discharged, thereby ensuring the accuracy of the conversion result of the analog / digital converter.

[0132] In one embodiment, the analog / digital converter can be designed by the analog / digital converter design method described above.

[0133] It should be noted that, in this embodiment, the design method of the analog / digital converter is not described again, and reference may be made to the above specific description, which is also within the protection scope of the present disclosure.

[0134] In one embodiment of the present disclosure, the analog / digital converter may include multiple external input modules 2, and the signal receiving ends EN of the multiple external input modules 2 can all be connected to the channel selection module 11, and different external input modules 2 can be selected by the switch S1 in the channel selection module 11.

[0135] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

Claims

1. A method for designing an external input module of an analog / digital converter, characterized in that: The analog / digital converter comprises: an internal module and an external input module, the internal module comprises: a channel selection module and a sampling module, the channel selection module comprises a first filter capacitor, the sampling module comprises a second filter capacitor, the external input module comprises an external charging circuit and a signal output terminal, the external charging circuit comprises: a third filter capacitor and a first resistor, the signal output terminal is connected to the channel selection module, and the design method of the external input module of the analog / digital converter comprises: Calculating a theoretical voltage value of the signal output terminal; Setting the capacitance value of the third filter capacitor and the resistance value of the first resistor so that the capacitance value of the third filter capacitor is at least 100 times the sum of the capacitance value of the first filter capacitor and the capacitance value of the second filter capacitor, and / or so that the charging time of the third filter capacitor is less than or equal to the sampling time of the internal module; Measuring an actual voltage value of the signal output terminal, and comparing the actual voltage value with the theoretical voltage value; When the absolute value of the difference between the actual voltage value and the theoretical voltage value is less than or equal to a threshold, the external input module of the analog / digital converter is designed according to the capacitance value of the third filter capacitor and the resistance value of the first resistor.

2. The design method of the external input module of the analog / digital converter according to claim 1, characterized in that: The step of setting the capacitance value of the third filter capacitor and the resistance value of the first resistor so that the charging time of the third filter capacitor is less than or equal to the sampling time of the internal module includes: Acquiring a sampling time of the internal module according to a capacitance value of the first filter capacitor and a capacitance value of the second filter capacitor; According to the sampling time of the internal module, setting the charging time of the third filter capacitor, and making the charging time of the third filter capacitor less than or equal to the sampling time of the internal module; According to the charging time of the third filter capacitor, the capacitance value of the third filter capacitor and the resistance value of the first resistor are obtained.

3. The design method of the external input module of the analog / digital converter according to claim 2, characterized in that: The obtaining, according to the charging time of the third filter capacitor, a capacitance value of the third filter capacitor and a resistance value of the first resistor comprises: Presetting the resistance value of the first resistor; The capacitance value of the third filter capacitor is obtained according to the charging time of the third filter capacitor and the resistance value of the first resistor.

4. The design method of the external input module of the analog / digital converter according to claim 2, characterized in that: The obtaining, according to the charging time of the third filter capacitor, a capacitance value of the third filter capacitor and a resistance value of the first resistor comprises: Presetting the capacitance value of the third filter capacitor; The resistance value of the first resistor is obtained according to the charging time of the third filter capacitor and the capacitance value of the third filter capacitor.

5. A method for designing an analog / digital converter, characterized in that: The design method of the analog / digital converter includes the design method of the external input module of the analog / digital converter according to any one of claims 1 to 4 above, and when setting the capacitance value of the third filter capacitor and the resistance value of the first resistor, the design method of the analog / digital converter further includes: The capacitance value of the first filter capacitor and the capacitance value of the second filter capacitor are set.

6. The design method of the analog / digital converter according to claim 5, characterized in that: The step of setting the capacitance value of the first filter capacitor and the capacitance value of the second filter capacitor comprises: Setting the capacitance value of the third filter capacitor and the resistance value of the first resistor; Obtaining a charging time of the third filter capacitor according to a capacitance value of the third filter capacitor and a resistance value of the first resistor; According to the charging time of the third filter capacitor, the sampling time of the internal module is set, and the sampling time of the internal module is made greater than or equal to the charging time of the third filter capacitor; According to the sampling time of the internal module, the capacitance value of the first filter capacitor and the capacitance value of the second filter capacitor are obtained.

7. The design method of the analog / digital converter according to claim 6, characterized in that: The obtaining, according to the sampling time of the internal module, the capacitance value of the first filter capacitor and the capacitance value of the second filter capacitor includes: Presetting the capacitance value of the first filter capacitor; The capacitance value of the second filter capacitor is obtained according to the sampling time of the internal module and the capacitance value of the first filter capacitor.

8. The method for designing an analog / digital converter according to claim 6, characterized in that: The obtaining, according to the sampling time of the internal module, the capacitance value of the first filter capacitor and the capacitance value of the second filter capacitor includes: Presetting the capacitance value of the second filter capacitor; The capacitance value of the first filter capacitor is obtained according to the sampling time of the internal module and the capacitance value of the second filter capacitor.

9. An external input module of an analog / digital converter, characterized in that: The analog / digital converter includes: an internal module, the internal module includes: a channel selection module and a sampling module, the channel selection module includes a first filter capacitor, the sampling module includes a second filter capacitor, and the external input module of the analog / digital converter includes: The input circuit comprises: a first voltage terminal; The control circuit includes: a signal receiving terminal connected to the first voltage terminal; An output circuit, comprising: an external charging circuit and a signal output terminal, wherein the external charging circuit comprises: a third filter capacitor and a first resistor, wherein one end of the first resistor is connected to the first voltage terminal, and the other end of the first resistor is connected to the third filter capacitor and the signal receiving terminal, wherein the signal receiving terminal can be connected to the channel selection module, and when the signal receiving terminal receives a valid signal, the signal output terminal is connected to the first voltage terminal, and the signal output terminal can output a signal to the channel selection module; Among them, the capacitance value of the third filter capacitor is at least 100 times the sum of the capacitance values ​​of the first filter capacitor and the second filter capacitor, and / or the charging time of the third filter capacitor is less than or equal to the sampling time of the internal module.

10. An analog / digital converter, characterized in that: include: The internal module comprises: a channel selection module and a sampling module, wherein the channel selection module comprises a first filter capacitor, and the sampling module comprises a second filter capacitor; An external input module, wherein the external input module is the external input module of the analog / digital converter according to claim 9, and the signal receiving end is connected to the channel selection module.