# US 2021/0080491 A1 · Detection circuit for an active discharge circuit of an x-capacitor, related active discharge circuit, integrated circuit and method

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

- Number: US 2021/0080491 A1
- Document ID: US20210080491A1
- Status: Published application
- Kind: A1
- Application number: 17/103,692
- Filed: 2020-11-24
- Published: 2021-03-18
- Earliest claimed: 2014-11-04
- Assignees: STMicroelectronics S.r.l.
- Applicants: Stmicroelectronics S.R.L.
- Inventors: Massimiliano Gobbi; Ignazio Salvatore Bellomo; Domenico Tripodi; Antonio Borrello; Alberto Bianco
- Web page: https://patentgrep.com/patent/US20210080491A1

## CPC

- H02J 7/92: with prioritisation of loads or sources
- G01R 19/04: Measuring peak values {or amplitude or envelope} of AC or of pulses
- G01R 19/16557: {Logic probes, i.e. circuits indicating logic state (high, low, O); (modifications of electronic switches or gates for indicating state of switch H03K17/18)}
- H02J 7/345: {using capacitors as storage or buffering devices}
- H02M 1/322: {Means for rapidly discharging a capacitor of the converter for protecting electrical components or for preventing electrical shock}
- H02J: ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- G01R: MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES (indicating correct tuning of resonant circuits H03J3/12)
- H02M: APPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF (transformers H01F; dynamo-electric converters H02K47/00; controlling transformers, reactors or choke coils, control or regulation of electric motors, generators or dynamo-electric converters H02P)

## Abstract

An active discharge circuit discharges an X capacitor and includes a sensor circuit that generates a sensor signal indicative of an AC voltage at the X capacitor. A processing unit generates a reset signal as a function of a comparison signal. A comparator circuit generates the comparison signal by comparing the sensor signal with a threshold. A timer circuit sets a discharge enable signal to a first logic level when the timer circuit is reset via a reset signal. The timer circuit determines the time elapsed since the last reset and tests whether the time elapsed exceeds a given timeout value. If the time elapsed exceeds the given timeout value, the timer circuit sets the discharge enable signal to a second logic level. A dynamic threshold generator circuit varies the threshold of the comparator circuit as a function of the sensor signal.

## Claims

### Claim 1

A device, comprising:
a discharge circuit;
a capacitor coupled to the discharge circuit; and
a detection circuit coupled to the discharge circuit and including:
a sensor circuit coupled to the capacitor;
a comparator configured to compare a sensor signal from the sensor circuit with a lower threshold value and an upper threshold value;
an elaboration circuit configured to generate a first control signal indicating whether the sensor signal is increasing and a second control signal indicating whether the sensor signal is decreasing; and
a dynamic threshold generator circuit configured to:
vary the lower threshold value and the upper threshold value of the comparator as a first function of the first control signal to increase a first value of a smaller one of the lower threshold value and the upper threshold value to a first new value that is greater than a value of a larger one of the lower threshold value and the upper threshold in response to the first control signal; and
vary the lower threshold value and the upper threshold value of the comparator as a second function of the second control signal to decrease a second value of the larger one of the lower threshold value and upper threshold value to a second new value that is less than the smaller one of the lower threshold value and the upper threshold value in response to the second control signal.

### Claim 2 (depends on 1)

The device of claim 1 wherein the comparator further includes:
a first comparator configured to generate a first comparison signal indicating whether the sensor signal is greater than the lower threshold value; and
a second comparator configured to generate a second comparison signal indicating whether the sensor signal is greater than the upper threshold value.

### Claim 3 (depends on 2)

The device of claim 2 wherein the elaboration circuit is further configured to:
generate, based on the first comparison signal and the second comparison signal from the comparator, the first control signal indicating whether the sensor signal is greater than both of the upper threshold value and lower threshold value; and
generate, based on the first comparison signal and the second comparison signal from the comparator, the second control signal indicating whether the sensor signal is smaller than both of the upper threshold value and the lower threshold value.

### Claim 4 (depends on 3)

The device of claim 3, further comprising a timer circuit configured to:
set a discharge enable signal to a first logic level in response to the timer circuit being reset via a reset signal;
determine a time elapsed since the timer circuit has been reset via the reset signal;
in response to the time elapsed exceeding a timeout value, set the discharge enable signal to a second logic level to discharge the capacitor with the discharge circuit.

### Claim 5 (depends on 4)

The device of claim 4 wherein the timer circuit is configured to reset the timer circuit with the reset signal in response to the first comparison signal and the second comparison signal indicating that the sensor signal is greater than both of the first threshold value and second threshold value.

### Claim 6

A method, comprising:
detecting an AC oscillation at a capacitor by:
comparing a sensor signal, indicative of a voltage at the capacitor, with a lower threshold value and an upper threshold value;
increasing a first value of a smaller one of the lower threshold value and the upper threshold value to a first new value that is greater than a second value of a larger one of the lower threshold value and the upper threshold value in response to a first control signal indicating a sensor signal is greater than the values of the upper threshold value and the lower threshold value; and
decreasing a third value of the greater one of the lower threshold value and the upper threshold value to a second new value that is less than the value of the larger one of the lower threshold value and the upper threshold value in response to a second control signal indicating the sensor signal is less than the values of the upper threshold value and the lower threshold value.

### Claim 7 (depends on 6)

The method of claim 6 wherein detecting that the AC oscillation includes:
detecting at least one of a leading edge or a falling edge of a comparison signal that is indicative of whether the sensor signal is between the lower threshold and the upper threshold;
incrementing a count value indicating a time between the at least one of the leading edge or the falling edge of the comparison signal; and
determining whether the count value has reached a time threshold value.

### Claim 8 (depends on 7)

The method of claim 7, further comprising discharging the capacitor in response to the count value reaching the time threshold value.

### Claim 9

A device, comprising:
a discharge capacitor;
a voltage sensor coupled to the discharge capacitor;
a first comparator coupled to the voltage sensor;
a second comparator coupled to the voltage sensor;
an elaboration circuit coupled to the first and second comparators, the elaboration circuit including:
an AND gate coupled to the first and second comparator; and
a NOR gate coupled to the first and second comparator;
a dynamic threshold generator circuit coupled to the first and second comparators and to the elaboration circuit.

### Claim 10 (depends on 9)

The device of claim 9 wherein the dynamic threshold generator circuit is coupled to an output of the AND gate and an output of the NOR gate.

### Claim 11 (depends on 9)

The device of claim 9 further comprising a timer circuit coupled to the elaboration circuit.

### Claim 12 (depends on 11)

The device of claim 11 wherein the timer circuit is coupled to an output of the AND gate.

### Claim 13 (depends on 9)

The device of claim 9, further comprising a rectifier coupled between the discharge capacitor and the voltage sensor, the rectifier including:
a first diode coupled to the capacitor;
a second diode coupled to the capacitor;
a first resistor coupled to the first and second diode; and
a second resistor.

### Claim 14 (depends on 13)

The device of claim 13 wherein a node between the first and second resistor is coupled to an input of each of the first and the second comparator.

### Claim 15 (depends on 9)

The device of claim 9 further comprising a discharge circuit coupled to the capacitor, the discharge circuit including:
a first diode coupled to the capacitor;
a second diode coupled to the capacitor; and
a switch coupled to the first and second diode.

### Claim 16 (depends on 15)

The device of claim 15 further comprising a timer circuit coupled to the elaboration circuit, the timer circuit is coupled to an output of the AND gate, and the switch is coupled to an output of the timer circuit.

### Claim 17 (depends on 9)

The device of claim 9 wherein the dynamic threshold generation circuit further includes:
a processing unit coupled to the AND gate and to the NOR gate;
a first digital to analog converter coupled to the processing unit; and
a second digital to analog converter coupled to the processing unit.

### Claim 18 (depends on 17)

The device of claim 17 wherein an output of the first digital to analog converter is coupled to the second comparator and an output of the second digital to analog converter is coupled to the first comparator.
