Detection circuit, power supply circuit and chip

By combining the bandgap circuit and other circuits, the reference signal and threshold voltage are generated to ensure that the power supply voltage detection circuit outputs the enable signal after the power supply voltage reaches a safe range, solving the problems of universality and accuracy caused by signal delay in the existing technology. , achieving higher detection accuracy and lower cost.

CN118330499BActive Publication Date: 2024-08-30TINYCHIP MICROELECTRONICS (SHANGHAI) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410764837.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-08-30
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

The existing power supply voltage detection circuit has a signal delay problem during the boosting process, which results in low universality and accuracy of the detection circuit. It is easy to turn on the enable circuit by mistake, resulting in data loss or incorrect rewriting.

Method used

A combination of bandgap circuit, voltage divider circuit, limiting circuit, comparison circuit, amplification circuit and judgment circuit is used to generate the reference signal, threshold voltage and bandgap signal to ensure that the enable signal is only output after the reference signal is correctly established to avoid Turned on by mistake.

Benefits of technology

The universality and accuracy of the detection circuit are improved, ensuring that the enabling circuit starts to work after the power supply voltage reaches a safe range, avoiding data loss or incorrect rewriting, and the structure is simple, reducing manufacturing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118330499B
    Figure CN118330499B
Patent Text Reader

Abstract

The present application provides a detection circuit, a power supply circuit and a chip. Among them, the detection circuit includes: a bandgap circuit, a voltage divider circuit, a limiter circuit, a comparison circuit, an amplifier circuit and a judgment circuit. The bandgap circuit is used to output a first reference signal and a pull-down current signal to the comparison circuit, and also output a pull-up current signal to the voltage divider circuit; the limiter circuit is used to output a first threshold voltage to the comparison circuit; the comparison circuit is used to output a comparison signal to the judgment circuit; the voltage divider circuit is used to output a pull-up voltage signal to the amplifier circuit; the amplifier circuit is used to output a first bandgap signal to the judgment circuit; the judgment circuit is used to generate a first enable signal according to the high-level comparison signal and the high-level first bandgap signal when the comparison signal output is a high level and when the first bandgap signal output is a high level, and output the first enable signal to the enable circuit. The detection circuit provided in the present application can improve the universality of the detection circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of microelectronics technology, and in particular to a detection circuit, a power supply circuit and a chip. Background Art

[0002] With the development of science and technology, various electronic devices continue to emerge, among which power supply is an indispensable component of electronic devices.

[0003] During use, the power supply undergoes a voltage boost process. During this boost process, the relevant power supply voltage detection circuit typically uses a resistor to control the capacitor charging and discharging process. This process causes signal delays, ensuring that the reference voltage is established. Once the reference voltage is established, it means that the power supply voltage signal exceeds the established threshold, and the detection circuit outputs a high-level enable signal. If the reference voltage is not established, it means that the power supply voltage signal does not exceed the established threshold, and the detection circuit outputs a low-level enable signal.

[0004] However, the method of using a resistor to control the signal delay caused by the charging and discharging process of the capacitor has the problem of limited usage scenarios. Therefore, a new detection circuit is urgently needed to improve the universality of the detection circuit. Summary of the Invention

[0005] In view of this, the present application provides a detection circuit, a power supply circuit and a chip to improve the universality of the detection circuit.

[0006] In a first aspect, an embodiment of the present application provides a power supply voltage detection circuit, the detection circuit comprising: a bandgap circuit, a voltage divider circuit, a limiter circuit, a comparison circuit, an amplifier circuit, and a judgment circuit;

[0007] A first end of the bandgap circuit is electrically connected to a first end of a power supply, the power supply is used to provide a first power supply voltage to the detection circuit, a second end of the bandgap circuit is electrically connected to a first end of the comparison circuit, a third end of the bandgap circuit is electrically connected to a first end of the voltage divider circuit and a first end of the amplifier circuit, and a fourth end of the bandgap circuit is electrically connected to a second end of the limiter circuit and a second end of the comparison circuit.

[0008] The second end of the voltage divider circuit is grounded; the first end of the limiter circuit is electrically connected to the second end of the power supply; the third end of the comparison circuit is electrically connected to the second end of the power supply, and the fourth end of the comparison circuit is electrically connected to the first end of the judgment circuit; the second end of the amplifier circuit is electrically connected to the second end of the judgment circuit; and the third end of the judgment circuit is electrically connected to the enabling circuit.

[0009] a bandgap circuit, configured to generate a first reference signal, a pull-up current signal, and a pull-down current signal according to a first power supply voltage, output the first reference signal and the pull-down current signal to a comparison circuit, and further output the pull-up current signal to a voltage divider circuit;

[0010] a limiter circuit, configured to generate a limiter voltage, generate a first threshold voltage according to the first power supply voltage and the limiter voltage, and output the first threshold voltage to the comparison circuit;

[0011] a comparison circuit, configured to generate a comparison signal according to the first threshold and the first reference signal, and output the comparison signal to the judgment circuit;

[0012] A voltage divider circuit is used to generate a pull-up voltage signal according to the pull-up current signal, and output the pull-up voltage signal to the amplifying circuit;

[0013] an amplifier circuit, configured to generate a first bandgap signal according to the pull-up voltage signal, and output the first bandgap signal to the judgment circuit;

[0014] The judgment circuit is configured to, when the comparison signal indicates that the voltage value of the first reference signal is less than the voltage value of the first threshold, and when the first bandgap signal indicates that the voltage value of the pull-up voltage signal is greater than or equal to the second pull-up voltage signal threshold, generate a first enable signal based on the comparison signal and the first bandgap signal, and output the first enable signal to the enable circuit;

[0015] In which, when the comparison signal is used to indicate that the voltage value of the first reference signal is less than the voltage value of the first threshold, the comparison signal is output as a high level; when the first band gap signal is used to indicate that the voltage value of the pull-up voltage signal is greater than or equal to the second pull-up voltage signal threshold, the first band gap signal is output as a high level.

[0016] In a second aspect, an embodiment of the present application provides a power supply circuit, comprising: a power supply and a detection circuit as described in any one of the first aspects.

[0017] In a third aspect, an embodiment of the present application provides a chip, comprising: a detection circuit as in any one of the first aspect, or a power supply circuit as in the second aspect.

[0018] The detection circuit, power supply circuit, and chip provided by the embodiments of the present application include: a bandgap circuit, a voltage divider circuit, a limiter circuit, a comparison circuit, an amplifier circuit, and a judgment circuit. The bandgap circuit outputs a first reference signal and a pull-down current signal to the comparison circuit, and also outputs a pull-up current signal to the voltage divider circuit; the limiter circuit outputs a first threshold voltage to the comparison circuit; the comparison circuit outputs a comparison signal to the judgment circuit; the voltage divider circuit outputs a pull-up voltage signal to the amplifier circuit; and the amplifier circuit outputs a first bandgap signal to the judgment circuit. The judgment circuit generates a first enable signal based on the high-level comparison signal and the high-level first bandgap signal when the comparison signal is output at a high level and when the first bandgap signal is output at a high level, and outputs the first enable signal to the enable circuit.

[0019] The technical solution provided by the embodiments of the present application has the following advantages: first, since the judgment circuit will only output the first enable signal to the enable circuit and control the enable circuit to start working when the comparison signal and the first bandgap signal are both at a high level, the detection circuit provided by the present application can ensure that the enable signal is output only after the first reference signal is correct, regardless of whether the power supply is powered on quickly or slowly. Therefore, the applicability of the detection circuit provided by the embodiments of the present application is higher (i.e., its universality is improved). Second, since it can ensure that the enable circuit starts working only after the first reference signal is correctly established, the judgment circuit will not produce incorrect judgment logic, will not cause the enable circuit to be mistakenly turned on, and will not cause data loss or erroneous overwriting. Therefore, the accuracy of the detection circuit is improved. Third, due to its simple structure, the volume of the detection circuit is reduced, reducing manufacturing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A schematic diagram of the structure of a detection circuit provided in one embodiment of the present application;

[0021] Figure 2 A schematic diagram of output results of different signals provided in one embodiment of the present application;

[0022] Figure 3 A schematic diagram of the structure of a detection circuit provided in one embodiment of the present application;

[0023] Figure 4 A schematic diagram of the structure of a detection circuit provided in one embodiment of the present application;

[0024] Figure 5 A schematic diagram of the structure of a detection circuit provided in one embodiment of the present application;

[0025] Figure 6 A schematic diagram of the structure of a detection circuit provided in one embodiment of the present application. DETAILED DESCRIPTION

[0026] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0027] When a power supply is used to supply power to an electronic device, the power voltage provided by the power supply will go through a boosting process. During the boosting process, the power voltage starts to build up from 0 volts (V) and starts to rise after a period of time.

[0028] When the power supply voltage rises to a safe range, the power supply voltage detection circuit will establish a related reference voltage. When the reference voltage is established, the detection circuit can output a high-level enable signal to the enable circuit to instruct the enable circuit to start working, for example, to enable the circuit to store data.

[0029] When the power supply voltage does not rise to a safe range, the power supply voltage detection circuit will not establish a related reference voltage. When the reference voltage is not established, the detection circuit can output a low-level enable signal to the enable circuit to indicate that the enable circuit is not working.

[0030] In related detection circuits, the commonly used solution is to control the charging and discharging process of the capacitor by a resistor, which will cause signal delays during the charging and discharging process of the capacitor, in order to ensure that the reference voltage is established.

[0031] However, the signal delay caused by the capacitor's charge and discharge process, which is controlled by a resistor, can lead to the reference voltage being incorrectly established if the power supply is too fast or too slow. This incorrect reference voltage can cause the detection circuit to mistakenly output a high-level enable signal, which in turn causes the enable circuit to be mistakenly turned on. This incorrect activation of the enable circuit can cause adverse effects such as data loss, resulting in limited universality and low detection accuracy.

[0032] In order to solve the above technical problems, the embodiments of the present application provide a new detection circuit, power supply circuit and chip. Among them, the detection circuit includes: a bandgap circuit, a voltage divider circuit, a limiter circuit, a comparison circuit, an amplifier circuit and a judgment circuit. The bandgap circuit is used to output a first reference signal and a pull-down current signal to the comparison circuit, and also output a pull-up current signal to the voltage divider circuit; the limiter circuit is used to output a first threshold voltage to the comparison circuit; the comparison circuit is used to output a comparison signal to the judgment circuit; the voltage divider circuit is used to output a pull-up voltage signal to the amplifier circuit; the amplifier circuit is used to output a first bandgap signal to the judgment circuit; the judgment circuit is used to generate a first enable signal according to the high-level comparison signal and the high-level first bandgap signal when the comparison signal output is a high level and when the first bandgap signal output is a high level, and output the first enable signal to the enable circuit. The detection circuit provided in the embodiments of the present application can improve the universality of the detection circuit and the accuracy of detection.

[0033] The technical solution of the present application is described in detail below with reference to the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and intended to be used to explain the present application, but should not be understood as limiting the present application.

[0034] Figure 1 A structural diagram of a detection circuit provided in one embodiment of the present application is shown in FIG. Figure 1 As shown, the detection circuit includes: a bandgap circuit 20, a voltage divider circuit 30, an amplifier circuit 40, a limiter circuit 50, a comparison circuit 60 and a judgment circuit 70.

[0035] The bandgap circuit 20 may be an integrated chip or a specific circuit, etc., which is not particularly limited in the present embodiment. In order to improve the integration of the detection circuit, the following explanation is made by taking the bandgap circuit 20 as an integrated chip as an example.

[0036] A first end of the bandgap circuit 20 is electrically connected to a first end of the power supply 10, a second end of the bandgap circuit 20 is electrically connected to a first end of the comparison circuit 60, a third end of the bandgap circuit 20 is electrically connected to a first end of the voltage divider circuit 30 and a first end of the amplifier circuit 40, and a fourth end of the bandgap circuit 20 is electrically connected to a second end of the limiter circuit 50 and a second end of the comparison circuit 60.

[0037] A second end of the voltage divider circuit 30 is connected to the ground GND, a first end of the limiter circuit 50 is electrically connected to the second end of the power supply 10, a third end of the comparison circuit 60 is electrically connected to the second end of the power supply 10, a fourth end of the comparison circuit 60 is electrically connected to a first end of the judgment circuit 70, a second end of the amplification circuit 40 is electrically connected to a second end of the judgment circuit 70, and a third end of the judgment circuit 70 is electrically connected to an enabling circuit (not shown).

[0038] The power supply 10 can provide a first power supply voltage VCC to the detection circuit.

[0039] The voltage value of the first power supply voltage VCC increases with time, starting from 0V and ending up in a safe range.

[0040] Among them, the safety range can be above 3V (including 3V), and the safety range can also be other voltage values. The embodiment of the present application does not specifically limit this. The following example uses the safety range of above 3V (including 3V) as an example for exemplary explanation.

[0041] The bandgap circuit 20 can generate a first reference signal VBG, a pull-up current signal IFP, and a pull-down current signal IFN according to the first power voltage VCC, and output the first reference signal VBG and the pull-down current signal IFN to the comparison circuit 60 , while outputting the pull-up current signal IFP to the voltage divider circuit 30 .

[0042] The establishment of the first reference signal VBG depends on the first power supply voltage VCC. The first reference signal VBG can be correctly established only when the first power supply voltage VCC is within a safe range.

[0043] The pull-up current signal IFP and the pull-down current signal IFN both increase with time and start to build up from 0 ampere (A).

[0044] The limiter circuit 50 can generate a limiter voltage VD and generate a first threshold voltage V according to the first power supply voltage VCC and the limiter voltage VD. YZ1 and outputs the first threshold voltage V to the comparison circuit 60 YZ1 .

[0045] The voltage value of the limiting voltage VD is not specifically set and is determined according to actual conditions.

[0046] The first threshold voltage V is generated according to the first power supply voltage VCC and the limit voltage VD. YZ1 Including: the first threshold V YZ1 is equal to the difference between the first power supply voltage VCC and the limiting voltage VD. YZ1 =VCC-VD.

[0047] The comparison circuit 60 can be configured to generate a first threshold value V YZ1 The comparison signal OP_OK is generated by comparing the comparison signal with the voltage value of the first reference signal VBG, and the comparison signal OP_OK is output to the determination circuit 70 .

[0048] The comparison signal OP_OK includes a high level and a low level. When the comparison signal OP_OK outputs a high level, it indicates that the voltage value of the first reference signal VBG is less than the first threshold value V YZ1 When the comparison signal OP_OK outputs a low level, it indicates that the voltage value of the first reference signal VBG is greater than or equal to the first threshold value V YZ1 It can be understood that, in the field of digital signals, the high level of the comparison signal OP_OK is represented by “1”, and the low level of the comparison signal OP_OK is represented by “0”.

[0049] Wherein, the voltage value of the first reference signal VBG is less than the first threshold value V YZ1 In the case of a voltage value of , it indicates that the voltage value of the first power supply voltage VCC provided by the power supply 10 is within a safe range (that is, the voltage value of the first power supply voltage VCC is greater than the second power supply voltage threshold). The voltage value of the first power supply voltage VCC within the safe range can correctly establish the first reference signal VBG to indicate that the subsequent enabling circuit can start working.

[0050] Wherein, the voltage value of the first reference signal VBG is greater than or equal to the first threshold value V YZ1In the case of a voltage value of , it indicates that the first power supply voltage VCC provided by the power supply 10 is not in a safe range (that is, the voltage value of the first power supply voltage VCC is less than or equal to the second power supply voltage threshold). In this case, the voltage value of the first power supply voltage VCC cannot correctly establish the first reference signal VBG, and the subsequent enabling circuit cannot start working.

[0051] The voltage value of the second power supply voltage threshold is equal to the voltage value of the safety range. The following explanation is given by taking the voltage value of the second power supply voltage threshold equal to 3 V as an example. It is understandable that when the voltage value of the safety range changes, the second power supply voltage threshold also changes.

[0052] The voltage divider circuit 30 may generate a pull-up voltage signal VIFP according to the pull-up current signal IFP, and output the pull-up voltage signal VIFP to the amplifying circuit 60 .

[0053] It can be understood that since the current value of the pull-up current signal IFP increases with time and starts to build from 0 ampere (A), the voltage value of the pull-up voltage signal VIFP also increases with time and starts to build from 0V.

[0054] The amplifier circuit 40 may generate a first bandgap signal BG_OK according to the pull-up voltage signal VIFP, and output the first bandgap signal BG_OK to the determination circuit 70 .

[0055] The first bandgap signal BG_OK includes a high level and a low level. When the pull-up voltage signal VIFP is greater than or equal to the first pull-up voltage signal threshold and less than the second pull-up voltage signal threshold, and when the pull-up voltage signal VIFP is greater than or equal to the second pull-up voltage signal threshold, the first bandgap signal BG_OK outputs a high level. When the pull-up voltage signal VIFP is less than the first pull-up voltage signal threshold, the first bandgap signal BG_OK outputs a low level. It will be understood that in the field of digital signals, a high level signal of the first bandgap signal BG_OK is represented by "1", and a low level signal of the first bandgap signal BG_OK is represented by "0".

[0056] The embodiment of the present application does not impose any particular limitation on the first pull-up voltage signal threshold and the second pull-up voltage signal threshold, which can be selected based on actual conditions.

[0057] When the first bandgap signal BG_OK outputs a low level, it indicates that the pull-up voltage signal VIFP begins to build up from 0V, i.e., the pull-up voltage signal VIFP = 0V. When the pull-up voltage signal VIFP is equal to the first pull-up voltage signal threshold, the first bandgap signal BG_OK = "1", indicating that the pull-up voltage signal VIFP begins to rise or has risen for a short period of time. When the pull-up voltage signal VIFP is greater than the first pull-up voltage signal threshold, or when the pull-up voltage signal VIFP is greater than the second pull-up voltage signal threshold, the first bandgap signal BG_OK = "1", indicating that the pull-up voltage signal VIFP continues to rise.

[0058] The determination circuit 70 may output a second bandgap signal BG_REDAY according to the first bandgap signal BG_OK and the comparison signal OP_OK.

[0059] The second bandgap signal BG_REDAY includes a first enable signal and a second enable signal. The first enable signal is used to instruct the second bandgap signal BG_REDAY to be output at a high level, and the second enable signal is used to instruct the second bandgap signal BG_REDAY to be output at a low level. It will be understood that in the field of digital signals, a high-level signal of the second bandgap signal BG_REDAY is represented by "1", and a low-level signal of the second bandgap signal BG_REDAY is represented by "0".

[0060] When the second bandgap signal BG_REDAY is output at a high level, it indicates that the first reference signal VBG has been correctly established and the subsequent enabling circuit can start working. When the second bandgap signal BG_REDAY is output at a low level, it indicates that the first reference signal VBG has not been correctly established and the subsequent enabling circuit cannot start working.

[0061] When the comparison circuit 60 detects that the voltage value of the first reference signal VBG is less than the first threshold voltage V YZ1 In the case of a voltage value of , the detection circuit is in the start-up phase. In the start-up phase, the detection circuit outputs a first enable signal to the enable circuit.

[0062] When the comparison circuit 60 detects that the voltage value of the first reference signal VBG is greater than or equal to the first threshold value V YZ1 In the case of a voltage value of, the first power supply voltage VCC output by the power supply 10 includes two cases, namely: case 1, the voltage value of the first power supply voltage VCC is less than the voltage value of the second power supply voltage threshold and is greater than or equal to the voltage value of the first power supply voltage threshold; case 2, the voltage value of the first power supply voltage VCC is less than the voltage value of the first power supply voltage threshold.

[0063] Among them, both Case 1 and Case 2 indicate that the first power supply voltage VCC is not within the safe range.

[0064] The voltage value of the first power supply voltage threshold is smaller than the voltage value of the second threshold power supply voltage.

[0065] Among them, the first power supply voltage threshold can be 2V, or it can be other voltage values ​​greater than 0V and less than the second threshold power supply voltage, etc. The embodiment of the present application does not specifically limit this. The following illustrative explanation is given using the first power supply voltage threshold being 2V as an example.

[0066] The first situation is called the pre-enabling stage, which is designed to reduce the occurrence of data loss caused by erroneous enabling of the enabling circuit. In the pre-enabling stage, the detection circuit outputs a second enabling signal to the enabling circuit.

[0067] The second situation is referred to as a shutdown phase. In the shutdown phase, the detection circuit also outputs a second enable signal to the enable circuit.

[0068] The following combination Figure 2 illustrate Figure 1 The working principle of the detection circuit is provided.

[0069] Figure 2 This is a schematic diagram of output results of different signals provided by an embodiment of the present application, such as Figure 2 As shown, during the shutdown phase, the voltage value of the first power supply voltage VCC starts at 0V and is less than 2V. The voltage value of the first reference signal VBG starts at 0V and is less than the critical value at which the first reference signal VBG tends to stabilize. The pull-up current signal IFP and the pull-down current signal IFN both start at 0A.

[0070] The pull-up current signal IFP starts at 0A and increases over time, but remains below a first pull-up current signal threshold. When the pull-up current signal IFP is less than the first pull-up current signal threshold, this corresponds to the pull-up voltage signal VIFP being less than the first pull-up voltage signal threshold. The first pull-up current signal threshold is not particularly limited in this embodiment and may be selected based on practical circumstances.

[0071] The voltage value of the first power supply voltage VCC is less than 2V, indicating that the voltage value of the first power supply voltage VCC is not within the safe range. In this case, the first reference signal VBG cannot be correctly established, and the voltage value of the first reference signal VBG is greater than or equal to the first threshold value V YZ1 The detection circuit needs to provide a second enabling signal to the enabling circuit so that the enabling circuit does not work.

[0072] Among them, when the first reference signal VBG is stable, the voltage value can be 1.2V or other voltage values, etc. The embodiment of the present application does not specifically limit this. The following illustrative description is given by taking the voltage value of the first reference signal VBG when stable as 1.2V as an example.

[0073] In this case, the comparison circuit 60 can output a low-level comparison signal (i.e., the comparison signal OP_OK=0) to the judgment circuit 70, the amplification circuit 40 can generate a low-level first bandgap signal (i.e., the first bandgap signal BG_OK=0) based on the pull-up voltage signal VIFP, and output the low-level first bandgap signal to the judgment circuit 70. The judgment circuit 70 can generate a second enable signal (i.e., the second bandgap signal BG_REDAY=0) based on the low-level comparison signal and the low-level first bandgap signal, and output the second enable signal to the enable circuit.

[0074] In the pre-start phase, the first power supply voltage VCC continues to rise, the first power supply voltage VCC is greater than or equal to 2V and less than 3V, the first reference signal VBG approaches 1.2V, the pull-up current signal IFP continues to rise, and the pull-down current signal IFN continues to rise.

[0075] As the current value of the pull-up current signal IFP continues to increase over time, it will become greater than or equal to the first pull-up current signal threshold and less than the second pull-up current signal threshold. When the current value of the pull-up current signal IFP is greater than or equal to the first pull-up current signal threshold and less than the second pull-up current signal threshold, this is equivalent to the pull-up voltage signal VIFP being greater than or equal to the first pull-up voltage signal threshold and less than the second pull-up voltage threshold. The second pull-up current signal threshold is not particularly limited in the present embodiment and may be selected based on actual circumstances.

[0076] The voltage value of the first power supply voltage VCC is greater than or equal to 2V and less than 3V, indicating that the first power supply voltage VCC is about to reach the safe range. In this case, the first reference signal VBG cannot be correctly established, and the voltage value of the first reference signal VBG is greater than or equal to the first threshold V YZ1 The detection circuit needs to provide a second enabling signal to the enabling circuit so that the enabling circuit does not work.

[0077] As an optional implementation, when the pull-up current signal IFP and the pull-down current signal IFN begin to rise, the first power supply voltage VCC has already risen to the first power supply voltage threshold.

[0078] To reduce the risk of the first reference signal VBG being incorrectly established due to errors, which could lead to the enable circuit being incorrectly activated and further data loss, as another optional embodiment, the first power supply voltage VCC is raised to the first power supply voltage threshold a short time after the pull-up current signal IFP and the pull-down current signal IFN begin to rise. The following example uses the case where the first power supply voltage VCC rises to the first power supply voltage threshold a short time after the pull-up current signal IFP and the pull-down current signal IFN begin to rise as an example.

[0079] During the pre-startup stage, the comparison circuit 60 can output a low-level comparison signal (i.e., the comparison signal OP_OK=0) to the judgment circuit 70, the amplification circuit 40 can generate a high-level first bandgap signal (i.e., the first bandgap signal BG_OK=1) based on the pull-up voltage signal VIFP, and output the high-level first bandgap signal to the judgment circuit 70. The judgment circuit 70 can generate a second enable signal (i.e., the second bandgap signal BG_REDAY=0) based on the low-level comparison signal and the high-level first bandgap signal, and output the second enable signal to the enable circuit.

[0080] During the start-up phase, the voltage value of the first power supply voltage VCC continues to rise, and the voltage value of the first power supply voltage VCC is greater than or equal to 3V. The first reference signal VBG remains stable, that is, the first reference signal VBG remains at 1.2V. The pull-up current signal IFP continues to rise, and the pull-down current signal IFN continues to rise.

[0081] The current value of the pull-up current signal IFP increases with time and becomes greater than or equal to the second pull-up current signal threshold. When the current value of the pull-up current signal IFP is greater than or equal to the second pull-up current signal threshold, the pull-up voltage signal VIFP is greater than or equal to the second pull-up voltage signal threshold.

[0082] The voltage value of the first power supply voltage VCC is greater than or equal to 3V, indicating that the first power supply voltage VCC has reached a safe range. In this case, the voltage value of the first power supply voltage VCC is sufficient to establish a correct first reference signal VBG. In this case, the voltage value of the first reference signal VBG is less than the first threshold value V YZ1 The detection circuit needs to provide a first enabling signal to the enabling circuit so that the enabling circuit starts working.

[0083] In this case, the comparison circuit 60 can output a high-level comparison signal (i.e., the comparison signal OP_OK=1) to the judgment circuit 70, the amplification circuit 40 can generate a high-level first bandgap signal (i.e., the first bandgap signal BG_OK=1) based on the pull-up voltage signal VIFP, and output the high-level first bandgap signal to the judgment circuit 70. The judgment circuit 70 can generate a first enable signal (i.e., the second bandgap signal BG_REDAY=1) based on the high-level comparison signal and the high-level first bandgap signal, and output the first enable signal to the enable circuit.

[0084] The detection circuit provided in the embodiment of the present application has the following advantages: first, regardless of whether the power supply is powered on quickly or slowly, it can ensure that the detection circuit will output an enable signal only after the first reference signal is correct, so that the enable circuit starts working. Therefore, the detection circuit provided in the embodiment of the present application has higher applicability (i.e., its universality is improved). Second, because the pre-startup phase is taken into account, when the first power supply voltage does not meet the safety range, the judgment circuit will not generate erroneous judgment logic, will not cause the enable circuit to be mistakenly turned on, and will not cause data loss or erroneous rewriting. Therefore, the accuracy of the detection circuit is improved. Third, due to the simple structure, the volume of the detection circuit is reduced, and the manufacturing cost is reduced.

[0085] Based on the description of the above embodiment, the voltage divider circuit 30 is described in detail below.

[0086] As an optional implementation, the voltage divider circuit 30 may include one or more voltage divider circuits, which is not particularly limited in the embodiment of the present application. The following explanation will be given by taking the voltage divider circuit 30 including two voltage divider circuits as an example.

[0087] Figure 3 A structural diagram of a detection circuit provided in one embodiment of the present application is shown in FIG. Figure 3 As shown, the detection circuit includes: a bandgap circuit 20, a voltage divider circuit 30, an amplifier circuit 40, a limiter circuit 50, a comparison circuit 60 and a judgment circuit 70.

[0088] The voltage dividing circuit 30 includes a first voltage dividing circuit 301 and a second voltage dividing circuit 302 .

[0089] Specifically, a first end of the bandgap circuit 20 is electrically connected to a first end of the power supply 10, a second end of the bandgap circuit 20 is electrically connected to a first end of the comparison circuit 60, a third end of the bandgap circuit 20 is electrically connected to a first end of the first voltage divider circuit 301 (i.e., a first end of the voltage divider circuit 30) and a first end of the amplifier circuit 40, and a fourth end of the bandgap circuit 20 is electrically connected to a second end of the limiter circuit 50 and a second end of the comparison circuit 60.

[0090] The second end of the first voltage divider circuit 301 is electrically connected to the first end of the second voltage divider circuit 302, the second end of the second voltage divider circuit 302 (i.e., the second end of the voltage divider circuit 30) is grounded GND, the first end of the limiter circuit 50 is electrically connected to the second end of the power supply 10, the third end of the comparison circuit 60 is electrically connected to the second end of the power supply 10, the fourth end of the comparison circuit 60 is electrically connected to the first end of the judgment circuit 70, the second end of the amplification circuit 40 is electrically connected to the second end of the judgment circuit 70, and the third end of the judgment circuit 70 is electrically connected to an enabling circuit (not shown).

[0091] The power supply 10 can provide a first power supply voltage VCC to the detection circuit.

[0092] The bandgap circuit 20 can generate a first reference signal VBG, a pull-up current signal IFP, and a pull-down current signal IFN according to the first power voltage VCC, and output the first reference signal VBG and the pull-down current signal IFN to the comparison circuit 60 , while outputting the pull-up current signal IFP to the voltage divider circuit 30 .

[0093] The limiter circuit 50 can generate a limiter voltage VD and generate a first threshold voltage V according to the first power supply voltage VCC and the limiter voltage VD. YZ1 and outputs the first threshold voltage V to the comparison circuit 60 YZ1 .

[0094] The comparison circuit 60 can be configured to generate a first threshold value V YZ1 The comparison signal OP_OK is generated by comparing the comparison signal with the voltage value of the first reference signal VBG, and the comparison signal OP_OK is output to the determination circuit 70 .

[0095] The first voltage divider circuit 301 can generate a first pull-up sub-voltage signal VIFP1 based on the pull-up current signal IFP, and the second voltage divider circuit 302 can generate a second pull-up sub-voltage signal VIFP2 based on the pull-up signal IFP. The voltage divider circuit 30 can generate a pull-up voltage signal VIFP based on the first pull-up sub-voltage signal VIFP1 and the second pull-up sub-voltage signal VIFP2, and output the pull-up voltage signal VIFP to the amplifier circuit 40.

[0096] The pull-up voltage signal VIFP may be generated according to the first pull-up sub-voltage signal VIFP1 and the second pull-up sub-voltage signal VIFP2, including: the pull-up voltage signal VIFP is equal to the sum of the first pull-up sub-voltage signal VIFP1 and the second pull-up sub-voltage signal VIFP2, that is, VIFP=VIFP1+VIFP2.

[0097] The voltage values ​​of the first pull-up sub-voltage signal VIFP1 and the second pull-up sub-voltage signal VIFP2 can be selected according to actual conditions, and are not particularly limited in this embodiment of the present application.

[0098] The voltage values ​​of the first pull-up sub-voltage signal VIFP1 and the second pull-up sub-voltage signal VIFP2 are also established starting from 0V.

[0099] The amplifier circuit 40 may generate a first bandgap signal BG_OK according to the pull-up voltage signal VIFP, and output the first bandgap signal BG_OK to the determination circuit 70 .

[0100] The determination circuit 70 may output a second bandgap signal BG_REDAY according to the first bandgap signal BG_OK and the comparison signal OP_OK.

[0101] The following combination Figure 2 illustrate Figure 3 The working principle of the detection circuit is provided.

[0102] Figure 2 This is a schematic diagram of output results of different signals provided by an embodiment of the present application, such as Figure 2 As shown, in the shutdown phase, the voltage value of the first power supply voltage VCC starts to build up from 0 V and is less than 2 V. The voltage value of the first reference signal VBG starts to build up from 0 V and is less than 1.2 V. The pull-up current signal IFP and the pull-down current signal IFN both start to build up from 0 A.

[0103] The pull-up current signal IFP is established from 0A, and the current value increases over time, but is less than the first pull-up current signal threshold. When the pull-up current signal IFP is less than the first pull-up current signal threshold, it is equivalent to the pull-up voltage signal VIFP being less than the first pull-up voltage signal threshold. The voltage value of the first power supply voltage VCC is less than 2V, indicating that the voltage value of the first power supply voltage VCC is not within the safe range. In this case, the first reference signal VBG cannot be correctly established, and the voltage value of the first reference signal VBG is greater than or equal to the first threshold V YZ1 The detection circuit needs to provide a second enabling signal to the enabling circuit so that the enabling circuit does not work.

[0104] In this case, the comparison circuit 60 can output a low-level comparison signal (i.e., the comparison signal OP_OK=0) to the judgment circuit 70, the amplification circuit 40 can generate a low-level first bandgap signal (i.e., the first bandgap signal BG_OK=0) based on the pull-up voltage signal VIFP, and output the low-level first bandgap signal to the judgment circuit 70. The judgment circuit 70 can generate a second enable signal (i.e., the second bandgap signal BG_REDAY=0) based on the low-level comparison signal and the low-level first bandgap signal, and output the second enable signal to the enable circuit.

[0105] In the pre-start phase, the first power supply voltage VCC continues to rise, the first power supply voltage VCC is greater than or equal to 2V and less than 3V, the first reference signal VBG approaches 1.2V, the pull-up current signal IFP continues to rise, and the pull-down current signal IFN continues to rise.

[0106] The current value of the pull-up current signal IFP continues to increase over time and will be greater than or equal to the first pull-up current signal threshold and less than the second pull-up current signal threshold. When the current value of the pull-up current signal IFP is greater than or equal to the first pull-up current signal threshold and less than the second pull-up current signal threshold, it is equivalent to the pull-up voltage signal VIFP being greater than or equal to the first pull-up voltage signal threshold and less than the second pull-up voltage threshold. The voltage value of the first power supply voltage VCC is greater than or equal to 2V and less than 3V, indicating that the first power supply voltage VCC is about to reach a safe range. In this case, the first reference signal VBG cannot be correctly established, and the voltage value of the first reference signal VBG is greater than or equal to the first threshold V YZ1 The detection circuit needs to provide a second enabling signal to the enabling circuit so that the enabling circuit does not work.

[0107] The first power voltage VCC rises to 2V (ie, the first power voltage threshold) a short time after the pull-up current signal IFP and the pull-down current signal IFN begin to rise.

[0108] During the pre-startup stage, the comparison circuit 60 can output a low-level comparison signal (i.e., the comparison signal OP_OK=0) to the judgment circuit 70, the amplification circuit 40 can generate a high-level first bandgap signal (i.e., the first bandgap signal BG_OK=1) based on the pull-up voltage signal VIFP, and output the high-level first bandgap signal to the judgment circuit 70. The judgment circuit 70 can generate a second enable signal (i.e., the second bandgap signal BG_REDAY=0) based on the low-level comparison signal and the high-level first bandgap signal, and output the second enable signal to the enable circuit.

[0109] During the start-up phase, the voltage value of the first power supply voltage VCC continues to rise, and the voltage value of the first power supply voltage VCC is greater than or equal to 3V. The first reference signal VBG remains stable, that is, the first reference signal VBG remains at 1.2V. The pull-up current signal IFP continues to rise, and the pull-down current signal IFN continues to rise.

[0110] The current value of the pull-up current signal IFP continues to increase over time and will be greater than or equal to the second pull-up current signal threshold. When the current value of the pull-up current signal IFP is greater than or equal to the second pull-up current signal threshold, it is equivalent to the pull-up voltage signal VIFP being greater than or equal to the second pull-up voltage signal threshold. The voltage value of the first power supply voltage VCC is greater than or equal to 3V, indicating that the first power supply voltage VCC has reached a safe range. In this case, the voltage value of the first power supply voltage VCC is sufficient to establish a correct first reference signal VBG. In this case, the voltage value of the first reference signal VBG is less than the first threshold V YZ1 The detection circuit needs to provide a first enabling signal to the enabling circuit so that the enabling circuit starts working.

[0111] In this case, the comparison circuit 60 can output a high-level comparison signal (i.e., the comparison signal OP_OK=1) to the judgment circuit 70, the amplification circuit 40 can generate a high-level first bandgap signal (i.e., the first bandgap signal BG_OK=1) based on the pull-up voltage signal VIFP, and output the high-level first bandgap signal to the judgment circuit 70. The judgment circuit 70 can generate a first enable signal (i.e., the second bandgap signal BG_REDAY=1) based on the high-level comparison signal and the high-level first bandgap signal, and output the first enable signal to the enable circuit.

[0112] The detection circuit provided in the embodiments of the present application, first, ensures that, regardless of whether the power supply is powered on quickly or slowly, the detection circuit outputs an enable signal only after the first reference signal VBG is correct, causing the enable circuit to begin operation. Therefore, the detection circuit provided in the embodiments of the present application has greater applicability (i.e., improved universality). Second, because it takes into account the pre-startup phase, if the first power supply voltage does not meet the safety range, the judgment circuit will not generate erroneous judgment logic, will not cause the enable circuit to be mistakenly turned on, and will not cause data loss or erroneous overwriting. Therefore, the detection circuit's detection accuracy is improved. Third, due to its simple structure, the detection circuit is reduced in size, reducing manufacturing costs.

[0113] Based on the description of the above embodiment, the amplifier circuit 40 is described in detail below.

[0114] As an optional embodiment, the amplifier circuit 40 may include two amplifier circuits. It is understandable that the number of amplifier circuits included in the amplifier circuit 40 may be increased or decreased according to actual conditions, and this embodiment of the present application does not specifically limit this. The following explanation will be given by taking the amplifier circuit 40 including two amplifier circuits as an example.

[0115] Figure 4 A structural diagram of a detection circuit provided in one embodiment of the present application is shown in FIG. Figure 4 As shown, the detection circuit includes: a bandgap circuit 20, a voltage divider circuit 30, an amplifier circuit 40, a limiter circuit 50, a comparison circuit 60 and a judgment circuit 70.

[0116] The voltage dividing circuit 30 includes a first voltage dividing circuit 301 and a second voltage dividing circuit 302 .

[0117] The amplifier circuit 40 includes a first amplifier circuit 401 and a second amplifier circuit 402 .

[0118] Specifically, a first end of the bandgap circuit 20 is electrically connected to a first end of the power supply 10, a second end of the bandgap circuit 20 is electrically connected to a first end of the comparison circuit 60, a third end of the bandgap circuit 20 is electrically connected to a first end of the first voltage divider circuit 301 (i.e., a first end of the voltage divider circuit 30) and a first end of the first amplifier circuit 401 (i.e., a first end of the amplifier circuit 40), and a fourth end of the bandgap circuit 20 is electrically connected to a second end of the limiter circuit 50 and a second end of the comparison circuit 60. A second end of the first amplifier circuit 401 is electrically connected to a first end of the second amplifier circuit 402.

[0119] The second end of the first voltage divider circuit 301 is electrically connected to the first end of the second voltage divider circuit 302, the second end of the second voltage divider circuit 302 (i.e., the second end of the voltage divider circuit 300) is grounded GND, the first end of the limiter circuit 50 is electrically connected to the second end of the power supply 10, the third end of the comparison circuit 60 is electrically connected to the second end of the power supply 10, the fourth end of the comparison circuit 60 is electrically connected to the first end of the judgment circuit 70, the second end of the second amplifying circuit 402 (i.e., the second end of the amplifying circuit 40) is electrically connected to the second end of the judgment circuit 70, and the third end of the judgment circuit 70 is electrically connected to an enabling circuit (not shown).

[0120] The power supply 10 can provide a first power supply voltage VCC to the detection circuit.

[0121] The bandgap circuit 20 can generate a first reference signal VBG, a pull-up current signal IFP, and a pull-down current signal IFN according to the first power voltage VCC, and output the first reference signal VBG and the pull-down current signal IFN to the comparison circuit 60 , while outputting the pull-up current signal IFP to the voltage divider circuit 30 .

[0122] The limiter circuit 50 can generate a limiter voltage VD and generate a first threshold voltage V according to the first power supply voltage VCC and the limiter voltage VD. YZ1 and outputs the first threshold voltage V to the comparison circuit 60 YZ1 .

[0123] The comparison circuit 60 can be configured to generate a first threshold value V YZ1 The comparison signal OP_OK is generated by comparing the comparison signal with the voltage value of the first reference signal VBG, and the comparison signal OP_OK is output to the determination circuit 70 .

[0124] The first voltage divider circuit 301 can generate a first pull-up sub-voltage signal VIFP1 based on the pull-up current signal IFP, the second voltage divider circuit 302 can generate a second pull-up sub-voltage signal VIFP2 based on the pull-up signal IFP, and the voltage divider circuit 30 can generate a pull-up voltage signal VIFP based on the first pull-up sub-voltage signal VIFP1 and the second pull-up sub-voltage signal VIFP2, and output the pull-up voltage signal VIFP to the amplification circuit 40.

[0125] The first amplifier circuit 401 performs a first-stage amplification on the pull-up voltage signal VIFP, and the second amplifier circuit 402 performs a second-stage amplification on the pull-up voltage signal VIFP to generate a first bandgap signal BG_OK, and outputs the first bandgap signal BG_OK to the determination circuit 70 .

[0126] The determination circuit 70 may output a second bandgap signal BG_REDAY according to the first bandgap signal BG_OK and the comparison signal OP_OK.

[0127] The following combination Figure 2 illustrate Figure 4 The working principle of the detection circuit is provided.

[0128] Figure 2 This is a schematic diagram of output results of different signals provided by an embodiment of the present application, such as Figure 2 As shown, in the shutdown phase, the voltage value of the first power supply voltage VCC starts to build up from 0 V and is less than 2 V. The voltage value of the first reference signal VBG starts to build up from 0 V and is less than 1.2 V. The pull-up current signal IFP and the pull-down current signal IFN both start to build up from 0 A.

[0129] The pull-up current signal IFP is established from 0A, and the current value increases over time, but is less than the first pull-up current signal threshold. When the pull-up current signal IFP is less than the first pull-up current signal threshold, it is equivalent to the pull-up voltage signal VIFP being less than the first pull-up voltage signal threshold. The voltage value of the first power supply voltage VCC is less than 2V, indicating that the voltage value of the first power supply voltage VCC is not within the safe range. In this case, the first reference signal VBG cannot be correctly established, and the voltage value of the first reference signal VBG is greater than or equal to the first threshold V YZ1 The detection circuit needs to provide a second enabling signal to the enabling circuit so that the enabling circuit does not work.

[0130] In this case, the comparison circuit 60 can output a low-level comparison signal (i.e., the comparison signal OP_OK=0) to the judgment circuit 70, the first amplifier circuit 401 can amplify the pull-up voltage signal VIFP to generate a second sub-amplified signal, and output the second sub-amplified signal to the second amplifier circuit 402. The second amplifier circuit 402 can amplify the second sub-amplified signal to generate a low-level first bandgap signal (i.e., the first bandgap signal BG_OK=0), and output the low-level first bandgap signal to the judgment circuit 70. The judgment circuit 70 can generate a second enable signal (i.e., the second bandgap signal BG_REDAY=0) based on the low-level comparison signal and the low-level first bandgap signal, and output the second enable signal to the enable circuit.

[0131] In the pre-start phase, the first power supply voltage VCC continues to rise, the first power supply voltage VCC is greater than or equal to 2V and less than 3V, the first reference signal VBG approaches 1.2V, the pull-up current signal IFP continues to rise, and the pull-down current signal IFN continues to rise.

[0132] The current value of the pull-up current signal IFP continues to increase over time and will be greater than or equal to the first pull-up current signal threshold and less than the second pull-up current signal threshold. When the current value of the pull-up current signal IFP is greater than or equal to the first pull-up current signal threshold and less than the second pull-up current signal threshold, it is equivalent to the pull-up voltage signal VIFP being greater than or equal to the first pull-up voltage signal threshold and less than the second pull-up voltage threshold. The voltage value of the first power supply voltage VCC is greater than or equal to 2V and less than 3V, indicating that the first power supply voltage VCC is about to reach a safe range. In this case, the first reference signal VBG cannot be correctly established, and the voltage value of the first reference signal VBG is greater than or equal to the first threshold V YZ1 The detection circuit needs to provide a second enabling signal to the enabling circuit so that the enabling circuit does not work.

[0133] The first power voltage VCC rises to 2V (ie, the first power voltage threshold) a short time after the pull-up current signal IFP and the pull-down current signal IFN begin to rise.

[0134] During the pre-startup phase, the comparison circuit 60 may output a low-level comparison signal (i.e., the comparison signal OP_OK=0) to the judgment circuit 70. The first amplification circuit 401 may amplify the pull-up voltage signal VIFP to generate a first sub-amplification signal, and output the first sub-amplification signal to the second amplification circuit 402. The second amplification circuit 402 may amplify the first sub-amplification signal to generate a high-level first bandgap signal (i.e., the first bandgap signal BG_OK=1), and output the high-level first bandgap signal to the judgment circuit 70. The judgment circuit 70 may generate a second enable signal (i.e., the second bandgap signal BG_REDAY=0) based on the low-level comparison signal and the high-level first bandgap signal, and output the second enable signal to the enable circuit.

[0135] In the start-up phase, the voltage value of the first power supply voltage VCC continues to rise, the voltage value of the first power supply voltage VCC is greater than or equal to 3V, the first reference signal VBG remains stable, the first reference signal VBG remains at 1.2V, the pull-up current signal IFP continues to rise, and the pull-down current signal IFN continues to rise.

[0136] The current value of the pull-up current signal IFP continues to increase over time and will be greater than or equal to the second pull-up current signal threshold. When the current value of the pull-up current signal IFP is greater than or equal to the second pull-up current signal threshold, it is equivalent to the pull-up voltage signal VIFP being greater than or equal to the second pull-up voltage signal threshold. The voltage value of the first power supply voltage VCC is greater than or equal to 3V, indicating that the first power supply voltage VCC has reached a safe range. In this case, the voltage value of the first power supply voltage VCC is sufficient to establish a correct first reference signal VBG. In this case, the voltage value of the first reference signal VBG is less than the first threshold V YZ1 The detection circuit needs to provide a first enabling signal to the enabling circuit so that the enabling circuit starts working.

[0137] In this case, the comparison circuit 60 can output a high-level comparison signal (i.e., the comparison signal OP_OK=1) to the judgment circuit 70, the first amplifier circuit 401 can amplify the pull-up voltage signal VIFP to generate a first sub-amplified signal, and output the first sub-amplified signal to the second amplifier circuit 402. The second amplifier circuit 402 can amplify the first sub-amplified signal to generate a high-level first bandgap signal (i.e., the first bandgap signal BG_OK=1), and output the high-level first bandgap signal to the judgment circuit 70. The judgment circuit 70 can generate a first enable signal (i.e., the second bandgap signal BG_REDAY=1) based on the high-level comparison signal and the high-level first bandgap signal, and output the first enable signal to the enable circuit.

[0138] The detection circuit provided in the embodiments of the present application, first, ensures that, regardless of whether the power supply is powered on quickly or slowly, the detection circuit outputs an enable signal only after the first reference signal VBG is correct, causing the enable circuit to begin operation. Therefore, the detection circuit provided in the embodiments of the present application has greater applicability (i.e., improved universality). Second, because it takes into account the pre-startup phase, if the first power supply voltage does not meet the safety range, the judgment circuit will not generate erroneous judgment logic, will not cause the enable circuit to be mistakenly turned on, and will not cause data loss or erroneous overwriting. Therefore, the detection circuit's detection accuracy is improved. Third, due to its simple structure, the detection circuit is reduced in size, reducing manufacturing costs.

[0139] Based on the description of the above embodiment, the amplitude limiting circuit 50 is described in detail below.

[0140] As an optional implementation, the limiter circuit 50 may include one or more limiter circuits, which is not particularly limited in the embodiment of the present application. The following explanation will be given by taking the example that the limiter circuit 50 includes two limiter circuits.

[0141] Figure 5 A structural diagram of a detection circuit provided in one embodiment of the present application is shown in FIG. Figure 5 As shown, the detection circuit includes: a bandgap circuit 20, a voltage divider circuit 30, an amplifier circuit 40, a limiter circuit 50, a comparison circuit 60 and a judgment circuit 70.

[0142] The voltage dividing circuit 30 includes a first voltage dividing circuit 301 and a second voltage dividing circuit 302 .

[0143] The amplifier circuit 40 includes a first amplifier circuit 401 and a second amplifier circuit 402 .

[0144] The amplitude limiting circuit 50 includes a first amplitude limiting circuit 501 and a second amplitude limiting circuit 502 .

[0145] Specifically, a first end of the bandgap circuit 20 is electrically connected to a first end of the power supply 10, a second end of the bandgap circuit 20 is electrically connected to a first end of the comparison circuit 60, a third end of the bandgap circuit 20 is electrically connected to a first end of the first voltage divider circuit 301 (i.e., a first end of the voltage divider circuit 30) and a first end of the first amplifier circuit 401 (i.e., a first end of the amplifier circuit 40), and a fourth end of the bandgap circuit 20 is electrically connected to a first end of the second limiter circuit 502 (i.e., a second end of the limiter circuit 50) and a second end of the comparison circuit 60. A second end of the first amplifier circuit 401 is electrically connected to a first end of the second amplifier circuit 402.

[0146] The second end of the first voltage divider circuit 301 is electrically connected to the first end of the second voltage divider circuit 302. The second end of the second voltage divider circuit 302 (i.e., the second end of the voltage divider circuit 300) is grounded to GND. The first end of the first limiter circuit 501 (i.e., the first end of the limiter circuit 500) is electrically connected to the second end of the power supply 10. The third end of the comparison circuit 60 is electrically connected to the second end of the power supply 10. The fourth end of the comparison circuit 60 is electrically connected to the first end of the determination circuit 70. The second end of the second amplification circuit 402 (i.e., the second end of the amplification circuit 40) is electrically connected to the second end of the determination circuit 70. The third end of the determination circuit 70 is electrically connected to an enabling circuit (not shown). The second end of the first limiter circuit 501 is electrically connected to the first end of the second limiter circuit 502.

[0147] The power supply 10 can provide a first power supply voltage VCC to the detection circuit.

[0148] The bandgap circuit 20 can generate a first reference signal VBG, a pull-up current signal IFP, and a pull-down current signal IFN according to the first power voltage VCC, and output the first reference signal VBG and the pull-down current signal IFN to the comparison circuit 60 , while outputting the pull-up current signal IFP to the voltage divider circuit 30 .

[0149] The first amplitude limiting circuit 501 may generate a first amplitude limiting voltage VD1 , and the second amplitude limiting circuit 502 may generate a second amplitude limiting voltage VD2 .

[0150] The embodiment of the present application does not impose any particular limitation on the voltage value of the first limiting voltage VD1 and the voltage value of the second limiting voltage VD2 , and the values ​​can be determined according to actual conditions.

[0151] When the amplitude limiting circuit 50 includes the first amplitude limiting circuit 501 and the second amplitude limiting circuit 502 , the amplitude limiting voltage VD is equal to the sum of the first amplitude limiting voltage VD1 and the second amplitude limiting voltage VD2 , that is, VD=VD1+VD2 .

[0152] The amplitude limiting circuit 50 generates a first threshold voltage V according to the first power supply voltage VCC and the amplitude limiting voltage VD. YZ1 Including: first threshold voltage V YZ1 Equal to the difference between the first power supply voltage VCC and the limiting voltage VD, that is, V YZ1 =VCC-VD. In the case where the amplitude limiting circuit 50 includes a first amplitude limiting circuit 501 and a second amplitude limiting circuit 502, the first threshold voltage V YZ1 = The first power supply voltage VCC minus the sum of the first limit voltage VD1 and the second limit voltage VD2, that is, V YZ1 =VCC-(VD1+VD2).

[0153] The comparison circuit 60 can be configured to generate a first threshold value V YZ1The comparison signal OP_OK is generated by comparing the comparison signal with the voltage value of the first reference signal VBG, and the comparison signal OP_OK is output to the determination circuit 70 .

[0154] The first voltage divider circuit 301 can generate a first pull-up sub-voltage signal VIFP1 based on the pull-up current signal IFP, the second voltage divider circuit 302 can generate a second pull-up sub-voltage signal VIFP2 based on the pull-up signal IFP, and the voltage divider circuit 30 can generate a pull-up voltage signal VIFP based on the first pull-up sub-voltage signal VIFP1 and the second pull-up sub-voltage signal VIFP2, and output the pull-up voltage signal VIFP to the amplification circuit 40.

[0155] The first amplifier circuit 401 performs a first-stage amplification on the pull-up voltage signal VIFP, and the second amplifier circuit 402 performs a second-stage amplification on the pull-up voltage signal VIFP to generate a first bandgap signal BG_OK, and outputs the first bandgap signal BG_OK to the determination circuit 70 .

[0156] The determination circuit 70 may output a second bandgap signal BG_REDAY according to the first bandgap signal BG_OK and the comparison signal OP_OK.

[0157] The following combination Figure 2 illustrate Figure 5 The working principle of the detection circuit is provided.

[0158] Figure 2 This is a schematic diagram of output results of different signals provided by an embodiment of the present application, such as Figure 2 As shown, during the shutdown phase, the voltage value of the first power supply voltage VCC starts at 0V and is less than 2V. The voltage value of the first reference signal VBG starts at 0V and is less than the critical value at which the first reference signal VBG tends to stabilize. The pull-up current signal IFP and the pull-down current signal IFN both start at 0A.

[0159] The pull-up current signal IFP is established from 0A, and the current value increases over time, but is less than the first pull-up current signal threshold. When the pull-up current signal IFP is less than the first pull-up current signal threshold, it is equivalent to the pull-up voltage signal VIFP being less than the first pull-up voltage signal threshold. The voltage value of the first power supply voltage VCC is less than 2V, indicating that the voltage value of the first power supply voltage VCC is not within the safe range. In this case, the first reference signal VBG cannot be correctly established, and the voltage value of the first reference signal VBG is greater than or equal to the first threshold V YZ1 The detection circuit needs to provide a second enabling signal to the enabling circuit so that the enabling circuit does not work.

[0160] In this case, the comparison circuit 60 can output a low-level comparison signal (i.e., the comparison signal OP_OK=0) to the judgment circuit 70, the first amplifier circuit 401 can amplify the pull-up voltage signal VIFP to generate a second sub-amplified signal, and output the second sub-amplified signal to the second amplifier circuit 402. The second amplifier circuit 402 can amplify the second sub-amplified signal to generate a low-level first bandgap signal (i.e., the first bandgap signal BG_OK=0), and output the low-level first bandgap signal to the judgment circuit 70. The judgment circuit 70 can generate a second enable signal (i.e., the second bandgap signal BG_REDAY=0) based on the low-level comparison signal and the low-level first bandgap signal, and output the second enable signal to the enable circuit.

[0161] In the pre-start phase, the first power supply voltage VCC continues to rise, the first power supply voltage VCC is greater than or equal to 2V and less than 3V, the first reference signal VBG approaches 1.2V, the pull-up current signal IFP continues to rise, and the pull-down current signal IFN continues to rise.

[0162] The current value of the pull-up current signal IFP continues to increase over time and will be greater than or equal to the first pull-up current signal threshold and less than the second pull-up current signal threshold. When the current value of the pull-up current signal IFP is greater than or equal to the first pull-up current signal threshold and less than the second pull-up current signal threshold, it is equivalent to the pull-up voltage signal VIFP being greater than or equal to the first pull-up voltage signal threshold and less than the second pull-up voltage threshold. The voltage value of the first power supply voltage VCC is greater than or equal to 2V and less than 3V, indicating that the first power supply voltage VCC is about to reach a safe range. In this case, the first reference signal VBG cannot be correctly established, and the voltage value of the first reference signal VBG is greater than or equal to the first threshold V YZ1 The detection circuit needs to provide a second enabling signal to the enabling circuit so that the enabling circuit does not work.

[0163] The first power voltage VCC rises to 2V (ie, the first power voltage threshold) a short time after the pull-up current signal IFP and the pull-down current signal IFN begin to rise.

[0164] During the pre-startup phase, the comparison circuit 60 may output a low-level comparison signal (i.e., the comparison signal OP_OK=0) to the judgment circuit 70, the first amplifier circuit 401 may amplify the pull-up voltage signal VIFP to generate a first sub-amplified signal, and output the first sub-amplified signal to the second amplifier circuit 402, the second amplifier circuit 402 may amplify the first sub-amplified signal to generate a high-level first bandgap signal (i.e., the first bandgap signal BG_OK=1), and output the high-level first bandgap signal to the judgment circuit 70, and the judgment circuit 70 may generate a second enable signal (i.e., the second bandgap signal BG_REDAY=0) based on the low-level comparison signal and the high-level first bandgap signal, and output the second enable signal to the enable circuit.

[0165] In the start-up phase, the voltage value of the first power supply voltage VCC continues to rise, the voltage value of the first power supply voltage VCC is greater than or equal to 3V, the first reference signal VBG remains stable, the first reference signal VBG remains at 1.2V, the pull-up current signal IFP continues to rise, and the pull-down current signal IFN continues to rise.

[0166] The current value of the pull-up current signal IFP continues to increase over time and will be greater than or equal to the second pull-up current signal threshold. When the current value of the pull-up current signal IFP is greater than or equal to the second pull-up current signal threshold, it is equivalent to the pull-up voltage signal VIFP being greater than or equal to the second pull-up voltage signal threshold. The voltage value of the first power supply voltage VCC is greater than or equal to 3V, indicating that the first power supply voltage VCC has reached a safe range. In this case, the voltage value of the first power supply voltage VCC is sufficient to establish a correct first reference signal VBG. In this case, the voltage value of the first reference signal VBG is less than the first threshold V YZ1 The detection circuit needs to provide a first enabling signal to the enabling circuit so that the enabling circuit starts working.

[0167] In this case, the comparison circuit 60 can output a high-level comparison signal (i.e., the comparison signal OP_OK=1) to the judgment circuit 70, the first amplifier circuit 401 can amplify the pull-up voltage signal VIFP to generate a first sub-amplified signal, and output the first sub-amplified signal to the second amplifier circuit 402. The second amplifier circuit 402 can amplify the first sub-amplified signal to generate a high-level first bandgap signal (i.e., the first bandgap signal BG_OK=1), and output the high-level first bandgap signal to the judgment circuit 70. The judgment circuit 70 can generate a first enable signal (i.e., the second bandgap signal BG_REDAY=1) based on the high-level comparison signal and the high-level first bandgap signal, and output the first enable signal to the enable circuit.

[0168] The detection circuit provided in the embodiments of the present application, first, ensures that, regardless of whether the power supply is powered on quickly or slowly, the detection circuit outputs an enable signal only after the first reference signal VBG is correct, causing the enable circuit to begin operation. Therefore, the detection circuit provided in the embodiments of the present application has greater applicability (i.e., improved universality). Second, because it takes into account the pre-startup phase, if the first power supply voltage does not meet the safety range, the judgment circuit will not generate erroneous judgment logic, will not cause the enable circuit to be mistakenly turned on, and will not cause data loss or erroneous overwriting. Therefore, the detection circuit's detection accuracy is improved. Third, due to its simple structure, the detection circuit is reduced in size, reducing manufacturing costs.

[0169] Based on the description of the above embodiment, the first voltage divider circuit 301, the second voltage divider circuit 302, the first amplifier circuit 401, the second amplifier circuit 402, the first limiter circuit 501, the second limiter circuit 502, the comparison circuit 60 and the judgment circuit 70 are described in detail below.

[0170] To reduce manufacturing costs, as an optional implementation, the first voltage divider circuit 301 includes a first resistor R1, and the second voltage divider circuit includes a second resistor R2. The resistance values ​​of the first resistor R1 and the second resistor R2 are not particularly limited in this embodiment of the application and can be selected based on actual conditions.

[0171] As an optional implementation, the first amplifier circuit 401 may include a Schmitt amplifier SMIT, and the second amplifier circuit 402 may include an inverter INV. As another optional implementation, the first amplifier circuit 401 may also be another type of amplifier chip or specific circuit, which is not particularly limited in this embodiment of the present application. As another optional implementation, the second amplifier circuit 402 may also be another type of amplifier chip or specific circuit, which is not particularly limited in this embodiment of the present application. The following example uses the first amplifier circuit 401 including the Schmitt amplifier SMIT and the second amplifier circuit 402 including the inverter INV as an example for exemplary description.

[0172] To reduce manufacturing costs, as an optional implementation, the first amplitude limiting circuit 501 may include a first diode D1, and the second amplitude limiting circuit 502 may include a second diode D2. It is understood that the first amplitude limiting circuit 501 may also be another chip or circuit with an amplitude limiting function, and this embodiment of the present application does not specifically limit this. The following exemplary description will be given using the first amplitude limiting circuit 501 being the first diode D1 as an example. It is understood that the second amplitude limiting circuit 502 may also be another chip or circuit with an amplitude limiting function, and this embodiment of the present application does not specifically limit this. The following exemplary description will be given using the second amplitude limiting circuit 502 being the second diode D2 as an example.

[0173] As an optional implementation, the comparison circuit 60 includes a first operational amplifier OP.

[0174] To reduce manufacturing costs and simplify the detection circuit, the judgment circuit 70 may include a first AND gate circuit YM. It is understood that the judgment circuit 70 may also be other digital circuit chips with logical relationships or specific circuit structures, and the present embodiment is not particularly limited thereto. The following description will take the judgment circuit 70 as the first AND gate circuit YM as an example.

[0175] Figure 6 A structural diagram of a detection circuit provided in one embodiment of the present application is shown in FIG. Figure 6 As shown, the detection circuit includes: a bandgap circuit 20, a voltage divider circuit 30, an amplifier circuit 40, a limiter circuit 50, a comparison circuit 60 and a judgment circuit 70.

[0176] The voltage dividing circuit 30 includes a first voltage dividing circuit 301 and a second voltage dividing circuit 302 .

[0177] The amplifier circuit 40 includes a first amplifier circuit 401 and a second amplifier circuit 402 .

[0178] The amplitude limiting circuit 50 includes a first amplitude limiting circuit 501 and a second amplitude limiting circuit 502 .

[0179] The first voltage divider circuit 301 includes a first resistor R1 , and the second voltage divider circuit 302 includes a second resistor R2 .

[0180] The first amplifier circuit 401 includes a Schmitt amplifier SMIT, and the second amplifier circuit 402 includes an inverter INV.

[0181] The first amplitude limiting circuit 501 includes a first diode D1 , and the second amplitude limiting circuit 502 includes a second diode D2 .

[0182] Specifically, a first end of the bandgap circuit 20 is electrically connected to a first end of the power supply 10, a second end of the bandgap circuit 20 is electrically connected to an inverting input end of the first operational amplifier OP (i.e., a first end of the comparison circuit 60), a third end of the bandgap circuit 20 is electrically connected to a first end of the first resistor R1 (i.e., a first end of the first voltage divider circuit 301) and a first end of the Schmitt amplifier SMIT (i.e., a first end of the first amplification circuit 401), and a fourth end of the bandgap circuit 20 is electrically connected to a cathode of the second diode D2 (i.e., a first end of the second limiter circuit 502) and a non-inverting input end of the first operational amplifier OP (i.e., a second end of the comparison circuit 60).

[0183] The second end of the first resistor R1 (i.e., the second end of the first amplifier circuit 401) is electrically connected to the first end of the second resistor R2 (i.e., the first end of the second amplifier circuit 402). The cathode of the first diode D1 (i.e., the second end of the first limiter circuit 501) is electrically connected to the anode of the second diode D2 (i.e., the first end of the second limiter circuit 502). The output end of the Schmitt amplifier SMIT (i.e., the second end of the first amplifier circuit 401) is electrically connected to the input end of the inverter INV (i.e., the first end of the second amplifier circuit 402).

[0184] Those skilled in the art can clearly know that the non-inverting input terminal of the operational amplifier is represented by “+”, and the inverting input terminal of the operational amplifier is represented by “-”.

[0185] The second end of the second resistor R2 (i.e., the second end of the second voltage divider circuit 302) is grounded GND, the anode of the first diode D1 (i.e., the first end of the first limiter circuit 501) is electrically connected to the second end of the power supply 10, the voltage end of the first operational amplifier OP (i.e., the third end of the comparison circuit 60) is electrically connected to the second end of the power supply 10, the output end of the first operational amplifier OP (i.e., the fourth end of the comparison circuit 60) is electrically connected to the input end of the first AND gate circuit YM (i.e., the first end of the judgment circuit 70), the output end of the inverter INV (i.e., the second end of the second amplification circuit 402) is electrically connected to the second end of the first AND gate circuit YM (i.e., the second end of the judgment circuit 70), and the output end of the first AND gate circuit YM (i.e., the third end of the judgment circuit 70) is electrically connected to an enable circuit (not shown).

[0186] The power supply 10 can provide a first power supply voltage VCC to the detection circuit.

[0187] The bandgap circuit 20 can generate a first reference signal VBG, a pull-up current signal IFP and a pull-down current signal IFN according to the first power supply voltage VCC, and output the first reference signal VBG to the inverting input terminal of the first operational amplifier OP, and output the pull-down current signal IFN to the non-inverting input terminal of the first operational amplifier OP. The bandgap circuit 20 can also output the pull-up current signal IFP to the first resistor R1 and the second resistor R2.

[0188] The first diode D1 may generate a first clipping voltage VD1 , and the second diode D2 may generate a second clipping voltage VD2 .

[0189] When the power supply 10 provides the first power supply voltage VCC to the limiting circuit 50 in the detection circuit, the first diode D1 and the second diode D2 limit the first power supply voltage VCC. Finally, the voltage outputted by the cathode of the second diode D2 is: VCC-(VD1+VD2).

[0190] The first operational amplifier OP can be configured toYZ1 The comparison signal OP_OK is generated by comparing the comparison signal with the voltage value of the first reference signal VBG, and the comparison signal OP_OK is output to the determination circuit 70 .

[0191] The first resistor R1 can generate a first pull-up sub-voltage signal VIFP1 according to the pull-up current signal IFP, the second resistor R2 can generate a second pull-up sub-voltage signal VIFP2 according to the pull-up signal IFP, and the voltage divider circuit 30 can generate a pull-up voltage signal VIFP according to the first pull-up sub-voltage signal VIFP1 and the second pull-up sub-voltage signal VIFP2, and output the pull-up voltage signal VIFP to the amplification circuit 40.

[0192] The Schmitt amplifier SMIT performs a first-stage amplification on the pull-up voltage signal VIFP, and the inverter INV performs a second-stage amplification on the pull-up voltage signal VIFP to generate a first bandgap signal BG_OK, and outputs the first bandgap signal BG_OK to the first AND gate circuit YM.

[0193] The first AND gate circuit YM may output a second bandgap signal BG_REDAY according to the first bandgap signal BG_OK and the comparison signal OP_OK.

[0194] The following combination Figure 2 illustrate Figure 6 The working principle of the detection circuit is provided.

[0195] Figure 2 This is a schematic diagram of output results of different signals provided by an embodiment of the present application, such as Figure 2 As shown, during the shutdown phase, the voltage value of the first power supply voltage VCC starts at 0V and is less than 2V. The voltage value of the first reference signal VBG starts at 0V and is less than the critical value at which the first reference signal VBG tends to stabilize. The pull-up current signal IFP and the pull-down current signal IFN both start at 0A.

[0196] The pull-up current signal IFP is established from 0A, and the current value increases over time, but is less than the first pull-up current signal threshold. When the pull-up current signal IFP is less than the first pull-up current signal threshold, it is equivalent to the pull-up voltage signal VIFP being less than the first pull-up voltage signal threshold. The voltage value of the first power supply voltage VCC is less than 2V, indicating that the voltage value of the first power supply voltage VCC is not within the safe range. In this case, the first reference signal VBG cannot be correctly established, and the voltage value of the first reference signal VBG is greater than or equal to the first threshold V YZ1 The detection circuit needs to provide a second enabling signal to the enabling circuit so that the enabling circuit does not work.

[0197] In this case, the first operational amplifier OP can output a low-level comparison signal (i.e., comparison signal OP_OK=0) to the first AND gate circuit YM, the Schmidt amplifier SMIT can amplify the pull-up voltage signal VIFP to generate a second sub-amplified signal, and output the second sub-amplified signal to the inverter INV. The inverter INV can amplify the second sub-amplified signal to generate a low-level first bandgap signal (i.e., first bandgap signal BG_OK=0), and output the low-level first bandgap signal to the first AND gate circuit YM. The first AND gate circuit YM can generate a second enable signal (i.e., second bandgap signal BG_REDAY=0) based on the low-level comparison signal and the low-level first bandgap signal, and output the second enable signal to the enable circuit.

[0198] In the pre-start phase, the first power supply voltage VCC continues to rise, the first power supply voltage VCC is greater than or equal to 2V and less than 3V, the first reference signal VBG approaches 1.2V, the pull-up current signal IFP continues to rise, and the pull-down current signal IFN continues to rise.

[0199] As the current value of the pull-up current signal IFP continues to increase over time, it becomes greater than or equal to the first pull-up current signal threshold and less than the second pull-up current signal threshold. When the current value of the pull-up current signal IFP is greater than or equal to the first pull-up current signal threshold and less than the second pull-up current signal threshold, it is equivalent to the pull-up voltage signal VIFP being greater than or equal to the first pull-up voltage signal threshold and less than the second pull-up voltage threshold.

[0200] The voltage value of the first power supply voltage VCC is greater than or equal to 2V and less than 3V, indicating that the first power supply voltage VCC is about to reach the safe range. In this case, the first reference signal VBG cannot be correctly established. The voltage value of the first reference signal VBG is greater than or equal to the first threshold V YZ1 The detection circuit needs to provide a second enabling signal to the enabling circuit so that the enabling circuit does not work.

[0201] The first power voltage VCC rises to 2V (ie, the first power voltage threshold) a short time after the pull-up current signal IFP and the pull-down current signal IFN begin to rise.

[0202] During the pre-start phase, the first operational amplifier OP can output a low-level comparison signal (i.e., comparison signal OP_OK=0) to the first AND gate circuit YM, the Schmitt amplifier SMIT can amplify the pull-up voltage signal VIFP to generate a first sub-amplified signal, and output the first sub-amplified signal to the inverter INV. The inverter INV can amplify the first sub-amplified signal to generate a high-level first bandgap signal (i.e., first bandgap signal BG_OK=1), and output the high-level first bandgap signal to the first AND gate circuit YM. The first AND gate circuit YM can generate a second enable signal (i.e., second bandgap signal BG_REDAY=0) based on the low-level comparison signal and the high-level first bandgap signal, and output the second enable signal to the enable circuit.

[0203] In the start-up phase, the voltage value of the first power supply voltage VCC continues to rise, the voltage value of the first power supply voltage VCC is greater than or equal to 3V, the first reference signal VBG remains stable, the first reference signal VBG remains at 1.2V, the pull-up current signal IFP continues to rise, and the pull-down current signal IFN continues to rise.

[0204] The current value of the pull-up current signal IFP continues to increase over time and will be greater than or equal to the second pull-up current signal threshold. When the current value of the pull-up current signal IFP is greater than or equal to the second pull-up current signal threshold, it is equivalent to the pull-up voltage signal VIFP being greater than or equal to the second pull-up voltage signal threshold. The voltage value of the first power supply voltage VCC is greater than or equal to 3V, indicating that the first power supply voltage VCC has reached a safe range. In this case, the voltage value of the first power supply voltage VCC is sufficient to establish a correct first reference signal VBG. In this case, the voltage value of the first reference signal VBG is less than the first threshold V YZ1 The detection circuit needs to provide a first enabling signal to the enabling circuit so that the enabling circuit starts working.

[0205] In this case, the first operational amplifier OP can output a high-level comparison signal (i.e., comparison signal OP_OK=1) to the first AND gate circuit YM. The Schmitt amplifier SMIT can amplify the pull-up voltage signal VIFP to generate a first sub-amplified signal, and output the first sub-amplified signal to the inverter INV. The inverter INV can amplify the first sub-amplified signal to generate a high-level first bandgap signal (i.e., first bandgap signal BG_OK=1), and output the high-level first bandgap signal to the first AND gate circuit YM. The first AND gate circuit YM can generate a first enable signal (i.e., second bandgap signal BG_REDAY=1) based on the high-level comparison signal and the high-level first bandgap signal, and output the first enable signal to the enable circuit.

[0206] The detection circuit provided in the embodiments of the present application, first, ensures that, regardless of whether the power supply is powered on quickly or slowly, the detection circuit outputs an enable signal only after the first reference signal VBG is correct, causing the enable circuit to begin operation. Therefore, the detection circuit provided in the embodiments of the present application has greater applicability (i.e., improved universality). Second, because it takes into account the pre-startup phase, if the first power supply voltage does not meet the safety range, the judgment circuit will not generate erroneous judgment logic, will not cause the enable circuit to be mistakenly turned on, and will not cause data loss or erroneous overwriting. Therefore, the detection circuit's detection accuracy is improved. Third, due to its simple structure, the detection circuit is reduced in size, reducing manufacturing costs.

[0207] An embodiment of the present application further provides a power supply circuit, comprising: a power supply 10 and the detection circuit in any of the aforementioned embodiments.

[0208] The power supply circuit provided in the embodiment of the present application can achieve the same beneficial effects as the detection circuit in any of the aforementioned embodiments, and will not be repeated here.

[0209] An embodiment of the present application further provides a chip, comprising: a detection circuit as in any of the aforementioned embodiments, or a power supply circuit as in the aforementioned embodiments.

[0210] The chip provided in the embodiment of the present application can achieve the same beneficial effects as the detection circuit in any of the aforementioned embodiments, which will not be repeated here.

[0211] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, features specified as "first" or "second" may explicitly or implicitly include at least one of such features.

[0212] In addition, in the description of the present application, it should be understood that the terms "longitudinal", "horizontal", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "vertical", "top", "bottom", "inside", "outside", "axial", "radial", "circumferential", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application.

[0213] In addition, in this application, unless otherwise clearly specified and limited, the terms "connection", "connected", etc. should be understood in a broad sense. For example, it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be the internal connection between two elements or the interaction relationship between two elements. Unless otherwise clearly specified, ordinary technicians in this field can understand the specific meanings of the above terms in this application according to specific circumstances.

[0214] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A detection circuit, It is characterized in that The detection circuit comprises: a bandgap circuit, a voltage divider circuit, a limiter circuit, a comparison circuit, an amplifier circuit and a judgment circuit; The first end of the bandgap circuit is electrically connected to the first end of a power supply, and the power supply is used to provide a first power supply voltage to the detection circuit. The second end of the bandgap circuit is electrically connected to the first end of the comparison circuit. The third end of the bandgap circuit is electrically connected to the first end of the voltage divider circuit and the first end of the amplifier circuit respectively. The fourth end of the bandgap circuit is electrically connected to the second end of the limiter circuit and the second end of the comparison circuit respectively. The second end of the voltage divider circuit is grounded; the first end of the limiter circuit is electrically connected to the second end of the power supply; the third end of the comparison circuit is electrically connected to the second end of the power supply, and the fourth end of the comparison circuit is electrically connected to the first end of the judgment circuit; the second end of the amplifier circuit is electrically connected to the second end of the judgment circuit; and the third end of the judgment circuit is electrically connected to the enabling circuit; The bandgap circuit is used to generate a first reference signal, a pull-up current signal and a pull-down current signal according to the first power supply voltage, and output the first reference signal and the pull-down current signal to the comparison circuit, and further output the pull-up current signal to the voltage divider circuit; the first reference signal is output to the comparison circuit from the second end of the bandgap circuit, the pull-down current signal is output to the comparison circuit from the fourth end of the bandgap circuit, and the pull-up current signal is output to the voltage divider circuit from the third end of the bandgap circuit; The limiter circuit is used to generate a limiter voltage, generate a first threshold voltage according to the first power supply voltage and the limiter voltage, and output the first threshold voltage to the comparison circuit; The amplitude limiting circuit includes a first amplitude limiting circuit and a second amplitude limiting circuit, the first amplitude limiting circuit includes a first diode, and the second amplitude limiting circuit includes a second diode; The first end of the first limiter circuit is electrically connected to the second end of the power supply and the third end of the comparison circuit respectively, and the second end of the first limiter circuit is electrically connected to the first end of the second limiter circuit; the second end of the second limiter circuit is electrically connected to the fourth end of the bandgap circuit and the second end of the comparison circuit respectively; The comparison circuit is used to generate a comparison signal according to the first threshold voltage and the first reference signal, and output the comparison signal to the judgment circuit; The voltage divider circuit is used to generate a pull-up voltage signal according to the pull-up current signal, and output the pull-up voltage signal to the amplifying circuit; The amplifying circuit is used to generate a first bandgap signal according to the pull-up voltage signal, and output the first bandgap signal to the judging circuit; The amplifier circuit includes a first amplifier circuit and a second amplifier circuit, the first amplifier circuit includes a Schmidt amplifier, and the second amplifier circuit includes an inverter; The first end of the first amplifier circuit is electrically connected to the third end of the bandgap circuit and the first end of the voltage divider circuit respectively, the second end of the first amplifier circuit is electrically connected to the first end of the second amplifier circuit; the second end of the second amplifier circuit is electrically connected to the second end of the judgment circuit; The judgment circuit is used to, when the comparison signal is used to indicate that the voltage value of the first reference signal is less than the voltage value of the first threshold voltage, and when the first bandgap signal is used to indicate that the voltage value of the pull-up voltage signal is greater than or equal to the second pull-up voltage signal threshold, generate a first enable signal according to the comparison signal and the first bandgap signal, and output the first enable signal to the enable circuit; Among them, when the comparison signal is used to indicate that the voltage value of the first reference signal is less than the voltage value of the first threshold voltage, the comparison signal is output as a high level; when the first band gap signal is used to indicate that the voltage value of the pull-up voltage signal is greater than or equal to the second pull-up voltage signal threshold, the first band gap signal is output as the high level.

2. The detection circuit according to claim 1, It is characterized in that The judgment circuit is further configured to, when the comparison signal is used to indicate that the voltage value of the first reference signal is greater than or equal to the voltage value of the first threshold voltage, and when the first bandgap signal is used to indicate that the voltage value of the pull-up voltage signal is less than the second pull-up voltage signal threshold and greater than or equal to the first pull-up voltage signal threshold, generate a second enable signal according to the comparison signal and the first bandgap signal, and output the second enable signal to the enable circuit; Among them, when the comparison signal is used to indicate that the voltage value of the first reference signal is greater than or equal to the voltage value of the first threshold voltage, the comparison signal is output as a low level; when the first bandgap signal is used to indicate that the voltage value of the pull-up voltage signal is less than the second pull-up voltage signal threshold and greater than or equal to the first pull-up voltage signal threshold, the first bandgap signal is output as the high level.

3. The detection circuit according to claim 2, It is characterized in that The judgment circuit is further configured to, when the comparison signal is used to indicate that the voltage value of the first reference signal is greater than or equal to the voltage value of the first threshold voltage, and when the first bandgap signal is used to indicate that the voltage value of the pull-up voltage signal is less than the first pull-up voltage signal threshold, generate a second enable signal according to the comparison signal and the first bandgap signal, and output the second enable signal to the enable circuit; Wherein, when the first bandgap signal is used to indicate that the voltage value of the pull-up voltage signal is less than the first pull-up voltage signal threshold, the first bandgap signal is output as a low level.

4. The detection circuit according to claim 3, It is characterized in that The voltage dividing circuit comprises: a first voltage dividing circuit and a second voltage dividing circuit; The first end of the first voltage divider circuit is electrically connected to the third end of the bandgap circuit and the first end of the amplifier circuit respectively, the second end of the first voltage divider circuit is electrically connected to the first end of the second voltage divider circuit; the second end of the second voltage divider circuit is grounded; The pull-up voltage signal includes the sum of a first pull-up sub-voltage signal and a second pull-up sub-voltage signal; The first voltage divider circuit is used to generate the first pull-up sub-voltage signal according to the pull-up current signal; The second voltage divider circuit is used to generate the second pull-up sub-voltage signal according to the pull-up current signal.

5. The detection circuit according to claim 3, It is characterized in that In the case where the pull-up voltage signal is greater than or equal to the first pull-up voltage signal threshold, the first amplifier circuit is used to amplify the pull-up voltage signal to generate a first sub-amplified signal, and output the first sub-amplified signal to the second amplifier circuit; the second amplifier circuit is used to amplify the first sub-amplified signal to generate the high-level first bandgap signal, and output the high-level first bandgap signal to the judgment circuit; When the pull-up voltage signal is less than the first pull-up voltage signal threshold, the first amplifier circuit is used to amplify the pull-up voltage signal to generate a second sub-amplified signal, and output the second sub-amplified signal to the second amplifier circuit; the second amplifier circuit is used to amplify the second sub-amplified signal to generate the low-level first bandgap signal, and output the low-level first bandgap signal to the judgment circuit.

6. The detection circuit according to claim 3, It is characterized in that The first amplitude limiting circuit is used to generate a first amplitude limiting voltage; The second amplitude limiting circuit is used to generate a second amplitude limiting voltage; The limiting voltage includes the sum of a first limiting voltage and a second limiting voltage; Generating the first threshold voltage according to the first power supply voltage and the limit voltage includes: the first threshold voltage is equal to the difference between the first power supply voltage and the limit voltage.

7. The detection circuit according to any one of claims 3 to 6, It is characterized in that The comparison circuit includes a first operational amplifier; The non-inverting input terminal of the first operational amplifier is electrically connected to the fourth terminal of the bandgap circuit and the second terminal of the limiter circuit respectively, the inverting input terminal of the first operational amplifier is electrically connected to the second terminal of the bandgap circuit, the voltage terminal of the first operational amplifier is electrically connected to the first terminal of the limiter circuit and the second terminal of the power supply respectively, and the output terminal of the first operational amplifier is electrically connected to the first terminal of the judgment circuit; The first operational amplifier is used to generate the comparison signal according to the first threshold voltage and the first reference signal, including: when the first reference signal is less than the first threshold voltage, outputting the high-level comparison signal to the judgment circuit; When the first reference signal is greater than or equal to the first threshold voltage, the low-level comparison signal is output to the determination circuit.

8. The detection circuit according to claim 7, It is characterized in that The judgment circuit includes a first AND gate circuit; A first end of the first AND gate circuit is electrically connected to an output end of the first operational amplifier, a second end of the first AND gate circuit is electrically connected to a second end of the amplifier circuit, and an output end of the first AND gate circuit is electrically connected to the enabling circuit; The first AND gate circuit is used to generate the first enable signal according to the high-level comparison signal and the high-level first bandgap signal, and output the first enable signal to the enable circuit; The first AND gate circuit is further used to generate the second enable signal according to the low-level comparison signal and the high-level first bandgap signal, and output the second enable signal to the enable circuit; The first AND gate circuit is further configured to generate the second enable signal according to the low-level comparison signal and the low-level first bandgap signal, and output the second enable signal to the enable circuit.

9. A power supply circuit, It is characterized in that include: A power supply and a detection circuit as claimed in any one of claims 1 to 8.

10. A chip, It is characterized in that include: A detection circuit as claimed in any one of claims 1 to 8, or a power supply circuit as claimed in claim 9 above.

Citation Information

Patent Citations

  • Controller and voltage detection enabling circuit thereof

    US20100244912A1