Analog quantity sampling circuit and closed-loop control chip

By designing the operational amplifier, carrier generation circuit and sampling signal conditioning circuit in the closed-loop control chip, and directly connecting with the main control chip IO interface, the problem of high complexity of traditional chips is solved, low-complexity analog-to-digital conversion is achieved, and simplified signal conversion process and improves system reliability.

CN221652580UActive Publication Date: 2024-09-03INVT POWER ELECTRONICS SUZHOU CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323370561.4
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-11
Publication Date
2024-09-03
Estimated Expiration
2033-12-11

AI Technical Summary

Technical Problem

In traditional closed-loop control chip design, the hardware complexity and software complexity are high. Adding an analog-to-digital conversion chip or a microcontroller chip requires additional pins and complex communication protocol configurations, making it difficult to achieve low-complexity analog-to-digital conversion.

Method used

Design an analog sampling circuit, including an operational amplifier, a carrier generation circuit and a sampling signal conditioning circuit. The carrier wave and the conditioned sampling signal are sent to the operational amplifier, and the actual signal is calculated based on the duty cycle of the modulated pulse, which is directly communicated with the main control The chip's IO interface connection replaces the traditional analog-to-digital conversion chip, reducing hardware and software complexity.

Benefits of technology

It realizes low-complexity analog-to-digital conversion function, reduces the complexity of chip hardware and software, simplifies the signal conversion process, and improves the reliability and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221652580U
    Figure CN221652580U
Patent Text Reader

Abstract

The utility model discloses an analog quantity sampling circuit and a closed-loop control chip, and relates to the technical field of analog-to-digital conversion. According to the scheme, the input end of a sampling signal conditioning circuit is connected with a sampled signal, and the output end of the sampling signal conditioning circuit is connected with the in-phase input end of a first operational amplifier; the output end of the carrier generation circuit is connected with the inverted input end of the first operational amplifier; and the output end of the first operational amplifier is connected with the IO digital interface of the main control chip. The circuit does not need special pins, the first operational amplifier is directly connected with the IO digital interface of the main control chip, an analog-to-digital conversion chip or a single-chip microcomputer chip with a conversion function does not need to be added, software configuration and communication between chips do not need to be carried out either, and therefore the hardware complexity and the software complexity of the chips can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of analog-to-digital conversion, in particular to an analog quantity sampling circuit and a closed-loop control chip. Background Art

[0002] The closed-loop control of common parameters in industrial processes such as temperature, water level, and voltage requires the acquisition of corresponding analog quantities as references, so the hardware system with analog-to-digital conversion function is a crucial part of realizing closed-loop control. When designing a closed-loop control chip system, a main control chip with analog-to-digital conversion function is usually used, which requires the main control chip to set special pins to realize the transmission of corresponding signals.

[0003] However, the sampling channels of any main control chip are limited (that is, the special pins are limited). When the sampling channels of the main control chip are insufficient or a pure digital chip is used as the main control (that is, there is no sampling channel), the hardware engineer needs to add an additional analog-to-digital conversion chip or a single-chip microcomputer chip with conversion function, which will increase the hardware complexity of the chip. And after adding chips, the chips need to communicate with each other, and the signal conversion process is cumbersome. Software engineers need to configure relevant communication protocols and write programs to realize communication between chips to achieve analog-to-digital conversion. It can be seen that the traditional method will increase the complexity of software programming while increasing the complexity of hardware, which is difficult to implement.

[0004] In view of the above-mentioned technology, seeking a chip with lower hardware complexity and software complexity is an urgent problem to be solved by those skilled in the art. Utility Model Content

[0005] The purpose of the utility model is to provide an analog quantity sampling circuit and a closed-loop control chip to solve the problem of high complexity of current chip hardware and software.

[0006] In order to solve the above technical problems, the utility model provides an analog quantity sampling circuit, comprising: a first operational amplifier, a carrier generation circuit for generating and sending a carrier, and a sampling signal conditioning circuit for amplifying a signal;

[0007] The input end of the sampling signal conditioning circuit is connected to the sampled signal, and the output end of the sampling signal conditioning circuit is connected to the in-phase input end of the first operational amplifier;

[0008] The output terminal of the carrier generating circuit is connected to the inverting input terminal of the first operational amplifier;

[0009] The output end of the first operational amplifier is connected to the IO digital interface of the main control chip.

[0010] Preferably, the carrier wave generating circuit is specifically a triangle wave generating circuit.

[0011] Preferably, the triangle wave generating circuit specifically comprises: a second operational amplifier, a third operational amplifier, a first resistor, a second resistor, a third resistor and a first capacitor;

[0012] The output end of the second operational amplifier, the first end of the first resistor and the first end of the second resistor are connected to each other;

[0013] The non-inverting input terminal of the second operational amplifier, the second terminal of the second resistor and the first terminal of the third resistor are connected to each other;

[0014] The inverting input terminal of the third operational amplifier, the second terminal of the first resistor and the first terminal of the first capacitor are connected to each other;

[0015] The inverting input terminal of the second operational amplifier and the non-inverting input terminal of the third operational amplifier are both connected to a preset voltage;

[0016] The output end of the third operational amplifier, the second end of the third resistor and the second end of the first capacitor are connected to each other, and the common end of the connection is connected to the inverting input end of the first operational amplifier as the output end of the triangular wave generating circuit.

[0017] Preferably, the triangle wave generating circuit specifically comprises: a fourth operational amplifier and a second capacitor;

[0018] The inverting input terminal of the fourth operational amplifier and the first terminal of the second capacitor are connected to each other, and the common terminal of the connections is connected to the square wave output interface;

[0019] The inverting input terminal of the fourth operational amplifier is connected to a preset voltage;

[0020] The output end of the fourth operational amplifier is connected to the second end of the second capacitor, and the common end of the connection is connected to the inverting input end of the first operational amplifier as the output end of the triangle wave generating circuit.

[0021] Preferably, the triangle wave generating circuit further comprises: a fourth resistor;

[0022] The first end of the fourth resistor is connected to the square wave output interface; the second end of the fourth resistor, the inverting input end of the fourth operational amplifier and the first end of the second capacitor are connected to each other.

[0023] Preferably, the first end of the fourth resistor is connected to the square wave output interface of the main control chip.

[0024] Preferably, the sampling signal conditioning circuit specifically includes: a fifth operational amplifier, a fifth resistor;

[0025] The non-inverting input terminal and the inverting input terminal of the fifth operational amplifier are respectively used as two poles for accessing the sampled signal;

[0026] The non-inverting input terminal of the fifth operational amplifier is also connected to a preset voltage; the inverting input terminal of the fifth operational amplifier is connected to the first end of the fifth resistor;

[0027] The output end of the fifth operational amplifier and the second end of the fifth resistor are connected to each other, and the common end of the connections is connected to the non-inverting input end of the first operational amplifier as the output end of the sampling signal conditioning circuit.

[0028] Preferably, the sampling signal conditioning circuit further includes: a sixth resistor;

[0029] The output end of the fifth operational amplifier, the second end of the fifth resistor and the first end of the sixth resistor are connected to each other;

[0030] The second end of the sixth resistor is connected to the non-inverting input end of the first operational amplifier as the output end of the sampling signal conditioning circuit.

[0031] Preferably, the sampling signal conditioning circuit further includes: a seventh resistor and an eighth resistor;

[0032] The non-inverting input terminal of the fifth operational amplifier is connected to the first end of the seventh resistor, and the inverting input terminal of the fifth operational amplifier is connected to the first end of the eighth resistor;

[0033] The second end of the seventh resistor and the second end of the eighth resistor serve as two poles for accessing the sampled signal.

[0034] In order to solve the above technical problems, the utility model also provides a closed-loop control chip, including the above main control chip and an analog quantity sampling circuit.

[0035] The utility model provides an analog quantity sampling circuit, including a first operational amplifier, a carrier generation circuit for generating and sending a carrier, and a sampling signal conditioning circuit for amplifying a signal. The input end of the sampling signal conditioning circuit is connected to the sampled signal, and the output end of the sampling signal conditioning circuit is connected to the in-phase input end of the first operational amplifier; the output end of the carrier generation circuit is connected to the inverting input end of the first operational amplifier; the first operational amplifier is specifically used as a comparator, and its output end is connected to the IO digital interface of the main control chip. The utility model sends the carrier and the conditioned sampling signal into the operational amplifier, calculates the actual sampled signal according to the duty cycle of the modulated pulse, and replaces the original analog-to-digital conversion chip or the single-chip microcomputer chip with conversion function through the analog quantity sampling circuit. The circuit does not require special pins, and the first operational amplifier is directly connected to the IO digital interface of the main control chip. There is no need to add an analog-to-digital conversion chip or a single-chip microcomputer chip with conversion function, and there is no need to perform software configuration and communication between chips, thereby reducing the hardware complexity and software complexity of the chip.

[0036] In addition, the closed-loop control chip provided by the present invention corresponds to the analog sampling circuit mentioned above, and has the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present utility model, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 An overall structural block diagram of a closed-loop control chip provided by an embodiment of the utility model;

[0039] Figure 2 A circuit diagram of one of the analog quantity sampling circuits provided in an embodiment of the utility model;

[0040] Figure 3 A circuit diagram of another analog quantity sampling circuit provided by an embodiment of the utility model;

[0041] Figure 4 A schematic diagram of an input waveform and an output waveform of a signal comparator in an analog quantity sampling circuit provided by the utility model;

[0042] Figure 5 A schematic diagram of sampling signal amplitude calculation provided by the utility model;

[0043] The reference numerals are as follows: 1 is a sampling signal conditioning circuit, 2 is a carrier generation circuit, 3 is a signal comparator, and 4 is a main control chip. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of them. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the utility model.

[0045] The core of the utility model is to provide an analog quantity sampling circuit and a closed-loop control chip to solve the problem of high complexity of current chip hardware and software.

[0046] In order to enable those skilled in the art to better understand the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0047] This embodiment provides a low-complexity, high-reliability analog sampling circuit. Figure 1 The overall structure block diagram of a closed-loop control chip provided by the embodiment of the utility model; Figure 1 As shown, it includes: a sampling signal conditioning circuit 1 for amplifying a signal, a carrier generation circuit 2 for generating and sending a carrier, and a first operational amplifier as a signal comparator 3, and the signal comparator 3 is connected to the main control chip 4. The input end of the sampling signal conditioning circuit 1 is connected to the sampled signal, and the output end of the sampling signal conditioning circuit 1 is connected to the in-phase input end of the first operational amplifier (signal comparator 3). The output end of the carrier generation circuit 2 is connected to the inverting input end of the first operational amplifier; the output end of the first operational amplifier is connected to the input and output (IO) digital interface of the main control chip 4.

[0048] Among them, the role of the main control chip is to realize the analog-to-digital sampling function and restore the sampling value to the actual value. The three component circuits in the analog sampling circuit can be realized by an operational amplifier chip, in which each operational amplifier is specifically a rail-to-rail operational amplifier. Here, the triangle wave is used as the carrier, and the carrier generation circuit is specifically a triangle wave generation circuit. Two different triangle wave generation circuits are provided here, corresponding to the two analog sampling circuits respectively. Figure 2 A circuit diagram of an analog quantity sampling circuit provided in an embodiment of the present utility model; Figure 2As shown, the triangular wave generating circuit is specifically a first triangular wave generating circuit 5, which specifically includes: a second operational amplifier U1A, a third operational amplifier U1B, a first resistor R1, a second resistor R2, a third resistor R3 and a first capacitor C1. The output end of the second operational amplifier U1A, the first end of the first resistor R1 and the first end of the second resistor R2 are connected to each other; the non-inverting input end of the second operational amplifier U1A, the second end of the second resistor R2 and the first end of the third resistor R3 are connected to each other. The inverting input end of the third operational amplifier U1B, the second end of the first resistor R1 and the first end of the first capacitor C1 are connected to each other; the inverting input end of the second operational amplifier U1A and the non-inverting input end of the third operational amplifier U1B are both connected to a preset voltage. The output end of the third operational amplifier U1B, the second end of the third resistor R3 and the second end of the first capacitor C1 are connected to each other, and the common end of the connection is connected to the inverting input end of the first operational amplifier U1D as the output end of the triangular wave generating circuit. Specifically, the second operational amplifier U1A acts as a comparator. Assuming that its initial value is a high level, the third operational amplifier U1B, which acts as an integrator, can output the slope-down phase of the triangular wave waveform. Its output is fed back to the in-phase terminal of the second operational amplifier U1A until the voltage at the in-phase terminal is lower than that at the inverting terminal. At this time, the output of the second operational amplifier U1A is flipped, and the output triangular wave waveform enters the slope-up phase. Since the preset voltage at the inverting input terminal of the second operational amplifier U1A is VCC / 2, the triangular wave fluctuates up and down with the reference potential of VCC / 2 as the center, so each operational amplifier needs to select a rail-to-rail operational amplifier with good output symmetry. The signal output by the sampled signal after conditioning by the fifth operational amplifier U1C is compared with the triangular wave output by the third operational amplifier U1B. When the sampled value is greater than the triangular wave, the output value of the first operational amplifier U1D is a high level, otherwise it outputs a low level. The triangular wave is an isosceles triangle, and its period T is fixed to:

[0049]

[0050] Upper and lower peak values ​​V H and V L for:

[0051]

[0052]

[0053] Where VCC is Figure 2 The voltage shown in R 1 , R 2 , R 3 , C 1 are the resistance and capacitance values ​​corresponding to each component respectively.

[0054] Figure 3A circuit diagram of another analog quantity sampling circuit provided by an embodiment of the utility model; Figure 3 As shown, the triangular wave generating circuit is specifically a second triangular wave generating circuit 6, which specifically includes: a fourth operational amplifier U1E, a fourth resistor R4 and a second capacitor C2; the first end of the fourth resistor R4 is connected to the square wave output interface (specifically, it can be the square wave output interface of the main control chip). The second end of the fourth resistor R4, the inverting input end of the fourth operational amplifier U1E, and the first end of the second capacitor C2 are connected to each other. The inverting input end of the fourth operational amplifier U1E is connected to a preset voltage, the output end of the fourth operational amplifier U1E is connected to the second end of the second capacitor C2, and the common end of the connection is connected to the inverting input end of the first operational amplifier U1D as the output end of the triangular wave generating circuit. Figure 3 is Figure 2 Based on the change of the triangular wave generation method, the main control chip is directly used to generate a square wave of a certain frequency and enter the inverting input end of the fourth operational amplifier U1E as an integrator to obtain a triangular wave. The principle of the triangular wave generation process is the same as Figure 2 The triangle wave frequency is consistent with the square wave output by the main control chip. The resistance and capacitance can be adjusted according to the following formula:

[0055]

[0056] Among them, U1 is the amplitude of the square wave output by the main control chip, U2 is the amplitude of the triangular wave output, f is the frequency of the triangular wave, C 2 is the capacitance value of the second capacitor C2.

[0057] The output duty cycle of the first operational amplifier U1D (signal comparator 3) is proportional to the size of the analog quantity. The above two schemes can restore the actual value of the analog quantity according to the similar triangle theorem. Therefore, it is also necessary to read the duty cycle through the main control chip to obtain the output voltage of the sampling signal conditioning circuit at a certain moment, and then reversely calculate the actual value of the sampled analog quantity. Figure 2 or Figure 3 The square wave output from the first operational amplifier U1D is directly connected to the IO pin of the main control chip, with an oscillation period of a triangle wave as a reference, and the jump of the IO pin is detected according to the clock frequency set inside the main control chip, starting from 0 to 1 and then changing back from 1 to 0 as the end. The product of the clock oscillation period and the number of oscillations is the duration of the high level, and its ratio to the oscillation period of the triangle wave is the duty cycle. The resolution of the utility model is inversely proportional to the clock period of the main control chip and proportional to the oscillation period of the triangle wave, and can be adjusted according to actual needs.

[0058] also, Figure 2 as well as Figure 3In the example, the sampling signal conditioning circuit is a signal scaling circuit formed by the fifth operational amplifier U1C, specifically including: the fifth operational amplifier U1C, the fifth resistor R5, and the sixth resistor R6. The in-phase input terminal and the inverting input terminal of the fifth operational amplifier U1C are respectively used as the two poles for accessing the sampled signal; the in-phase input terminal of the fifth operational amplifier U1C is also connected to a preset voltage; the inverting input terminal of the fifth operational amplifier U1C is connected to the first end of the fifth resistor R5; the output terminal of the fifth operational amplifier U1C, the second end of the fifth resistor R5, and the first end of the sixth resistor R6 are connected to each other. The second end of the sixth resistor R6 is connected to the in-phase input terminal of the first operational amplifier as the output terminal of the sampling signal conditioning circuit. The amplification factor of the sampling signal conditioning circuit can be adjusted according to actual needs. The first operational amplifier U1D is used as a common comparator function without any feedback, and its output terminal Uo is connected to the I / O port of the main control chip.

[0059] The above embodiment uses an operational amplifier chip ( Figure 2 It is a four-op-amp chip. Figure 3 The analog-to-digital conversion function can be completed by using only three operational amplifier chips) and a pure digital main control chip. Since no additional analog-to-digital conversion chip is needed, the cost can be reduced. For hardware, the circuit is simple to implement and the sampling frequency and resolution can be adjusted; for software, only the high and low levels need to be identified regularly to complete the analog reading, which is fast and efficient. In addition, the utility model has the characteristics of adjustable sampling frequency and resolution while realizing the analog-to-digital conversion function.

[0060] An analog quantity sampling circuit provided by an embodiment of the utility model includes a first operational amplifier, a carrier generation circuit for generating and sending a carrier, and a sampling signal conditioning circuit for amplifying a signal. The input end of the sampling signal conditioning circuit is connected to the sampled signal, and the output end of the sampling signal conditioning circuit is connected to the in-phase input end of the first operational amplifier; the output end of the carrier generation circuit is connected to the inverting input end of the first operational amplifier; the first operational amplifier is specifically used as a comparator, and its output end is connected to the IO digital interface of the main control chip. The utility model sends the carrier and the conditioned sampling signal into the operational amplifier, calculates the actual sampled signal according to the duty cycle of the modulated pulse, and replaces the original analog-to-digital conversion chip or the single-chip microcomputer chip with conversion function through the analog quantity sampling circuit. This circuit does not require special pins, and the first operational amplifier is directly connected to the IO digital interface of the main control chip. There is no need to add an analog-to-digital conversion chip or a single-chip microcomputer chip with conversion function, so there is no need to perform software configuration and communication between chips, thereby reducing the hardware complexity and software complexity of the main control chip.

[0061] Here, a specific implementation is used as an example to illustrate. In this embodiment, the analog quantity sampling circuit specifically adopts the following Figure 2In the circuit shown, each operational amplifier is powered by 5V and is rail-to-rail. The bus voltage in a system is used as the target signal to be sampled. The voltage signal is first sampled proportionally through resistor voltage division and enters the sampling signal conditioning circuit. The values ​​of the resistors R5, R7, R8 and R9 are: R 5 =R 7 =R 8 =R 9 , then the signal amplification factor is R 9 / R 7 =1, a 2.5V voltage bias should be added during output. In this embodiment, R 1 is 3kΩ, R 2 is 12kΩ, R 3 is 10kΩ, C 1 If the resistor is 10nF, the triangular wave signal generated by the generator can be obtained, and its frequency is:

[0062]

[0063] Its upper and lower peak values ​​are:

[0064]

[0065]

[0066] Figure 4 The utility model provides an input waveform and an output waveform schematic diagram of a signal comparator in an analog quantity sampling circuit; the signal comparator inputs a triangle wave and outputs a square wave. Figure 5 A schematic diagram of sampling signal amplitude calculation provided by the utility model; Figure 4 and Figure 5 As shown, suppose that at a certain moment, the duty cycle of the output pulse of the two input signals after the comparator is 60%, and the line segment BA and the line segment AC form a cycle of the triangular wave. The triangular wave is an isosceles triangle, and DF is the sampling waveform output by the conditioning circuit. At a high switching frequency, the line segment DF can be regarded as a parallel line of the line segment BC, that is, the line segment DF is 0.6 times longer than the line segment BC, where the line segment BC is the time length of a cycle. According to the similar triangle theorem, it can be known that DE is 0.6 times longer than AG. The length of the line segment DE can be further calculated. The length of DE plus the 0.4V at the lowest point of the triangular wave is the output of the conditioning circuit at this time: (4.6-0.4)×0.6+0.4=2.92(V). The total bus voltage can be further calculated based on the configuration of the sampling signal conditioning circuit and the ratio of the resistor voltage divider.

[0067] Finally, taking the bus voltage of 1000V as an example, for a 12-bit AD conversion module, its resolution is:

[0068]

[0069] In this embodiment, the resolution can be improved by changing the clock cycle of the main control chip. Taking a 50M clock cycle as an example, the triangular wave oscillation frequency is 10k, and its resolution is:

[0070]

[0071] It can be seen that the resolution of the utility model under this working condition is higher than that of the 12-bit sampler.

[0072] Similarly, increasing the clock frequency of the main control chip or reducing the oscillation frequency of the triangle wave can improve the sampling resolution. For example, if the clock period becomes 100M, or the period remains unchanged and the triangle wave oscillation frequency becomes 5k, the resolutions are:

[0073]

[0074] or:

[0075]

[0076] The resolution can be increased from 0.2V to 0.1V.

[0077] In addition, the above embodiments mentioned that the carrier wave generating circuit can specifically adopt a triangular wave generating circuit, and the specific structure of the circuit is not required. Here, two specific implementation schemes are provided.

[0078] Solution 1: The triangular wave generating circuit specifically includes: a second operational amplifier, a third operational amplifier, a first resistor, a second resistor, a third resistor and a first capacitor. The output end of the second operational amplifier, the first end of the first resistor and the first end of the second resistor are connected to each other; the non-inverting input end of the second operational amplifier, the second end of the second resistor and the first end of the third resistor are connected to each other. The inverting input end of the third operational amplifier, the second end of the first resistor and the first end of the first capacitor are connected to each other; the inverting input end of the second operational amplifier and the non-inverting input end of the third operational amplifier are both connected to a preset voltage. The output end of the third operational amplifier, the second end of the third resistor and the second end of the first capacitor are connected to each other, and the common end of the connection is connected to the inverting input end of the first operational amplifier as the output end of the triangular wave generating circuit.

[0079] Solution 2: The triangular wave generating circuit specifically includes: a fourth operational amplifier and a second capacitor. The inverting input terminal of the fourth operational amplifier and the first terminal of the second capacitor are interconnected, and the common terminal of the connections is connected to the square wave output interface; the inverting input terminal of the fourth operational amplifier is connected to a preset voltage; the output terminal of the fourth operational amplifier is connected to the second terminal of the second capacitor, and the common terminal of the connections is connected to the inverting input terminal of the first operational amplifier as the output terminal of the triangular wave generating circuit. In practical applications, the triangular wave generating circuit may also include: a fourth resistor; the first terminal of the fourth resistor is connected to the square wave output interface; the second terminal of the fourth resistor, the inverting input terminal of the fourth operational amplifier and the first terminal of the second capacitor are interconnected. The square wave output interface can be provided by the main control chip, that is, the first terminal of the fourth resistor is specifically connected to the square wave output interface of the main control chip.

[0080] The two different triangle wave generating circuits mentioned above can generate triangle waves that meet the requirements.

[0081] In practical applications, the specific structure of the sampling signal conditioning circuit is not limited. This embodiment provides a specific implementation method. The sampling signal conditioning circuit specifically includes: five operational amplifiers, a fifth resistor; the in-phase input terminal and the inverting input terminal of the fifth operational amplifier are respectively used as the two poles of the sampled signal; the in-phase input terminal of the fifth operational amplifier is also connected to a preset voltage; the inverting input terminal of the fifth operational amplifier is connected to the first end of the fifth resistor. The output terminal of the fifth operational amplifier is connected to the second end of the fifth resistor, and the common end of the connection is connected to the in-phase input terminal of the first operational amplifier as the output terminal of the sampling signal conditioning circuit. In practical applications, the sampling signal conditioning circuit may also include: a sixth resistor, a seventh resistor, an eighth resistor, etc. Specifically, the output terminal of the fifth operational amplifier, the second end of the fifth resistor and the first end of the sixth resistor are connected to each other; the second end of the sixth resistor is connected to the in-phase input terminal of the first operational amplifier as the output terminal of the sampling signal conditioning circuit. The in-phase input terminal of the fifth operational amplifier is connected to the first end of the seventh resistor, and the inverting input terminal of the fifth operational amplifier is connected to the first end of the eighth resistor; the second end of the seventh resistor and the second end of the eighth resistor are used as the two poles of the sampled signal. The sampling signal conditioning circuit mainly realizes the amplification of the sampled signal, and its amplification factor can be adjusted according to actual needs.

[0082] In order to solve the above technical problems, an embodiment of the utility model provides a closed-loop control chip, including the main control chip and the analog quantity sampling circuit in the above embodiment.

[0083] Since the embodiments of the closed-loop control chip part correspond to the embodiments of the analog sampling circuit part, the embodiments of the closed-loop control chip part refer to the description of the embodiments of the analog sampling circuit part, which will not be described here.

[0084] The closed-loop control chip provided in this embodiment corresponds to the above-mentioned analog quantity sampling circuit, and thus has the same beneficial effects as the above-mentioned analog quantity sampling circuit.

[0085] The above is a detailed introduction to an analog sampling circuit and a closed-loop control chip provided by the utility model. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can refer to each other. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the utility model, the utility model can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the claims of the utility model.

[0086] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method, article or device including the above elements.

Claims

1. An analog quantity sampling circuit, characterized in that: include: A first operational amplifier, a carrier generation circuit (2) for generating and transmitting a carrier, and a sampling signal conditioning circuit (1) for amplifying a signal; The input end of the sampling signal conditioning circuit (1) is connected to the sampled signal, and the output end of the sampling signal conditioning circuit (1) is connected to the in-phase input end of the first operational amplifier; The output end of the carrier generating circuit (2) is connected to the inverting input end of the first operational amplifier; The output end of the first operational amplifier is connected to the IO digital interface of the main control chip (4).

2. The analog quantity sampling circuit according to claim 1, characterized in that: The carrier wave generating circuit (2) is specifically a triangle wave generating circuit.

3. The analog quantity sampling circuit according to claim 2, characterized in that: The triangle wave generating circuit specifically comprises: a second operational amplifier, a third operational amplifier, a first resistor, a second resistor, a third resistor and a first capacitor; The output end of the second operational amplifier, the first end of the first resistor and the first end of the second resistor are connected to each other; The non-inverting input terminal of the second operational amplifier, the second terminal of the second resistor and the first terminal of the third resistor are connected to each other; The inverting input terminal of the third operational amplifier, the second terminal of the first resistor and the first terminal of the first capacitor are connected to each other; The inverting input terminal of the second operational amplifier and the non-inverting input terminal of the third operational amplifier are both connected to a preset voltage; The output end of the third operational amplifier, the second end of the third resistor and the second end of the first capacitor are connected to each other, and the common end of the connection is connected to the inverting input end of the first operational amplifier as the output end of the triangular wave generating circuit.

4. The analog quantity sampling circuit according to claim 2, characterized in that: The triangle wave generating circuit specifically comprises: a fourth operational amplifier and a second capacitor; The inverting input terminal of the fourth operational amplifier and the first terminal of the second capacitor are connected to each other, and the common terminal of the connections is connected to the square wave output interface; The inverting input terminal of the fourth operational amplifier is connected to a preset voltage; The output end of the fourth operational amplifier is connected to the second end of the second capacitor, and the common end of the connection is connected to the inverting input end of the first operational amplifier as the output end of the triangle wave generating circuit.

5. The analog quantity sampling circuit according to claim 4, characterized in that: The triangle wave generating circuit further includes: a fourth resistor; The first end of the fourth resistor is connected to the square wave output interface; the second end of the fourth resistor, the inverting input end of the fourth operational amplifier and the first end of the second capacitor are connected to each other.

6. The analog quantity sampling circuit according to claim 5, characterized in that: The first end of the fourth resistor is connected to the square wave output interface of the main control chip (4).

7. The analog quantity sampling circuit according to claim 1, characterized in that: The sampling signal conditioning circuit (1) specifically comprises: a fifth operational amplifier and a fifth resistor; The non-inverting input terminal and the inverting input terminal of the fifth operational amplifier are respectively used as two poles for accessing the sampled signal; The non-inverting input terminal of the fifth operational amplifier is also connected to a preset voltage; the inverting input terminal of the fifth operational amplifier is connected to the first end of the fifth resistor; The output end of the fifth operational amplifier and the second end of the fifth resistor are connected to each other, and the common end of the connection is connected to the non-inverting input end of the first operational amplifier as the output end of the sampling signal conditioning circuit (1).

8. The analog quantity sampling circuit according to claim 7, characterized in that: The sampling signal conditioning circuit (1) further comprises: a sixth resistor; The output end of the fifth operational amplifier, the second end of the fifth resistor and the first end of the sixth resistor are connected to each other; The second end of the sixth resistor is connected to the non-inverting input end of the first operational amplifier as the output end of the sampling signal conditioning circuit (1).

9. The analog quantity sampling circuit according to claim 8, characterized in that: The sampling signal conditioning circuit (1) further comprises: a seventh resistor and an eighth resistor; The non-inverting input terminal of the fifth operational amplifier is connected to the first end of the seventh resistor, and the inverting input terminal of the fifth operational amplifier is connected to the first end of the eighth resistor; The second end of the seventh resistor and the second end of the eighth resistor serve as two poles for accessing the sampled signal.

10. A closed-loop control chip, characterized in that: It comprises a main control chip and the analog quantity sampling circuit according to any one of claims 1 to 9.