Sampling switch, analog signal sampling circuit, method and electronic device

By using a parallel structure of NMOS tubes and PMOS tubes in the sampling switch, combined with the substrate switching and compensation module, the problems of poor linearity and charge injection effect of the sampling signal are solved, and high linearity and high-precision signal sampling are achieved.

CN118337215BActive Publication Date: 2024-09-24LAIYING TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410764336.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-24
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

The non-ideal characteristics of the existing sampling switch lead to poor linearity of the sampling signal, affecting the sampling quality, and the offset effect and charge injection effect of the MOS tube further deteriorate the linearity and accuracy of the signal sampling.

Method used

Using a sampling switch including NMOS tubes and PMOS tubes connected in parallel, the substrate switching module and compensation module are used to overcome the substrate bias effect and charge injection effect, ensuring substrate switching and precharging before and after the switch is turned on to achieve high linearity of the signal. and high-precision sampling.

Benefits of technology

It effectively improves the linearity of the sampling signal, reduces the impact of charge injection, improves the accuracy of signal sampling, and ensures the sampling quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

The present invention provides a sampling switch, an analog signal sampling circuit, a method and an electronic device, comprising: a first and a second switch tube connected in parallel, wherein the first end receives an input signal and the second end outputs a sampling signal; the on-off states of the first and the second switch tubes are consistent; a substrate switching module, which connects the substrates of the first and the second switch tubes to the input signal when the first and the second switch tubes are turned on; when the first and the second switch tubes are turned off, the substrate of the first switch tube is pulled to the ground, and the substrate of the second switch tube is pulled to the power supply voltage; a compensation module, which charges the substrates of the first and the second switch tubes to the same voltage as the input signal through the power supply voltage before the first and the second switch tubes are turned on, so as to realize charge injection compensation. The present invention switches the substrate before and after the switch is turned on to overcome the influence of the liner bias effect and further improve the linearity of signal sampling; the substrate is pre-charged before the switch is turned on, thereby reducing the influence of charge injection and improving the accuracy of signal sampling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of integrated circuits, and in particular to a sampling switch, an analog signal sampling circuit, a method and an electronic device. Background Art

[0002] The sampling of analog signals on the chip is realized by sampling switches and holding capacitors, where the sampling switch is composed of MOS tubes. When the MOS tube is turned on, the voltage on the holding capacitor is equal to the voltage of the input signal, so as to follow the input signal; when the MOS tube is turned off, the voltage on the holding capacitor remains unchanged, so as to hold the sampling signal. In order to meet the swing of the input signal between the power supply voltage rail and the ground voltage rail, the sampling switch is usually composed of NMOS tubes and PMOS tubes in parallel, that is, CMOS switches.

[0003] like Figure 1 As shown, the NMOS tube MN0 and the PMOS tube MP0 are connected in parallel to form a sampling switch, the sources of the NMOS tube MN0 and the PMOS tube MP0 are connected together and connected to the input signal VIN, and the drains are connected together and serve as the output end (output sampling signal VOUT); the gate of the NMOS tube MN0 receives the control signal CTL1, and the gate of the PMOS tube MP0 receives the control signal CTL2, and CTL1 is opposite to CTL2; the substrate of the NMOS tube MN0 is grounded, and the substrate of the PMOS tube MP0 is connected to the power supply voltage VDD. The upper plate of the holding capacitor C0 is connected to the output end of the sampling switch, and the lower plate is grounded. When the control signal CTL1 is high and the control signal CTL2 is low, the NMOS tube MN0 and the PMOS tube MP0 are turned on, and the sampling signal VOUT follows the input signal VIN; when the control signal CTL1 is low and the control signal CTL2 is high, the NMOS tube MN0 and the PMOS tube MP0 are turned off, and the sampling signal VOUT remains unchanged. Due to the non-ideal characteristics of the switch, the sampling quality of the sampling signal will be affected; the offset effect of the MOS tube will affect its resistance when it is turned on, and then affect the tracking of the input signal when the switch is turned on. At the same time, the offset effect is related to the voltage size of the input signal, which further deteriorates the linearity of signal sampling.

[0004] Therefore, how to improve the linearity of the sampling signal and ensure the sampling quality has become one of the problems that technical personnel in this field need to solve urgently.

[0005] It should be noted that the above introduction to the technical background is only for the convenience of providing a clear and complete description of the technical solutions of the present invention and for the convenience of understanding by those skilled in the art. It cannot be considered that the above technical solutions are well known to those skilled in the art simply because these solutions are described in the background technology section of the present invention. Summary of the invention

[0006] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a sampling switch, an analog signal sampling circuit, a method and an electronic device, which are used to solve the problems of poor linearity of the sampling signal and low sampling quality in the prior art.

[0007] To achieve the above-mentioned object and other related objects, the present invention provides a sampling switch, which at least includes:

[0008] A first switch tube, a second switch tube, a substrate switching module and a compensation module, wherein the first switch tube is an NMOS tube and the second switch tube is a PMOS tube;

[0009] The first switch tube is connected in parallel with the second switch tube, the first end of the parallel structure receives an input signal, and the second end outputs a sampling signal; the on-off state of the first switch tube is consistent with that of the second switch tube;

[0010] The substrate switching module is connected to the substrates of the first switch tube and the second switch tube respectively, and when the first switch tube and the second switch tube are turned on, the substrates of the first switch tube and the second switch tube are connected to the input signal; when the first switch tube and the second switch tube are turned off, the substrate of the first switch tube is pulled to the ground, and the substrate of the second switch tube is pulled to the power supply voltage;

[0011] The compensation module is connected to the substrates of the first switch tube and the second switch tube respectively. Before the first switch tube and the second switch tube are turned on, the substrates of the first switch tube and the second switch tube are charged to the same voltage as the input signal through the power supply voltage to achieve charge injection compensation.

[0012] Optionally, the sampling switch further includes a same-direction buffer and a reverse buffer;

[0013] The input end of the non-inverting buffer receives a switch control signal, and the output end is connected to the control end of the first switch tube;

[0014] The input end of the reverse buffer receives the switch control signal, and the output end is connected to the control end of the second switch tube.

[0015] Optionally, the substrate switching module includes a third transmission gate, a fourth transmission gate, a pull-down tube and a pull-up tube;

[0016] One end of the third transmission gate is connected to the input signal, the other end is connected to the substrate of the first switch tube, and the control end is connected to the first switching control signal;

[0017] One end of the pull-down tube is connected to the substrate of the first switch tube, the other end is grounded, and the control end receives a second switching control signal;

[0018] One end of the fourth transmission gate is connected to the input signal, the other end is connected to the substrate of the second switch tube, and the control end is connected to the first switching control signal;

[0019] One end of the pull-up tube is connected to the substrate of the second switch tube, the other end is connected to the power supply voltage, and the control end receives the inverse signal of the second switching control signal;

[0020] The on-off state of each transmission gate is consistent with the on-off state of each switch tube.

[0021] More optionally, the substrate switching module further includes a fifth transmission gate and a sixth transmission gate;

[0022] One end of the fifth transmission gate is connected to the sampling signal, the other end is connected to the substrate of the first switch tube, and the control end is connected to the first switching control signal;

[0023] One end of the sixth transmission gate is connected to the sampling signal, the other end is connected to the substrate of the second switch tube, and the control end is connected to the first switching control signal.

[0024] More optionally, the pull-down tube is an NMOS tube, and the pull-up tube is a PMOS tube.

[0025] More optionally, the compensation module includes a first analog buffer, a second analog buffer, a first transmission gate and a second transmission gate;

[0026] The input end of the first analog buffer is connected to the input signal, and the output end is connected to the substrate of the first switch tube via the first transmission gate; the control end of the first transmission gate receives the compensation control signal;

[0027] The input end of the second analog buffer is connected to the input signal, and the output end is connected to the substrate of the second switch tube via the second transmission gate; the control end of the second transmission gate receives the compensation control signal;

[0028] The compensation control signal is a pulse signal, which is effective before the first switch tube and the second switch tube are turned on.

[0029] To achieve the above-mentioned object and other related objects, the present invention further provides an analog signal sampling circuit, the analog signal sampling circuit at least comprising:

[0030] A capacitor and the sampling switch; the upper plate of the capacitor is connected to the output end of the sampling switch, and the lower plate is grounded.

[0031] To achieve the above object and other related objects, the present invention further provides an analog signal sampling method, which is implemented based on the above analog signal sampling circuit. The analog signal sampling method at least includes:

[0032] During sampling, the substrates of the first switch tube and the second switch tube are precharged to the same voltage as the input signal based on the power supply voltage; then the first switch tube and the second switch tube are turned on, and at the same time, the substrates of the first switch tube and the second switch tube are connected to the input signal; the input signal is collected to the output end of the sampling switch and stored on the capacitor to obtain a sampling signal;

[0033] When maintaining, the first switch tube and the second switch tube are turned off; then the substrate of the first switch tube is grounded, and the substrate of the second switch tube is connected to the power supply voltage; the sampling signal on the capacitor remains unchanged.

[0034] Optionally, when the first switch tube and the second switch tube are turned on, the substrates of the first switch tube and the second switch tube are also connected to the output end of the sampling switch.

[0035] In order to achieve the above object and other related objects, the present invention further provides an electronic device, which at least includes: the above sampling switch.

[0036] As described above, the sampling switch, analog signal sampling circuit, method and electronic device of the present invention have the following beneficial effects:

[0037] The sampling switch, analog signal sampling circuit, method and electronic device of the present invention switch the substrate before and after the switch is turned on to overcome the influence of the substrate bias effect and further improve the linearity of signal sampling.

[0038] The sampling switch, analog signal sampling circuit, method and electronic device of the present invention pre-charge the substrate before the switch is turned on, suppress the charge injection effect, thereby reducing the impact of the charge injection and improving the accuracy of signal sampling. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a schematic diagram showing the structure of a sampling circuit in the prior art.

[0040] Figure 2 Shown is a schematic structural diagram of the sampling switch of the present invention.

[0041] Figure 3 It is a schematic diagram showing the principle of enhancing the charge injection effect of the present invention.

[0042] Figure 4 Shown is a structural schematic diagram of the analog signal sampling circuit of the present invention.

[0043] Component number description

[0044] 1-sampling switch; 11-substrate switching module; 12-compensation module; 121-first analog buffer; 122-second analog buffer; 13-same direction buffer; 14-reverse buffer. DETAILED DESCRIPTION

[0045] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.

[0046] See also Figure 2~Figure 4 It should be noted that the illustrations provided in this embodiment are only used to illustrate the basic concept of the present invention in a schematic manner, and the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0047] like Figure 2 As shown, the present invention provides a sampling switch 1, comprising:

[0048] A first switch tube, a second switch tube, a substrate switching module 11 and a compensation module 12; wherein the first switch tube is an NMOS tube, denoted as MN1; and the second switch tube is a PMOS tube, denoted as MP1.

[0049] like Figure 2 As shown, the first switch tube MN1 and the second switch tube MP1 are connected in parallel (forming a parallel structure), the first end of the parallel structure receives the input signal VIN, and the second end outputs the sampling signal VOUT. The on-off state of the first switch tube MN1 is consistent with that of the second switch tube MP1.

[0050] Specifically, in this embodiment, the source of the first switch tube MN1 and the source of the second switch tube MP1 are connected together as the input end of the parallel structure; the drain of the first switch tube MN1 and the drain of the second switch tube MP1 are connected together as the output end of the parallel structure; the gates of the first switch tube MN1 and the gates of the second switch tube MP1 are respectively used as control ends. In actual use, the source and drain of the first switch tube MN1 and the second switch tube MP1 can be used interchangeably, which will not be described in detail here.

[0051] Specifically, the control signals of the first switch tube MN1 and the second switch tube MP1 are reversed, so that the first switch tube MN1 and the second switch tube MP1 are turned on and turned off at the same time. In this embodiment, the sampling switch 1 also includes a non-inverting buffer 13 and a reverse buffer 14. The input end of the non-inverting buffer 13 receives the switch control signal S0, and the output end is connected to the control end of the first switch tube MN1, and the first switch tube MN1 is controlled to be turned on or off based on the switch control signal S0. The input end of the reverse buffer 14 receives the switch control signal S0, and the output end is connected to the control end of the second switch tube MP1, and the second switch tube MP1 is controlled to be turned on or off based on the inverse signal of the switch control signal S0. In actual use, the sources of the control signals of the first switch tube MN1 and the second switch tube MP1 are not limited, and the two are reversed, so that the two switch tubes can be turned on and turned off at the same time.

[0052] like Figure 2 As shown, the substrate switching module 11 is connected to the substrates of the first switch tube MN1 and the second switch tube MP1 respectively. When the first switch tube MN1 and the second switch tube MP1 are turned on, the substrates of the first switch tube MN1 and the second switch tube MP1 are connected to the input signal VIN; when the first switch tube MN1 and the second switch tube MP1 are turned off, the substrate of the first switch tube MN1 is pulled to the ground, and the substrate of the second switch tube MP1 is pulled to the power supply voltage VDD.

[0053] Specifically, in this embodiment, the substrate switching module 11 includes a third transmission gate T3, a fourth transmission gate T4, a pull-down tube and a pull-up tube. In this example, the pull-down tube is implemented by an NMOS tube, which is recorded as MN2; the pull-up tube is implemented by a PMOS tube, which is recorded as MP2. One end of the third transmission gate T3 is connected to the input signal VIN, the other end is connected to the substrate of the first switch tube MN1, and the control end is connected to the first switching control signal S1, which is used to switch the substrate of the first switch tube MN1 to the input signal VIN. One end of the pull-down tube MN2 is connected to the substrate of the first switch tube MN1, the other end is grounded, and the control end receives the second switching control signal S2, which is used to switch the substrate of the first switch tube MN1 to the ground; in this example, the drain of the pull-down tube MN2 is connected to the substrate of the first switch tube MN1, the source is grounded, and the gate is connected to the second switching control signal S2. One end of the fourth transmission gate T4 is connected to the input signal VIN, the other end is connected to the substrate of the second switch tube MP1, and the control end is connected to the first switching control signal S1, which is used to switch the substrate of the second switch tube MP1 to the input signal VIN. One end of the pull-up tube MP2 is connected to the substrate of the second switch tube MP1, and the other end is connected to the power supply voltage VDD. The control end receives the inverse signal of the second switching control signal S2 (the second switching control signal S2 provides its inverse signal via the inverter not), and is used to switch the substrate of the second switch tube MP1 to the power supply voltage VDD. In this example, the drain of the pull-up tube MP2 is connected to the substrate of the first switch tube MN1, the source is connected to the power supply voltage VDD, and the gate is connected to the inverse signal of the second switching control signal S2.

[0054] like Figure 2As shown, when the first switch tube MN1 and the second switch tube MP1 are turned on, the substrate switching module 11 connects the substrates of the first switch tube MN1 and the second switch tube MP1 to the input signal VIN, and finally makes the voltage difference between the source and the substrate of the switch tube zero, and there is no substrate bias effect; when the first switch tube MN1 and the second switch tube MP1 are turned off, the substrate switching module 11 connects the substrate of the first switch tube MN1 to the ground, and connects the substrate of the second switch tube MP1 to the power supply voltage, thereby blocking the transmission path of the input signal. However, in the process of substrate switching, for different input signals VIN, the corresponding substrate bias effect is inconsistent, that is, the greater the voltage difference between the input signal VIN and the substrate, the greater the substrate bias effect, thereby affecting the linearity. In order to improve the linearity, as another implementation of the present invention, the substrate switching module 11 also includes a fifth transmission gate T5 and a sixth transmission gate T6. One end of the fifth transmission gate T5 is connected to the sampling signal VOUT, the other end is connected to the substrate of the first switch tube MN1, and the control end is connected to the first switching control signal S1; one end of the sixth transmission gate T6 is connected to the sampling signal VOUT, the other end is connected to the substrate of the second switch tube MP1, and the control end is connected to the first switching control signal S1. Before sampling, the sampling signal VOUT may be greater than the input signal VIN, or may be less than the input signal VIN. When the switch tube is turned on, if the fifth transmission gate T5 and the sixth transmission gate T6 are not set, the substrate bias effect only depends on the voltage difference between the source and the substrate; if the fifth transmission gate T5 and the sixth transmission gate T6 are set, the substrate voltage is balanced by the input signal VIN and the sampling signal VOUT, and for different input signals, the voltage difference between the source and the substrate tends to be consistent, so that the substrate bias effect corresponding to different input signals in the substrate switching process is relatively balanced, the substrate switching is relatively smooth, and the linearity is greatly improved.

[0055] It should be noted that the on-off state of each transmission gate is consistent with the on-off state of each switch tube, that is, when the first switch tube MN1 and the second switch tube MP1 are controlled to be turned on, the third transmission gate T3, the fourth transmission gate T4, the fifth transmission gate T5 and the sixth transmission gate T6 are also turned on; when the first switch tube MN1 and the second switch tube MP1 are controlled to be turned off, the third transmission gate T3, the fourth transmission gate T4, the fifth transmission gate T5 and the sixth transmission gate T6 are also turned off. In this example, the first switching control signal S1 and the switch control signal S0 use the same signal, and can be set to two signals of the same direction in actual use, which is not limited to this embodiment.

[0056] The substrate bias effect of MOS tubes can be overcome by substrate switching, but substrate switching will significantly increase the charge injection effect, causing a large error in the hold signal and affecting the accuracy of signal sampling. Figure 3As shown, there is a parasitic capacitor Cp1 on the substrate of the first switch tube MN1, and there is a parasitic capacitor Cp2 on the substrate of the second switch tube MP1. Before the first switch tube MN1 and the second switch tube MP1 are turned on, the third transmission gate T3, the fourth transmission gate T4, the fifth transmission gate T5 and the sixth transmission gate T6 are all turned off, the pull-down tube MN2 and the pull-up tube MP2 are all turned on, then the substrate of the first switch tube MN1 is biased to the ground, and the substrate of the second switch tube MP1 is biased to the power supply voltage VDD. When the first switch tube MN1 and the second switch tube MP1 are turned on, the pull-down tube MN2 and the pull-up tube MP2 are all turned off, the third transmission gate T3, the fourth transmission gate T4, the fifth transmission gate T5 and the sixth transmission gate T6 are all turned on, then because the voltage on the parasitic capacitors Cp1 and Cp2 is not equal to the input signal VIN, the charges on the parasitic capacitors Cp1 and Cp2 will be injected into the output end, thereby generating a charge injection effect outside the first switch tube MN1 and the second switch tube MP1. The above problems also exist in the case where the fifth transmission gate T5 and the sixth transmission gate T6 are not provided, and they are not described one by one here. In this regard, the present invention provides a compensation module 12, which is connected to the substrates of the first switch tube MN1 and the second switch tube MP1 respectively, and before the first switch tube MN1 and the second switch tube MP1 are turned on, the substrates of the first switch tube MN1 and the second switch tube MP1 are charged to the same voltage as the input signal VIN through the power supply voltage VDD to achieve charge injection compensation, significantly reduce the impact of charge injection, and improve the accuracy of signal sampling.

[0057] Specifically, in this embodiment, the compensation module 12 includes a first analog buffer 121, a second analog buffer 122, a first transmission gate T1 and a second transmission gate T2. The input end of the first analog buffer 121 is connected to the input signal VIN, and the output end is connected to the substrate of the first switch tube MN1 via the first transmission gate T1; the control end of the first transmission gate T1 receives the compensation control signal S3. The input end of the second analog buffer 122 is connected to the input signal VIN, and the output end is connected to the substrate of the second switch tube MP1 via the second transmission gate T2; the control end of the second transmission gate T2 receives the compensation control signal S3. Among them, the compensation control signal S3 is a pulse signal, which is valid before the first switch tube MN1 and the second switch tube MP1 are turned on. The pulse width of the compensation control signal S3 can be set according to actual needs, so that the substrates of the first switch tube MN1 and the second switch tube MP1 can be pre-charged to the same voltage as the input signal VIN.

[0058] It should be noted that, during the pre-charging process, the charging charge is provided by the power supply voltage of the first analog buffer 121 and the second analog buffer 122 respectively, thereby compensating for the charge that should be provided by the input signal VIN and the output signal VOUT, thereby achieving charge injection compensation.

[0059] like Figure 4As shown, the present invention also provides an analog signal sampling circuit, comprising:

[0060] Capacitor C1 and sampling switch 1 of the present invention; the upper plate of capacitor C1 is connected to the output end of sampling switch 1, and the lower plate is grounded. Wherein, sampling switch 1 is used for signal sampling, and capacitor C1 is used for holding the sampled signal.

[0061] The present invention also provides an analog signal sampling method, which is implemented based on the analog signal sampling circuit of the present invention in this example. The analog signal sampling method includes:

[0062] 1) During sampling, the substrates of the first switch tube MN1 and the second switch tube MP1 are precharged to the same voltage as the input signal VIN based on the power supply voltage VDD; then the first switch tube MN1 and the second switch tube MP1 are turned on, and at the same time, the substrates of the first switch tube MN1 and the second switch tube MP1 are connected to the input signal VIN; the input signal VIN is collected at the output end of the sampling switch 1 and stored on the capacitor C1 to obtain the sampling signal VOUT.

[0063] The specific steps for sampling are as follows:

[0064] First, the switch control signal S0 and the first switching control signal S1 are set to a low level, and the second switching control signal S2 is set to a high level, and the first switch tube MN1, the second switch tube MP1, the third transmission gate T3, the fourth transmission gate T4, the fifth transmission gate T5, the sixth transmission gate T6, the pull-down tube MN2 and the pull-up tube MP2 are all in the off state; then the compensation control signal S3 controls the first transmission gate T1 and the second transmission gate T2 to be briefly opened based on the pulse, and the power supply voltage in the first analog buffer 121 and the second analog buffer 122 pre-charges the substrates of the first switch tube MN1 and the second switch tube MP1 to a voltage equal to the input signal VIN, that is, the voltage on the parasitic capacitance of the first switch tube MN1 and the second switch tube MP1 is equal to the voltage of the input signal VIN, and the charge injection compensation is completed.

[0065] Subsequently, the second switching control signal S2 maintains a high level, the compensation control signal S3 maintains a low level, and the pull-down tube MN2, the pull-up tube MP2 and the compensation module 12 are all in the off state. When the switch control signal S0 and the first switching control signal S1 are set to a high level, the first switch tube MN1, the second switch tube MP1, the third transmission gate T3, the fourth transmission gate T4, the fifth transmission gate T5 and the sixth transmission gate T6 are all turned on. Since the voltage on the parasitic capacitor of the first switch tube MN1 and the second switch tube MP1 is equal to the voltage of the input signal VIN, the charge on the parasitic capacitor will not be injected into the capacitor C1 at the output end, and the sampling signal VOUT at the output end follows the input signal VIN and is ultimately equal to the input signal VIN.

[0066] 2) When maintaining, the first switch tube MN1 and the second switch tube MP1 are turned off; then the substrate of the first switch tube MN1 is grounded, and the substrate of the second switch tube MP1 is connected to the power supply voltage VDD; the sampling signal VOUT on the capacitor C1 remains unchanged.

[0067] The specific steps for maintaining are as follows:

[0068] First, the second switching control signal S2 maintains a high level, the compensation control signal S3 maintains a low level, and the pull-down tube MN2, the pull-up tube MP2 and the compensation module 12 are all in the off state. The switch control signal S0 and the first switching control signal S1 are set to a low level, and the first switch tube MN1, the second switch tube MP1, the third transmission gate T3, the fourth transmission gate T4, the fifth transmission gate T5 and the sixth transmission gate T6 are all turned off.

[0069] Then, the second switching control signal S2 is set to a low level, the pull-down tube MN2 and the pull-up tube MP2 are turned on, the substrate of the first switch tube MN1 is grounded, and the substrate of the second switch tube MP1 is connected to the power supply voltage VDD.

[0070] It should be noted that the sampling principle without the fifth transmission gate T5 and the sixth transmission gate T6 is similar and will not be described in detail here. The difference is that when the first switch tube MN1 and the second switch tube MP1 are turned on, the substrates of the first switch tube MN1 and the second switch tube MP1 are also connected to the output end of the sampling switch 1, and the linearity of the sampling is improved by balancing the bias effect during the conduction process.

[0071] The present invention further provides an electronic device, which at least comprises the sampling switch 1 of the present invention, so as to improve sampling linearity, reduce the influence of charge injection, and improve the accuracy of signal sampling.

[0072] In summary, the present invention provides a sampling switch, an analog signal sampling circuit, a method and an electronic device, comprising: a first switch tube, a second switch tube, a substrate switching module and a compensation module, wherein the first switch tube is an NMOS tube, and the second switch tube is a PMOS tube; the first switch tube is connected in parallel with the second switch tube, the first end of the parallel structure receives an input signal, and the second end outputs a sampling signal; the on-off state of the first switch tube is consistent with that of the second switch tube; the substrate switching module is respectively connected to the substrates of the first switch tube and the second switch tube, and when the first switch tube and the second switch tube are turned on, the substrates of the first switch tube and the second switch tube are connected to the input signal; when the first switch tube and the second switch tube are turned off, the substrate of the first switch tube is pulled to the ground, and the substrate of the second switch tube is pulled to the power supply voltage; the compensation module is respectively connected to the substrates of the first switch tube and the second switch tube, and before the first switch tube and the second switch tube are turned on, the substrates of the first switch tube and the second switch tube are charged to the same voltage as the input signal through the power supply voltage to achieve charge injection compensation. The sampling switch, analog signal sampling circuit, method and electronic device of the present invention switch the substrate before and after the switch is turned on to overcome the influence of the substrate bias effect and further improve the linearity of signal sampling; the substrate is pre-charged before the switch is turned on to suppress the charge injection effect, thereby reducing the influence of the charge injection and improving the accuracy of signal sampling. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has a high industrial utilization value.

[0073] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A sampling switch, It is characterized in that The sampling switch at least comprises: A first switch tube, a second switch tube, a substrate switching module and a compensation module, wherein the first switch tube is an NMOS tube and the second switch tube is a PMOS tube; The first switch tube is connected in parallel with the second switch tube, the first end of the parallel structure receives an input signal, and the second end outputs a sampling signal; the on-off state of the first switch tube is consistent with that of the second switch tube; The substrate switching module is connected to the substrates of the first switch tube and the second switch tube respectively, and when the first switch tube and the second switch tube are turned on in the sampling phase, the substrates of the first switch tube and the second switch tube are connected to the input signal; when the first switch tube and the second switch tube are turned off in the holding phase, the substrate of the first switch tube is pulled to the ground, and the substrate of the second switch tube is pulled to the power supply voltage; The compensation module is connected to the substrates of the first switch tube and the second switch tube respectively, and before the first switch tube and the second switch tube are turned on in the sampling phase, the substrates of the first switch tube and the second switch tube are charged to the same voltage as the input signal through the power supply voltage to achieve charge injection compensation; Wherein, the compensation module includes a first analog buffer, a second analog buffer, a first transmission gate and a second transmission gate; The input end of the first analog buffer is connected to the input signal, and the output end is connected to the substrate of the first switch tube via the first transmission gate; the control end of the first transmission gate receives the compensation control signal; The input end of the second analog buffer is connected to the input signal, and the output end is connected to the substrate of the second switch tube via the second transmission gate; the control end of the second transmission gate receives the compensation control signal; The compensation control signal is a pulse signal, which is effective before the first switch tube and the second switch tube are turned on during the sampling phase.

2. The sampling switch according to claim 1, Features: The sampling switch also includes a same-direction buffer and a reverse buffer; The input end of the non-inverting buffer receives a switch control signal, and the output end is connected to the control end of the first switch tube; The input end of the reverse buffer receives the switch control signal, and the output end is connected to the control end of the second switch tube.

3. The sampling switch according to claim 1, Features: The substrate switching module includes a third transmission gate, a fourth transmission gate, a pull-down tube and a pull-up tube; One end of the third transmission gate is connected to the input signal, the other end is connected to the substrate of the first switch tube, and the control end is connected to the first switching control signal; One end of the pull-down tube is connected to the substrate of the first switch tube, the other end is grounded, and the control end receives a second switching control signal; One end of the fourth transmission gate is connected to the input signal, the other end is connected to the substrate of the second switch tube, and the control end is connected to the first switching control signal; One end of the pull-up tube is connected to the substrate of the second switch tube, the other end is connected to the power supply voltage, and the control end receives the inverse signal of the second switching control signal; The on-off state of each transmission gate is consistent with the on-off state of each switch tube.

4. The sampling switch according to claim 3, Features: The substrate switching module further includes a fifth transmission gate and a sixth transmission gate; One end of the fifth transmission gate is connected to the sampling signal, the other end is connected to the substrate of the first switch tube, and the control end is connected to the first switching control signal; One end of the sixth transmission gate is connected to the sampling signal, the other end is connected to the substrate of the second switch tube, and the control end is connected to the first switching control signal.

5. The sampling switch according to claim 3, Features: The pull-down tube is an NMOS tube, and the pull-up tube is a PMOS tube.

6. An analog signal sampling circuit, It is characterized in that The analog signal sampling circuit at least comprises: A capacitor and a sampling switch as claimed in any one of claims 1 to 5; the upper plate of the capacitor is connected to the output end of the sampling switch, and the lower plate is grounded.

7. An analog signal sampling method, implemented based on the analog signal sampling circuit according to claim 6, It is characterized in that The analog signal sampling method at least comprises: During sampling, the substrates of the first switch tube and the second switch tube are precharged to the same voltage as the input signal based on the power supply voltage; then the first switch tube and the second switch tube are turned on, and at the same time, the substrates of the first switch tube and the second switch tube are connected to the input signal; the input signal is collected to the output end of the sampling switch and stored on the capacitor to obtain a sampling signal; When maintaining, the first switch tube and the second switch tube are turned off; then the substrate of the first switch tube is grounded, and the substrate of the second switch tube is connected to the power supply voltage; the sampling signal on the capacitor remains unchanged.

8. The analog signal sampling method according to claim 7, Features: When the first switch tube and the second switch tube are turned on, the substrates of the first switch tube and the second switch tube are also connected to the output end of the sampling switch.

9. An electronic device, It is characterized in that The electronic device at least comprises: a sampling switch as described in any one of claims 1-5.