# US 2022/0284099 A1 · Voltage glitch detection circuit

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0284099 A1
- Document ID: US20220284099A1
- Status: Published application
- Kind: A1
- Application number: 17/189,329
- Filed: 2021-03-02
- Published: 2022-09-08
- Earliest claimed: 2021-03-02
- Assignees: NXP B.V.
- Applicants: NXP B.V.
- Inventors: Andreas Bernardus Maria JANSMAN; Andreas Lentz
- Web page: https://patentgrep.com/patent/US20220284099A1

## CPC

- G06F 21/567: {using dedicated hardware}
- G06F 1/28: Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
- G06F 1/305: {in the event of power-supply fluctuations}
- G06F 1/3296: by lowering the supply or operating voltage
- G06F 21/755: {with measures against power attack}
- G06F 21/81: by operating on the power supply, e.g. enabling or disabling power-on, sleep or resume operations
- H03K 3/0315: {Ring oscillators}
- H03K 3/037: Bistable circuits
- H03K 21/02: Input circuits
- G06F 2221/034: Test or assess a computer or a system
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)

## Abstract

A voltage glitch detector includes a ring oscillator, a plurality of counters, a combined result circuit, and a result evaluation circuit. The ring oscillator includes a plurality of series-connected stages. An output of a last stage of the ring oscillator is coupled to an input of a first stage of the ring oscillator. Each counter of the plurality of counters has an input coupled to a node located between two stages of the plurality of series-connected stages. The combined result circuit is coupled to each of the plurality of counters. The combined result circuit combines the count values received from each counter of the plurality of counters to provide a combined result. The result evaluation circuit is coupled to compare the combined result with a reference value to determine when a voltage glitch is detected.

## Claims

### Claim 1

A voltage glitch detector comprising:
a ring oscillator having a plurality of series-connected stages, wherein an output of a last stage of the ring oscillator is coupled to an input of a first stage of the ring oscillator;
a plurality of counters, each counter of the plurality of counters having an input coupled to a node located between two stages of the plurality of series-connected stages;
a combined result circuit coupled to each of the plurality of counters for combining count values received from each counter of the plurality of counters into a combined result; and
a result evaluation circuit coupled to compare the combine result with a reference value to determine when a voltage glitch is detected.

### Claim 2 (depends on 1)

The voltage glitch detector of claim 1, wherein the plurality of series-connected stages is equal to the plurality of counters.

### Claim 3 (depends on 1)

The voltage glitch detector of claim 1, wherein the plurality of counters further comprises a first counter and a second counter coupled to a same node located between two stages of the plurality of stages, wherein the first counter triggers upon receiving a positive clock edge at the same node and the second counter triggers upon receiving a negative edge at the same node.

### Claim 4 (depends on 1)

The voltage glitch detector of claim 1, wherein the each of the plurality of counters is a ripple counter that is incremented by one each time a count value is received from one of the plurality of counters.

### Claim 5 (depends on 1)

The voltage glitch detector of claim 1, further comprising a logic gate function coupled between a node located between two stages and an input of the counter.

### Claim 6 (depends on 1)

The voltage glitch detector of claim 1, wherein a counter of the plurality of counters further comprises a plurality of parallel-connected counters, wherein each of the plurality of parallel-connected counters is enabled one at a time in a sequence.

### Claim 7 (depends on 1)

The voltage glitch detector of claim 1, further comprising a mode select circuit for selecting a low power mode to disable a predetermined number of the plurality of counters.

### Claim 8 (depends on 1)

The voltage glitch detector of claim 1, further comprising a plurality of flip-flops, each of the plurality of flip-flops coupled to capture a count value from a corresponding one of the plurality of counters in synchronization with a system clock.

### Claim 9 (depends on 1)

The voltage glitch detector of claim 1, wherein each stage of the plurality of series-connected stage is an inverter.

### Claim 10

An integrated circuit comprising:
a digital circuit; and
a voltage glitch detection circuit for detecting a voltage glitch in a supply voltage provided to the digital circuit, the voltage glitch detection circuit comprising:
a ring oscillator having a plurality of stages connected in a ring with an output node located at an output of each of the plurality of stages;
a plurality of counters, wherein each counter of the plurality of counters has an input coupled to an output node of a corresponding stage of the plurality of stages;
a combined result circuit coupled to an output of each counter of the plurality of counters, wherein the combined result circuit combines counter values from the plurality of counters for a predetermined time period to generate a combined result value; and
a result evaluation circuit having a first input coupled to receive the combined result value, and a second input coupled to receive a reference value, and an output for providing an error signal in response to the combined result count value failing to compare favorably with the reference value.

### Claim 11 (depends on 10)

The integrated circuit of claim 10, wherein the plurality of series-connected stages is equal to the plurality of counters.

### Claim 12 (depends on 10)

The integrated circuit of claim 10, wherein the plurality of counters further comprises a first counter and a second counter coupled to a same node located between two stages of the plurality of stages, wherein the first counter triggers upon receiving a positive clock edge at the same node and the second counter triggers upon a receiving a negative edge at the same node.

### Claim 13 (depends on 10)

The integrated circuit of claim 10, wherein each of the plurality of counters is a ripple counter that is incremented by one each time a count value is received from one of the plurality of counters.

### Claim 14 (depends on 10)

The integrated circuit of claim 10, further comprising a logic gate function coupled between a node located between two stages and an input of the counter.

### Claim 15 (depends on 10)

The integrated circuit of claim 10, wherein a counter of the plurality of counters further comprises a plurality of parallel-connected counters, wherein each counter of the plurality of parallel-connected counters is enabled one at a time in a sequence.

### Claim 16 (depends on 10)

The integrated circuit of claim 10, further comprising a mode select circuit for selecting a low power mode to disable a predetermined number of the plurality of counters.

### Claim 17 (depends on 10)

The integrated circuit of claim 10, further comprising a plurality of flip-flops, each of the plurality of flip-flops coupled to capture a count value from a corresponding one of the plurality of counters in synchronization with a system clock.

### Claim 18

A method for detecting a voltage glitch in a digital circuit, the method comprising:
providing a supply voltage to the digital circuit and to a ring oscillator;
counting state changes of each node of a plurality of nodes of the ring oscillator to generate a plurality of count values, the ring oscillator having a plurality of series-connected inverting stages connected in a ring, wherein each of the plurality of count values corresponds to each state change, wherein a connection between each of the series-connected inverting stages forms one of the plurality of nodes;
capturing the plurality of count values in synchronization with a system clock of the digital circuit;
combining the plurality of count values to produce a combined result; and
comparing the combined result with a reference value to determine when a voltage glitch of the supply voltage is detected.

### Claim 19 (depends on 18)

The method of claim 18, wherein counting state changes further comprises counting positive edges at each node of the plurality of nodes of the ring oscillator.

### Claim 20 (depends on 18)

The method of claim 18, wherein the plurality of nodes is equal to the plurality of series-connected stages.
