Power supply circuit and corresponding method for supplying power
The power supply circuit addresses unsafe voltage transitions in NVM circuits by using a level shifter and comparison circuit to adjust control voltages based on safe thresholds, ensuring efficient and reliable NVM operations with lower voltage transistors.
Patent Information
- Application Number
- US19/658210
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2025-05-22
- Filing Date
- 2026-04-24
- Publication Date
- 2026-11-26
AI Technical Summary
Existing circuits for controlling high voltage supply in non-volatile memory (NVM) reading and writing operations face challenges in managing voltage levels safely and efficiently, particularly when asynchronous voltage transitions occur, which can lead to unsafe operating conditions and increased complexity.
A power supply circuit with a level shifter and comparison circuit that adjusts control voltages based on a safe voltage threshold, using a comparator and divider to ensure transistors operate within a safe operating area, shifting voltage levels from a high power supply to a lower power supply while maintaining safe voltage thresholds.
The solution ensures safe and efficient voltage management across asynchronous transitions, optimizing silicon area and reducing complexity by using transistors that operate at lower voltages, thus enhancing the reliability and efficiency of NVM operations.
Smart Images

Figure US20260379455A1-D00000_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority to Italian Application No. 102025000011683, filed on May 22, 2025, which application is hereby incorporated herein by reference.TECHNICAL FIELD
[0002] The description relates to techniques for supplying power to a circuital arrangement, in particular NVM reading and writing circuits, using transistors, e.g. FETs or MOSFETs, operating at a lower voltage than said high voltage, for instance 3.3V with respect to 5.5V.BACKGROUND
[0003] In circuits for controlling a high voltage value supplied to a circuital arrangement, in particular NVM reading and writing circuits, using transistors operating at a lower voltage than said high voltage, in particular where the high voltage evolution is asynchronous, e.g. with respect to clock signals of the circuital arrangement, is important the detection of the voltage value in order to manage in a safe operating area circuital arrangements such as non-volatile memory circuitry, i.e., to manage in safe mode the high voltage supply using medium voltage transistors, by way of example to use a high voltage supply, such as 5V using 3V voltage range transistors.
[0004] To supply an intermediate voltage (e.g., 3V) from a higher voltage (e.g., 5V), several circuit techniques can be used. These are common in applications such as non-volatile memories (NVMs) where read and write operations require different voltage levels.
[0005] In general, circuit such as Linear Voltage Regulators, e.g. Low Dropout Regulator (LDO) are used, or switching Voltage Regulators (DC-DC Converters), or also simpler Resistive Voltage Dividers
[0006] The use of MOSFET-Based Voltage Level Shifters, used for signal level shifting rather than power conversion may be particularly useful, for instance in connection with voltage supply of Non-Volatile memories (NVM). There, read operation might require, e.g., 3V logic, for power efficiency and compatibility with modern logic circuits, while write operations may use higher voltages (e.g., 5V or 12V) to program memory cells. Voltage level shifters allow compatibility between 3V transistors and higher voltage control logic.
[0007] In this context Level Shifters allow switching between different voltage domains, enabling seamless memory access.SUMMARY
[0008] In an embodiment, a power supply circuit includes a level shifter circuit. The level shifter circuit is configured to output power supply voltage values for transistors. The transistors operate with a second power supply voltage. The second power supply voltage is lower than a first high power supply voltage received at an input of the power supply circuit. The level shifter circuit outputs the power supply voltage values by shifting voltage levels of a digital signal at the second power supply voltage. The power supply circuit also includes a comparison circuit. The comparison circuit is configured to compare the first high power supply voltage to a safe voltage threshold. The comparison circuit is also configured to supply a comparison signal to a circuit configured to generate a set of control voltages for the level shifter circuit. The set of control voltages takes a first set of values when the comparison signal indicates that the first high power supply voltage is below the safe voltage threshold. The set of control voltages takes a second set of values when the comparison signal indicates that the first high power supply voltage is above the safe voltage threshold. Each value of the first set of values is lower than a corresponding value of the second set of values.
[0009] In an embodiment, a method for supplying power includes performing a comparison of a first high power supply voltage with respect to a safe voltage threshold. The method also includes generating a set of control voltages for transistors. The transistors operate with a second power supply voltage. The second power supply voltage is lower than the first high power supply voltage. The set of control voltages takes a first set of values when the comparison indicates that the first high power supply voltage is below the safe voltage threshold. The set of control voltages takes a second set of values when the comparison indicates that the first high power supply voltage is above the safe voltage threshold. Each value of the first set of values is lower than a corresponding value of the second set of values.
[0010] In an embodiment, a voltage detection circuit includes a divider circuit. The divider circuit has at least two selectable dividing ratios. The at least two selectable dividing ratios include a first dividing ratio and a second dividing ratio. The divider circuit is configured to receive an input voltage and to supply a divided voltage to one input of a comparator. The comparator is configured to receive a reference voltage at another input of the comparator. The voltage detection circuit also includes a feedback circuit. The feedback circuit is coupled to an output of the comparator. The feedback circuit includes a switch. The switch is triggered by an output value of the comparator. The switch is configured to select, in response to the output value of the comparator, one of the first dividing ratio and the second dividing ratio for the divider circuit. The first dividing ratio and the second dividing ratio are selected such that the output value of the comparator transitions from a first state to a second state when the input voltage rises across an upper threshold voltage. The first dividing ratio and the second dividing ratio are also selected such that the output value of the comparator transitions from the second state to the first state when the input voltage falls across a lower threshold voltage. The lower threshold voltage is less than the upper threshold voltage.BRIEF DESCRIPTION OF THE DRAWINGS
[0011] One or more embodiments will now be described, by way of example only, with reference to the annexed figures, wherein:
[0012] FIGS. 1 shows a schematic circuit diagram of a power supply circuit according to the embodiments,
[0013] FIG. 2 shows a more detailed schematic circuit diagram of a power supply circuit according to the embodiments,
[0014] FIGS. 3A and 3B show a circuit diagram of a level shifter module of the power supply circuit according to the embodiments in two operating states,
[0015] FIG. 4 is a time diagram showing of the signals power supply circuit according to the embodiments;
[0016] FIGS. 5A-5C is a schematic diagram of a further embodiment of a comparator of the power supply circuit here described;
[0017] FIG. 6A and 6B are diagrams represent further embodiments of the level shifter of FIGS. 3A and 3B.DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
[0018] The embodiments described herein address several design considerations relevant to high-voltage power supply control. One consideration is maintaining a safe operating area for the control circuitry as the high-voltage supply transitions through asynchronous rising and falling edges. Another consideration is the complexity of the control algorithm used to manage the high-voltage supply. A further consideration is silicon area, which influences optimization of the system-on-chip die size.
[0019] One or more embodiments contribute in dealing with a number of issues which are recognized to exist in a context as discussed in the foregoing.
[0020] According to one or more embodiments disclose a power supply circuit having the features set forth in the claims that follow. One or more embodiments may relate to a corresponding method for supplying power.
[0021] As mentioned previously, various embodiments of the present disclosure regard a power supply circuit configured to output, on the basis of a first high power supply voltage received at its input, power supply voltage values for transistors operating with a second power supply voltage lower than said first high power supply voltage, said power supply circuit comprising a level shifter circuit configured to supply said power supply voltage values shifting voltage levels of a digital signal at said second power supply voltage, wherein said power supply circuit comprises a comparison circuit which compares said first high-power supply voltage to a safe voltage threshold, supplying a comparison signal to a circuit of generation of a set of control voltages for said level shifter circuit, said circuit of generation of a set of control voltages supplies at its output said set of control voltages, which takes a first set of values if said comparison signal indicates that said first high power supply voltage is below the safe voltage threshold and a second set of values if said comparison signal indicates that said first high supply voltage is above the safe voltage threshold, the values of said first set of values being lower than the values of said second set of values.
[0022] In variant embodiments, said set of control voltages comprises a pair of control voltages and said level shifter is a cascoded level shifter comprising a latch circuit and a driver circuit receiving said digital signal to be shifted, said driver circuit being coupled to said latch circuit through a first cascode subcircuit and a second cascode subcircuit, said pair of control voltages comprising a first control voltage coupled to the joint gates of the first cascode circuit and a respective second control voltage coupled to the joint gates of the second cascode circuit.
[0023] In variant embodiments, said latch comprises latched p MOSFET coupled to said first high power supply voltage, said driver circuit comprises n driver MOSFETs coupled to ground, and said first control voltage is ground, in particular zero volt, and said second control voltage takes a value lower than the half of said supply voltage and greater than zero, in particular 1.8 volt, if said first high supply voltage is below the safe voltage threshold, while said first and second voltage are the half of said supply voltage.
[0024] In variant embodiments, said comparison circuit comprises a divider circuit receiving at input said high voltage and which supplies at output a divided voltage to one input of a comparator, supplied by said second power supply, said comparator receiving at the other input a comparator reference voltage, said divider circuit being configured to supply said divided voltage with a value with respect to said comparator reference voltage so that said comparator changes its output when the high power supply voltage at input is above or below said safe threshold.
[0025] In variant embodiments, the circuit of generation of a set of control voltages comprises a circuit configured to supply a reduced voltage obtained from said high voltage, in particular to halve the value of said high voltage, a first circuit branch and a second branch coupled in parallel to the output of said comparator, said first branch comprising a switching circuit which switches the first control voltage at the output of said first branch between said reduced voltage and ground depending on the comparison signal indicating that the high power supply voltage is above or below said safe threshold respectively, said second branch comprising a switching circuit which switches the second control voltage at the output of said second branch between said reduced voltage and a third voltage lower than reduced voltage and second voltage depending on the comparison signal indicating that the high power supply voltage is above or below the safe threshold respectively.
[0026] In variant embodiments, said set of control voltages comprises one control voltage which is supplied as ground reference of a not cascoded level shifter circuit, in particular a level shifter comprising a latch coupled to a driver circuit without interposition of cascode circuits, said not cascoded level shifter receiving said high power supply voltage as power supply voltage.
[0027] In variant embodiments, said comparison circuit includes a divider circuit with at least two selectable dividing ratios, in particular a resistive divider with three resistor in series, receiving at input said high voltage and which supplies at output a divided voltage to one input of a comparator, supplied by said second power supply, said comparator receiving at the other input a comparator reference voltage, said divider circuit being configured to supply said divided voltage with a value with respect to said comparator reference voltage so that said comparator changes its output value when the high power supply voltage at input is above or below said safe threshold, said comparison circuit comprising a feedback circuit coupled to the output of said comparator, comprising a switch triggered by the output value of the comparator, selecting one of the two selectable dividing ratios of the input high power supply voltage when the high power supply voltage at input is above or below said safe threshold, so that a hysteresis on the value at input of the comparator is introduced.
[0028] In variant embodiments, said transistors are comprised in a non-volatile memory and the second power supply voltage is used at least for the read operation.
[0029] In variant embodiments, the input high power supply voltage is 5 Volt and the second power supply voltage is 3V or 3.3V.
[0030] The solution here described in embodiments regards also a method for supplying power on the basis of a first high power supply voltage power voltage supply values for transistors operating with a second power supply voltage lower than said first high supply voltage, supplying said power voltage supply values shifting the voltage levels of a digital signal at said second power supply voltage, said method comprises performing a comparison of said first high power supply voltage with respect to a safe voltage threshold, generating a set of control voltages, in particular a pair of control voltages, which take a first set of values if said comparison indicates that said first high supply voltage is below the safe voltage threshold and a second set of values if said comparison indicates that said first high supply voltage is above the safe voltage threshold, the values of said first set of values being lower than the values of said second set of values.
[0031] In variant embodiments, said set of control voltages comprises a pair of control voltages and said shifting is obtained by a cascoded level shifter comprising a latch circuit and a driver circuit receiving said digital signal, said driver circuit being coupled to said latch circuit through a first cascode subcircuit and a second cascode subcircuit, supplying said pair of control voltages comprising a first control voltage coupled to the joint gates of the first cascode circuit and a respective second control voltage coupled to the joint gates of the second cascode circuit.
[0032] In variant embodiments, said comparing includes feeding back said comparison, performing a switch on the basis of said comparison, which enables a different dividing ratio of the input high power supply voltage, so that a hysteresis on the value at input of the comparator is introduced.
[0033] The claims are an integral part of the technical disclosure of the embodiments as provided herein.
[0034] In the ensuing description, one or more specific details are illustrated, aimed at providing an in-depth understanding of examples of embodiments of this description. The embodiments may be obtained without one or more of the specific details, or with other methods, components, materials, etc. In other cases, known structures, materials, or operations are not illustrated or described in detail so that certain aspects of embodiments will not be obscured.
[0035] Reference to “an embodiment” or “one embodiment” in the framework of the present description is intended to indicate that a particular configuration, structure, or characteristic described in relation to the embodiment is comprised in at least one embodiment. Hence, phrases such as “in an embodiment” or “in one embodiment” that may be present in one or more points of the present description do not necessarily refer to one and the same embodiment. Moreover, particular conformations, structures, or characteristics may be combined in any adequate way in one or more embodiments.
[0036] The references used herein are provided merely for convenience and hence do not define the extent of protection or the scope of the embodiments.
[0037] Here, a circuit and method for controlling a high voltage value supplied to a circuital arrangement, in particular NVM reading and writing circuits, using transistors operating at a lower voltage than said high voltage (e.g., 3.3V with respect to 5.5V), is described.
[0038] The power supply circuit comprises a comparator comparing said high voltage at input of said circuital arrangement to a safe threshold, the output of such comparator being coupled to a voltage generator circuit, which supplies a set of voltages to operate a level shifter to supply to the circuital arrangement the lower voltage if the high voltage value at input is over said threshold. In particular, a n voltage for the n cascode of a cascaded level shifter and a p voltage for the p cascode of a cascode level shifter are supplied.
[0039] Also, according to a relevant aspect of the solution here described, such control circuit may use a comparator receiving such high voltage input which includes a feedback circuit, with a switch triggered by the output value of the comparator, enabling a different dividing ratio of the input voltage, this introducing a hysteresis on the value at input of the comparator which present a vertical step of increase when the input voltage increasing crosses an up threshold and a vertical step of decrease when the input voltage decreasing crosses a down threshold.
[0040] It is underlined that such comparator with hysteresis may operate as a stand-alone, thus not in the circuit for controlling a high voltage value supplied to a circuital arrangement described above, in another circuit where detection of an input voltage with hysteresis is required.
[0041] In FIG. 1 it is shown schematically a power supply circuit 10, i.e., a circuit to supply a voltage for power supply with a given value, according to the solution here described. An input high power supply voltage, Vsupply, in the example 5 V, which corresponds to a high voltage supply, is sent to a comparison circuit 20, comprising a comparator 11 and a resistive divider 12. The resistive divider 12 receives at input said high power supply voltage, Vsupply and comprises a first resistor R1 coupled to the input voltage Vsupply and a second resistor R2 coupled to ground GND. A divided voltage Vd at the output, i.e, common node between resistor R1 and R2, of the divider 12 is brought at one input of the comparator 11 which at the other input receives a reference voltage Vbg, in particular obtained by a bandgap voltage reference circuit. A threshold voltage Vtrig value for the comparator 11 is selected, by choosing the divider ratio in function of the reference voltage Vbg. In particular, the threshold voltage Vtrig is equal to the reference voltage Vbg divided by the divider ratio. In the example, where Vtrig=3.6V and Vbg=1.2 V, the resistor R1 is chosen with value two times R2, so that Vd= Vsupply / 3, i.e., for Vsupply=3.6V equals Vbg. A comparator output Vcomp of the comparator 11, which is power supplied at a lower voltage Vsupply’, in the example 3 V, is brought as input of a control voltage generator circuit 13, which is configured, on the basis of the comparator output Vcomp, to generate a set of control voltages at its output, comprising a first control voltage Vshp, and a second control voltage Vshp. The second control voltage Vshp can be also used as shifted ground shgnd depending on the following circuit, in particular level shifter, which receives the set of control voltages from circuit 13. More in generale, such set of voltages comprises a first control voltage Vshp for devices operating with a first polarity, e.g. pMOSFETs, a second control voltage Vshp for devices operating with a second polarity opposite to the first, e.g. nMOSFET, while the shifted ground shgnd is supplied as ground reference.
[0042] Thus the comparator 11 is configured to change its output state with respect to said threshold voltage Vtrig, which is chosen with a value which can be sustained by devices, e.g. MOSFETs, operating with a second power supply lower that the first power supply Vsupply, i.e. an intermediate power supply, Vsupply’, which is for instance 3.3 or 3V with respect to the 5V of Vsupply in the example here shown. The safe threshold voltage Vtrig is by way of example 3.6 V.
[0043] The control voltage generator circuit 13 is a dedicated analog circuit which is configured to generate control voltages for a voltage level shifter 14.
[0044] As indicated, the control voltage generator circuit 13 has in general two voltage regions of operation:
[0045] Vsupply< Vtrig then a low value for the second control voltage Vshn, low value for the first voltage Vshp
[0046] Vsupply> Vtrig then high value for Vshn, high value for Vshp.
[0047] The high value for Vshn, Vshp is in general lower than Vsupply, preferably Vsupply / 2. The low value may correspond to zero volt, i.e., the ground reference GND of the first high voltage supply, Vsupply, but it can be also another voltage, in the example 1.8V, which is however lower than the high value for Vshn, Vshp, by at least a FET threshold voltage Vth (this for instance to take in account the lower threshold voltage of n FETs with respects to p FETS.
[0048] In FIG. 2 it is shown in more detail the circuit 10, detailing an embodiment of the shifted voltage generator circuit 13. The comparator 12 outputs the voltage Vcomp to the shifted voltage generator 13, where it is supplied to two branches in parallel, each supplying a respective first branch output voltage VB1 and second branch output voltage VB2. Each of said two branches comprises a switch circuit, SW1, SW2. In FIG. 2 it is also shown a voltage divider circuit 22, which not necessarily is a resistive divider and which obtains a reduced voltage Vr from the input voltage, Vsupply. In the example here described, Vr= Vsupply / 2. The first switch circuit SW1 switches between Vr and ground GND the first branch output voltage VB1, depending on the value of the output comparator Vcomp, in particular in the example being respectively low or high. The second switch circuit SW2 switches between Vr and a third voltage supply Vsupply’’’, lower than Vsupply and Vsupply’, in the example 1.8 V, depending on the value of the output comparator Vcomp, in particular in the example being respectively low or high. More in detail, in the first switch SW1 the comparator output Vcomp is supplied to the gates of two MOSFETs, a pMOSFET 131 which is coupled to the reduced voltage Vr at one electrode and to the drain of a nMOSFET 132, receiving comparator output Vcomp on its gate as well as indicated. The source of the nMOSFET 132 is coupled to ground GND.
[0049] On the other branch the comparator output Vcomp is brought to the gates of a pMOSFET 133 and pMOSFET 134, the latter through an inverter 135. PMOSFET 133 is coupled to the divided voltage Vd at one electrode and to the drain of pMOSFET 134 to the other. The other electrode of the pMOSFET 134 is coupled to the third voltage supply Vsupply’’’, lower than Vsupply and Vsupply’, in the example 1.8 V.
[0050] Thus, when the output Vcomp of the comparator 12 is low, e.g., OV, the MOSFET 131 is closed and MOSFET 132 open bringing the reduced voltage Vr as output VB1 of the first branch, which corresponds to Vshp and shgnd, in the example (Vsupply / 2). The MOSFET 133 is closed as well, and MOSFET 134 open, thus the output of the second branch, VB2, which corresponds to Vshn, is the reduced voltage Vr, which is for instance Vsupply / 2.
[0051] If the output Vcomp of the comparator 12 is high, the MOSFET 131 is open, MOSFET 132 brings the output VB1, of the first branch to ground, e.g., 0 V, while the output of the second branch, VB2, with the MOSFET 133 open and the MOSFET 134 closed, corresponds to Vsupply’’.
[0052] Since in the example the divided voltage Vd is brought to the negative input of the comparator 12 and the reference voltage Vbg to the positive,
[0053] If Vsupply<Vtrig the output of the comparator 12 is high, e.g. 3 V, and VB1=0 (Vshp, shgnd=0), VB2=Vsupply’’ (Vshn=1.8V).
[0054] If Vsupply>Vtrig the output of the comparator 12 is low, e.g. 0 V, and VB2=Vd=Vsupply / 2 (Vshp, shgnd=Vd), VB2= Vd=Vsupply / 2 (Vshn=Vd).
[0055] In general, the values of the second set of values, i.e., the values taken by VB1 and VB2, when Vsupply>Vtrig, with respect to the respective values in a first set of control values, i.e., the values taken by VB1 and VB2 when Vsupply>Vtrig, are chosen so that below and above the safe threshold Vtrig there is a voltage above the conduction threshold on the transistors, e.g. threshold gate source voltage for the MOSFETs. Thus, VB1 for the p cascode is zero volt below the safe threshold and Vr above threshold, which means that at the transition, Vsupply=3.6 volt, the voltage difference between the source of MOSFET 181a and gate of MOSFET 171a for instance is 3.6V (before Vcomp changes value) and then reaches 2.5V (Vsupply -Vr=Vsupply / 2). For the n cascode, VB2 is Vsupply’’=1.8V below the safe threshold, and Vr above, which means that at the transition, Vsupply=3.6 volt, the voltage difference between the source of MOSFET 151a and gate of MOSFET 161a for instance is 1.8V (before Vcomp changes value) and then reaches 2.5V (Vr-GND which is 0V). This on account of the polarity of the MOSFETs and the conduction threshold of n MOSFET being usually lower.
[0056] Thus, in general, above the safe threshold Vtrig it is chosen the second set of values to have high values (preferably equal one to the other, in the example both Vsupply / 2, but differences between them are possible) which ensure conduction of the latch 18 and p cascode 17 transistors, in particular taking in account the voltage threshold value of the p MOSFETS which are higher, while the the first set of values is chosen to have low values (preferably different one with respect to the other) that ensure conduction of driver 15 and n cascode 16 transistors. By way of example, the value of 1.8 is chosen to have similar conduction values below the safe threshold Vtrig.
[0057] Of course other arrangements of the two branches comprising switching circuit SW1 and SW2 are possible, changing the type of MOSFETs and also swapping the comparator 12 inputs between the divided voltage Vd and the reference voltage Vbg.
[0058] In general the comparator 12 supplies its comparator output Vcomp to the generator circuit which supplies a set of voltages at its output comprising a first shifted voltage Vshp for devices operating with a first polarity, e.g. p MOSFETs, a second shifted voltage Vshp for devices operating with a second polarity opposite to the first, e.g. n MOSFETs. In embodiments, a shifted ground shgnd for the first and / or the second shifted voltage is taken on the same branch output, e.g. VB1, i.e. corresponds to the first shifted voltage Vshp.
[0059] If the voltage supply Vsupply is below the threshold Vtrig, the first shifted voltage Vshp for devices operating with a second polarity opposite to the first, e.g. p MOSFET, which in embodiments can correspond also to the shifted ground shgnd for the first and / or the second shifted voltage is has a low voltage value, e.g. OV, and the second shifted voltage Vshn has a respective low voltage value as well.
[0060] If the voltage supply Vsupply is above the threshold Vtrig, the first shifted voltage Vshp for devices operating with a second polarity opposite to the first, e.g. p MOSFET, which in embodiments can correspond also to the shifted ground shgnd for the first and / or the second shifted voltage has a high voltage value, e.g. Vr, and the second shifted voltage Vshn has a respective high voltage value, again Vr in the example, as well.
[0061] As indicated, the low voltage value for the first shifted voltage Vshp is not necessarily equal to the low voltage value for second shifted voltage Vshn, which in the example is higher, e.g., 1.8V, but they are both lower voltage value with respect to the high voltage value, i.e. Vr=Vsupply / 2.
[0062] Then, FIG. 3A schematically illustrates a voltage level shifter 14, which represents the supplied circuitry 14 to which voltages of the set of voltages Vshp, Vshn at the outputs of circuit 13 are supplied, comprising PMOS driver switches 181a and 181b, forming a p driver circuit 18, each cascoded with a PMOS cascode switch 171a and 171b respectively, forming a p cascode circuit 17. The level shifter 14 further comprises NMOS driver switches 151a and 151b, forming a n driver circuit 15, each cascoded with an NMOS cascode switch 161a and 161b respectively, forming a n cascode circuit 16. The voltage level shifter 14 operates using a ground level, i.e, the ground GND, and two high level of voltage supply, namely the reduced voltage Vr, e.g. 2.5V, and the input high voltage Vsupply, e.g. 5V. The reduced voltage Vr corresponds to a maximum voltage Vmax, which is set for the intermediate transistors, i.e. transistor, MOSFET in particular, which cannot use the standard supply between input high voltage supply at 5V and ground GND. Here cascode circuit means the circuit, e.g., 16 or 17, which associated with the respective driver, e.g., 15 or 18 forms a cascoded circuit arrangement.
[0063] PMOS driver switches 181a and 181b are cross coupled forming a latch 18, the gate of PMOS driver switch 105 being coupled to node b and the gate of PMOS driver switch 110 being coupled to node a. The PMOS driver switches 181a and 181b are coupled to the high voltage supply Vsupply, i.e., 2*Vmax or 2*Vr.
[0064] PMOS cascode switches 171a and 171b have their respective gates connected together and tied to the first shifted voltage Vshp. Similarly NMOS cascode switches 161a and 161b have their respective gates connected together and tied to the second shifted voltage Vshn.
[0065] A control digital input signal Vdin to the level shifter 14, i.e., the signal to be shifted by the level shifter 14, is coupled to the gate of NMOS driver switch 151a, whilst the negated control digital input signal Vdin signal is coupled to the gate of NMOS driver switch 151b.
[0066] All the MOSFETS of the level shifter 14, 151a, 151b, 161a, 161b, 171a, 171b, 181a, 181b, are intermediate voltage transistors, which operate with a voltage of 3V.
[0067] In the case of the control digital input signal Vdin being logic high, i.e. at input of NMOS driver switch 151a on the right branch of the shifter 14, a high range output signal, corresponding to 2*Vmax, is generated at node b, whilst a low range output signal, corresponding to vmax, is generated at node a. At node c, on the right side, between 151a and 161a is generated 0 while at node d between 151b abd 161b on the left side is generated vmax. On a midpoint node out between the upper and lower halves of the level shifter 14, i.e., between cascode 16 and 17, on the left side, between 161b and 171b, is taken a level shifter output voltage Vout, which corresponds to 2*Vmax, or Vsupply, i.e., for the control digital input signal Vdin being logic high, the output Vout is Vsupply, despite the transistors of the level shifter only standing Vmax=Vsupply / 2.
[0068] The level shifter output voltage Vout is then brought to a circuit arrangement 50, not shown in FIG. 3A, which uses the shifted voltage formed at output Vout, e.g. a voltage between 0V and 3V, i.e. Vsupply’, obtained from the high-power supply voltage 5V.
[0069] As mentioned the circuit 50 can be for instance a non volatile memory, which uses, at least for the read operation, MOSFETs power supplied at said second power supply voltage Vsupply’.
[0070] It is underlined that the whole power supply circuit 10, which comprises the comparison circuit 20 and the generator of control voltages 13, not only the level shifter 14, uses transistors, in particular MOSFET, which operate with the lower power supply, i.e. they substantially are able to stand a potential difference of 3V or slightly higher, e.g. up to the safe threshold Vtrig, in the example 3.6V, but not a potential difference of 5V, like the high power supply voltage Vsupply.
[0071] In FIG. 3B it is shown that in the case of control digital input signal Vdin being logic high, the voltages between the left side and the right side are swapped.
[0072] If Vmax is the maximum voltage compatible with used devices and, to simplify, vth=0, vth being the threshold voltage of a MOSFET, with Vshn = Vmax and Vshp=Vmaz, thus the maximum voltage supply of the level shifter is 2*vmax, as shown in FIG. 3A, 3B
[0073] In FIG. 4 are shown the signals of the circuit of FIGS. 2 and 3 as a function of time t, starting from power up conditions. A power up region is indicated with PU, approximately from 0 to 1 ms. With Vsupply is indicated the high voltage supply and the reduced voltage Vr is also shown. As show, the high voltage supply Vsupply in this example increases from 0 to a level of 3.2 V, accordingly the reduced voltage Vr has half its value, reaching circa 1.6V. In the power up region PU the comparator output Vcomp increases till to reaching its high value, 3V, since the high voltage supply Vsupply is at maximum 3.2V below the threshold Vtrig value, 3.6 V. In an intermediate region IR Vsupply stays below Vtrg, thus Vshn is at Vsupply’’, 1.8V and Vshp is 0V. Then, when in a high voltage region RR the high voltage supply Vsupply reaches its maximum value of 5V, above the threshold Vtrig value, 3.6 V, the reduced voltage Vr consequently goes to Vsupply / 2, 2.5 V, the comparator 12 toggles its comparator output Vcomp which goes from high, 3 V, to low, 0V. At this point, as a consequence both Vshn and Vshp (and shgnd) go to Vr=Vsupply / 2.
[0074] In variant embodiments, the level shifter can be also not cascoded, e.g., include only the latch and the input driver. In that case the shifted p voltage Vshp is supplied as shifted ground shgnd and the high voltage supply Vsupply is supplied as power supply of the level shifter.
[0075] As shown in FIG. 6A, a latch with MOSFETs 281a, 281b is coupled to the high voltage supply Vsupply, while the input driver is formed by MOSFETs 251a, 251b and coupled to the shifted ground shgnd.
[0076] When Vsupply< Vtrig, i.e., below 3.6V in the example, the ground correspond to shgnd, i.e. is OV, thus across the MOSFETs there is a voltage which is 3.6 at amaximu. When Vsupply>Vtrig then shgnd is Vsupply / 2 and thus the difference of voltage on the MOSFETs is Vsupply-Vsupply / 2, 2.5V at maximum.
[0077] In FIG. 6B is also shown simpler level shifter 34, with a p MOSFET 301 and a n MOSFET 302 coupled in series between the power supply Vsupply and the ground shgnd, receiving the input digital voltage Vdin.
[0078] With reference to the FIGS. 5A-C, it is shown an embodiment of the portion comprising the comparator 12, which, to avoid spurious transitions of the comparator 12 due to possible undershoots, includes a hysteresis.
[0079] Thus, in FIG. 5A, the comparator 12 is coupled to a resistive divider 71 receiving the high voltage supply Vsupply, comprising three resistors in series R1, R2, R3. A divided feedback voltage Vdf is taken on the node between resistor R1 and R2 and brought as input (positive input in this case) of the comparator 12 which receives at the other input (negative) the reference voltage Vbg. The output Vcomp of the comparator 12 is brought back to an inverter 72 which output drives a n MOSFET MN1 which drain is coupled to the node between resistor R2 and R3.
[0080] Thus, the high voltage supply Vsupply, may be divided by two different ratios, depending on the value at the comparator output Vcomp of the comparator 12, as a high value of the comparator output Vcomp switches on the n MOSFET MN1, making the divider ratio R2 / R1+R2, while a low value of the comparator output Vcomp switches off the MOSFET MN1, making the divider ratio (R2+R3) / R1+R2+R3.
[0081] The divided feedback voltage Vdf is consequently:
[0082] Vdf=Vsupply*( R2 / R1+R2) with 73 on, and
[0083] Vdf=Vsupply *( R2+R3) / (R1+R2+R3) with 73 off
[0084] i.e. the divided feedback voltage Vdf is higher with transistor 73 on. As shown in FIG. 5B, which shows the signals as function of time, Vsupply, Vbg, Vup, Vdown, Vdf and Vcomp, the input voltage Vsupply and the divided feedback voltage Vdf increase. When the feedback voltage Vdf surpasses the reference voltage Vbg, the output Vcomp of the comparator 70 goes high, switching off transistor 73, changing the divider ratio, i.e. shifting up the value of the divided feedback voltage Vdf. This corresponds to the up threshold value Vup for the input high voltage supply Vsupply, shown in FIG. 5C, which is a diagram showing the comparator output Vcomp versus the input high voltage supply Vsupply. When the up threshold value Vup is passed by the increasing supply input voltage Vin. When the input voltage Vin decreases and goes below reference voltage VREF, the comparator output Vcomp goes low and the divided voltage feedback Vdf is shifted down. This corresponds to a low threshold value Vdown, lower than the up threshold value Vup, of the input high voltage supply Vsupply. Thus the input high voltage supply Vsupply increasing triggers the comparator 12 at a higher threshold, the up threshold value Vup, while decreasing triggers the comparator 12 at a lower threshold, the low threshold value Vdown, thus operating with a hysteresis.
[0085] This ensures a safe operating area while having an asynchronous rising and falling edge.
[0086] Thus, on the basis of the above description, the solution here described refers to a power supply circuit, e.g., 10, configured to output, on the basis of a first high power supply voltage, e.g., Vsupply, in the example 5V, received at its input, power supply voltage values, e.g., the output signal Vout of the level shifter 14, for transistors, e.g., 50, which may be for instance the MOSFETs of a NVM, in particular to perform a cell read operation, operating with a second power supply voltage, e.g., Vsupply’, which is in the 3V range in the example, e.g. 3V or 3.3V, lower than said first high power supply voltage, e.g.,Vsupply, such power supply circuit, e.g., 10, comprising a level shifter circuit, e.g., the cascoded circuit 14, although it may be also a not cascoded version, e.g., 24 or 34, configured to supply said power supply voltage values, e.g., Vout, shifting voltage levels of a digital signal, e.g., Vdin, at said second power supply voltage, e.g., Vsupply’, wherein said power supply circuit, e.g., 10, comprises a comparison circuit, e.g., 20 or also 70, which compares said first high power supply voltage, e.g., Vsupply, to a safe voltage threshold, e.g., Vtrig, supplying a comparison signal, e.g., the output Vcomp, to a circuit, e.g., 13, of generation of a set of control voltages, e.g., VSHp, VSHn, shgnd also indicated as VB1 and VB2 as branch outputs, for said level shifter circuit, e.g., 14, said circuit, e.g., 13, of generation of a set of control voltages, e.g., VSHp, VSHn, shgnd, supplies at its output said set of control voltages, VSHp, VSHn, shgnd, which takes a first set of values, e.g., 0V and 1.8V, if said comparison signal, e.g.,Vcomp, indicates that said first high power supply voltage, e.g., Vsupply, e.g., is below the safe voltage threshold, e.g., Vtrig, and a second set of values if said comparison signal, Vcomp, indicates that said first high supply voltage, e.g., Vsupply, is above the safe voltage threshold, Vtrig, the values of said first set of values being lower than the values of said second set of values.
[0087] As indicated, the first set of values and second set of values are chosen so as to ensure that the transistors of the level shifter, in particular p MOSFETs and n MOSFETs are in conduction both when the first high power supply voltage, e.g., Vsupply, e.g., is below the safe voltage threshold, e.g., Vtrig, and is above the safe voltage threshold, e.g., Vtrig. Thus, in general are chosen values for first set of values and second set of values which at least ensure over the relevant transistor or the transistors of the level shifter a voltage drop which is above the voltage threshold, e.g., the gate source voltage of the MOSFET. Clearly, the first set of values, i.e. higher voltages, is limited to the maximum operation value of the intermediate transistors, choosing a reduced voltage Vr which is at least lower than the safe threshold. It is observed that also a dual level shifter, with a n latch coupled to ground and a p driver coupled to the first high power supply voltage, e.g., Vsupply still operates with the same control voltages, e.g., VSHp, VSHn, thus, also in this case holds that the values of such first set of values are lower than the values of said second set of values.
[0088] In an embodiment, the set of control voltages is a pair of control voltages, e.g., VSHp, VSHn, and said level shifter, e.g., 14, is a cascoded level shifter comprising a latch circuit, e.g., 18, and a driver circuit, e.g., 15, receiving said digital signal, e.g., Vdin, to be shifted, said driver circuit, e.g., 15, being coupled to said latch circuit, e.g., 19, through a first cascode subcircuit, e.g., n cascode 16, and a second cascode subcircuit, e.g., p cascode 17, i.e., the latch 18 and the driver 15 are cascoded, said pair of control voltages comprising a first control voltage, Vshn, coupled to the joint gates of the first cascode subcircuit, e.g., 16, which is formed by two n MOSFETS 161a, 161b, and a respective second control voltage, Vshp, coupled to the joint gates of the second cascode circuit, e.g., 17 which is formed by two p MOSFETS 171a, 171b. In particular, the latch, e.g., 18, comprises latched p MOSFET, e.g., 181a, 181b, coupled to said first high power supply voltage, e.g., Vsupply, said driver circuit, e.g., 15, comprises n driver MOSFETs, e.g., 151a, 151b, coupled to ground, i.e., the ground GND of the high voltage Vsupply, zero volt, and said first control voltage is ground, in particular zero volt, and said second control voltage takes a value lower than the half, e.g. reduced voltage Vr, of said supply voltage, e.g., Vsupply, and greater than zero, in particular 1.8 volt, if said first high supply voltage, e.g., Vsupply, is below the safe voltage threshold, e.g., Vtrig, while said first, e.g., Vshp, and second control voltage, e.g., Vshn, are the half, e.g., Vr, of said supply voltage, e.g., Vsupply.
[0089] The power supply circuit here described comprises then a comparison circuit, e.g., 20, but also 70, which, comprises a divider circuit, e.g., 12, receiving at input said high voltage, e.g., Vsupply, and which supplies at output a divided voltage, e.g., Vd, to one input, as shown it may the negative as in FIG. 2 or positive as in FIG. 5, of a comparator, e.g., 11, supplied by said second power supply, e.g., Vsupply’’, said comparator, e.g., 11, receiving at the other input a comparator reference voltage,, e.g., Vbg from a bandgap voltage reference circuit although it may a different type of voltage reference, said divider circuit, e.g., 12, being configured to supply said divided voltage, e.g., Vd, with a value with respect to said comparator reference voltage, Vbg, so that said comparator, 11, changes its output when the high power supply voltage, Vsupply, at input is above or below said safe threshold, Vtrig,.
[0090] The circuit, e.g., 13, of generation of a set of control voltages, e.g., VSHp, VSHn, shgnd, comprises a circuit, e.g., 22, which is for instance a divider, not necessarily a resistive divider, configured to supply a reduced voltage, e.g., Vr, obtained from said high voltage, e.g., Vsupply,, in particular to halve the value of said high voltage, e.g., Vsupply, a first circuit branch, e.g., 131, 132, and a second branch, e.g., 133, 134, 135, coupled in parallel to the output of said comparator, e.g., 12, said first branch, e.g., 131, 132, comprising a switching circuit, e.g., switches 131, 132 embodies by MOSFETs, although of course other switch network also with other type of switching devices are possible to obtain the same set of control voltages on the branches of circuit 13 depending on the comparator output, which switches the first control voltage at the output of said first branch between said reduced voltage, e.g., Vr, and ground, e.g., GND, depending on the comparison signal, e.g., Vcomp, indicating that the high power supply voltage, e.g., Vsupply, is above or below said safe threshold, e.g., Vtrig, respectively, said second branch comprising a switching circuit, e.g., 133, 134, 135, which switches the second control voltage at the output of said second branch, e.g., 133, 134, 135, between said reduced voltage, e.g., Vr, and a third voltage, e.g., Vsupply’’, lower than the reduced voltage, e.g., Vr, and second, e.g., Vsupply’, voltage depending on the comparison signal, e.g., Vcomp, indicating that the high power supply voltage, e.g., Vsupply, is above or below the safe threshold, e.g., Vtrig, respectively.
[0091] The set of control voltages, e.g., shgnd, comprises one control voltage,, e.g., shgnd, which is supplied as ground reference of a not cascoded level shifter circuit, in particular a level shifter comprising a latch, e.g., 281a, 282b, coupled to a driver circuit, e.g., 251a, 251b, without interposition of cascode circuits, said not cascoded level shifter receiving said high power supply voltage, e.g., Vsupply, as power supply voltage. Thus, the circuit 13 may indeed supply still a pair of voltages, Vshp, Vshn, at the end of its two branches, but only Vshp is taken in this case to operate as shifted ground for the level shifter without cascading, which is then coupled at the power supply node to the high voltage Vsupply.
[0092] It is also here described a comparison circuit, e.g., 70, which can be used in place of comparison circuit 20, which includes a divider circuit, e.g., 71, with at least two selectable dividing ratios, in particular a resistive divider with three resistor, e.g. R1, R2, R3 in series, receiving at input said high voltage, e.g., Vsupply, and which supplies at output a divided voltage, e.g., Vdf, to one input of a comparator, e.g., 12,, supplied by said second power supply, e.g., Vsupply’’, said comparator, e.g., 11, receiving at the other input a comparator reference voltage, e.g., Vbg, said divider circuit, e.g., 71, being configured to supply said divided voltage, e.g., Vdf, with a value with respect to said comparator reference voltage, e.g., Vbg, so that said comparator, e.g., 11, changes its output value, e.g., Vcomp, when the high power supply voltage, e.g., Vsupply, at input is above or below said safe threshold, e.g., Vtrig,, said comparison circuit, e.g., 20, comprising a feedback circuit, e.g., 72, 73, coupled to the output of said comparator, e.g., 11,, comprising a switch, e.g., 73, triggered by the output value, e.g., Vcomp, of the comparator, e.g., 11,, selecting one of the two selectable dividing ratios of the input high power supply voltage, e.g., Vsupply, when the high power supply voltage, e.g., Vsupply, at input is above or below said safe threshold, e.g., Vtrig,, so that a hysteresis on the value at input of the comparator, e.g., 11, is introduced. The switch 73 in particular allows to couple the comparator 11 either to the node between R2 and R3, the latter being coupled to ground GND, or the divided input, R1, and R2.
[0093] It is underlined here that the comparison circuit 70 can employed as a hysteresis comparator also outside the power supply circuit 10 here described. Thus it here described also a stand-alone comparison circuit which includes a divider circuit, e.g., 71, with at least two selectable dividing ratios, in particular a resistive divider with three resistor, e.g. R1, R2, R3 in series, receiving at input a high voltage, e.g., Vsupply, and which supplies at output a divided voltage, e.g., Vdf, to one input of a comparator, e.g., 12, supplied by a second power supply, e.g., Vsupply’’, said comparator, e.g., 11, receiving at the other input a comparator reference voltage, e.g., Vbg, said divider circuit, e.g., 71, being configured to supply said divided voltage, e.g., Vdf, with a value with respect to said comparator reference voltage, e.g., Vbg, so that said comparator, e.g., 11, changes its output value, e.g., Vcomp, when the high power supply voltage, e.g., Vsupply, at input is above or below said safe threshold, e.g., Vtrig,, said comparison circuit, e.g., 70, comprising a feedback circuit, e.g., 72, 73, coupled to the output of said comparator, e.g., 11,, comprising a switch, e.g., 73, triggered by the output value, e.g., Vcomp, of the comparator, e.g., 11,, selecting one of the two selectable dividing ratios of the input high power supply voltage, e.g., Vsupply, when the high power supply voltage, e.g., Vsupply, at input is above or below said safe threshold, e.g., Vtrig,, so that a hysteresis on the value at input of the comparator, e.g., 11, is introduced. The switch 73 in particular allows to couple the comparator 11 either to the node between R2 and R3, the latter being coupled to ground GND, or the divided input, R1, and R2. Such a stand-alone comparison circuit, e.g., 70, may be used with or integrated in any other circuit requiring a comparison with hysteresis of an input voltage.
[0094] The transistors, e.g., of a circuit 50, may be comprised in a non-volatile memory and the second power supply voltage, e.g., Vsupply’, may be used at least for the read operation.
[0095] The input high power supply voltage, e.g., Vsupply, is by way of example 5 Volt and the second power supply voltage, e.g., Vsupply’, is 3V or in the 3V range.
[0096] From the description here above thus the advantages of the solution described are clear.
[0097] Advantageously, the solution described allows to manage high voltages without dedicated devices, i.e., with devices, in particular MOSFETs, which operate with lower voltages. This obtained in particular by a comparator which controls a generator of the voltages for the level shifter.
[0098] Advantageously, the whole power supply circuit uses transistors, in particular MOSFET, which operate with lower voltages.
[0099] The adoption a comparator with hysteresis ensures a safe operating area while having an asynchronous rising and falling edge
[0100] Without prejudice to the underlying principles, the details and embodiments may vary, even significantly, with respect to what has been described by way of example only, without departing from the extent of protection.
[0101] The extent of protection is defined by the annexed claims.
Claims
1. A power supply circuit comprising:a level shifter circuit configured to output power supply voltage values for transistors operating with a second power supply voltage, by shifting voltage levels of a digital signal at the second power supply voltage, the second power supply voltage being lower than a first high power supply voltage received at an input of the power supply circuit; anda comparison circuit configured to compare the first high power supply voltage to a safe voltage threshold and to supply a comparison signal to a circuit configured to generate a set of control voltages for the level shifter circuit,wherein the set of control voltages takes a first set of values when the comparison signal indicates that the first high power supply voltage is below the safe voltage threshold and takes a second set of values when the comparison signal indicates that the first high power supply voltage is above the safe voltage threshold, andwherein each value of the first set of values is lower than a corresponding value of the second set of values.
2. The circuit of claim 1, wherein the set of control voltages comprises a pair of control voltages and the level shifter is a cascoded level shifter comprising a latch circuit and a driver circuit receiving the digital signal to be shifted, the driver circuit being coupled to the latch circuit through a first cascode subcircuit and a second cascode subcircuit, the pair of control voltages comprising a first control voltage coupled to the joint gates of the first cascode subcircuit and a respective second control voltage coupled to the joint gates of the second cascode subcircuit.
3. The power supply circuit of claim 2, wherein:the latch circuit comprises latched p-channel MOSFETs coupled to the first high power supply voltage;the driver circuit comprises n-channel driver MOSFETs coupled to ground;when the first high power supply voltage is below the safe voltage threshold, the first control voltage is at ground and the second control voltage is at a fixed value greater than zero and less than the safe voltage threshold; andwhen the first high power supply voltage is above the safe voltage threshold, the first control voltage and the second control voltage are each at half of the first high power supply voltage.
4. The circuit of claim 1, wherein the comparison circuit comprises a divider circuit configured to receive the first high power supply voltage and to supply a divided voltage to one input of a comparator that is powered by the second power supply voltage and that receives at another input of the comparator a comparator reference voltage, the divider circuit being configured to supply the divided voltage with a value, with respect to the comparator reference voltage, so that the comparator changes its output when the first high power supply voltage is above or below the safe voltage threshold.
5. The power supply circuit of claim 4, wherein the circuit configured to generate the set of control voltages comprises:a voltage reduction circuit configured to supply a reduced voltage derived from the first high power supply voltage;a first circuit branch coupled to an output of the comparator; anda second circuit branch coupled to the output of the comparator in parallel with the first circuit branch,wherein the first circuit branch comprises a first switching circuit configured to switch a first control voltage at an output of the first circuit branch between the reduced voltage and ground in response to the comparison signal indicating that the first high power supply voltage is respectively above or below the safe voltage threshold, andwherein the second circuit branch comprises a second switching circuit configured to switch a second control voltage at an output of the second circuit branch between the reduced voltage and a third voltage in response to the comparison signal indicating that the first high power supply voltage is respectively above or below the safe voltage threshold, the third voltage being lower than each of the reduced voltage and the second power supply voltage.
6. The power supply circuit of claim 1, wherein:the level shifter circuit is a non-cascoded level shifter comprising a latch coupled to a driver circuit without interposition of a cascode circuit;the non-cascoded level shifter is configured to receive the first high power supply voltage as a power supply voltage; andthe set of control voltages comprises a control voltage that is supplied as a ground reference of the non-cascoded level shifter.
7. The power supply circuit of claim 1, wherein the comparison circuit comprises:a divider circuit having at least two selectable dividing ratios, the divider circuit being configured to receive the first high power supply voltage and to supply a divided voltage to one input of a comparator that is powered by the second power supply voltage and that receives at another input of the comparator a comparator reference voltage, the divider circuit being configured to supply the divided voltage with a value, with respect to the comparator reference voltage, so that the comparator changes an output value of the comparator when the first high power supply voltage is above or below the safe voltage threshold; anda feedback circuit coupled to an output of the comparator, the feedback circuit comprising a switch triggered by the output value of the comparator and configured to select one of the at least two selectable dividing ratios in response to the first high power supply voltage being above or below the safe voltage threshold, so that a hysteresis is introduced at the one input of the comparator.
8. The power supply circuit of claim 1, wherein the transistors are comprised in a non-volatile memory and the second power supply voltage is used at least for a read operation of the non-volatile memory.
9. The power supply circuit of claim 1, wherein the first high power supply voltage is 5 volts and the second power supply voltage is in a range of 3 volts to 3.3 volts.
10. A method for supplying power, the method comprising:performing a comparison of a first high power supply voltage with respect to a safe voltage threshold; andgenerating a set of control voltages for transistors operating with a second power supply voltage lower than the first high power supply voltage, wherein the set of control voltages takes a first set of values when the comparison indicates that the first high power supply voltage is below the safe voltage threshold and takes a second set of values when the comparison indicates that the first high power supply voltage is above the safe voltage threshold, and wherein each value of the first set of values is lower than a corresponding value of the second set of values.
11. The method of claim 10, further comprising shifting, based on the set of control voltages, voltage levels of a digital signal at the second power supply voltage, to output power supply voltage values for the transistors.
12. The method of claim 11, wherein the set of control voltages comprises a pair of control voltages and the shifting is performed by a cascoded level shifter that comprises:a latch circuit;a driver circuit configured to receive the digital signal; anda first cascode subcircuit and a second cascode subcircuit coupling the driver circuit to the latch circuit, the method further comprising supplying the pair of control voltages, the pair of control voltages comprising a first control voltage coupled to joint gates of the first cascode subcircuit and a second control voltage coupled to joint gates of the second cascode subcircuit.
13. The method of claim 12, wherein:the latch circuit comprises latched p-channel MOSFETs coupled to the first high power supply voltage;the driver circuit comprises n-channel driver MOSFETs coupled to ground;when the first high power supply voltage is below the safe voltage threshold, supplying the pair of control voltages comprises supplying the first control voltage at ground and supplying the second control voltage at a value greater than zero and less than half of the first high power supply voltage; andwhen the first high power supply voltage is above the safe voltage threshold, supplying the pair of control voltages comprises supplying the first control voltage and the second control voltage each at half of the first high power supply voltage.
14. The method of claim 10, wherein performing the comparison comprises:supplying a divided voltage of the first high power supply voltage to one input of a comparator;feeding back an output of the comparator; andperforming, based on the output of the comparator, a switch that selects a dividing ratio used to generate the divided voltage, so that a hysteresis is introduced at the one input of the comparator.
15. The method of claim 12, wherein:the latch circuit comprises latched p-channel MOSFETs coupled to the first high power supply voltage;the driver circuit comprises n-channel driver MOSFETs coupled to ground;when the first high power supply voltage is below the safe voltage threshold, supplying the pair of control voltages comprises supplying the first control voltage at ground and supplying the second control voltage at a fixed value greater than zero and less than the safe voltage threshold; andwhen the first high power supply voltage is above the safe voltage threshold, supplying the pair of control voltages comprises supplying the first control voltage and the second control voltage each at half of the first high power supply voltage.
16. A voltage detection circuit with hysteresis, comprising:a divider circuit having at least two selectable dividing ratios, the at least two selectable dividing ratios comprising a first dividing ratio and a second dividing ratio, the divider circuit being configured to receive an input voltage and to supply a divided voltage to one input of a comparator, the comparator being configured to receive at another input of the comparator a reference voltage; anda feedback circuit coupled to an output of the comparator, the feedback circuit comprising a switch triggered by an output value of the comparator and configured to select, in response to the output value of the comparator, one of the first dividing ratio and the second dividing ratio for the divider circuit, wherein the first dividing ratio and the second dividing ratio are selected such that:the output value of the comparator transitions from a first state to a second state when the input voltage rises across an upper threshold voltage; andthe output value of the comparator transitions from the second state to the first state when the input voltage falls across a lower threshold voltage, the lower threshold voltage being less than the upper threshold voltage.
17. The voltage detection circuit of claim 16, wherein the divider circuit comprises three resistors coupled in series between the input voltage and a ground.
18. The voltage detection circuit of claim 16, wherein the feedback circuit further comprises an inverter coupled between the output of the comparator and a control terminal of the switch, and wherein the switch comprises a transistor having the control terminal driven by the inverter.
19. The voltage detection circuit of claim 16, further comprising a bandgap voltage reference circuit configured to supply the reference voltage to the another input of the comparator.
20. The voltage detection circuit of claim 16, wherein the input voltage is a first high power supply voltage of a power supply circuit, and the voltage detection circuit is configured to output the output value of the comparator to a circuit configured to generate a set of control voltages for a level shifter circuit of the power supply circuit.
