Digital to Analog Converter

By designing a new switch structure in the DAC of the MCU system, the substrate of the PMOS switch switches voltages under different voltage conditions, and generates gate signals through a specialized control circuit, solving the trade-off in accuracy and area of ​​the DAC under different supply voltages. solve the problem, achieving on-resistance matching and improving DAC accuracy.

CN117811584BActive Publication Date: 2024-08-30HANGZHOU NOVACORE MICROELECTRONICS TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410226359.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-29
Publication Date
2024-08-30
Estimated Expiration
2044-02-29

AI Technical Summary

Technical Problem

In MCU systems, DACs need to maintain accuracy under different supply voltages and reference voltages. The existing switch structure is difficult to compromise between on-resistance and silicon area, especially at low power supply voltages and reference voltages, which affects the accuracy of the DAC.

Method used

A new switch structure is designed, in which the substrate of the PMOS switch is connected to the reference voltage VREF when it is turned on and the power supply voltage VDD when it is turned off. The gate control signals of the NMOS and PMOS switches are generated through a special control circuit to ensure Precise matching of on-resistance.

Benefits of technology

It achieves an effective compromise between DAC accuracy and switching area within a wide supply voltage range, reduces the silicon area requirement for PMOS switches, and ensures the matching of on-resistances of NMOS and PMOS switches, thereby improving the overall accuracy of the DAC.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117811584B
    Figure CN117811584B
Patent Text Reader

Abstract

The present invention discloses a digital-to-analog converter. In order to balance the accuracy of the digital-to-analog converter and the silicon area, the digital-to-analog converter in the present invention includes an NMOS switch and a PMOS switch, wherein the source and substrate of the NMOS switch are grounded, and the gate is controlled by a first NMOS switch gate control signal; the drain of the PMOS switch is connected to a reference voltage, and the gate is controlled by a first PMOS switch gate control signal; when the PMOS switch is turned on, the substrate of the PMOS switch is connected to the reference voltage; when the PMOS switch is turned off, the substrate of the PMOS switch is connected to a power supply voltage. The present invention uses dynamic control of the PMOS switch substrate voltage, and dynamic control of the first NMOS switch gate control signal and the first PMOS switch gate control signal as technical means to achieve precise matching between the on-resistance of the NMOS switch and the PMOS switch, and it is easier to achieve a compromise between the switch area and the DAC accuracy when designing a DAC for an MCU with a wide power supply voltage range.
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 digital-to-analog converter with controllable switch resistance. Background Art

[0002] Digital to Analog Converter (DAC) is a common digital-to-analog interface circuit used to convert digital signals into analog signals. DAC has various structural types, such as current type, capacitance type, resistance type, etc.

[0003] Resistive DACs are widely used in various application scenarios such as various systems on a chip, industrial Internet of Things, and wireless sensor networks due to their simple structure, high precision, and easy integration. Among resistive DACs, the more common ones are the resistor string structure and the R-2R resistor network structure.

[0004] The switch in the present invention is used for a DAC based on an R-2R resistor network structure. A typical schematic diagram of a DAC based on an R-2R resistor network structure is shown in FIG. Figure 1 As shown in the figure, the ground level VSS, the reference voltage VREF, the output voltage VOUT, a plurality of first resistors R, a plurality of second resistors 2R, and a plurality of switches are included. According to the level of the bit, the DAC can be divided into a most significant bit (MSB) circuit and a least significant bit (LSB) circuit.

[0005] When the DAC receives the reference voltage VREF, the output range of the DAC is from 0 to the reference voltage VREF. If the input digital code of the DAC is M and the resolution of the DAC is N, the analog signal voltage VOUT output by the DAC is: VOUT=VREF×M / (2 N -1), where VOUT is the analog signal voltage output by the DAC, VREF is the reference voltage, and M and N are both positive integers.

[0006] DAC is often used in general-purpose microcontroller unit (MCU) systems. DAC linearly converts the digital signal calculated by the MCU into an analog signal and outputs it from the chip pin to control various external modules.

[0007] However, in MCU systems, the power supply voltage is usually in a wide range, such as 1.65V~5.5V. Corresponding to different power supply voltages and application requirements, the analog to digital converter (ADC) and DAC in the MCU require different reference voltages VREF, such as 1.2V, 1.8V, 2.4V, 3.6V, etc. The DAC needs to maintain basically consistent accuracy under different power supply voltages and reference voltages VREF, which puts high demands on DAC design.

[0008] exist Figure 1 In the DAC, the high-significant bit circuit is usually controlled by thermometer code due to its high precision; the low-significant bit circuit controls a traditional R-2R resistor network structure. The main factors affecting DAC accuracy are resistor matching and switch on-resistance. Resistor matching is mainly determined by the process and layout, which can be achieved through reasonable layout planning. The switch needs to switch between the ground level VSS and the reference voltage VREF, and its on-resistance is the main factor affecting DAC accuracy besides resistor matching.

[0009] A traditional switch structure used in DAC is as follows Figure 2 As shown. The signal for controlling the NMOS switch to be turned on or off is the second NMOS switch gate control signal NMOS_CTL in the figure, and the signal for controlling the PMOS switch to be turned on or off is the second PMOS switch gate control signal PMOS_CTL in the figure. The substrate ground level (Voltage Source Source, VSS) of the NMOS switch and the substrate of the PMOS switch to be connected to the power supply voltage (Voltage Drain Drain, VDD).

[0010] In circuit design, the on-resistance of the switch when the ground level VSS or the reference voltage VREF is required to be much smaller than the resistance value of the resistor. However, the smaller the resistance value of the switch, the larger the silicon area required, especially when the power supply voltage and reference voltage are relatively low. Therefore, in reality, it is often necessary to compromise between the silicon area of ​​the switch and the DAC accuracy. At the same time, the DAC accuracy is also affected by the matching degree between the on-resistance between the NMOS switch and the PMOS switch.

[0011] The present invention proposes a DAC, which includes a new switch structure that makes the on-resistance of the switch controllable whether it is at a ground level VSS or a reference voltage VREF, which makes it easier to achieve a compromise between the switch area and the DAC accuracy when designing a DAC for an MCU with a wide power supply voltage range. Summary of the invention

[0012] In order to alleviate or partially alleviate the above technical problems, the solution of the present invention is as follows:

[0013] A digital-to-analog converter comprises an R-2R resistor network structure including a plurality of first resistors and a plurality of second resistors, an NMOS switch and a PMOS switch, wherein the resistance of the second resistor is twice the resistance of the first resistor, the drain of the NMOS switch is connected to the first end of the second resistor in the digital-to-analog converter, the source and the substrate are grounded, and the gate is controlled by a first NMOS switch gate control signal; the drain of the PMOS switch is connected to a reference voltage, the source is connected to the first end of the second resistor in the digital-to-analog converter, and the gate is controlled by a first PMOS switch gate control signal; when the PMOS switch is turned on, the substrate of the PMOS switch is connected to the reference voltage; when the PMOS switch is turned off, the substrate of the PMOS switch is connected to a power supply voltage.

[0014] In a certain embodiment, the digital-to-analog converter further includes a first voltage-switching PMOS switch and a second voltage-switching PMOS switch; the source of the first voltage-switching PMOS switch is connected to the substrate of the PMOS switch; and the source of the second voltage-switching PMOS switch is connected to the substrate of the PMOS switch.

[0015] In a certain embodiment, the substrate of the first voltage switching PMOS switch is connected to the power supply voltage; the substrate of the second voltage switching PMOS switch is connected to the power supply voltage; the gate of the first voltage switching PMOS switch is connected to the second PMOS switch gate control signal, the gate of the second voltage switching PMOS switch is connected to the second PMOS switch gate inversion control signal, and the second PMOS switch gate inversion control signal is the inversion signal of the second PMOS switch gate control signal; the drain of the first voltage switching PMOS switch is connected to the reference voltage; and the drain of the second voltage switching PMOS switch is connected to the power supply voltage.

[0016] In a certain embodiment, the first NMOS switch gate control signal generating circuit for generating the first NMOS switch gate control signal includes: a first operational amplifier, whose inverting input terminal receives a bandgap reference voltage, and whose non-inverting input terminal is connected to the first end of the fourth resistor; the first operational amplifier is controlled by a first operational amplifier shutdown signal to control the on and off of the first operational amplifier.

[0017] In a certain embodiment, the first NMOS switch gate control signal generating circuit that generates the first NMOS switch gate control signal further includes: the second end of the third resistor is connected to the first end of the fourth resistor, the second end of the fourth resistor is connected to the output end of the first operational amplifier, the output end of the first operational amplifier is also connected to the drain and gate of the first NMOS tube, and the output end of the first operational amplifier is also connected to the drain of the second NMOS tube; the source of the first NMOS tube and the source of the second NMOS tube are commonly connected to a low level; the gate of the second NMOS tube is controlled by the shutdown signal of the first operational amplifier.

[0018] In a certain embodiment, the first NMOS switch gate control signal generating circuit for generating the first NMOS switch gate control signal further includes: a power supply voltage is simultaneously connected to the first end of the first adjustable resistor and the source of the first PMOS tube; the second end of the first adjustable resistor is connected to the drain of the first PMOS tube, and a second ground level is output, and the voltage value of the second ground level is higher than the voltage value of the ground level; the gate of the first PMOS tube is controlled by the first operational amplifier shutdown inverted signal, and the first operational amplifier shutdown inverted signal is the inverted signal of the first operational amplifier shutdown signal; the first adjustable resistor is controlled by the first digital control code to change the resistance value, and the second end of the first adjustable resistor is connected to the first end of the third resistor; the power supply end of the first buffer receives the second power supply voltage, and the ground end of the first buffer is connected to the ground level; the input end of the first buffer is the second NMOS switch gate control signal, and the output end is the first NMOS switch gate control signal.

[0019] In a certain embodiment, the first PMOS switch gate control signal generating circuit for generating the first PMOS switch gate control signal includes: a second operational amplifier, whose inverting input terminal receives a bandgap reference voltage, and whose non-inverting input terminal is connected to the first end of the sixth resistor; the second operational amplifier is controlled by a second operational amplifier shutdown signal to control the on and off of the second operational amplifier.

[0020] In a certain embodiment, the first PMOS switch gate control signal generating circuit that generates the first PMOS switch gate control signal also includes: the output end of the second operational amplifier is connected to the drain of the second PMOS tube, the gate of the second PMOS tube, the drain of the third PMOS tube and the first end of the fifth resistor, the first end of the sixth resistor R6 is connected to the second end of the fifth resistor; the source of the second PMOS tube, the source of the third PMOS tube and the power supply end of the second buffer are connected to the power supply voltage; the gate of the third PMOS tube is controlled by the second operational amplifier shutdown signal.

[0021] In a certain embodiment, the first PMOS switch gate control signal generating circuit that generates the first PMOS switch gate control signal also includes: the second end of the sixth resistor outputs a second ground level, the second end of the sixth resistor is connected to the first end of the second adjustable resistor, the drain of the third NMOS tube and the ground end of the second buffer; the second end of the second adjustable resistor and the source of the third NMOS tube are grounded, and the second adjustable resistor is controlled by the second digital control code to change the resistance value.

[0022] In a certain embodiment, the control range adjustment of the first NMOS switch gate control signal and the first PMOS switch gate control signal is achieved by adjusting the first digital control code and the second digital control code; or, the first operational amplifier shutdown signal and the second operational amplifier shutdown signal are set to 1 to turn off the first operational amplifier and the second operational amplifier.

[0023] The technical solution of the present invention has the following beneficial technical effects:

[0024] The BULK of the PMOS switch of the present invention is connected to VREF when the PMOS switch is turned on, and is connected to VDD when the PMOS switch is turned off. The gate control signals of the NMOS switch and the PMOS switch are generated by a dedicated control circuit, thereby ensuring accurate matching of the on-resistance of the NMOS switch and the PMOS switch.

[0025] In addition, other beneficial effects of the present invention will be mentioned in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is the schematic diagram of the DAC circuit based on the R-2R resistor network structure;

[0027] Figure 2 This is a traditional switch structure diagram;

[0028] Figure 3 is a diagram of the switch structure proposed by the present invention;

[0029] Figure 4 is a circuit structure diagram for providing substrate voltage proposed by the present invention;

[0030] Figure 5 is a structural diagram of a first NMOS switch gate control signal generating circuit;

[0031] Figure 6 is a structural diagram of a first PMOS switch gate control signal generating circuit. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0033] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

[0034] Figure 3 The switch structure diagram proposed by the present invention is shown, which is applied to a DAC. The DAC is a DAC based on an R-2R resistor network structure, and the R-2R resistor network structure includes a plurality of first resistors R and a plurality of second resistors 2R, and the resistance of the second resistor 2R is twice the resistance of the first resistor R. This type of DAC is a circuit structure well known to those skilled in the art, and the present invention will not be described in detail here.

[0035] In the present invention, the DAC further includes an NMOS switch and a PMOS switch. The drain of the NMOS switch is connected to the first end of the second resistor 2R in the DAC, the source is connected to the substrate ground level VSS, and the gate is controlled by the first NMOS switch gate control signal LV_NMOS_CTL. Figure 5 The first NMOS switch gate control signal LV_NMOS_CTL is generated by the generating circuit shown.

[0036] As for the PMOS switch, its drain is connected to the reference voltage VREF, and its source is also connected to the first end of the second resistor 2R in the DAC. The gate of the PMOS switch is controlled by the first PMOS switch gate control signal LV_PMOS_CTL.

[0037] Different from the prior art in which the PMOS switch substrate is always connected to the first power supply voltage VDD, the substrate (BULK) of the PMOS switch in the present invention is connected to different voltages in different situations:

[0038] (1) When the PMOS switch is turned on, the substrate of the PMOS switch is connected to the reference voltage VREF;

[0039] (2) When the PMOS switch is turned off, the substrate of the PMOS switch is connected to the first power supply voltage VDD.

[0040] Figure 4 The first voltage switching PMOS switch and the second voltage switching PMOS switch are shown to provide switching between the reference voltage VREF and the first power supply voltage VDD for the PMOS switch substrate. The source of the first voltage switching PMOS switch is connected to the substrate of the aforementioned PMOS switch, and the source of the second voltage switching PMOS switch is also connected to the substrate of the aforementioned PMOS switch. The substrate of the first voltage switching PMOS switch is connected to the first power supply voltage VDD, and the substrate of the second voltage switching PMOS switch is also connected to the first power supply voltage VDD. The gate of the first voltage switching PMOS switch is connected to the second PMOS switch gate control signal PMOS_CTL, and the gate of the second voltage switching PMOS switch is connected to the second PMOS switch gate inversion control signal PMOS_CTLB, which is the inversion signal of the second PMOS switch gate control signal PMOS_CTL. In addition, the drain of the first voltage switching PMOS switch is connected to the reference voltage VREF, and the drain of the second voltage switching PMOS switch is connected to the first power supply voltage VDD.

[0041] Through the above settings, the threshold voltage of the PMOS switch can be reduced, so that the silicon area required for the PMOS switch in the DAC is reduced. The low-voltage gate control signal LV_PMOS_CTL that controls the PMOS switch is composed of Figure 6 Control circuit generation.

[0042] In actual circuit design, the minimum power supply voltage PVDD and the minimum reference voltage PVREF required by the application are considered, and according to the aforementioned circuit topology and connection relationship, the resistance matching design of the NMOS switch and the PMOS switch is designed to obtain the NMOS switch size and the PMOS switch size with better on-resistance matching, such as the width-to-length ratio.

[0043] Figure 5 The first NMOS switch gate control signal LV_NMOS_CTL generating circuit shown in the figure includes: a first operational amplifier, whose inverting input terminal receives the bandgap reference voltage VBG, and whose non-inverting input terminal is connected to the first end of the fourth resistor R4. In addition, the first operational amplifier is controlled by the first operational amplifier shutdown signal PD_OP1 to control the on and off of the first operational amplifier.

[0044] In addition, the second end of the third resistor R3 is connected to the first end of the fourth resistor R4. The second end of the fourth resistor R4 is connected to the output end of the first operational amplifier, the output end of the first operational amplifier is also connected to the drain and gate of the first NMOS transistor MN1, and the output end of the first operational amplifier is also connected to the drain of the second NMOS transistor MN2.

[0045] The source of the first NMOS transistor MN1 and the source of the second NMOS transistor MN2 are connected to the low level VSS. The gate of the second NMOS transistor MN2 is controlled by the first operational amplifier shutdown signal PD_OP1.

[0046] The first power supply voltage VDD is connected to the first end of the first adjustable resistor and the source of the first PMOS tube MP1. The second end of the first adjustable resistor is connected to the drain of the first PMOS tube MP1, and outputs the second power supply voltage LV_VDD. The gate of the first PMOS tube MP1 is controlled by the first operational amplifier shutdown inverted signal PDB_OP1, and the first operational amplifier shutdown inverted signal PDB_OP1 is the inverted signal of the first operational amplifier shutdown signal PD_OP1. The first adjustable resistor is controlled by the first digital control code RESP_CTL <m:0>The second end of the first adjustable resistor is connected to the first end of the third resistor R3. In the present invention, the voltage value of the second power supply voltage LV_VDD is lower than the voltage value of the first power supply voltage VDD.

[0047] The power supply terminal of the first buffer receives the second power supply voltage LV_VDD, and the ground terminal of the first buffer is connected to the ground level VSS. The input terminal of the first buffer is the second NMOS switch gate control signal NMOS_CTL, and the output terminal is the first NMOS switch gate control signal LV_NMOS_CTL. In the present invention, the second NMOS switch gate control signal NMOS_CTL usually comes from a controller or other components.

[0048] In this circuit diagram, the second NMOS switch gate control signal NMOS_CTL varies in the range of 0 to the first power supply voltage VDD, and the first NMOS switch gate control signal LV_NMOS_CTL varies in the range of 0 to the second power supply voltage LV_VDD.

[0049] Figure 6 The structure diagram of the first PMOS switch gate control signal generating circuit is shown. The circuit includes: a second operational amplifier, whose inverting input terminal receives the bandgap reference voltage VBG, and whose non-inverting input terminal is connected to the first end of the sixth resistor R6. The second operational amplifier is controlled by the second operational amplifier shutdown signal PD_OP2 to control the on and off of the second operational amplifier. The output terminal of the second operational amplifier is connected to the drain of the second PMOS tube MP2, the gate of the second PMOS tube MP2, the drain of the third PMOS tube MP3 and the first end of the fifth resistor R5, and the first end of the sixth resistor R6 is connected to the second end of the fifth resistor R5. The source of the second PMOS tube MP2, the source of the third PMOS tube MP3 and the power supply terminal of the second buffer are connected to the first power supply voltage VDD. The gate of the third PMOS tube MP3 is controlled by the second operational amplifier shutdown signal PD_OP2.

[0050] The second end of the sixth resistor R6 outputs the second ground level LV_VSS. The second end of the sixth resistor R6 is connected to the first end of the second adjustable resistor, the drain of the third NMOS transistor MN3 and the ground end of the second buffer, and the second end of the second adjustable resistor and the source of the third NMOS transistor MN3 are grounded to the level VSS. The second adjustable resistor is controlled by the second digital control code RESN_CTL <n:0>In the present invention, the voltage value of the second ground level LV_VSS is higher than the voltage value of the ground level VSS.

[0051] The input signal of the second buffer is the second PMOS switch gate control signal PMOS_CTL, which ranges from 0 to the first power supply voltage VDD; the output signal is the first PMOS switch gate control signal LV_PMOS_CTL, which ranges from the second ground level LV_VSS to the first power supply voltage VDD. In the present invention, the second PMOS switch gate control signal PMOS_CTL usually comes from a controller or other components.

[0052] In practical applications, when the first power supply voltage VDD or the reference voltage VREF is relatively low, the first digital control code RESP_CTL is adjusted. <m:0>and the second digital control code RESN_CTL <n:0>, the control range of the first NMOS switch gate control signal LV_NMOS_CTL and the first PMOS switch gate control signal LV_PMOS_CTL can be adjusted from "0~second power supply voltage LV_VDD" and "second ground level LV_VSS~first power supply voltage VDD" to the designed range "0~minimum power supply voltage PVDD" and "0~minimum reference voltage PVREF" respectively. Then, the on-resistance of the NMOS switch and the on-resistance of the PMOS switch will tend to be consistent, thereby ensuring the accuracy of the DAC within a wider voltage range, where M and N are both positive integers.

[0053] Alternatively, when the first power supply voltage VDD and the reference voltage VREF are high enough, the switch resistance at this time is usually much smaller than the resistance of the first resistor R and the second resistor 2R. It is only necessary to set the first operational amplifier shutdown signal PD_OP1 and the second operational amplifier shutdown signal PD_OP2 to 1 to turn off the two operational amplifiers.

[0054] At the same time, the control range of the first NMOS switch gate control signal LV_NMOS_CTL "0 ~ second power supply voltage LV_VDD" and the control range of the first PMOS switch gate control signal LV_PMOS_CTL "second ground level LV_VSS ~ first power supply voltage VDD" are both changed to: 0 ~ first power supply voltage VDD.

[0055] In order to better illustrate the present invention, numerous specific details are provided in the above specific embodiments. It should be understood by those skilled in the art that the present invention can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present invention.

[0056] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A digital-to-analog converter, comprising an R-2R resistor network structure including a plurality of first resistors and a plurality of second resistors, an NMOS switch and a PMOS switch, wherein the resistance of the second resistors is twice the resistance of the first resistors, and characterized in that: The drain of the NMOS switch is connected to the first end of the second resistor in the digital-to-analog converter, the source and the substrate are grounded, and the gate is controlled by the first NMOS switch gate control signal; The drain of the PMOS switch is connected to a reference voltage, the source is connected to a first end of a second resistor in the digital-to-analog converter, and the gate is controlled by a first PMOS switch gate control signal; When the PMOS switch is turned on, the substrate of the PMOS switch is connected to a reference voltage; When the PMOS switch is turned off, the substrate of the PMOS switch is connected to the power supply voltage; The digital-to-analog converter further includes a first voltage switching PMOS switch and a second voltage switching PMOS switch; the source of the first voltage switching PMOS switch is connected to the substrate of the PMOS switch; the source of the second voltage switching PMOS switch is connected to the substrate of the PMOS switch; in addition, The substrate of the first voltage switching PMOS switch is connected to a power supply voltage; the substrate of the second voltage switching PMOS switch is connected to a power supply voltage; the gate of the first voltage switching PMOS switch is connected to a second PMOS switch gate control signal, the gate of the second voltage switching PMOS switch is connected to a second PMOS switch gate inversion control signal, and the second PMOS switch gate inversion control signal is an inversion signal of the second PMOS switch gate control signal; the drain of the first voltage switching PMOS switch is connected to a reference voltage; The drain of the second voltage-switched PMOS switch is connected to a power supply voltage; The first NMOS switch gate control signal generating circuit for generating the first NMOS switch gate control signal includes: a first operational amplifier, whose inverting input terminal receives a bandgap reference voltage, and whose non-inverting input terminal is connected to the first terminal of a fourth resistor; the first operational amplifier is controlled by a first operational amplifier shutdown signal to control the on and off of the first operational amplifier; the second terminal of the third resistor is connected to the first terminal of the fourth resistor, the second terminal of the fourth resistor is connected to the output terminal of the first operational amplifier, the output terminal of the first operational amplifier is also connected to the drain and gate of the first NMOS tube, and the output terminal of the first operational amplifier is also connected to the drain of the second NMOS tube; the source of the first NMOS tube and the source of the second NMOS tube are commonly connected to a low level; the gate of the second NMOS tube is controlled by the first operational amplifier shutdown signal; The first PMOS switch gate control signal generating circuit for generating the first PMOS switch gate control signal includes: a second operational amplifier, whose inverting input terminal receives a bandgap reference voltage, and whose non-inverting input terminal is connected to the first end of a sixth resistor; the second operational amplifier is controlled by a second operational amplifier shutdown signal to control the on and off of the second operational amplifier; the output terminal of the second operational amplifier is connected to the drain of the second PMOS tube, the gate of the second PMOS tube, the drain of the third PMOS tube and the first end of the fifth resistor, and the first end of the sixth resistor R6 is connected to the second end of the fifth resistor; the source of the second PMOS tube, the source of the third PMOS tube and the power supply terminal of the second buffer are connected to the power supply voltage; the gate of the third PMOS tube is controlled by the second operational amplifier shutdown signal.

2. The digital-to-analog converter according to claim 1, characterized in that: The first NMOS switch gate control signal generating circuit for generating the first NMOS switch gate control signal further includes: The power supply voltage is simultaneously connected to the first end of the first adjustable resistor and the source of the first PMOS tube; the second end of the first adjustable resistor is connected to the drain of the first PMOS tube, and outputs a second ground level, and the voltage value of the second ground level is higher than the voltage value of the ground level; the gate of the first PMOS tube is controlled by the first operational amplifier shutdown inverted signal, and the first operational amplifier shutdown inverted signal is the inverted signal of the first operational amplifier shutdown signal; the first adjustable resistor is controlled by the first digital control code to change the resistance value, and the second end of the first adjustable resistor is connected to the first end of the third resistor; the power supply end of the first buffer receives the second power supply voltage, and the ground end of the first buffer is connected to the ground level; the input end of the first buffer is the second NMOS switch gate control signal, and the output end is the first NMOS switch gate control signal.

3. The digital-to-analog converter according to claim 2, characterized in that: The first PMOS switch gate control signal generating circuit for generating the first PMOS switch gate control signal further includes: The second end of the sixth resistor outputs a second ground level, and the second end of the sixth resistor is connected to the first end of the second adjustable resistor, the drain of the third NMOS tube and the ground end of the second buffer; the second end of the second adjustable resistor and the source of the third NMOS tube are grounded, and the second adjustable resistor is controlled by the second digital control code to change its resistance.

4. The digital-to-analog converter according to claim 3, characterized in that: By adjusting the first digital control code and the second digital control code, the control range of the first NMOS switch gate control signal and the first PMOS switch gate control signal can be adjusted; or, the first operational amplifier shutdown signal and the second operational amplifier shutdown signal are set to 1 to turn off the first operational amplifier and the second operational amplifier.

Citation Information

Patent Citations

  • Analog switching circuit

    CN101741364A

  • R-2R trapezoidal resistance network circuit

    CN115441876A