Rail-to-rail input stage circuit and operational amplifier

By designing a rail-to-rail input stage circuit in the operational amplifier and utilizing current sources, transistors and voltage adjustment mechanisms, the problem of unstable gain of the operational amplifier in the full voltage range is solved and high input swing and stable output are achieved.

CN118783902APending Publication Date: 2024-10-15NUVOTON
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311383597.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-04-07
Filing Date
2023-10-24
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Op amps have difficulty handling rail-to-rail common-mode input voltages over the full voltage range, causing gain instability and affecting their efficiency.

Method used

A rail-to-rail input stage circuit is designed, including a current source, P-type and N-type transistors, processing circuit and voltage adjustment circuit. It maintains the gain of the operational amplifier by controlling the current and voltage levels to ensure that it operates under different input voltage conditions. output voltage level consistency.

Benefits of technology

Achieving high input swing and stable gain over the full voltage range ensures the efficiency and performance of the op amp and can effectively handle rail-to-rail common-mode input voltages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118783902A_ABST
    Figure CN118783902A_ABST
Patent Text Reader

Abstract

The invention discloses a rail-to-rail input stage circuit and an operational amplifier. The rail-to-rail input stage circuit comprises a first P-type transistor, a second P-type transistor, a first N-type transistor, a second N-type transistor, a first processing circuit, a second processing circuit, a first voltage regulation circuit and a second voltage regulation circuit. The first P-type transistor and the first N-type transistor are coupled to a first input terminal. The second P-type transistor and the second N-type transistor are coupled to a second input terminal. When the voltage level of the first input end is higher than a first threshold value, the first voltage adjusting circuit controls the operation of the first processing circuit. When the voltage level of the first input end is lower than a second threshold value, the second voltage adjusting circuit controls the operation of the second processing circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an input stage circuit, in particular to a rail-to-rail input stage circuit in an operational amplifier and the operational amplifier. Background Art

[0002] Operational amplifiers are common electronic circuits. In order to obtain high input swing in the full voltage range, the operational amplifier must be able to handle rail-to-rail common mode input voltage. When the operational amplifier receives different input voltages, the gain of the operational amplifier must be maintained at a fixed value to ensure the efficiency of the operational amplifier. Summary of the invention

[0003] One embodiment of the present invention provides a rail-to-rail input stage circuit coupled to an output stage circuit. The output stage circuit has an output terminal. The voltage level of the output terminal is related to the voltage levels of a first input terminal and a second input terminal. The rail-to-rail input stage circuit includes a first current source, a second current source, a first P-type transistor, a second P-type transistor, a first N-type transistor, a second N-type transistor, a first processing circuit, a second processing circuit, a first voltage adjustment circuit, and a second voltage adjustment circuit. The first current source provides a first current. The second current source provides a second current. The first P-type transistor is coupled between the first current source and the output stage circuit and coupled to the first input terminal. The second P-type transistor is coupled between the first current source and the output stage circuit and coupled to the second input terminal. The first N-type transistor is coupled between the second current source and the output stage circuit and coupled to the first input terminal. The second N-type transistor is coupled between the second current source and the output stage circuit and coupled to the second input terminal. When the voltage level of the first input terminal is higher than a first threshold value, the first processing circuit generates a third current according to a first control voltage. The sum of the currents flowing through the first and second N-type transistors is the sum of the first and third currents. When the voltage level of the first input terminal is lower than a second threshold value, the second processing circuit generates a fourth current according to a second control voltage. The sum of the currents flowing through the first and second P-type transistors is the sum of the second and fourth currents. When the voltage level of the first input terminal is higher than the first threshold value, the first voltage adjustment circuit adjusts the first control voltage. When the voltage level of the first input terminal is lower than the second threshold value, the second voltage adjustment circuit adjusts the second control voltage.

[0004] In another embodiment, an operational amplifier includes an input stage circuit and an output stage circuit. The input stage circuit includes a first current source, a second current source, a first P-type transistor, a second P-type transistor, a first N-type transistor, a second N-type transistor, a first processing circuit, a second processing circuit, a first voltage adjustment circuit, and a second voltage adjustment circuit. The first current source provides a first current. The second current source provides a second current. The first P-type transistor is coupled between the first current source and a first node and coupled to the first input terminal. The second P-type transistor is coupled between the first current source and a second node and coupled to the second input terminal. The first N-type transistor is coupled between the second current source and a third node and coupled to the first input terminal. The second N-type transistor is coupled between the second current source and a fourth node and coupled to the second input terminal. When the voltage level of the first input terminal is higher than a first threshold value, the first processing circuit generates a third current according to a first control voltage. The sum of the currents flowing through the first and second N-type transistors is the sum of the first and third currents. When the voltage level of the first input terminal is lower than a second threshold value, the second processing circuit generates a fourth current according to a second control voltage. The sum of the currents flowing through the first and second P-type transistors is the sum of the second and fourth currents. When the voltage level of the first input terminal is higher than the first threshold value, the first voltage adjustment circuit adjusts the first control voltage. When the voltage level of the first input terminal is lower than the second threshold value, the second voltage adjustment circuit adjusts the second control voltage. The output stage circuit generates an output voltage according to the voltage levels of the first, second, third and fourth nodes. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] Figure 1 is a schematic diagram of an operational amplifier of the present invention.

[0006] Figure 2 This is a possible embodiment of the voltage adjustment circuit of the present invention.

[0007] Figure 3 This is another possible embodiment of the voltage adjustment circuit of the present invention.

[0008] Figure 4 FIG. 4 is another schematic diagram of the input stage circuit of the present invention.

[0009] Explanation of symbols

[0010] 100: Operational Amplifier

[0011] 110: Input stage circuit

[0012] 120: Output stage circuit

[0013] 130, 140: Power rail

[0014] VDD, GND, Vo: voltage

[0015] IB1~IB4: Current source

[0016] P1, P2: P-type transistors

[0017] N1, N2: N-type transistors

[0018] 150, 160: Processing circuit

[0019] 170, 180: Voltage regulation circuit

[0020] Iref1, Iref2, Iin1, Iin2, Io1, Io2: current

[0021] ND1~ND5: Node

[0022] V+, V-: input terminals

[0023] CONP, CONN: control voltage

[0024] T1~T14, TO1~TO6: transistor

[0025] RP, RN: Impedance elements

[0026] SWN, SWP: switching signal DETAILED DESCRIPTION

[0027] In order to make the purpose, features and advantages of the present invention more clearly understood, the following embodiments are specifically cited and described in detail with reference to the accompanying drawings. The present invention specification provides different embodiments to illustrate the technical features of different implementations of the present invention. Among them, the configuration of each element in the embodiment is for illustrative purposes and is not intended to limit the present invention. In addition, some repetitions of the figure numbers in the embodiments are for the purpose of simplifying the description and do not mean the relevance between different embodiments.

[0028] Figure 1 Schematic diagram of an operational amplifier of the present invention. As shown in the figure, the operational amplifier 100 is coupled between power rails 130 and 140, and includes an input stage circuit 110 and an output stage circuit 120. The input stage circuit 110 and the output stage circuit 120 are coupled between the power rails 130 and 140. In this embodiment, the power rail 130 receives an operating voltage VDD. The power rail 140 receives a ground voltage GND. In this example, the operating voltage VDD is higher than the ground voltage GND. For example, the operating voltage VDD is approximately 5V, and the ground voltage GND is approximately 0V.

[0029] The input stage circuit 110 is coupled between power rails 130 and 140. Therefore, the input stage circuit 110 can be referred to as a rail to rail input stage circuit. In the present embodiment, the input stage circuit 110 includes current sources IB3 and IB4, P-type transistors P1 and P2, N-type transistors N1 and N2, processing circuits 150 and 160, and voltage adjustment circuits 170 and 180.

[0030] The current source IB3 provides a current Iref1. The current source IB4 provides a current Iref2. In one possible embodiment, the current Iref1 is approximately equal to the current Iref2. In this embodiment, the current source IB3 is coupled between the power rail 130 and the source of the P-type transistor P1, and the current source IB4 is coupled between the source of the N-type transistor N1 and the power rail 140.

[0031] The P-type transistor P1 is coupled between the current source IB3 and the node ND1 and is coupled to the input terminal V+. In this embodiment, the source of the P-type transistor P1 is coupled to the current source IB3. The drain of the P-type transistor P1 is coupled to the node ND1. The gate of the P-type transistor P1 is coupled to the input terminal V+.

[0032] The P-type transistor P2 is coupled between the current source IB3 and the node ND2, and is coupled to the input terminal V-. In this embodiment, the source of the P-type transistor P2 is coupled to the current source IB3. The drain of the P-type transistor P2 is coupled to the node ND2. The gate of the P-type transistor P2 is coupled to the input terminal V-.

[0033] The N-type transistor N1 is coupled between the current source IB4 and the node ND3 and is coupled to the input terminal V+. In this embodiment, the source of the N-type transistor N1 is coupled to the current source IB4. The drain of the N-type transistor N1 is coupled to the node ND3. The gate of the N-type transistor N1 is coupled to the input terminal V+.

[0034] The N-type transistor N2 is coupled between the current source IB4 and the node ND4 and is coupled to the input terminal V-. In this embodiment, the source of the N-type transistor N2 is coupled to the current source IB4. The drain of the N-type transistor N2 is coupled to the node ND4. The gate of the N-type transistor N2 is coupled to the input terminal V-.

[0035] The processing circuit 150 is coupled to the current source IB3. When the voltage level of the input terminal V+ gradually increases (such as gradually rising from 0V to 5V), the P-type transistors P1 and P2 gradually become non-conductive. Therefore, the current flowing through the P-type transistors P1 and P2 gradually decreases. When the voltage level of the input terminal V+ is higher than a first threshold value, part of the current Iref1 flows into the processing circuit 150. The processing circuit 150 generates a current Io1 according to a control voltage CONP. In this embodiment, when the voltage level of the input terminal V+ is higher than the first threshold value, the sum of the currents flowing through the N-type transistors N1 and N2 is the sum of the currents Iref1 and Io1. In one possible embodiment, the current Io1 is approximately three times the current Iref1. In some embodiments, the first threshold value is approximately equal to the difference between the voltage level of the power rail 130 and the critical voltage of the P-type transistor P1.

[0036] The present invention does not limit the architecture of the processing circuit 150. In one possible embodiment, the processing circuit 150 includes transistors T1 to T3. In this example, transistor T1 is a P-type transistor, and transistors T2 and T3 are N-type transistors. In one possible embodiment, transistor T1 is called a compensation transistor, which is used to compensate for the impact caused by the P-type transistors P1 and P2 being off. Therefore, the gain (gm) of the operational amplifier 100 remains unchanged. As shown in the figure, the source of transistor T1 is coupled to the current source IB3. The drain of transistor T1 is coupled to the drain of transistor T2. The gate of transistor T1 receives the control voltage CONP.

[0037] The drain and gate of transistor T2 are coupled to the drain of transistor T1. The source of transistor T2 is coupled to power rail 140. The gate of transistor T3 is coupled to the gate of transistor T2. The drain of transistor T3 is coupled to the source of N-type transistor N1. The source of transistor T3 is coupled to power rail 140. In this embodiment, transistors T2 and T3 form a current mirror. When the current Iin1 flowing through transistor T1 enters transistor T2, current Io1 (or third current) flows into transistor T3. In one possible embodiment, current Io1 is 3 times the current Iin1. In some embodiments, the channel size of transistor T3 is 3 times the channel size of transistor T2.

[0038] The processing circuit 160 is coupled to the current source IB4. When the voltage level of the input terminal V- gradually decreases (such as gradually decreasing from 5V to 0V), the N-type transistors N1 and N2 gradually become non-conductive. When the voltage level of the input terminal V- is lower than a second threshold value, the processing circuit 160 generates a current Io2 according to a control voltage CONN. In one possible embodiment, the second threshold value is less than the first threshold value. In some embodiments, the second threshold value is approximately equal to the critical voltage of the N-type transistor N1. In this embodiment, when the voltage level of the input terminal V- is lower than the second threshold value, the sum of the currents flowing through the P-type transistors P1 and P2 is the sum of the currents Iref2 and Io2. In one possible embodiment, the current Io2 is approximately 3 times the current Iref2.

[0039] The present invention does not limit the architecture of the processing circuit 160. In one possible example, the processing circuit 160 includes transistors T5 to T7. In this example, the transistor T5 is an N-type transistor, and the transistors T6 and T7 are P-type transistors. In one possible example, the transistor T5 is used as a compensation transistor to compensate for the effect caused when the N-type transistors N1 and N2 are not conducting. Therefore, the gain of the operational amplifier 100 remains unchanged. As shown in the figure, the source of the transistor T5 is coupled to the current source IB4. The drain of the transistor T5 is coupled to the drain of the transistor T6. The gate of the transistor T5 receives the control voltage CONN.

[0040] The drain and gate of transistor T6 are coupled to the drain of transistor T5. The source of transistor T6 is coupled to power rail 130. The gate of transistor T7 is coupled to the gate of transistor T6. The drain of transistor T7 is coupled to the source of P-type transistor P1. The source of transistor T7 is coupled to power rail 130. In this embodiment, transistors T6 and T7 form another current mirror. When current Iin2 flows through transistor T6, current Io2 flows through transistor T7.

[0041] The voltage adjustment circuit 170 provides and adjusts the control voltage CONP. When the voltage level of the input terminal V+ is higher than the first threshold value, the voltage adjustment circuit 170 adjusts the control voltage CONP according to the current Iin1 flowing through the transistor T1. In the present embodiment, since the transistor T1 is a P-type transistor, when the voltage adjustment circuit 170 reduces the control voltage CONP, more current flows through the transistor T1. Therefore, the current Io1 quickly reaches 3 times the current Iref1. The present invention does not limit how the voltage adjustment circuit 170 detects the current Iin1 flowing through the transistor T1. In one possible embodiment, the voltage adjustment circuit 170 is coupled to the gate of the transistor T2. When the gate voltage of the transistor T2 rises, it means that the P-type transistors P1 and P2 are gradually turned off, so that part of the current Iref1 flows into the transistor T1. Therefore, the voltage adjustment circuit 170 reduces the control voltage CONP to increase the current Iin1 flowing through the transistor T1.

[0042] The voltage adjustment circuit 180 adjusts the control voltage CONN according to the current Iin2 flowing through the transistor T5. When the voltage level of the input terminal V- is lower than the second threshold value, the voltage adjustment circuit 180 adjusts the control voltage CONN so that the current Iin2 increases rapidly. Therefore, the current Io2 can quickly reach 3 times the current Iref2. In a possible implementation, the voltage adjustment circuit 180 is coupled to the gate of the transistor T6. When the gate voltage of the transistor T6 rises, it indicates that the N-type transistors N1 and N2 are gradually turned off. Therefore, the voltage adjustment circuit 180 increases the control voltage CONN to increase the current Iin2 flowing through the transistor T5.

[0043] In some embodiments, when the voltage adjustment circuit 170 adjusts the gate voltage of the transistor T1 (i.e., the control voltage CONP), the voltage adjustment circuit 180 does not adjust the gate voltage of the transistor T5 (i.e., the control voltage CONN). In this example, when the voltage adjustment circuit 180 adjusts the gate voltage of the transistor T5 (i.e., the control voltage CONN), the voltage adjustment circuit 170 does not adjust the gate voltage of the transistor T1 (i.e., the control voltage CONP).

[0044] The output stage circuit 120 generates an output voltage Vo according to the voltage levels of the nodes ND1-ND4. The present invention does not limit the structure of the output stage circuit 120. In one possible embodiment, the output stage circuit 120 includes output transistors TO1-TO6 and current sources IB1 and IB2. The output transistors TO1, TO2, TO4 and TO5 are P-type transistors, and the output transistors TO3 and TO6 are N-type transistors.

[0045] The source of the output transistor TO1 is coupled to the power rail 130. The gate of the output transistor TO1 is coupled to the gate of the output transistor TO4. The drain of the output transistor TO1 is coupled to the node ND3. The source of the output transistor TO2 is coupled to the drain of the output transistor TO1. The gate of the output transistor TO2 is coupled to the gate of the output transistor TO5. The drain of the output transistor TO2 is coupled to the gate of the output transistor TO1. The drain of the output transistor TO3 is coupled to the drain of the output transistor TO2. The gate of the output transistor TO3 is coupled to the gate of the output transistor TO6. The source of the output transistor TO3 is coupled to the node ND2. The current source IB1 is coupled between the source of the output transistor TO3 and the power rail 130.

[0046] The source of the output transistor TO4 is coupled to the power rail 130. The gate of the output transistor TO4 is coupled to the gate of the output transistor TO1. The drain of the output transistor TO4 is coupled to the node ND4. The source of the output transistor TO5 is the drain of the output transistor TO4. The gate of the output transistor TO5 is coupled to the gate of the output transistor TO2. The drain of the output transistor TO5 is coupled to the node ND5. The node ND5 serves as an output terminal for providing an output voltage Vo. The drain of the output transistor TO6 is coupled to the drain of the output transistor TO5. The gate of the output transistor TO6 is coupled to the gate of the output transistor TO3. The source of the output transistor TO6 is coupled to the node ND1. The current source IB2 is coupled between the source of the output transistor TO6 and the power rail 140.

[0047] Figure 2 A possible embodiment of the voltage adjustment circuit 170 of the present invention. The voltage adjustment circuit 170 includes an impedance element RP and a transistor T4. The impedance element RP is coupled between a voltage source VB3 and the gate of the transistor T1 to provide a control voltage CONP. In a possible embodiment, the impedance element RP is a resistor. The transistor T4 is connected in series with the impedance element RP and coupled to the gate of the transistor T2. In this embodiment, the transistor T4 is an N-type transistor. The gate of the transistor T4 is coupled to the gate of the transistor T2. The drain of the transistor T4 is coupled to the gate of the transistor T1 and the impedance element RP. The source of the transistor T4 is coupled to the power rail 140.

[0048] In some embodiments, transistors T2 and T4 form a current mirror. In this example, when current Iin1 flows into transistor T2, transistor T4 is turned on. At this time, the current flowing through transistor T4 is approximately equal to current Iin1. At this time, impedance element RP generates a voltage drop to reduce control voltage CONP. Therefore, current Iin1 flowing through transistor T1 increases.

[0049] For example, assuming that the voltage level of the voltage source VB3 is 4V, the resistance of the impedance element RP is 40KΩ, and the current Iin1 is 10uA. In this example, when the current Iin1 flows into the transistor T2, the current flowing through the impedance element RP is equal to 10uA. Therefore, the voltage drop generated by the impedance element RP is about 400mV (40K*10u), causing the control voltage CONP to drop to 3.6V.

[0050] In one possible embodiment, the voltage level of the voltage source VB3 is equal to the first threshold value. In this example, when the voltage level of the input terminal V+ increases and is greater than the voltage level of the voltage source VB3, the current Iin1 flows into the transistor T2. Therefore, the impedance element RP generates a voltage drop to reduce the control voltage CONP.

[0051] Figure 3 A possible embodiment of the voltage adjustment circuit 180 of the present invention is shown. The voltage adjustment circuit 180 includes an impedance element RN and a transistor T8. The impedance element RN is coupled between a voltage source VB4 and the gate of the transistor T5 to provide a control voltage CONN. The voltage level of the voltage source VB4 may be lower than the voltage level of the voltage source VB3. In a possible embodiment, the impedance element RN is a resistor. In this example, the resistance of the impedance element RN is approximately the resistance of the impedance element RP.

[0052] The transistor T8 is connected in series with the impedance element RN and is coupled to the gate of the transistor T6. In the present embodiment, the transistor T8 is a P-type transistor. The gate of the transistor T8 is coupled to the gate of the transistor T6. The drain of the transistor T8 is coupled to the gate of the transistor T5 and the impedance element RN. The source of the transistor T8 is coupled to the power rail 130.

[0053] In some embodiments, transistors T6 and T8 form a current mirror. In this example, the current flowing through transistor T8 is approximately equal to the current Iin2 flowing through transistor T6. When the current flows through transistor T8, the impedance element RN generates a voltage rise. Therefore, the control voltage CONN increases, so that the current Iin2 increases. In a possible embodiment, the second threshold value is equal to the voltage level of the voltage source VB4.

[0054] Figure 4 FIG. 4 is another schematic diagram of the input stage circuit of the present invention. Figure 4 The omitted part is already in Figure 1 The input stage circuit includes a control circuit 190, a switch MPS and a MNS. The switch MPS is coupled between the impedance element RP of the voltage adjustment circuit 170 and the transistor T4. In the present embodiment, the switch MPS is a P-type transistor T9. The source of the P-type transistor T9 is coupled to the impedance element RP and the gate of the transistor T1. The drain of the P-type transistor T9 is coupled to the drain of the transistor T4. The gate of the P-type transistor T9 receives a switching signal SWP.

[0055] The switch MNS is coupled between the impedance element RN and the transistor T8 of the voltage adjustment circuit 180. In the present embodiment, the switch MNS is an N-type transistor T10. The source of the N-type transistor T10 is coupled to the impedance element RN and the gate of the transistor T5. The drain of the N-type transistor T10 is coupled to the drain of the transistor T8. The gate of the N-type transistor T10 receives a switching signal SWN.

[0056] The control circuit 190 provides the switching signals SWN and SWP to prevent the voltage adjustment circuits 170 and 180 from operating at the same time. For example, when the current (such as Iin1) flows through the transistor T1, the control circuit 190 turns on the switch MPS and turns off the switch MNS. However, when the current (such as Iin2) flows through the transistor T5, the control circuit 190 turns on the switch MNS and turns off the switch MPS. In other embodiments, the control circuit 190 may turn off the switches MNS and MPS at the same time.

[0057] The present invention does not limit the architecture of the control circuit 190. In this embodiment, the control circuit 190 includes transistors T11 to T14. Transistors T11 and T12 are N-type transistors, and transistors T13 and T14 are P-type transistors. In this example, the gate of transistor T11 is coupled to the gate of transistor T4. The source of transistor T11 is coupled to the power rail 140. The drain of transistor T11 is coupled to the gate of transistor T9.

[0058] In one possible embodiment, transistors T11 and T2 form a current mirror. When current Iin1 flows into transistor T2, transistor T11 is turned on, so that the level of switching signal SWP is equal to the voltage level of power rail 140 (e.g., 0V). Therefore, transistor T9 is turned on. Since impedance element RP generates a voltage drop, the current flowing through transistor T1 is increased, so that current Io1 quickly reaches a target value (e.g., 3 times of current Iref1).

[0059] The gate of transistor T12 is coupled to the gate of transistor T4. The source of transistor T12 is coupled to the power rail 140. The drain of transistor T12 is coupled to the gate of transistor T10. In one possible embodiment, transistors T12 and T2 form a current mirror. When current Iin1 flows into transistor T2, transistor T12 is turned on, so that the level of switching signal SWN is equal to the voltage level of power rail 140 (such as 0V). Therefore, transistor T10 is not turned on, so that transistor T5 is not turned on.

[0060] The gate of transistor T13 is coupled to the gate of transistor T8. The source of transistor T13 is coupled to the power rail 130. The drain of transistor T13 is coupled to the gate of transistor T9. In one possible embodiment, transistor T13 and T6 form a current mirror. When current Iin2 flows through transistor T6, transistor T13 is turned on, so that the level of switching signal SWP is equal to the voltage level (e.g., 5V) of power rail 130. Therefore, transistor T9 is not turned on.

[0061] The gate of transistor T14 is coupled to the gate of transistor T8. The source of transistor T14 is coupled to the power rail 130. The drain of transistor T14 is coupled to the gate of transistor T10. In one possible embodiment, transistors T14 and T6 form a current mirror. When current Iin2 flows through transistor T6, transistor T14 is turned on, so that the level of switching signal SWN is equal to the voltage level of power rail 130 (e.g., 5V). Therefore, transistor T10 is turned on. Since the impedance element RN generates a voltage rise, the current flowing through transistor T5 is increased, so that current Io2 quickly reaches a target value (e.g., 3 times of current Iref2).

[0062] It should be understood that when an element or layer is referred to as being "coupled" to another element or layer, it may be directly coupled or connected to the other element or layer, or have other elements or layers interposed therebetween. Conversely, if an element or layer is "connected" to another element or layer, there will be no other elements or layers interposed therebetween.

[0063] Unless otherwise defined, all words (including technical and scientific words) herein are generally understood by those with ordinary knowledge in the technical field to which the present invention belongs. In addition, unless expressly indicated, the definition of a word in a general dictionary should be interpreted as consistent with the meaning in the article in the relevant technical field, and should not be interpreted as an ideal state or overly formal tone. Although the terms "first", "second", etc. can be used to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element.

[0064] Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Any person with ordinary knowledge in the art may make some changes and modifications without departing from the spirit and scope of the present invention. For example, the system, device or method described in the embodiments of the present invention may be implemented in a physical embodiment of hardware, software or a combination of hardware and software. Therefore, the scope of protection of the present invention shall be determined by the definition of the claims.

Claims

1. A rail-to-rail input stage circuit, characterized in that: An output stage circuit is coupled, the output stage circuit has an output terminal, the voltage level of the output terminal is related to the voltage levels of a first input terminal and a second input terminal, the rail-to-rail input stage circuit comprises: a first current source, providing a first current; a second current source, providing a second current; a first P-type transistor, coupled between the first current source and the output stage circuit, and coupled to the first input terminal; a second P-type transistor, coupled between the first current source and the output stage circuit, and coupled to the second input terminal; a first N-type transistor, coupled between the second current source and the output stage circuit, and coupled to the first input terminal; a second N-type transistor, coupled between the second current source and the output stage circuit, and coupled to the second input terminal; a first processing circuit, which generates a third current according to a first control voltage when the voltage level of the first input terminal is higher than a first threshold value, wherein the sum of the currents flowing through the first N-type transistor and the second N-type transistor is the sum of the first current and the third current; a second processing circuit, which generates a fourth current according to a second control voltage when the voltage level of the first input terminal is lower than a second threshold value, wherein the sum of the currents flowing through the first P-type transistor and the second P-type transistor is the sum of the second current and the fourth current; a first voltage adjustment circuit, which adjusts the first control voltage when the voltage level of the first input terminal is higher than the first threshold value; and A second voltage adjustment circuit adjusts the second control voltage when the voltage level of the first input terminal is lower than the second threshold value.

2. The rail-to-rail input stage circuit according to claim 1, characterized in that: The first processing circuit comprises: a first transistor, coupled to the first current source; and A first current mirror receives the current flowing through the first transistor and generates the third current.

3. The rail-to-rail input stage circuit according to claim 2, characterized in that: The first current mirror includes a second transistor and a third transistor. The drain and gate of the second transistor are coupled to the drain of the first transistor, the gate of the third transistor is coupled to the gate of the second transistor, and the drain of the third transistor is coupled to the first N-type transistor.

4. The rail-to-rail input stage circuit according to claim 3, characterized in that: The first voltage adjustment circuit comprises: a first impedance element, coupled between a first voltage source and the gate of the first transistor, for providing the first control voltage; a fourth transistor, connected in series with the first impedance element and coupled to the gate of the second transistor; The current flowing through the fourth transistor is the same as the current flowing through the second transistor.

5. The rail-to-rail input stage circuit according to claim 4, characterized in that: The second processing circuit comprises: a fifth transistor, coupled to the second current source; and A second current mirror generates the fourth current according to the current flowing through the fifth transistor.

6. The rail-to-rail input stage circuit according to claim 5, characterized in that: The fourth current is the same as the third current.

7. The rail-to-rail input stage circuit according to claim 5, characterized in that: The second current mirror includes a sixth transistor and a seventh transistor. The drain and gate of the sixth transistor are coupled to the drain of the fifth transistor, the gate of the seventh transistor is coupled to the gate of the sixth transistor, and the drain of the seventh transistor is coupled to the first P-type transistor.

8. The rail-to-rail input stage circuit according to claim 7, characterized in that: The second voltage adjustment circuit comprises: a second impedance element, coupled between a second voltage source and the gate of the fifth transistor, for providing the second control voltage; and an eighth transistor, connected in series with the second impedance element and coupled to the gate of the sixth transistor; The current flowing through the eighth transistor is the same as the current flowing through the fifth transistor.

9. The rail-to-rail input stage circuit according to claim 8, characterized in that: Also includes: a first switch coupled between the first impedance element and the fourth transistor; a second switch coupled between the second impedance element and the eighth transistor; and A control circuit controls the first switch and the second switch.

10. The rail-to-rail input stage circuit according to claim 9, characterized in that: When the first current flows through the first transistor, the control circuit turns on the first switch, and when the second current flows through the fifth transistor, the control circuit turns on the second switch.

11. The rail-to-rail input stage circuit according to claim 9, characterized in that: When the first switch is turned on, the second switch is not turned on, and when the first switch is not turned on, the second switch is turned on.

12. The rail-to-rail input stage circuit according to claim 9, characterized in that: The first switch is a ninth transistor, a source of the ninth transistor is coupled to the gate of the first transistor, and a drain of the ninth transistor is coupled to the drain of the fourth transistor; The second switch is a tenth transistor, a source of the tenth transistor is coupled to the gate of the fifth transistor, and a drain of the tenth transistor is coupled to the drain of the eighth transistor.

13. The rail-to-rail input stage circuit according to claim 12, characterized in that: The control circuit comprises: an eleventh transistor, a gate of the eleventh transistor being coupled to the gate of the fourth transistor, and a drain of the eleventh transistor being coupled to the gate of the ninth transistor; a twelfth transistor, a gate of the twelfth transistor being coupled to the gate of the fourth transistor, and a drain of the twelfth transistor being coupled to the gate of the tenth transistor; a thirteenth transistor, a gate of the thirteenth transistor being coupled to the gate of the eighth transistor, and a drain of the thirteenth transistor being coupled to the gate of the ninth transistor; and a fourteenth transistor, wherein a gate of the fourteenth transistor is coupled to the gate of the eighth transistor, and a drain of the fourteenth transistor is coupled to the gate of the tenth transistor.

14. The rail-to-rail input stage circuit according to claim 13, characterized in that: The sources of the sixth transistor, the seventh transistor, the eighth transistor, the thirteenth transistor and the fourteenth transistor are coupled to a first power rail, the sources of the second transistor, the third transistor, the fourth transistor, the eleventh transistor and the twelfth transistor are coupled to a second power rail, the first current source is coupled between the first power rail and the source of the first P-type transistor, and the second current source is coupled between the source of the first N-type transistor and the second power rail.

15. An operational amplifier, characterized in that: include: An input stage circuit, comprising: a first current source, providing a first current; a second current source, providing a second current; a first P-type transistor, coupled between the first current source and a first node, and coupled to a first input terminal; a second P-type transistor, coupled between the first current source and a second node, and coupled to a second input terminal; a first N-type transistor, coupled between the second current source and a third node, and coupled to the first input terminal; a second N-type transistor, coupled between the second current source and a fourth node, and coupled to the second input terminal; a first processing circuit, which generates a third current according to a first control voltage when the voltage level of the first input terminal is higher than a first threshold value, wherein the sum of the currents flowing through the first N-type transistor and the second N-type transistor is the sum of the first current and the third current; a second processing circuit, which generates a fourth current according to a second control voltage when the voltage level of the first input terminal is lower than a second threshold value, wherein the sum of the currents flowing through the first P-type transistor and the second P-type transistor is the sum of the second current and the fourth current; a first voltage adjustment circuit, which adjusts the first control voltage when the voltage level of the first input terminal is higher than the first threshold value; and a second voltage adjustment circuit, which adjusts the second control voltage when the voltage level of the first input terminal is lower than the second threshold value; and An output stage circuit generates an output voltage according to the voltage levels of the first node, the second node, the third node and the fourth node.

16. The operational amplifier according to claim 15, wherein: The first processing circuit includes a first compensation transistor and a first current mirror, the first compensation transistor is coupled to the first current source, and the first current mirror provides the third current according to the current flowing through the first compensation transistor; The second processing circuit includes a second compensation transistor and a second current mirror. The second compensation transistor is coupled to the second current source. The second current mirror provides the fourth current according to the current flowing through the second compensation transistor.

17. The operational amplifier according to claim 16, wherein: The first voltage adjustment circuit adjusts the gate voltage of the first compensation transistor according to the current flowing through the first current mirror, and the second voltage adjustment circuit adjusts the gate voltage of the second compensation transistor according to the current flowing through the second current mirror.

18. The operational amplifier according to claim 17, wherein: When the first voltage adjustment circuit adjusts the gate voltage of the first compensation transistor, the second voltage adjustment circuit suspends adjusting the gate voltage of the second compensation transistor; when the second voltage adjustment circuit adjusts the gate voltage of the second compensation transistor, the first voltage adjustment circuit suspends adjusting the gate voltage of the first compensation transistor.

19. The operational amplifier according to claim 15, wherein: The third current is three times the first current, the fourth current is three times the second current, and the first current is equal to the second current.

20. The operational amplifier according to claim 15, wherein: The output stage circuit comprises: a first output transistor, wherein a drain of the first output transistor is coupled to the third node; a second output transistor, wherein a source of the second output transistor is coupled to the third node, and a drain of the second output transistor is coupled to the gate of the first output transistor; a third output transistor, wherein a drain of the third output transistor is coupled to the drain of the second output transistor, and a source of the third output transistor is coupled to the second node; a third current source, coupled to the source of the third output transistor; a fourth output transistor, wherein a gate of the fourth output transistor is coupled to the gate of the first output transistor, and a drain of the fourth output transistor is coupled to the fourth node; a fifth output transistor, wherein a source of the fifth output transistor is coupled to a drain of the fourth output transistor, a gate of the fifth output transistor is coupled to a gate of the second output transistor, and a drain of the fifth output transistor provides the output voltage; a sixth output transistor, wherein a drain of the sixth output transistor provides the output voltage, a gate of the sixth output transistor is coupled to the gate of the third output transistor, and a source of the sixth output transistor is coupled to the first node; and A fourth current source is coupled to the source of the sixth output transistor.