Schmitt trigger circuit of optical sensor
By using the first step-down PMOS tube and the switch control circuit in the Schmitt trigger circuit of the light sensor to adjust the threshold voltage of the PMOS tube, the problem of the Schmitt trigger's signal recognition error at low voltage is solved, and the Support for different voltage ranges reduces cost and power consumption.
Patent Information
- Application Number
- CN202310303126.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-09-24
AI Technical Summary
When the input voltage of a Schmitt trigger is lower than its supply voltage, the negative threshold voltage may be too high, causing the output signal to fail to recognize logic 1 or incorrectly identify logic 0, and existing solutions require multiple Schmitt triggers. To support different ranges of input voltages, cost and power consumption are increased.
A Schmitt trigger circuit for a light sensor is designed, using the first step-down PMOS tube and a switch control circuit. By adjusting the threshold voltage of the PMOS tube, it ensures that leakage and false signal recognition are avoided under low voltage conditions, and supports lower input voltage range, and further reduce the negative threshold voltage by adding a second buck PMOS transistor connected by a diode.
It effectively avoids signal recognition errors caused by excessive negative threshold voltage under low voltage conditions, reduces cost and power consumption, achieves support for different voltage ranges, and enhances anti-interference capabilities.
Smart Images

Figure CN118694344A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic circuits, and in particular to a Schmitt trigger circuit of a light sensor. Background Art
[0002] Schmitt triggers are often used for waveform shaping, and are mostly used at chip inputs or voltage cross-domain transmissions. Schmitt triggers have different positive threshold voltages and negative threshold voltages. The output VOUT will only change when the input voltage VIN changes sufficiently, which can prevent the output voltage from changing due to a small change in the input voltage. It has certain anti-interference characteristics, so Schmitt triggers are often used at chip inputs or cross-voltage domain transmissions.
[0003] When the Schmitt trigger is used at the chip input, it needs to interact with the chip's external signal. The external signal uses an external power supply, and its input range is uncertain and may be lower than the Schmitt trigger's power supply voltage VDD.
[0004] Under normal working conditions, when the input logic of the Schmitt trigger is 1, the NMOS part of the trigger is turned on and the PMOS part is turned off. However, when the Schmitt trigger is at input logic 1, if the input voltage is lower than its power supply voltage, the voltage difference between the input voltage and the power supply voltage may cause the PMOS of the trigger to not be completely turned off, resulting in static leakage current.
[0005] The Schmitt trigger in the light sensor has a low voltage input. When the input voltage of the Schmitt trigger is lower than its power supply voltage, the negative threshold voltage may be too high, causing the output signal to fail to recognize logic 1 or mistakenly recognize logic 0. Therefore, in current applications, Schmitt triggers with different power supplies are generally used under different external voltages. To support different ranges of input voltages in one chip, multiple Schmitt triggers are required, which increases cost and power consumption. Summary of the invention
[0006] The purpose of the embodiments of the present application is to provide a Schmitt trigger circuit for a light sensor, which is used to prevent the output signal from being able to recognize logic 1 or erroneously identifying logic 0 when the input voltage of the existing Schmitt trigger is lower than its power supply voltage and the negative threshold voltage is too high.
[0007] The embodiment of the present application provides a Schmitt trigger circuit of a light sensor, comprising: a first buck PMOS tube and a trigger circuit; wherein the first buck PMOS tube is a diode-connected MOS tube;
[0008] The drain of the first step-down PMOS transistor is connected to the source of the first PMOS transistor of the flip-flop circuit. The drain of the first step-down PMOS transistor is also connected to the gate of the first step-down PMOS transistor. The source of the first step-down PMOS transistor is connected to the power supply voltage terminal VDD.
[0009] In the above technical solution, the first step-down PMOS transistor is connected to the source of the first PMOS transistor of the flip-flop circuit, so that the first PMOS transistor consumes the voltage Vth_m0 of the threshold voltage magnitude of the first step-down PMOS transistor, and the gate-source voltage difference of the first PMOS transistor is reduced by Vth_m0. Therefore, in the Schmitt trigger circuit of this embodiment, there will be no leakage even in the range of VDD–Vth_m0-Vth_m1 < Vin < VDD–Vth_m1, that is, the Schmitt trigger supports this low voltage range. Here, Vth_m0 is the threshold voltage of the first step-down PMOS transistor, and Vth_m1 is the threshold voltage of the first PMOS transistor. At the same time, due to the reduction of the gate-source voltage of the PMOS transistor, the negative threshold voltage of the Schmitt trigger also decreases. Thus, in the range of VDD–Vth_m0-Vth_m1 < Vin < VDD–Vth_m1, it is possible to avoid the situation where the negative threshold voltage is too high, resulting in the output signal being unable to recognize logic 1 or misrecognizing logic 0.
[0010] In some alternative embodiments, the flip-flop circuit includes: a first PMOS transistor, a second PMOS transistor, a third NMOS transistor, a fourth NMOS transistor, a fifth PMOS transistor, and a sixth NMOS transistor;
[0011] The drain of the first PMOS transistor is connected to the source of the second PMOS transistor, and the gate of the first PMOS transistor is connected to the voltage input terminal VIN;
[0012] The drain of the second PMOS transistor is connected to the drain of the third NMOS transistor, and the gate of the second PMOS transistor is connected to the voltage input terminal VIN;
[0013] The source of the third NMOS transistor is connected to the drain of the fourth NMOS transistor, and the gate of the third NMOS transistor is connected to the voltage input terminal VIN;
[0014] The source of the fourth NMOS transistor is grounded, and the gate of the fourth NMOS transistor is connected to the voltage input terminal VIN;
[0015] The source of the fifth PMOS transistor is connected to the drain of the first PMOS transistor, the drain of the fifth PMOS transistor is grounded, and the gate of the fifth PMOS transistor is connected to the drain of the second PMOS transistor;
[0016] The source of the sixth NMOS transistor is connected to the drain of the third NMOS transistor, the gate of the sixth NMOS transistor is connected to the drain of the second PMOS transistor, and the gate of the sixth NMOS transistor is also connected to the voltage output terminal VOUT.
[0017] In some optional implementations, the source and the drain of the first step-down PMOS tube are connected via a first switch.
[0018] In the above technical solution, by setting a first switch between the source and the drain of the first buck PMOS tube, when the first switch is closed, the first buck PMOS tube is not used. At this time, the Schmitt trigger can prevent the PMOS tube from leaking when Vin is greater than or equal to VDD-Vth_m1.
[0019] When the first switch is turned off, the gate-source voltage of the first PMOS tube and the second PMOS tube decreases by Vth_m0, and the negative threshold voltage of the Schmitt trigger also decreases accordingly. At this time, the Schmitt trigger can prevent PMOS tube leakage when Vin is greater than or equal to VDD-Vth_m0-Vth_m1.
[0020] In some optional implementations, the drain of the first step-down PMOS transistor is also connected to the drain of the sixth NMOS transistor.
[0021] In the above technical solution, it is considered that when the negative threshold voltage of the Schmitt trigger is reduced, if the positive threshold voltage of the Schmitt trigger does not change, it will also cause misaligned transmission of the signal, because when a low voltage inputs a logic 1, it may not reach the positive threshold voltage of the Schmitt trigger, and output a logic 0. Therefore, in this embodiment, by connecting the drain of the first step-down PMOS tube and the drain of the sixth NMOS tube, the negative threshold voltage of the Schmitt trigger is reduced, and the positive threshold voltage of the Schmitt trigger is also reduced. The positive threshold voltage and negative threshold voltage of the Schmitt trigger are adjusted simultaneously.
[0022] In some optional embodiments, a first switch control circuit is further included, wherein the output end of the first switch control circuit is connected to the controlled end of the first switch, the first input end of the first switch control circuit is connected to the power supply voltage end VDD, and the second input end of the first switch control circuit is connected to the voltage input end VIN. The first switch control circuit is used to output a first signal to control the first switch to open when VIN is less than VDD; and output a second signal to control the first switch to close when VIN is greater than or equal to VDD.
[0023] In the above technical solution, the switch control of the first switch is realized by the first switch control circuit. When VIN is greater than or equal to VDD, there is no need to prevent PMOS tube leakage and reduce the negative threshold voltage and the positive threshold voltage. Therefore, the first switch is closed to short-circuit the source and the drain of the first step-down PMOS tube; when VIN is less than VDD, the first switch is opened, and the first step-down PMOS tube is used to prevent PMOS tube leakage and reduce the negative threshold voltage and the positive threshold voltage.
[0024] In some optional implementations, the first switch control circuit includes: a current source, a first resistor, a seventh PMOS transistor and an eighth PMOS transistor;
[0025] The source of the seventh PMOS tube is connected to the power supply voltage terminal VDD, the gate of the seventh PMOS tube is connected to the drain of the seventh PMOS tube, the drain of the seventh PMOS tube is also connected to the input terminal of the current source, and the output terminal of the current source is grounded;
[0026] The source of the eighth PMOS tube is connected to the voltage input terminal VIN, the gate of the eighth PMOS tube is connected to the gate of the seventh PMOS tube, the drain of the eighth PMOS tube is grounded after passing through the first resistor, and the drain of the eighth PMOS tube is also connected to the controlled end of the first switch.
[0027] In the above technical solution, the seventh PMOS tube and the eighth PMOS tube form a current mirror circuit, and the current mirror is used to copy the current. The current of the VIN branch generates a voltage through the first resistor. When VIN is less than the power supply voltage VDD, the current of the VIN branch is less than the copied current I, and the voltage generated by flowing through the first resistor is a low voltage. The low voltage signal (EN=0) is transmitted to the controlled end of the first switch, so that the first switch is disconnected. When VIN is greater than or equal to the power supply voltage VDD, the voltage generated by flowing through the first resistor is a high voltage, and the high voltage signal (EN=1) is transmitted to the controlled end of the first switch, so that the first switch is closed.
[0028] In some optional implementations, the device further includes: a second step-down PMOS transistor; wherein the second step-down PMOS transistor is a diode-connected MOS transistor;
[0029] The source of the second step-down PMOS tube is connected to the power supply voltage terminal VDD, the drain of the second step-down PMOS tube is connected to the source of the first step-down PMOS tube, and the drain of the second step-down PMOS tube is also connected to the gate of the second step-down PMOS tube.
[0030] In the above technical solution, in order to enable the Schmitt trigger to support a lower voltage, the second step-down PMOS transistor connected in diode configuration (with a threshold voltage of Vth_m0) can be further added. At this time, the Schmitt trigger with two step-down PMOS transistors connected can stop leaking current within the range of VDD–2×Vth_m0-Vth_m1 < Vin < VDD–Vth_m1. Moreover, the negative threshold voltage of the Schmitt trigger will also be further reduced.
[0031] In some alternative embodiments, the source of the second step-down PMOS transistor is connected to the drain of the first step-down PMOS transistor through a second switch.
[0032] In the above technical solution, by setting a first switch between the source and drain of the first step-down PMOS transistor and a second switch between the source of the second step-down PMOS transistor and the drain of the first step-down PMOS transistor, the following effects can be achieved:
[0033] When the second switch is closed, the first step-down PMOS transistor and the second step-down PMOS transistor are not used. At this time, the Schmitt trigger can avoid PMOS transistor leakage within the range where Vin is greater than or equal to VDD–Vth_m1.
[0034] When the first switch is closed and the second switch is open, only the second step-down PMOS transistor is used, and the gate-source voltage of the first PMOS transistor and the second PMOS transistor is reduced by Vth_m0. Also, the negative threshold voltage of the Schmitt trigger is reduced accordingly. At this time, the Schmitt trigger can avoid PMOS transistor leakage within the range where Vin is greater than or equal to VDD–Vth_m0-Vth_m1.
[0035] When the first switch is open and the second switch is open, the first step-down PMOS transistor and the second step-down PMOS transistor are used, and the gate-source voltage of the first PMOS transistor and the second PMOS transistor is reduced by 2×Vth_m0. Also, the negative threshold voltage of the Schmitt trigger is reduced accordingly. At this time, the Schmitt trigger can avoid PMOS transistor leakage within the range where Vin is greater than or equal to VDD–2×Vth_m0-Vth_m1.
[0036] In some alternative embodiments, it further includes: a second switch control circuit. The first output terminal of the second switch control circuit is connected to the controlled terminal of the first switch, the second output terminal of the second switch control circuit is connected to the controlled terminal of the second switch, the first input terminal of the second switch control circuit is connected to the power supply voltage terminal VDD, and the second input terminal of the second switch control circuit is connected to the voltage input terminal VIN.
[0037] In some optional implementations, the second switch control circuit includes: a current source, a first resistor, a second resistor, a seventh PMOS transistor and an eighth PMOS transistor;
[0038] The source of the seventh PMOS tube is connected to the power supply voltage terminal VDD, the gate of the seventh PMOS tube is connected to the drain of the seventh PMOS tube, the drain of the seventh PMOS tube is also connected to the input terminal of the current source, and the output terminal of the current source is grounded;
[0039] The source of the eighth PMOS tube is connected to the voltage input terminal VIN, the gate of the eighth PMOS tube is connected to the gate of the seventh PMOS tube, the drain of the eighth PMOS tube is connected to the first end of the first resistor, the second end of the first resistor is connected to the first end of the second resistor, the second end of the second resistor is grounded, the drain of the eighth PMOS tube is also connected to the controlled end of the first switch, and the first end of the second resistor is also connected to the controlled end of the second switch. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 Schematic diagram of the positive threshold voltage and negative threshold voltage of the Schmitt trigger;
[0042] Figure 2 This is the circuit structure diagram of the Schmitt trigger;
[0043] Figure 3 A Schmitt trigger circuit structure diagram of a light sensor provided in an embodiment of the present application;
[0044] Figure 4 A structural diagram of a first switch control circuit provided in an embodiment of the present application;
[0045] Figure 5 This is a circuit structure diagram of another embodiment of the present application for simultaneously achieving positive and negative threshold voltage adjustment;
[0046] Figure 6 A Schmitt trigger circuit structure diagram of a light sensor provided in another embodiment of the present application;
[0047] Figure 7 This is a structural diagram of a second switch control circuit provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application.
[0049] As Figure 1 shown, Figure 1 It is a schematic diagram of the positive threshold voltage and negative threshold voltage of a Schmitt trigger. Only when the input voltage VIN changes sufficiently, the output VOUT will change, which can prevent the change of the output voltage caused by a small change in the input voltage and has a certain anti-interference characteristic.
[0050] In the normal working state, when the input of the Schmitt trigger is logic 1, the NMOS part in the trigger is turned on and the PMOS part is turned off. However, when the input of the Schmitt trigger is logic 1, if the input voltage is lower than its power supply voltage, due to the voltage difference between the input voltage and the power supply voltage, it may cause the PMOS of the trigger to not be completely turned off, generating a static leakage current. Please refer to Figure 2 the shown Schmitt trigger. When Vin < VDD - Vth_m1 (Vth_m1 is the threshold voltage of the first PMOS transistor M1M1), a leakage current from VDD to VSS will be generated through the first PMOS transistor M1 and the fifth PMOS transistor M5M5. For this reason, the embodiments of the present application provide a Schmitt trigger circuit for an optical sensor, which can be applied to a scenario with a lower input voltage.
[0051] Please refer to Figure 3 , Figure 3 It is a structural diagram of a Schmitt trigger circuit for an optical sensor provided by the embodiments of the present application, specifically including: a first step-down PMOS transistor M0_1 and a trigger circuit; wherein, the first step-down PMOS transistor M0_1 is a diode-connected MOS transistor, that is, the connection method in which the gate and drain of the MOS transistor are connected together.
[0052] Among them, the drain of the first step-down PMOS transistor M0_1 is connected to the source of the first PMOS transistor M1 of the trigger circuit, the drain of the first step-down PMOS transistor M0_1 is also connected to the gate of the first step-down PMOS transistor M0_1, and the source of the first step-down PMOS transistor M0_1 is connected to the power supply voltage terminal VDD.
[0053] In the embodiment of the present application, a first step-down PMOS transistor M0_1 is connected to the source of the first PMOS transistor M1 in the trigger circuit, so that the first PMOS transistor M1 consumes a voltage Vth_m0 equal to the threshold voltage of the first step-down PMOS transistor M0_1, and the gate-source voltage difference of the first PMOS transistor M1 is reduced by Vth_m0. Therefore, in the Schmitt trigger circuit of this embodiment, there will be no leakage even in the range of VDD–Vth_m0-Vth_m1 < Vin < VDD–Vth_m1, that is, the Schmitt trigger supports this low voltage range. Here, Vth_m0 is the threshold voltage of the first step-down PMOS transistor M0_1, and Vth_m1 is the threshold voltage of the first PMOS transistor M1. At the same time, due to the reduction of the gate-source voltage of the PMOS transistor, the negative threshold voltage of the Schmitt trigger also decreases accordingly. Thus, in the range of VDD–Vth_m0-Vth_m1 < Vin < VDD–Vth_m1, it is possible to avoid the situation where the negative threshold voltage is too high, resulting in the output signal being unable to recognize logic 1 or misrecognizing logic 0.
[0054] The trigger circuit specifically includes: a first PMOS transistor M1, a second PMOS transistor M2, a third NMOS transistor M3, a fourth NMOS transistor M4, a fifth PMOS transistor M5, and a sixth NMOS transistor M6.
[0055] Among them, the drain of the first PMOS transistor M1 is connected to the source of the second PMOS transistor M2, and the gate of the first PMOS transistor M1 is connected to the voltage input terminal VIN. The drain of the second PMOS transistor M2 is connected to the drain of the third NMOS transistor M3, and the gate of the second PMOS transistor M2 is connected to the voltage input terminal VIN. The source of the third NMOS transistor M3 is connected to the drain of the fourth NMOS transistor M4, and the gate of the third NMOS transistor M3 is connected to the voltage input terminal VIN. The source of the fourth NMOS transistor M4 is grounded, and the gate of the fourth NMOS transistor M4 is connected to the voltage input terminal VIN. The source of the fifth PMOS transistor M5 is connected to the drain of the first PMOS transistor M1, the drain of the fifth PMOS transistor M5 is grounded, and the gate of the fifth PMOS transistor M5 is connected to the drain of the second PMOS transistor M2. The source of the sixth NMOS transistor M6 is connected to the drain of the third NMOS transistor M3, the gate of the sixth NMOS transistor M6 is connected to the drain of the second PMOS transistor M2, and the gate of the sixth NMOS transistor M6 is also connected to the voltage output terminal VOUT.
[0056] In some alternative embodiments, a first switch is connected between the source and the drain of the first step-down PMOS transistor M0_1. In the embodiment of the present application, by setting a first switch between the source and the drain of the first step-down PMOS transistor M0_1, the following effects are achieved:
[0057] When the first switch is closed, the first step-down PMOS tube M0_1 is not used. At this time, the Schmitt trigger can prevent the PMOS tube from leaking when Vin is greater than or equal to VDD-Vth_m1.
[0058] When the first switch is turned off, the gate-source voltage of the first PMOS tube M1 and the second PMOS tube M2 decreases by Vth_m0, and the negative threshold voltage of the Schmitt trigger also decreases accordingly. At this time, the Schmitt trigger can prevent PMOS tube leakage when Vin is greater than or equal to VDD-Vth_m0-Vth_m1.
[0059] In some optional implementations, please refer to Figure 5 , Figure 5 This is a circuit structure diagram for simultaneously implementing positive and negative threshold voltage adjustment according to another embodiment of the present application, wherein the drain of the first step-down PMOS transistor M0_1 is also connected to the drain of the sixth NMOS transistor M6.
[0060] In the embodiment of the present application, when the negative threshold voltage of the Schmitt trigger is reduced, if the positive threshold voltage of the Schmitt trigger does not change, it will also cause misaligned transmission of the signal, because when a low voltage inputs a logic 1, it may not reach the positive threshold voltage of the Schmitt trigger, and output a logic 0. Therefore, in the present embodiment, by connecting the drain of the first step-down PMOS tube M0_1 and the drain of the sixth NMOS tube M6, the negative threshold voltage of the Schmitt trigger is reduced while the positive threshold voltage of the Schmitt trigger is also reduced. The positive threshold voltage and negative threshold voltage of the Schmitt trigger are adjusted simultaneously.
[0061] In some optional embodiments, a first switch control circuit is further included, wherein the output end of the first switch control circuit is connected to the controlled end of the first switch, the first input end of the first switch control circuit is connected to the power supply voltage end VDD, and the second input end of the first switch control circuit is connected to the voltage input end VIN. The first switch control circuit is used to output a first signal to control the first switch to open when VIN is less than VDD; and output a second signal to control the first switch to close when VIN is greater than or equal to VDD.
[0062] In the embodiment of the present application, the switch control of the first switch is implemented by the first switch control circuit. When VIN is greater than or equal to VDD, there is no need to prevent PMOS tube leakage and reduce the negative threshold voltage and the positive threshold voltage. Therefore, the first switch is closed to short-circuit the source and drain of the first step-down PMOS tube M0_1; when VIN is less than VDD, the first switch is disconnected, and the first step-down PMOS tube M0_1 is used to prevent PMOS tube leakage and reduce the negative threshold voltage and the positive threshold voltage.
[0063] Please refer to Figure 4 , Figure 4 , which is the structural diagram of the first switch control circuit provided by the embodiment of the present application, specifically including: a current source, a first resistor, a seventh PMOS transistor M7, and an eighth PMOS transistor M8.
[0064] Among them, the source of the seventh PMOS transistor M7 is connected to the power supply voltage terminal VDD, the gate of the seventh PMOS transistor M7 is connected to the drain of the seventh PMOS transistor M7, the drain of the seventh PMOS transistor M7 is also connected to the input terminal of the current source, and the output terminal of the current source is grounded. The source of the eighth PMOS transistor M8 is connected to the voltage input terminal VIN, the gate of the eighth PMOS transistor M8 is connected to the gate of the seventh PMOS transistor M7, the drain of the eighth PMOS transistor M8 is grounded through the first resistor, and the drain of the eighth PMOS transistor M8 is also connected to the controlled terminal of the first switch.
[0065] In the embodiment of the present application, the seventh PMOS transistor M7 and the eighth PMOS transistor M8 form a current mirror circuit to copy current by using the current mirror. The current in the VIN branch generates a voltage through the first resistor. When VIN is less than the power supply voltage VDD, the current in the VIN branch is less than the copied current I, and the voltage generated by flowing through the first resistor is a low voltage. The low voltage signal (EN = 0) is transmitted to the controlled terminal of the first switch to turn off the first switch. When VIN is greater than or equal to the power supply voltage VDD, the voltage generated by flowing through the first resistor is a high voltage. The high voltage signal (EN = 1) is transmitted to the controlled terminal of the first switch to turn on the first switch.
[0066] Please refer to Figure 6 , Figure 6 , which is the structural diagram of the Schmidt trigger circuit of an optical sensor provided by another embodiment of the present application. In this embodiment, it further includes: a second step-down PMOS transistor M0_2; among them, the second step-down PMOS transistor M0_2 is a diode-connected MOS transistor; the source of the second step-down PMOS transistor M0_2 is connected to the power supply voltage terminal VDD, the drain of the second step-down PMOS transistor M0_2 is connected to the source of the first step-down PMOS transistor M0_1, and the drain of the second step-down PMOS transistor M0_2 is also connected to the gate of the second step-down PMOS transistor M0_2.
[0067] In the embodiment of the present application, in order to make the Schmidt trigger support a lower voltage, the diode-connected second step-down PMOS transistor M0_2 (whose threshold voltage is Vth_m0) can be further added. At this time, the Schmidt trigger with 2 step-down PMOS transistors can stop leaking electricity within the range of VDD - 2×Vth_m0 - Vth_m1 < Vin < VDD - Vth_m1, and moreover, the negative threshold voltage of the Schmidt trigger will also be further reduced.
[0068] In some optional implementations, the source of the second buck PMOS tube M0_2 is connected to the drain of the first buck PMOS tube M0_1 through a second switch. In the embodiment of the present application, by setting a first switch between the source and the drain of the first buck PMOS tube M0_1, and setting a second switch between the source of the second buck PMOS tube M0_2 and the drain of the first buck PMOS tube M0_1, the following effects are achieved:
[0069] When the second switch is closed, the first buck PMOS tube M0_1 and the second buck PMOS tube M0_2 are not used. At this time, the Schmitt trigger can prevent the PMOS tube from leaking electricity within the range of Vin being greater than or equal to VDD-Vth_m1;
[0070] When the first switch is closed and the second switch is open, only the second step-down PMOS tube M0_2 is used, the gate-source voltage of the first PMOS tube M1 and the second PMOS tube M2 is reduced by Vth_m0, and the negative threshold voltage of the Schmitt trigger is also reduced accordingly. At this time, the Schmitt trigger can prevent PMOS tube leakage when Vin is greater than or equal to VDD-Vth_m0-Vth_m1.
[0071] When the first switch is turned off and the second switch is turned off, the first step-down PMOS tube M0_1 and the second step-down PMOS tube M0_2 are used to reduce the gate-source voltage of the first PMOS tube M1 and the second PMOS tube M2 by 2×Vth_m0, and the negative threshold voltage of the Schmitt trigger is also reduced accordingly. At this time, the Schmitt trigger can prevent the PMOS tube from leaking when Vin is greater than or equal to VDD–2×Vth_m0-Vth_m1.
[0072] In some optional embodiments, it also includes: a second switch control circuit, wherein the first output end of the second switch control circuit is connected to the controlled end of the first switch, the second output end of the second switch control circuit is connected to the controlled end of the second switch, the first input end of the second switch control circuit is connected to the power supply voltage end VDD, and the second input end of the second switch control circuit is connected to the voltage input end VIN.
[0073] Please refer to Figure 7 , Figure 7 The second switch control circuit structure diagram provided in the embodiment of the present application specifically includes: a current source, a first resistor, a second resistor, a seventh PMOS tube M7 and an eighth PMOS tube M8.
[0074] Among them, the source of the seventh PMOS tube M7 is connected to the power supply voltage terminal VDD, the gate of the seventh PMOS tube M7 is connected to the drain of the seventh PMOS tube M7, the drain of the seventh PMOS tube M7 is also connected to the input terminal of the current source, and the output terminal of the current source is grounded. The source of the eighth PMOS tube M8 is connected to the voltage input terminal VIN, the gate of the eighth PMOS tube M8 is connected to the gate of the seventh PMOS tube M7, the drain of the eighth PMOS tube M8 is connected to the first end of the first resistor, the second end of the first resistor is connected to the first end of the second resistor, the second end of the second resistor is grounded, the drain of the eighth PMOS tube M8 is also connected to the controlled end of the first switch, and the first end of the second resistor is also connected to the controlled end of the second switch.
[0075] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0076] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0077] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0078] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0079] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.
Claims
1. A Schmitt trigger circuit for a light sensor, characterized in that: include: A first step-down PMOS tube and a trigger circuit; wherein the first step-down PMOS tube is a diode-connected MOS tube; The drain of the first step-down PMOS tube is connected to the source of the first PMOS tube of the trigger circuit, the drain of the first step-down PMOS tube is also connected to the gate of the first step-down PMOS tube, and the source of the first step-down PMOS tube is connected to the power supply voltage terminal VDD.
2. The circuit according to claim 1, characterized in that The trigger circuit comprises: a first PMOS tube, a second PMOS tube, a third NMOS tube, a fourth NMOS tube, a fifth PMOS tube and a sixth NMOS tube; The drain of the first PMOS tube is connected to the source of the second PMOS tube, and the gate of the first PMOS tube is connected to the voltage input terminal VIN; The drain of the second PMOS tube is connected to the drain of the third NMOS tube, and the gate of the second PMOS tube is connected to the voltage input terminal VIN; The source of the third NMOS tube is connected to the drain of the fourth NMOS tube, and the gate of the third NMOS tube is connected to the voltage input terminal VIN; The source of the fourth NMOS tube is grounded, and the gate of the fourth NMOS tube is connected to the voltage input terminal VIN; The source of the fifth PMOS tube is connected to the drain of the first PMOS tube, the drain of the fifth PMOS tube is grounded, and the gate of the fifth PMOS tube is connected to the drain of the second PMOS tube; The source of the sixth NMOS tube is connected to the drain of the third NMOS tube, the gate of the sixth NMOS tube is connected to the drain of the second PMOS tube, and the gate of the sixth NMOS tube is also connected to the voltage output terminal VOUT.
3. The circuit according to claim 2, characterized in that The source and drain of the first step-down PMOS tube are connected via a first switch.
4. The circuit according to claim 3, characterized in that The drain of the first step-down PMOS tube is also connected to the drain of the sixth NMOS tube.
5. The circuit according to claim 3, characterized in that It also includes a first switch control circuit, wherein the output end of the first switch control circuit is connected to the controlled end of the first switch, the first input end of the first switch control circuit is connected to the power supply voltage end VDD, and the second input end of the first switch control circuit is connected to the voltage input end VIN. The first switch control circuit is used to output a first signal to control the first switch to be disconnected when VIN is less than VDD; and output a second signal to control the first switch to be closed when VIN is greater than or equal to VDD.
6. The circuit according to claim 5, characterized in that The first switch control circuit includes: a current source, a first resistor, a seventh PMOS transistor and an eighth PMOS transistor; The source of the seventh PMOS tube is connected to the power supply voltage terminal VDD, the gate of the seventh PMOS tube is connected to the drain of the seventh PMOS tube, the drain of the seventh PMOS tube is also connected to the input end of the current source, and the output end of the current source is grounded; The source of the eighth PMOS tube is connected to the voltage input terminal VIN, the gate of the eighth PMOS tube is connected to the gate of the seventh PMOS tube, the drain of the eighth PMOS tube is grounded after passing through the first resistor, and the drain of the eighth PMOS tube is also connected to the controlled end of the first switch.
7. The circuit according to claim 3, characterized in that Also includes: A second step-down PMOS tube; wherein the second step-down PMOS tube is a diode-connected MOS tube; The source of the second step-down PMOS tube is connected to the power supply voltage terminal VDD, the drain of the second step-down PMOS tube is connected to the source of the first step-down PMOS tube, and the drain of the second step-down PMOS tube is also connected to the gate of the second step-down PMOS tube.
8. The circuit according to claim 7, characterized in that The source of the second step-down PMOS tube is connected to the drain of the first step-down PMOS tube through a second switch.
9. The circuit according to claim 8, characterized in that Also includes: A second switch control circuit, wherein a first output end of the second switch control circuit is connected to a controlled end of the first switch, a second output end of the second switch control circuit is connected to a controlled end of the second switch, a first input end of the second switch control circuit is connected to a power supply voltage end VDD, and a second input end of the second switch control circuit is connected to a voltage input end VIN.
10. The circuit according to claim 9, characterized in that The second switch control circuit includes: a current source, a first resistor, a second resistor, a seventh PMOS transistor and an eighth PMOS transistor; The source of the seventh PMOS tube is connected to the power supply voltage terminal VDD, the gate of the seventh PMOS tube is connected to the drain of the seventh PMOS tube, the drain of the seventh PMOS tube is also connected to the input end of the current source, and the output end of the current source is grounded; The source of the eighth PMOS tube is connected to the voltage input terminal VIN, the gate of the eighth PMOS tube is connected to the gate of the seventh PMOS tube, the drain of the eighth PMOS tube is connected to the first end of the first resistor, the second end of the first resistor is connected to the first end of the second resistor, the second end of the second resistor is grounded, the drain of the eighth PMOS tube is also connected to the controlled end of the first switch, and the first end of the second resistor is also connected to the controlled end of the second switch.
