Power supply glitch detector
10156595 ยท 2018-12-18
Assignee
Inventors
Cpc classification
G01R19/165
PHYSICS
G01R29/027
PHYSICS
G01R29/02
PHYSICS
G01R19/2503
PHYSICS
G01R29/0273
PHYSICS
International classification
G01R19/165
PHYSICS
G01R29/02
PHYSICS
Abstract
A power supply glitch detector includes a sense node AC coupled to a power supply node on which voltage glitches having a magnitude of V.sub.glitch are to be detected. A sensing inverter has an input and an output, the input coupled to the sensing node, the sensing inverter having a trip voltage V.sub.trip below which the output of the sensing inverter is at a voltage representing a logic high state and above which the output of the sensing inverter is at a voltage representing a logic low state. An adjustable voltage biasing circuit is coupled to the sensing node to maintain the input of the sensing inverter at a bias voltage V.sub.bias, wherein V.sub.bias is chosen such that either both conditions (V.sub.bias<V.sub.trip) and (V.sub.bias+V.sub.glitch>V.sub.trip) or both conditions (V.sub.bias>V.sub.trip) and (V.sub.biasV.sub.glitch<V.sub.trip) are always true.
Claims
1. A power supply glitch detector comprising: a sensing node AC coupled to a power supply node on which positive voltage glitches having a magnitude of at least V.sub.glitch are to be detected; a sensing inverter having an input and an output, the input coupled to the sensing node, the sensing inverter having a trip voltage V.sub.trip below which the output of the sensing inverter is at a voltage representing a logic high state and above which the output of the sensing inverter is at a voltage representing a logic low state; and a user-settable voltage biasing circuit coupled to the sensing node to maintain the input of the sensing inverter at a settable bias voltage V.sub.bias, wherein V.sub.bias is chosen such that both conditions (V.sub.bias<V.sub.trip) and (V.sub.bias+V.sub.glitch>V.sub.trip) are always true.
2. The power supply glitch detector of claim 1 wherein the sensing node is AC coupled by a capacitor voltage divider to the power supply node on which positive voltage glitches having a magnitude of at least V.sub.glitch are to be detected.
3. The power supply glitch detector of claim 1 further comprising a glitch width filter coupled to the output of the sensing inverter.
4. The power supply glitch detector of claim 3 wherein the glitch width filter is a variable pulse width filter.
5. The power supply glitch detector of claim 1 further comprising a pulse stretching circuit coupled to the output of the sensing inverter.
6. The power supply glitch detector of claim 1 wherein the user-settable voltage biasing circuit comprises: a series string of resistors; an inverter having a trip voltage V.sub.trip equal to the trip voltage of the sensing inverter, the inverter having an input and an output connected together to a first end of the series string of resistors; an n-channel transistor having a drain coupled to a second end of the series string of resistors, a source coupled to ground, and a gate coupled to a voltage potential selected to cause a predetermined current to flow through the series string of resistors; a first select transistor coupled between the drain of the n-channel transistor and the sensing node, the first select transistor having a gate coupled to a first control signal; and a second select transistor coupled between a common connection of a first adjacent pair of resistors in the series string of resistors and the sensing node, the second select transistor having a gate coupled to a second control signal.
7. The power supply glitch detector of claim 6 wherein the user-settable voltage biasing circuit further comprises: a third select transistor coupled between a common connection of a second adjacent pair of resistors in the series string of resistors and the sensing node, the third select transistor having a gate coupled to a third control signal.
8. A power supply glitch detector comprising: a sensing node AC coupled to a power supply node on which negative voltage glitches having a magnitude of at least V.sub.glitch are to be detected; a sensing inverter having an input and an output, the input coupled to the sensing node, the sensing inverter having a trip voltage V.sub.trip below which the output of the sensing inverter is at a voltage representing a logic high state and above which the output of the sensing inverter is at a voltage representing a logic low state; a user-settable voltage biasing circuit coupled to the sensing node to maintain the input of the sensing inverter at a settable bias voltage V.sub.bias, wherein V.sub.bias is chosen such that both conditions (V.sub.bias>V.sub.trip) and (V.sub.biasV.sub.glitch<V.sub.trip) are always true.
9. The power supply glitch detector of claim 8 wherein the sensing node is AC coupled by a capacitor voltage divider to the power supply node on which negative voltage glitches having a magnitude of at least V.sub.glitch are to be detected.
10. The power supply glitch detector of claim 8 further comprising a glitch width filter coupled to the output of the sensing inverter.
11. The power supply glitch detector of claim 10 wherein the glitch width filter is a variable pulse width filter.
12. The power supply glitch detector of claim 8 further comprising a pulse stretching circuit coupled to the output of the sensing inverter.
13. The power supply glitch detector of claim 8 wherein the user-settable voltage biasing circuit comprises: a series string of resistors; a current mirror supplying a current i.sub.bias connected to a first end of the series string of resistors; an inverter having a trip voltage V.sub.trip equal to the trip voltage of the sensing inverter, the inverter having an input and an output connected together to a second end of the series string of resistors; a first select transistor coupled between the output of the current mirror and the sensing node, the first select transistor having a gate coupled to a first control signal; and a second select transistor coupled between a common connection of a first adjacent pair of resistors in the series string of resistors and the sensing node, the second select transistor having a gate coupled to a second control signal.
14. The power supply glitch detector of claim 13 wherein the user-settable voltage biasing circuit further comprises: a third select transistor coupled between a common connection of a second adjacent pair of resistors in the series string of resistors and the sensing node, the third select transistor having a gate coupled to a third control signal.
15. A power supply glitch detector comprising: a first sensing node AC coupled to a power supply node on which positive voltage glitches having a magnitude of at least V.sub.glitch+ are to be detected; a first sensing inverter having an input and an output, the input coupled to the first sensing node, the first sensing inverter having a trip voltage V.sub.trip+ below which the output of the first sensing inverter is at a voltage representing a logic high state and above which the output of the first sensing inverter is at a voltage representing a logic low state; a first user-settable voltage biasing circuit coupled to the first sensing node to maintain the input of the first sensing inverter at a settable bias voltage V.sub.bias+, wherein V.sub.bias+ is chosen such that both conditions (V.sub.bias+<V.sub.trip+) and (V.sub.bias++V.sub.glitch+>V.sub.trip+) are always true; a second sensing node AC coupled to a power supply node on which negative voltage glitches having a magnitude of at least V.sub.glitch are to be detected; a second sensing inverter having an input and an output, the input coupled to the second sensing node, the second sensing inverter having a trip voltage V.sub.trip below which the output of the second sensing inverter is at a voltage representing a logic high state and above which the output of the second sensing inverter is at a voltage representing a logic low state; a second user-settable voltage biasing circuit coupled to the second sensing node to maintain the input of the second sensing inverter at a settable bias voltage V.sub.bias, wherein V.sub.bias is chosen such that both conditions (V.sub.bias>V.sub.trip) and (V.sub.biasV.sub.glitch<V.sub.trip) are always true.
16. The power supply glitch detector of claim 15 wherein: the first sensing node is AC coupled by a first capacitor voltage divider coupled to the power supply node on which positive voltage glitches having a magnitude of at least V.sub.glitch+ are to be detected; and the second sensing node is AC coupled by a second capacitor voltage divider coupled to the power supply node on which negative voltage glitches having a magnitude of at least V.sub.glitch are to be detected.
17. The power supply glitch detector of claim 16 further comprising: a first glitch width filter coupled to the output of the first sensing inverter; and a second glitch width filter coupled to the output of the second sensing inverter.
18. The power supply glitch detector of claim 17 wherein the first and second glitch width filters are variable pulse width filters.
19. The power supply glitch detector of claim 16 further comprising: a first pulse stretching circuit coupled to the output of the first sensing inverter; and a second pulse stretching circuit coupled to the output of the second sensing inverter.
Description
BRIEF DESCRIPTION OF THE DRAWING FIGURES
(1) The invention will be explained in more detail in the following with reference to embodiments and to the drawing in which are shown:
(2)
(3)
(4)
(5)
(6)
(7)
DETAILED DESCRIPTION
(8) Persons of ordinary skill in the art will realize that the following description of the present invention is illustrative only and not in any way limiting. Other embodiments of the invention will readily suggest themselves to such skilled persons.
(9) Referring first of all to
(10)
(11) Glitch coupling circuit 22 is coupled between the voltage supply voltage line 24, also known as power supply node 24 and the input of the detection circuit 26, which input is called a sensing node. The glitch coupling circuit 22 transfers any voltage glitch occurring on the voltage supply line 24 to the sensing node at the input of the detection circuit 26.
(12) Considering the case of a positive glitch detector, if the input voltage level is below the trip-point V.sub.trip of the detection circuit 26, the output is at a first logic state (e.g., logic 1 also referred to as high logic state), indicative that no glitch has been detected. If the input voltage level is above the trip-point V.sub.trip of the detection circuit 26, the output transitions to a second logic state opposite the first logic state (e.g., logic 0 also referred to as low logic state), indicative that a glitch has been detected.
(13) In an embodiment where the glitch detector circuit 26 has a trip point of V.sub.trip, the input of the glitch detection circuit 26 is biased by bias generator circuit 28 to a voltage level of V.sub.bias where it remains under steady-state conditions. V.sub.bias is set to be lower than V.sub.trip by a certain preset known voltage (V). Under the steady-state condition the output of the detection circuit 26 is at the first logic state (e.g., logic 1).
(14) A glitch occurring on the voltage supply line 24 will be coupled to the input of the glitch detection circuit 26. If the glitch raises the input voltage of the glitch detection circuit 26 by more than the preset voltage V, then V.sub.bias+V.sub.glitch>V.sub.trip and it will cause the detection circuit 26 to trip and its output transitions from the first logic state to the second logic state (e.g., logic 0).
(15) When the voltage glitch on the supply terminates, the input voltage to the detection circuit 26 returns to its quiescent value V.sub.bias. Since now V.sub.bias<V.sub.trip, the output of the detection circuit 26 returns to the first logic state. In this process the output of the detection circuit generates a short pulse (e.g., going from logic 1.fwdarw.0.fwdarw.1 ). This pulse can be stretched using a pulse stretching circuit 30 to generate the output of the glitch detector 20.
(16) Considering the case of a negative glitch detector, the trip-point V.sub.trip of the detection circuit 26 is set to be below the steady-state voltage level to the input of the glitch detection circuit 26. Under this steady state condition, the output of the detection circuit 26 is at a first logic level (e.g., logic 0), indicative that no glitch has been detected. If the input voltage level to the glitch detection circuit 26 drops below the trip-point V.sub.trip of the detection circuit 26, the output of the glitch detection circuit 26 transitions to the second logic state (e.g., logic 1), indicative that a glitch has been detected.
(17) In a negative glitch detector embodiment where the glitch detector circuit 26 has a trip point of V.sub.trip, the input of the glitch detection circuit 26 is biased by bias generator circuit 28 to a voltage level of V.sub.bias under steady-state conditions. V.sub.bias is set to be higher than V.sub.trip by a certain preset known voltage (V). Under the steady-state condition the output of the detection circuit 26 is at the first logic level.
(18) A glitch will be coupled to the input of the glitch detection circuit 26. If the glitch lowers the input voltage of the glitch detection circuit 26 by more than the preset voltage V, then V.sub.biasV.sub.glitch<V.sub.trip and it will cause the output of the detection circuit 26 to transition from the first logic state to the second logic state.
(19) When the voltage glitch on the supply terminates, the input voltage to the detection circuit 26 returns to V.sub.bias. Since now V.sub.bias>V.sub.trip, the output of the detection circuit 26 returns to the first logic state. In this process the output of the detection circuit generates a short pulse (e.g., going from logic 0.fwdarw.1.fwdarw.0). This pulse can be stretched using a pulse stretching circuit 30 to generate the output of the glitch detector 20.
(20) Referring now to
(21) A adjustable voltage biasing circuit (shown within dashed lines 50) is used to bias the input of the detection circuit to a voltage level V.sub.bias to a predetermined level below V.sub.trip in steady state, with a steady state difference of V. The adjustable voltage biasing circuit 50 employs an inverter 52 having its input connected to its output. This connection sets the output of inverter 52 at its trip point V.sub.trip. Inverter 52 is matched to sensing inverter 46 so that both inverters 46 and 52 have the same trip point voltage V.sub.trip. The trip point of the inverter 52 is set to be the same as the trip point of the sensing inverter 46 in order to allow the bias circuit 50 to set the bias of the sensing inverter 46 accordingly.
(22) A series string of resistors R.sub.1, R.sub.2, R.sub.3, R.sub.4, R.sub.5, and R.sub.6, identified respectively by reference numerals 54, 56, 58, 60, 62, and 64 are coupled between the output of inverter 52 and an n-channel current bias transistor 66. N-channel current bias transistor 66 has its gate set at a voltage to cause a constant current bias to flow through the series string of resistors.
(23) A first bias transistor 68 is coupled between the common connection of resistors R.sub.3 and R.sub.4 and the input of sensing inverter 46. Its gate is coupled to a control signal thresh_ctrl_1. A second bias transistor 70 is coupled between the common connection of resistors R.sub.4 and R.sub.5 and the input of sensing inverter 46. Its gate is coupled to a control signal thresh_ctrl_2. A third bias transistor 72 is coupled between the common connection of resistors R.sub.5 and R.sub.6 and the input of sensing inverter 46. Its gate is coupled to a control signal thresh_ctrl_3. A fourth bias transistor 74 is coupled between the common connection of resistor R.sub.6 and the drain of current bias transistor 66 and the input of sensing inverter 46. Its gate is coupled to a control signal thresh_ctrl_4. Persons of ordinary skill in the art will appreciate that R.sub.1 through R.sub.3 are formed separately to keep the unit resistor value the same throughout the ladder to ensure good resistor matching.
(24) The several voltage bias levels generated inside the adjustable voltage biasing circuit 50 are calculated as follows:
V.sub.bias1=V.sub.tripI.sub.bias*(R.sub.1+R.sub.2+R.sub.3)(1)
V.sub.bias2=V.sub.tripI.sub.bias*(R.sub.1+R.sub.2+R.sub.3+R.sub.4)(2)
V.sub.bias3=V.sub.tripI.sub.bias*(R.sub.1+R.sub.2+R.sub.3+R.sub.4+R.sub.5)(3)
V.sub.bias4=V.sub.tripI.sub.bias*(R.sub.1+R.sub.2+R.sub.3+R.sub.4+R.sub.5+R.sub.6)(4)
(25) One of the control inputs, thresh_ctrl_1, thresh_ctrl_2, thresh_ctrl_3, and thresh_ctrl_4, is activated to provide any of the above four bias levels to the input of the sensing inverter 46 through one of bias transistors 68, 70, 72, and 74. The signals used to drive the gates of transistors 68, 70, 72, and 74 may be provided by a one-of-four decoder as is known in the art. The resistance values of resistors R.sub.1-R.sub.6 are selected to provide control for the bias voltage supplied to the sensing inverter 46. In one exemplary non-limiting embodiment of the invention, the resistance values of resistors R.sub.1-R.sub.6 are selected to provide selectable glitch amplitude thresholds (V) for V.sub.bias1 through V.sub.bias4 of +15%, +20%, +25%, and +30% of V.sub.supply respectively.
(26) As an example, assume that thresh_ctrl_1 is set to active so as to turn on transistor 68 and thereby apply V.sub.bias1 to the input of sensing inverter 46. Therefore V.sub.bias=V.sub.tripI.sub.bias*(R.sub.1+R.sub.2+R.sub.3)=V.sub.bias1. In case there is any positive glitch (of magnitude V.sub.glitch) on the voltage supply, it gets coupled to the input of sensing inverter 46 through capacitor 44. This positive glitch causes V.sub.bias to temporarily become V.sub.bias+V.sub.glitch.
(27) If V.sub.bias+V.sub.glitch>V.sub.trip, the sensing inverter 46 trips and generates a short pulse the duration of which is essentially equal to the time that the glitch maintains V.sub.bias+V.sub.glitch at a voltage level higher than V.sub.trip. Similar analyses that will be well understood by persons of ordinary skill in the art apply for turning on other ones of transistors 70, 72, and 74.
(28) Inverter 76 and buffer 78 along with a glitch width filter 80, illustrated without limitation as an RC filter 80, and a pulse stretching circuit 84 in
(29) Referring now to
(30) The detection circuit 90 shown in
(31) An adjustable voltage biasing circuit (shown within dashed lines 100) is used to bias the input of the detection circuit to a voltage level V.sub.bias which is set to be V volts below V.sub.trip in steady state. The adjustable voltage biasing circuit 100 employs a current mirror 102 formed from p-channel transistors 104 and 106. A voltage 110 at the gate of an n-channel transistor 108 sets the current value i.sub.bias flowing though transistor 104, which is mirrored by p-channel transistor 106.
(32) An inverter 112 has its input connected to its output. This connection sets the output of inverter 112 at its trip point V.sub.trip. As explained above with reference to the positive glitch detector of
(33) A series string of resistors R.sub.1, R.sub.2, R.sub.3, R.sub.4, R.sub.5, and R.sub.6, identified respectively by reference numerals 114, 116, 118, 120, 122, and 124, is coupled between the output of inverter current mirror 102 and inverter 112. A constant current i.sub.bias set by transistor 108, and mirrored by current mirror 102, flows through the series string of resistors. The inverter 112 sets the voltage at the bottom end of resistor R.sub.6 at V.sub.trip.
(34) A first bias transistor 126 is coupled between the common connection of resistors R.sub.3 and R.sub.4 and the input of sensing inverter 96. Its gate is coupled to a control signal thresh_ctrl_1. A second bias transistor 128 is coupled between the common connection of resistors R.sub.4 and R.sub.5 and the input of sensing inverter 96. Its gate is coupled to a control signal thresh_ctrl_2. A third bias transistor 130 is coupled between the common connection of resistors R.sub.5 and R.sub.6 and the input of sensing inverter 96. Its gate is coupled to a control signal thresh_ctrl_3. A fourth bias transistor 132 is coupled between the common connection of resistor R.sub.6 and the output of inverter 112 and the input of sensing inverter 96. Its gate is coupled to a control signal thresh_ctrl_4.
(35) The several voltage bias levels generated inside the adjustable voltage biasing circuit 100 are calculated as follows:
V.sub.bias1=V.sub.trip+I.sub.bias*(R.sub.1+R.sub.2+R.sub.3)(1)
V.sub.bias2=V.sub.trip+I.sub.bias*(R.sub.1+R.sub.2+R.sub.3+R.sub.4)(2)
V.sub.bias3=V.sub.trip+I.sub.bias*(R.sub.1+R.sub.2+R.sub.3+R.sub.4+R.sub.5)(3)
V.sub.bias4=V.sub.trip+I.sub.bias*(R.sub.1+R.sub.2+R.sub.3+R.sub.4+R.sub.5+R.sub.6)(4)
(36) A control circuitry (not shown) activates one of thresh_ctrl_1, thresh_ctrl_2, thresh_ctrl_3, and thresh_ctrl_4, to provide any of the above four bias levels to the input of the sensing inverter 96 through one of bias transistors 126, 128, 130, and 132. The signals used to drive the gates of transistors 126, 128, 130, and 132 may be provided by a one-of-four decoder as is known in the art. The resistance values of resistors R.sub.1-R.sub.6 are selected to provide control for the voltage supplied to the sensing inverter 96. In one exemplary non-limiting embodiment of the invention, the resistance values of resistors R.sub.1-R.sub.6 are selected to provide different glitch amplitude thresholds for V.sub.bias1 through V.sub.bias4 of 15%, 20%, 25%, and 30% of V.sub.supply, respectively.
(37) As an example, assume that thresh_ctrl_1 is applied to the gate of transistor 126 to turn it on and apply V.sub.bias1 to the input of sensing inverter 96. Therefore V.sub.bias=V.sub.trip+I.sub.bias*(R.sub.1+R.sub.2+R.sub.3). In case there is any negative glitch (of magnitude V.sub.glitch) on the voltage supply, it gets coupled to the input of sensing inverter 96 through capacitor 94. This negative glitch causes V.sub.bias to temporarily become V.sub.biasV.sub.glitch.
(38) If V.sub.biasV.sub.glitch<V.sub.trip, the sensing inverter 96 trips and generates a short pulse the duration of which is essentially equal to the time that the glitch maintains V.sub.bias at a voltage level lower than V.sub.trip. Similar analyses that will be well understood by persons of ordinary skill in the art apply for turning on other ones of transistors 128, 130, and 132.
(39) Inverters 134, 136, and buffer 138 along with glitch width filter 140, illustrated without limitation as an RC filter 140, and pulse stretching circuit 144 in
(40) Referring now to
(41) An input node 152 is connected to the input of an inverter 154. The output of inverter 154 is connected to the input of an inverter 156 through resistor 158. The output of inverter 156 is connected to an output node 160.
(42) In the embodiment of the RC filter shown in
(43) The RC filter inserts the capacitance in the common node 170 that is both the output of inverter 154 and the input of inverter 156. Width control bit input 162 is connected to series connected inverters 172 and 174 that are used to control a passgate 176. Passgate 176 is formed from n-channel transistor 178 and p-channel transistor 180. The gate of n-channel transistor 178 is connected to the output of inverter 172 and the gate of p-channel transistor 180 is connected to the output of inverter 174. The passgate 176 connects capacitor 182 to common node 170.
(44) Similarly, width control bit input 164 is connected to series connected inverters 184 and 186 that are used to control a passgate 188. Passgate 188 is formed from n-channel transistor 190 and p-channel transistor 192. The gate of n-channel transistor 190 is connected to the output of inverter 184 and the gate of p-channel transistor 192 is connected to the output of inverter 186. The passgate 188 connects capacitor 194 to common node 170. Width control bit input 166 is connected to series connected inverters 196 and 198 that are used to control a passgate 200. Passgate 200 is formed from n-channel transistor 202 and p-channel transistor 204. The gate of n-channel transistor 202 is connected to the output of inverter 196 and the gate of p-channel transistor 204 is connected to the output of inverter 198. The passgate 200 connects capacitor 206 to common node 170. Width control bit input 168 is connected to series connected inverters 208 and 210 that are used to control a passgate 212. Passgate 212 is formed from n-channel transistor 214 and p-channel transistor 216. The gate of n-channel transistor 214 is connected to the output of inverter 208 and the gate of p-channel transistor 216 is connected to the output of inverter 210. The passgate 212 connects capacitor 218 to common node 170.
(45) At any one time, one or more of capacitors 182, 194, 206, and 218 can be connected to common node 170 to form the RC filter in cooperation with resistor 158. As will be appreciated by persons of ordinary skill in the art, the width control bit inputs 160, 162, 164, and 166 can be controlled by a one-of four decoder to turn on only one of passgates 176, 188, 200, and 212 or may be individually controlled to turn on any number of passgates 176, 188, 200, and 212. As previously noted, the RC filter 80 (140) is used to filter out any glitches that are not intended to be detected. Persons of ordinary skill in the art are readily enabled to choses the values for capacitors 182, 194, 206, and 218 accordingly. As a non-limiting example, with resistor 158 having a resistance value of 16K ohms, a capacitance value of 100 fF will filter out 1.6 ns glitches, a capacitance value of 200 fF will filter out 3.2 ns glitches, and a capacitance value of 300 fF will filter out 4.8 ns glitches.
(46) Referring now to
(47) A p-channel transistor 222 and n-channel transistor 224 are connected in series with a resistor 226 in series with their drains. The source of the p-channel transistor 222 is connected to a voltage supply VDD and the source of the n-channel transistor 224 is connected to VSS (ground). The gates of p-channel transistor 222 and n-channel transistor 224 are connected together to the input 228, which represents the output of the RC filter 80 (140). The common connection of the drain of p-channel transistor 222 and the resistor 226 forms the output node 230 of the pulse stretching circuit 84 (144). A capacitor 232 is connected between the output node 230 and the source of the n-channel transistor 224.
(48) The pulse stretching circuit 84 (144) provides a weak pull-down/pull-up path to delay the switching of the input signal. The pull-down path through n-channel transistor 224 is made more resistive by adding the resistor 226 in series with the n-channel transistor 226. The pull-up path through p-channel transistor 222 is shunted by capacitor 232 to provide a delayed rising of the output. As an example, R and C values of R=200K, C=128 fF will together give a delay of 25 ns.
(49) While embodiments and applications of this invention have been shown and described, it would be apparent to those skilled in the art that many more modifications than mentioned above are possible without departing from the inventive concepts herein. The invention, therefore, is not to be restricted except in the spirit of the appended claims.