Bandgap reference circuit and electronic device
By designing low-cost energy storage and switching modules, the target reference voltage is output that is close to that of the bandgap reference module under normal operating conditions, thus solving the stability problem of the bandgap reference circuit under abnormal operating conditions and ensuring that subsequent circuits operate normally during power outages.
Patent Information
- Application Number
- CN202522686409.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-18
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2035-12-18
AI Technical Summary
The existing bandgap reference circuit's stable output mechanism is disrupted under abnormal operating conditions, leading to a decrease in the accuracy of subsequent circuits or loss of normal operation. Furthermore, existing backup power supply and non-volatile memory solutions increase hardware costs and space requirements.
Design low-cost energy storage and switching modules. The energy storage module outputs a target reference voltage under abnormal operating conditions that is close to the output of the bandgap reference module under normal operating conditions, ensuring the normal operation of subsequent circuits.
It provides a real-time target reference voltage under abnormal operating conditions, ensuring the normal operation of subsequent circuits and avoiding increased hardware costs and space occupation.
Smart Images

Figure CN225032385U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of integrated circuit technology, and in particular to a bandgap reference circuit and electronic device. Background Technology
[0002] The bandgap reference (BGR) is one of the most critical and commonly used reference sources in analog and mixed-signal integrated circuit design. Its core value lies in its ability to generate a highly stable DC reference voltage. This voltage is extremely insensitive to temperature fluctuations, power supply voltage variations, and semiconductor manufacturing process deviations, making it a crucial foundation for ensuring accurate circuit operation. However, when abnormal operating conditions occur in the circuit, the stable output mechanism of the BGR can be disrupted, leading to a significant decrease in the accuracy of subsequent circuits that rely on the BGR reference, or even a complete loss of normal operating capability. Utility Model Content
[0003] In view of this, one of the objectives of this application is to provide a bandgap reference circuit and electronic device that can determine a target reference voltage that is close to the DC reference voltage originally output by the bandgap reference module by designing a low-cost energy storage module and a switching module, and temporarily use the target reference voltage as the new DC reference voltage to ensure that subsequent circuits relying on the BGR reference can work normally when abnormal operating conditions occur in the circuit.
[0004] To achieve the above objectives, the technical solution of this application is implemented as follows: In a first aspect, embodiments of this application provide a bandgap reference circuit, the bandgap reference circuit comprising: The bandgap reference module is connected to the operating power supply. The energy storage module has its first terminal connected to the working power supply and its second terminal grounded. The switching module has its input terminal connected to the working power supply. The switching module turns on when the working power supply is abnormal and outputs the target reference voltage through the energy storage module. The difference between the target reference voltage and the actual reference voltage is within a preset range; the actual reference voltage is the voltage output by the bandgap reference module when the power supply is normal.
[0005] In one possible implementation, the bandgap reference circuit further includes: The voltage divider module has its first terminal connected to the power supply and its second terminal connected to the input terminal of the switch module. The voltage selection module has its input terminal connected to the output terminal of the bandgap reference module, the first terminal of the voltage divider module, and the second terminal of the voltage divider module. The output terminal of the voltage selection module is connected to the control terminal of the switching module.
[0006] In one possible implementation, the voltage divider module includes: There are N voltage divider submodules connected in series, and each voltage divider submodule is connected to a switch module. N is a positive integer.
[0007] In one possible implementation, the voltage selection module includes: N+1 comparators and N logic gates; The outputs of the i-th comparator and the (i+1)-th comparator are connected to the input of the i-th logic gate, and the input of the i-th logic gate is also connected to the inputs of the (i-1)-th and (i+1)-th logic gates; i is a positive integer greater than or equal to 1 and less than or equal to N-1.
[0008] In one possible implementation, the logic gate circuit includes an XOR gate circuit.
[0009] In one possible implementation, the switch module includes N switch sub-modules, wherein the i-th switch sub-module includes: The first switching unit has its first terminal connected to the output terminal of the i-th logic gate circuit, its second terminal connected to the first terminal of the protective capacitor, and its control terminal connected to the operating power supply. The second terminal of the protective capacitor is grounded. The second switching unit has its second terminal connected to the i-th voltage divider submodule, and its control terminal is connected to the second terminal of the first switching unit. The third switching unit has its first end as the output of the i-th switching submodule, its second end as connected to the first end of the second switching unit, and its control end as connected to the power supply.
[0010] In one possible implementation, the first switching unit and the second switching unit each include one of an N-type transistor and a P-type transistor, and the third switching unit includes the other of an N-type transistor and a P-type transistor.
[0011] In one possible implementation, the bandgap reference circuit further includes: The first protection module has one end connected to the working power supply and the second end connected to the first end of the energy storage module.
[0012] In one possible implementation, the bandgap reference circuit further includes: The second protection module has its first terminal connected to the second terminal of the voltage divider module, and its second terminal is grounded.
[0013] Secondly, embodiments of this application also provide an electronic device, which includes the bandgap reference circuit as provided in the first aspect above.
[0014] The bandgap reference circuit provided in this application includes a bandgap reference module, an energy storage module, and a switching module, all connected to a power supply. Specifically, the other end of the energy storage module is grounded. The switching module is turned on when the power supply is abnormal and outputs a target reference voltage through the energy storage module. The difference between the target reference voltage and the actual reference voltage is within a preset range. The actual reference voltage is the voltage output by the bandgap reference module when the power supply is normal. This application embodiment can determine a target reference voltage close to the DC reference voltage originally output by the bandgap reference module by designing a low-cost energy storage module and a switching module when the power supply is abnormal. This target reference voltage is then temporarily used as the new DC reference voltage to ensure that subsequent circuits relying on the BGR reference continue to operate normally when abnormal circuit conditions occur. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. It should be understood that the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] The attached diagram is described below: Figure 1 This is one of the functional module diagrams of a bandgap reference circuit provided in an embodiment of this application; Figure 2 A second schematic diagram of the functional modules of a bandgap reference circuit provided in an embodiment of this application; Figure 3 A schematic diagram of a bandgap reference circuit provided in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of a switching submodule included in a bandgap reference circuit provided in an embodiment of this application.
[0017] Explanation of reference numerals in the attached figures: 110. Bandgap reference module; 120. Working power supply; 130. Energy storage module; 140. Switch module; 150. Voltage divider module; 160. Voltage selection module; 170. First protection module; 180. Second protection module; 210. First switching unit; 220. Second switching unit; 230. Third switch unit. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0019] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0020] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0021] In various embodiments of this application, the expression "or" or "at least one of A and / or B" includes any combination or all combinations of the words listed simultaneously. For example, the expression "A or B" or "at least one of A and / or B" may include A, may include B, or may include both A and B.
[0022] In the description of this application, it should be noted that if the terms "upper", "lower", "inner", "outer", etc. appear to indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship that the product of this application is usually placed in, it is only for the convenience of describing this application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application.
[0023] Furthermore, the terms "first" and "second" are used only to distinguish descriptions and should not be interpreted as indicating or implying relative importance.
[0024] It should be noted that, where there is no conflict, the features in the embodiments of this application can be combined with each other.
[0025] Furthermore, in the embodiments of this application, the term "connection" can refer to "electrical connection" or "direct connection." "Electrical connection" can refer to a direct electrical connection between two components, or it can refer to an electrical connection between two components via one or more normally open tubes or other components.
[0026] To facilitate a better understanding of the solutions in the embodiments of this application, the relevant technologies will be introduced first below.
[0027] As a commonly used reference source in analog and mixed-signal integrated circuit design, the core value of a bandgap reference circuit lies in its ability to generate a highly stable DC reference voltage. This DC reference voltage is extremely insensitive to factors such as temperature fluctuations, power supply voltage variations, and semiconductor manufacturing process deviations, forming the basis for ensuring accurate circuit operation. Specifically, the bandgap reference circuit utilizes the characteristics of semiconductor materials to generate a relatively stable voltage under environmental conditions such as temperature changes and power supply fluctuations, serving as the circuit's DC reference voltage.
[0028] However, when abnormal operating conditions occur in the circuit (such as power supply overvoltage or undervoltage, external interference, damage to core components, or failure of the startup circuit), the stable output mechanism of the BGR will be disrupted, potentially leading to two typical problems: first, the output voltage deviates from the target value and its stability drops significantly, making it unable to withstand the influence of environmental factors such as temperature and power supply voltage; second, in extreme cases, the output voltage may return to zero. Regardless of the type of abnormality, it will directly cause a significant decrease in the accuracy of subsequent circuits that rely on the BGR reference (such as analog-to-digital converters (ADCs) or digital-to-analog converters (DACs), low-dropout regulators (LDOs), sense amplifiers, etc.), or even a complete loss of normal operating capability.
[0029] In related technologies, backup power supplies and non-volatile memory are often used to address abnormal circuit conditions. For the aforementioned backup power supply solutions, such as uninterruptible power supplies (UPS), the system can automatically switch to a backup power supply when the main power supply fails, maintaining power to the circuit until the main power supply is restored. For the aforementioned non-volatile memory solutions, critical information in the circuit (including BGR input information) can be stored in non-volatile memory before an abnormal circuit condition occurs, allowing for rapid recovery of the operating state once power is restored.
[0030] Both common solutions in the above-mentioned technologies increase hardware costs and space requirements, and may even introduce new points of failure. For example, backup power solutions require additional batteries and switching circuits, while non-volatile memory solutions require dedicated memory chips and corresponding control logic. Furthermore, non-volatile memory solutions cannot provide real-time DC reference voltage output during power outages, making them suitable only for power restoration scenarios.
[0031] Based on this, embodiments of this application provide a bandgap reference circuit and electronic device. Taking the bandgap reference circuit as an example, the circuit includes a bandgap reference module 110, an energy storage module 130, and a switching module 140, all connected to a power supply 120. Specifically, the other end of the energy storage module 130 is grounded. The switching module 140 is turned on when the power supply 120 is abnormal, and outputs a target reference voltage through the energy storage module 130. The difference between the target reference voltage and the actual reference voltage is within a preset difference range. The actual reference voltage is the voltage output by the bandgap reference module 110 when the power supply 120 is normal.
[0032] Thus, the bandgap reference circuit provided in this application embodiment can determine a target reference voltage that is close to the DC reference voltage originally output by the bandgap reference module by designing a low-cost energy storage module and a switching module when the working power supply is abnormal, and temporarily use the target reference voltage as the new DC reference voltage to ensure that the subsequent circuits that rely on the BGR reference can work normally when the circuit has abnormal operating conditions, and can also provide a real-time target reference voltage as the new DC reference voltage output during power outages.
[0033] The following section first introduces the various components of the bandgap reference circuit provided in the embodiments of this application.
[0034] Please see Figure 1 , Figure 1 This is one of the functional module diagrams of a bandgap reference circuit provided in an embodiment of this application. Figure 1 The bandgap reference circuit includes: The bandgap reference module 110 is connected to the operating power supply 120; Energy storage module 130, the first end of energy storage module 130 is connected to working power supply 120, and the second end of energy storage module 130 is grounded; The input terminal of the switch module 140 is connected to the working power supply 120. The switch module 140 is turned on when the working power supply 120 is abnormal, and outputs the target reference voltage through the energy storage module 130. The difference between the target reference voltage and the actual reference voltage is within a preset difference range; the actual reference voltage is the voltage output by the bandgap reference module 110 when the working power supply 120 is normal.
[0035] The aforementioned bandgap reference module 110 can also be referred to as the BGR module. The BGR module is connected to the operating power supply 120. When the operating power supply 120 is operating normally, a DC reference voltage can be output through the BGR module. The BGR module can be referred to in the foregoing content or related technical descriptions of BGR, and will not be repeated here.
[0036] The aforementioned energy storage module 130 can be used to store charge. The energy storage module 130 is connected to the working power supply 120. When the working power supply 120 is working normally, the energy storage module 130 can store charge so that when the working power supply 120 is abnormal, it can output a voltage that is the same as or close to the DC reference voltage in conjunction with the switching module 140 in this embodiment, thereby ensuring that the subsequent circuits that rely on the BGR reference work normally when the circuit has abnormal operating conditions.
[0037] In some embodiments, the energy storage module 130 includes a capacitor, which can serve as an energy storage capacitor.
[0038] In some embodiments, the energy storage capacitor is greater than or equal to 1mF.
[0039] The aforementioned switch module 140 can be activated in the event of an abnormality in the operating power supply 120. That is, in the event of an abnormality in the operating power supply 120, the switch module 140 is turned on, and the target reference voltage output can be continuously provided through the energy storage module 130. Since the target reference voltage is equal to or close to the DC reference voltage output by the BGR module when the operating power supply 120 is normal, in other words, the DC reference voltage output can be continuously provided through the energy storage module 130.
[0040] The aforementioned preset difference range can be adjusted according to actual needs. This embodiment does not limit the specific value of the preset difference range.
[0041] The statement that "the difference between the target reference voltage and the actual reference voltage is within the preset difference range" indicates that the target reference voltage is the same as or close to the actual reference voltage.
[0042] The actual reference voltage mentioned above is the same as the DC reference voltage mentioned above.
[0043] The bandgap reference circuit provided in this application includes a bandgap reference module 110, an energy storage module 130, and a switching module 140, all connected to a power supply 120. Specifically, the other end of the energy storage module 130 is grounded, and the switching module 140 is turned on when the power supply 120 is abnormal, outputting a target reference voltage through the energy storage module 130. The difference between the target reference voltage and the actual reference voltage is within a preset range. The actual reference voltage is the voltage output by the bandgap reference module 110 when the power supply 120 is normal. This application embodiment can determine a target reference voltage close to the DC reference voltage originally output by the bandgap reference module by designing a low-cost energy storage module and a switching module when the power supply is abnormal, and temporarily use the target reference voltage as the new DC reference voltage to ensure that subsequent circuits relying on the BGR reference operate normally when abnormal circuit conditions occur.
[0044] Please see Figure 2 , Figure 2 This is a second schematic diagram of the functional modules of a bandgap reference circuit provided in an embodiment of this application.
[0045] In one possible implementation, the bandgap reference circuit further includes: Voltage divider module 150, the first end of voltage divider module 150 is connected to working power supply 120, and the second end of voltage divider module 150 is connected to the first end of switch module 140; The voltage selection module 160 has its input terminal connected to the output terminal of the bandgap reference module 110, the first terminal of the voltage divider module 150, and the second terminal of the voltage divider module 150. The output terminal of the voltage selection module 160 is connected to the control terminal of the switch module 140.
[0046] In the event of an abnormality in the working power supply 120, the energy storage module 130, which has completed charging, provides power. In this embodiment, a voltage divider module 150 connected to the working power supply 120 (i.e., connected to the first terminal of the energy storage module 130) is introduced to divide the voltage provided by the energy storage module 130. Then, the voltage selection module 160 compares the DC reference voltage output by the output terminal of the bandgap reference module 110 when the working power supply 120 is operating normally with the voltage after being divided by the voltage divider module 150. Specifically, the difference between the two can be calculated and compared with the preset difference range in the aforementioned embodiment. Then, a voltage that is the same as or close to the DC reference voltage is selected from the divided voltage and used as the target reference voltage.
[0047] In one possible implementation, the voltage divider module 150 includes: There are N voltage divider submodules connected in series, and each voltage divider submodule is connected to switch module 140. N is a positive integer.
[0048] In this embodiment, by setting N voltage divider submodules, the voltage provided by the energy storage module 130 can be divided into multiple levels. Then, in conjunction with the voltage selection module 160 in the aforementioned embodiment, the voltage with the highest matching degree with the DC reference voltage can be determined from the multiple voltages after voltage division and determined as the target reference voltage.
[0049] In this embodiment, the value of N is adjustable, and a specific value can be selected according to actual needs. Generally, the larger the value of N, the more voltage is obtained after voltage division, and thus the voltage that is the same as or closest to the DC reference voltage can be determined.
[0050] In some embodiments, the voltage divider submodule includes a resistor, which can be used as a voltage divider resistor. The voltage divider submodules are connected in series, which means that the voltage divider resistors are connected in series. The voltage provided by the energy storage module 130 is applied to the series resistor circuit. The voltage after each voltage division can be taken from the voltage at the connection point between the voltage divider resistors.
[0051] In some embodiments, the switch module 140 includes: There are N switch submodules, and the input terminal of each switch submodule is connected to the voltage divider submodule corresponding to that switch submodule.
[0052] In one possible implementation, the voltage selection module 160 includes: N+1 comparators and N logic gates; The outputs of the i-th comparator and the (i+1)-th comparator are connected to the input of the i-th logic gate, and the input of the i-th logic gate is also connected to the inputs of the (i-1)-th and (i+1)-th logic gates; i is a positive integer greater than or equal to 1 and less than or equal to N-1.
[0053] In the embodiments of this application, by using multiple comparators, the magnitudes of the multiple voltages after voltage division can be compared with the DC reference voltage, thereby determining the target reference voltage. The occurrence of multiple target reference voltages can be limited by using multiple logic gate circuits.
[0054] In some embodiments, for the (i+1)th comparator among the N+1 comparators, the input terminal of the i-th comparator can be connected to the output terminal of the bandgap reference module 110 and one end of the i-th voltage divider submodule (here, one end of the i-th voltage divider submodule is the connection point between the i-th voltage divider submodule and the (i+1)-th voltage divider submodule connected in series). Thus, the (i+1)-th comparator can be used to compare the voltage at the connection point of the i-th and (i+1)-th voltage divider submodules with the DC reference voltage output from the output terminal of the bandgap reference module 110 when the operating power supply 120 is normal.
[0055] In one possible implementation, the logic gate circuit includes an XOR gate circuit.
[0056] In one possible implementation, the bandgap reference circuit further includes: The first protection module 170 has one end connected to the working power supply 120 and the second end connected to the first end of the energy storage module 130.
[0057] In this embodiment of the application, the first protection module 170 can prevent the current in the energy storage module 130 from flowing back to the working power supply 120, thereby protecting the normal operation of the working power supply 120.
[0058] In some embodiments, the first protection module 170 includes a diode, the anode of which is connected to the operating power supply 120, and the cathode of which is connected to the first end of the energy storage module 130.
[0059] In one possible implementation, the bandgap reference circuit further includes: The second protection module 180 has its first terminal connected to the second terminal of the voltage divider module 150, and its second terminal is grounded.
[0060] In this embodiment, the second protection module 180 can limit the fault current when a ground fault occurs in the circuit, so as to reduce damage to the switch module 140.
[0061] In some embodiments, the second protection module 180 includes a grounding resistor, one end of which is connected to the second end of the voltage divider module 150, and the second end of the grounding resistor is grounded.
[0062] To clearly illustrate the connection relationships between the working power supply 120, bandgap reference module 110, energy storage module 130, switching module 140, voltage divider module 150, and voltage selection module 160 in the above embodiments, an example with N=5 is provided below. Please refer to [link / reference] for details. Figure 3 , Figure 3 This is a schematic diagram of a bandgap reference circuit provided in an embodiment of this application.
[0063] like Figure 3 The bandgap reference circuit shown includes: Operating power supply 120VDD; BGR module (BGR); Energy storage module 130 (C0); Five voltage divider submodules (R1, R2, R3, R4 and R5 connected in series, with voltage divider voltages at each connection point being VO1, VO2, VO3, VO4 and VO5 respectively). First protection module 170 (diode D1); Second protection module 180 (grounding resistor R6); Five switch sub-modules (Switch1, Switch2, Switch3, Switch4, and Switch5) Six comparators (VC1, VC2, VC3, VC4, VC5 and VC6); Five logic gates (XOR gates, with the outputs of each XOR gate being X1, X2, X3, X4 and X5 respectively).
[0064] exist Figure 3 middle: BGR_OUT represents the DC reference voltage (or BGR output reference voltage). CVDD represents the output voltage of energy storage module 130 (C0).
[0065] like Figure 3 The circuit shown is connected in parallel with the BGR, so the two do not affect each other. This embodiment of the application does not require modification of the BGR architecture.
[0066] The working principle of the voltage selection module 160 will be explained in detail below.
[0067] The voltage selection module 160 functions to determine the level closest to BGR_OUT from VO1 to VO5 (this is done when VDD is powered). The voltage selection module 160 consists of several comparators and XOR gates. The selected result is stored in SwitchX via X1 to X5, for example, in a capacitor within SwitchX (this capacitor will be described in detail in the following embodiments).
[0068] The following continues with... Figure 3 The circuit shown is explained in stages.
[0069] In Phase 1, when VDD is supplying power normally, VDD charges capacitor C0. Once fully charged, C0 can provide a stable backup power supply CVDD.
[0070] When VDD is powered, C0 is charged. After charging is complete, CVDD and VO1 to VO5 are all at fixed levels. At this time, VO1 to VO5 can be compared with BGR_OUT using the corresponding comparators. The comparison result of VOX higher than BGR_OUT should be '1', otherwise it should be '0'. Therefore, among the outputs X1, X2, X3, X4, and X5 of each XOR gate circuit, only one is '1', and the rest are '0'.
[0071] In Phase 2, after VDD experiences a power outage due to an abnormality, diode D1 prevents the voltage of C0 from flowing back to VDD. At this time, C0 provides a stable backup power supply CVDD. CVDD can generate voltages (VO1 to VO5) through multiple voltage divider resistors (R1 to R5 in series). The voltage selection module 160 selects the voltage divider voltage VOX that is closest to 'BGR_OUT when powered on' and activates the switch (SwitchX) corresponding to VOX. This outputs a target reference voltage that is the same as or similar to BGR when powered on.
[0072] As a concrete example, assuming the voltage of BGR_OUT is between VO3 and VO4, the comparator output containing 'CVDD', 'VO1', 'VO2', and 'VO3' will be '1', while the comparator output containing 'VO4' and 'VO5' will be '0'. Due to the characteristics of the XOR gate, 'X1', 'X2', 'X3', and 'X5' should all be '0', with only 'X4' being 1. Therefore, a high output for X4 indicates that BGR_OUT is between VO3 and VO4. Other cases are similar and will not be listed further.
[0073] The switching module 140 in the foregoing embodiments will be described in detail below. Please refer to [link / reference]. Figure 4 , Figure 4 This is a schematic diagram of the structure of a switching submodule included in a bandgap reference circuit provided in an embodiment of this application.
[0074] In one possible implementation, the switch module 140 includes N switch sub-modules, wherein the i-th switch sub-module includes: The first switching unit 210 has its first terminal connected to the output terminal of the i-th logic gate circuit, its second terminal connected to the first terminal of the protection capacitor, and its control terminal connected to the operating power supply 120. The second terminal of the protection capacitor is grounded. The second switch unit 220 has its second end connected to the i-th voltage divider submodule, and its control end is connected to the second end of the first switch unit 210. The third switch unit 230 has a first end that is the output end of the i-th switch submodule, a second end that is connected to the first end of the second switch unit 220, and a control end that is connected to the power supply 120.
[0075] The aforementioned protective capacitor can be used to store the "selected result" in the previous example.
[0076] In one possible implementation, the first switching unit 210 and the second switching unit 220 each include one of an N-type transistor and a P-type transistor, and the third switching unit 230 includes the other of an N-type transistor and a P-type transistor.
[0077] In this embodiment, the "activation" of the switch submodule can be achieved through three switch units, that is, turning it on or off.
[0078] In some embodiments, the first switching unit 210 and the second switching unit 220 both include NMOS transistors, and the third switching unit 230 includes a PMOS transistor.
[0079] Taking the first switching unit 210 as an example, the first terminal of the first switching unit 210 is the source of the NMOS transistor NM1, the second terminal of the first switching unit 210 is the drain of the NMOS transistor NM1, and the control terminal of the first switching unit 210 is the gate of the NMOS transistor NM1.
[0080] Taking the second switching unit 220 as an example, the first terminal of the second switching unit 220 is the source of the NMOS transistor NM2, the second terminal of the second switching unit 220 is the drain of the NMOS transistor NM2, and the control terminal of the second switching unit 220 is the gate of the NMOS transistor NM2.
[0081] Taking the third switching unit 230 as an example, the first terminal of the third switching unit 230 is the source of the PMOS transistor PM1, the second terminal of the third switching unit 230 is the drain of the PMOS transistor PM1, and the control terminal of the third switching unit 230 is the gate of the PMOS transistor PM1.
[0082] The substrates of NM1 and NM2 are grounded, and the substrate of PM1 is connected to CVDD.
[0083] The following example uses a switch connected to the VO1 output to illustrate... Figure 4 To explain the working principle, assume that the result of voltage selection module 160 at this time is: 'X1' is high level, and the rest are low level, that is, BGR is between VO1 and CVDD.
[0084] When VDD is powered normally, the high level of X1 enters the switching circuit through NM1 to charge C1. After C1 is fully charged, NM2 will also be turned on. At this time, since VDD is high, PM1 is turned off, and the BGR_OUT output is provided by BGR.
[0085] Assuming VDD is off at this time, NM1 will immediately turn off to prevent the charge on the protection capacitor C1 from leaking into the XOR gate through NM1, ensuring that C1 remains high. NM2 therefore remains on, while PM1 is on because VDD is low. At this point, the level of VO1 will flow through NM2 and PM1 and become the new BGR_OUT. As for the other switches, since X2~X5 are all low, capacitor C1 on the other switches will not charge when VDD is on, and NM2 will also remain off, even after VDD is off. Because VO1 uses CVDD, it can continue to provide a voltage similar to BGR_OUT when VDD stops supplying power. Afterwards, if VDD resumes supplying power, PM1 will turn off, and BGR_OUT will be supplied by BGR again.
[0086] The principle of selecting other voltage dividers as output is similar to that of the example of connecting the switch to the VO1 output, and will not be illustrated here.
[0087] This application also provides an electronic device that may include the bandgap reference circuit described in the foregoing embodiments.
[0088] In all the examples shown and described above, any specific value should be interpreted as merely exemplary and not as a limitation; therefore, other examples of exemplary embodiments may have different values.
[0089] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0090] The embodiments described above are merely examples of several implementations of this utility model, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of this utility model. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this utility model, and these modifications and improvements all fall within the protection scope of this utility model.
[0091] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A bandgap reference circuit, characterized in that, The circuit includes: The bandgap reference module is connected to the operating power supply. An energy storage module, wherein a first terminal of the energy storage module is connected to the working power supply, and a second terminal of the energy storage module is grounded; A switching module, the input terminal of which is connected to the working power supply, the switching module is turned on in case of abnormality of the working power supply, and outputs a target reference voltage through the energy storage module; The difference between the target reference voltage and the actual reference voltage is within a preset difference range; the actual reference voltage is the voltage output by the bandgap reference module when the power supply is normal.
2. The circuit as described in claim 1, characterized in that, The circuit also includes: A voltage divider module, wherein the first end of the voltage divider module is connected to the working power supply, and the second end of the voltage divider module is connected to the input end of the switch module; A voltage selection module is provided, wherein the input terminal of the voltage selection module is connected to the output terminal of the bandgap reference module, the first terminal of the voltage divider module, and the second terminal of the voltage divider module, and the output terminal of the voltage selection module is connected to the control terminal of the switch module.
3. The circuit as described in claim 2, characterized in that, The voltage divider module includes: There are N voltage divider submodules connected in series, and each voltage divider submodule is connected to a switch module. N is a positive integer.
4. The circuit as described in claim 2, characterized in that, The voltage selection module includes: N+1 comparators and N logic gates; The outputs of the i-th comparator and the (i+1)-th comparator are connected to the input of the i-th logic gate, and the input of the i-th logic gate is also connected to the inputs of the (i-1)-th and (i+1)-th logic gates; i is a positive integer greater than or equal to 1 and less than or equal to N-1.
5. The circuit as described in claim 4, characterized in that, The logic gate circuit includes the XOR gate circuit.
6. The circuit as described in claim 4, characterized in that, The switching module includes N switching sub-modules, and the i-th switching sub-module includes: A first switching unit has its first terminal connected to the output terminal of the i-th logic gate circuit, its second terminal connected to the first terminal of a protective capacitor, and its control terminal connected to the operating power supply; wherein, the second terminal of the protective capacitor is grounded. The second switching unit has its second terminal connected to the i-th voltage divider submodule, and its control terminal is connected to the second terminal of the first switching unit. The third switching unit has a first end that is the output end of the i-th switching submodule, a second end that is connected to the first end of the second switching unit, and a control end that is connected to the power supply.
7. The circuit as described in claim 6, characterized in that, The first switching unit and the second switching unit each include one of an N-type transistor and a P-type transistor, and the third switching unit includes the other of an N-type transistor and a P-type transistor.
8. The circuit as described in claim 1, characterized in that, The circuit also includes: A first protection module, one end of which is connected to the working power supply, and a second end of which is connected to the first end of the energy storage module.
9. The circuit as described in claim 2, characterized in that, The circuit also includes: The second protection module has its first terminal connected to the second terminal of the voltage divider module, and its second terminal grounded.
10. An electronic device, characterized in that, The device includes a bandgap reference circuit as described in any one of claims 1 to 9.
