# US 2014/0153301 A1 · Ac signal detector and the method thereof

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

- Number: US 2014/0153301 A1
- Document ID: US20140153301A1
- Status: Published application
- Kind: A1
- Application number: 13/931,749
- Filed: 2013-06-28
- Published: 2014-06-05
- Earliest claimed: 2012-07-16
- Assignees: Chengdu Monolithic Power Systems Co., Ltd.
- Applicants: Chengdu Monolithic Power Systems Co., Ltd.
- Inventors: Siran Wang; Yike Li; Kun Yi; Yuancheng Ren; Junming Zhang; En Li
- Web page: https://patentgrep.com/patent/US20140153301A1

## CPC

- G01R 19/175: Indicating the instants of passage of current or voltage through a given value, e.g. passage through zero
- G01R 31/42: AC power supplies
- G01R: MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES (indicating correct tuning of resonant circuits H03J3/12)

## Abstract

An AC signal detector having: a rectify circuit having a first input terminal and a second input terminal configured to receive an AC signal, and an output terminal configured to provide a rectified signal based on the AC signal; a detecting circuit having an input terminal coupled to the output terminal of the rectify circuit to receive the rectified signal, and an output terminal configured to provide a square signal based on the rectified signal; and an unplug indicate circuit having an input terminal coupled to the detecting circuit to receive the square signal, and an output terminal configured to provide an unplug indicate signal based on the square signal.

## Claims

### Claim 1

An AC signal detector, comprising:
a rectify circuit having a first input terminal and a second input terminal configured to receive an AC signal, and an output terminal configured to provide a rectified signal based on the AC signal;
a detecting circuit having an input terminal coupled to the output terminal of the rectify circuit to receive the rectified signal, and an output terminal configured to provide a square signal based on the rectified signal; and
an unplug indicate circuit having an input terminal coupled to the detecting circuit to receive the square signal, and an output terminal configured to provide an unplug indicate signal based on the square signal.

### Claim 2 (depends on 1)

The AC signal detector of claim 1, wherein the detecting circuit comprises:
a delay circuit having an input terminal coupled to the output terminal of the rectify circuit to receive the rectified signal and an output terminal configured to provide a delayed rectified signal based on the rectified signal; and
a detecting comparator, having a first input terminal coupled to the output terminal of the rectify circuit to receive the rectified signal, a second input terminal coupled to the output terminal of the delay circuit to receive the delayed rectified signal, and an output terminal configured to provide the square signal based on the rectified signal and the delayed rectified signal.

### Claim 3 (depends on 1)

The AC signal detector of claim 1, wherein the unplug indicate circuit comprises:
a rising edge flip-flop having an input terminal coupled to the output terminal of the detecting circuit to receive the square signal and an output terminal configured to provide a rising edge pulse signal based on the square signal;
a falling edge flip-flop having an input terminal coupled to the output terminal of the detecting circuit to receive the square signal, and an output terminal configured to provide a falling edge pulse signal at the falling edge of the square signal;
an signal adding circuit having a first input terminal coupled to the output terminal of the rising edge flip-flop to receive the rising edge pulse signal, a second input terminal coupled to the output terminal of the falling edge flip-flop to receive the falling edge pulse signal, and an output terminal configured to provide an pulse added signal based on the rising edge pulse signal and the falling edge pulse signal; and
a counting circuit having an input terminal coupled to the output terminal of the signal adding circuit to receive the pulse added signal and an output terminal configured to provide an unplug indicate signal based on the pulse added signal;
wherein the counting circuit counts interval time between the adjacent pulses of the pulse added signal, and the unplug indicate signal is invalid when the interval time between adjacent pulses of the pulse added signal is smaller than or equal to a first preset value, and is valid when the interval time between the adjacent pulses of the pulse added signal is larger than the first preset value.

### Claim 4 (depends on 3)

The AC signal detector of claim 3, wherein the counting circuit comprises:
a charging current source having a first terminal coupled to an internal power and a second terminal configured to provide a current;
a capacitor having a first terminal coupled to the second terminal of the charging current source to receive the current and a second terminal connected to the ground;
a counting switch having a first terminal coupled to the first terminal of the capacitor, a second terminal connected to the ground and a control terminal configured to receive the pulse added signal, wherein based on the pulse added signal, the counting switch is turned ON and OFF; and
a counting comparator having a first input terminal coupled to the first terminal of the capacitor, a second input terminal configured to receive a reference signal, and an output terminal configured to provide the unplug indicate signal based on a voltage across the capacitor and the reference signal.

### Claim 5 (depends on 1)

The AC signal detector of claim 1, wherein the unplug indicate circuit comprises:
a rising edge flip-flop having the input terminal coupled to the output terminal of the detecting circuit to receive the square signal and the output terminal configured to provide the rising edge pulse signal at the rising edge of the square signal; and
a counting circuit having the input terminal coupled to the output terminal of the rising edge flip-flop to receive the rising edge pulse signal, and the output terminal configured to provide an unplug indicate signal based on the rising edge pulse signal;
wherein the counting circuit counts the interval time between adjacent pulses of the rising edge pulse signal, and the unplug indicate signal is invalid when the interval time between the adjacent pulses of the rising edge pulse signal is smaller than or equal to a second preset value, and is valid when the interval time between the adjacent pulses of the rising edge pulse signal is larger than the second preset value.

### Claim 6 (depends on 5)

The AC signal detector of claim 5, wherein the counting circuit comprises:
a charging current source having a first terminal coupled to an internal power and a second terminal configured to provide a current;
a capacitor having a first terminal coupled to the second terminal of the charging current source to receive the current and a second terminal connected to the ground;
a counting switch having a first terminal coupled to the first terminal of the capacitor, a second terminal connected to the ground and a control terminal configured to the receive the rising edge pulse signal, wherein based on the rising edge pulse signal, the counting switch is turned ON and OFF; and
a counting comparator having a first input terminal coupled to the first terminal of the capacitor, a second input terminal configured to receive the reference signal, and an output terminal configured to provide the unplug indicate signal based on a voltage across the capacitor and the reference signal.

### Claim 7 (depends on 1)

The AC signal detector of claim 1, wherein the unplug indicate circuit comprises:
a falling edge flip-flop having the input terminal coupled to the output terminal of the detecting circuit to receive the square signal and the output terminal configured to provide the falling edge pulse signal at the rising edge of the square signal; and
a counting circuit having the input terminal coupled to the output terminal of the falling edge flip-flop to receive the falling edge pulse signal, and the output terminal configured to provide an unplug indicate signal based on the falling edge pulse signal;
wherein the counting circuit counts interval time between the adjacent pulses of the falling edge pulse signal, and the unplug indicate signal is invalid when the interval time between the adjacent pulses of the falling edge pulse signal is smaller than or equal to a second preset value, and is valid when the interval time between the adjacent pulses of the falling edge pulse signal is larger than the second preset value.

### Claim 8 (depends on 7)

The AC signal detector of claim 7, wherein the counting circuit comprises:
a charging current source having a first terminal coupled to an internal power and a second terminal configured to provide a current;
a capacitor having a first terminal coupled to the second terminal of the charging current source to receive the current and a second terminal connected to the ground;
a counting switch having a first terminal coupled to the first terminal of the capacitor, a second terminal connected to the ground and a control terminal configured to the receive the falling edge pulse signal, wherein based on the falling edge pulse signal, the counting switch is turned ON and OFF; and
a counting comparator having a first input terminal coupled to the first terminal of the capacitor, a second input terminal configured to receive the reference signal, and an output terminal configured to provide the unplug indicate signal based on a voltage across the capacitor and the reference signal.

### Claim 9

An AC/DC converter, comprising:
a X-cap having a first terminal and a second terminal, wherein the X-cap is coupled in parallel with an AC signal;
a rectify circuit having a first input terminal and a second input terminal configured to receive the AC signal, and an output terminal configured to provide a rectified signal based on the AC signal;
a detecting circuit having an input terminal coupled to the output terminal of the rectify circuit to receive the rectified signal, and an output terminal configured to provide a square signal based on the rectified signal;
an unplug indicate circuit having an input terminal coupled to the detecting circuit to receive the square signal, and an output terminal configured to provide an unplug indicate signal based on the square signal; and
a discharging circuit having a first terminal coupled to the first terminal of the X cap, a second terminal connected to the ground and a control terminal configured to receive the unplug indicate signal;
wherein the discharging circuit discharges the X-cap when the unplug indicate signal is valid.

### Claim 10 (depends on 9)

The AC/DC converter of claim 9, wherein the detecting circuit comprises:
a delay circuit having an input terminal coupled to the output terminal of the rectify circuit to receive the rectified signal and an output terminal configured to provide a delayed rectified signal based on the rectified signal; and
a detecting comparator, having a first input terminal coupled to the output terminal of the rectify circuit to receive the rectified signal, a second input terminal coupled to the output terminal of the delay circuit to receive the delayed rectified signal, and an output terminal configured to provide the square signal based on the rectified signal and the delayed rectified signal.

### Claim 11 (depends on 9)

The AC/DC converter of claim 9, wherein the unplug indicate circuit comprises:
a rising edge flip-flop having an input terminal coupled to the output terminal of the detecting circuit to receive the square signal and an output terminal configured to provide a rising edge pulse signal based on the square signal;
a falling edge flip-flop having an input terminal coupled to the output terminal of the detecting circuit to receive the square signal, and an output terminal configured to provide a falling edge pulse signal at the falling edge of the square signal;
an signal adding circuit having a first input terminal coupled to the output terminal of the rising edge flip-flop to receive the rising edge pulse signal, a second input terminal coupled to the output terminal of the falling edge flip-flop to receive the falling edge pulse signal, and an output terminal configured to provide an pulse added signal based on the rising edge pulse signal and the falling edge pulse signal; and
a counting circuit having an input terminal coupled to the output terminal of the signal adding circuit to receive the pulse added signal and an output terminal configured to provide an unplug indicate signal based on the pulse added signal;
wherein the counting circuit counts the pulse added signal, and the unplug indicate signal is invalid when the interval time between adjacent pulses of the pulse added signal is smaller than or equal to a first preset value, and is valid when the interval time between the adjacent pulses of the pulse added signal is larger than the first preset value.

### Claim 12 (depends on 11)

The AC/DC converter of claim 11, wherein the counting circuit comprises:
a charging current source having a first terminal coupled to an internal power and a second terminal configured to provide a current;
a capacitor having a first terminal coupled to the second terminal of the charging current source to receive the current and a second terminal connected to the ground;
a counting switch having a first terminal coupled to the first terminal of the capacitor, a second terminal connected to the ground and a control terminal configured to receive the pulse added signal, wherein based on the pulse added signal, the counting switch is turned ON and OFF; and
a counting comparator having a first input terminal coupled to the first terminal of the capacitor, a second input terminal configured to receive the reference signal, and an output terminal configured to provide the unplug indicate signal based on a voltage across the capacitor and the reference signal.

### Claim 13 (depends on 9)

The AC/DC converter of claim 9, wherein the unplug indicate circuit comprises:
a rising edge flip-flop having the input terminal coupled to the output terminal of the detecting circuit to receive the square signal and the output terminal configured to provide the rising edge pulse signal at the rising edge of the square signal; and
a counting circuit having the input terminal coupled to the output terminal of the rising edge flip-flop to receive the rising edge pulse signal, and the output terminal configured to provide an unplug indicate signal based on the rising edge pulse signal;
wherein the counting circuit counts interval time between the adjacent pulses of the rising edge pulse signal, and the unplug indicate signal is invalid when the interval time between the adjacent pulses of the rising edge pulse signal is smaller than or equal to a second preset value, and is valid when the interval time between the adjacent pulses of the rising edge pulse signal is larger than the second preset value.

### Claim 14 (depends on 13)

The AC/DC converter of claim 13, wherein the counting circuit comprises:
a charging current source having a first terminal coupled to an internal power and a second terminal configured to provide a current;
a capacitor having a first terminal coupled to the second terminal of the charging current source to receive the current and a second terminal connected to the ground;
a counting switch having a first terminal coupled to the first terminal of the capacitor, a second terminal connected to the ground and a control terminal configured to the receive the rising edge pulse signal, wherein based on the rising edge pulse signal, the counting switch is turned ON and OFF; and
a counting comparator having a first input terminal coupled to the first terminal of the capacitor, a second input terminal configured to receive the reference signal, and an output terminal configured to provide the unplug indicate signal based on a voltage across the capacitor and the reference signal.

### Claim 15 (depends on 9)

The AC/DC converter of claim 9, wherein the unplug indicate circuit comprises:
a falling edge flip-flop having the input terminal coupled to the output terminal of the detecting circuit to receive the square signal and the output terminal configured to provide the falling edge pulse signal at the rising edge of the square signal; and
a counting circuit having the input terminal coupled to the output terminal of the falling edge flip-flop to receive the falling edge pulse signal, and the output terminal configured to provide an unplug indicate signal based on the falling edge pulse signal;
wherein the counting circuit counts interval time between the adjacent pulses of the falling edge pulse signal, and the unplug indicate signal is invalid when the interval time between the adjacent pulses of the falling edge pulse signal is smaller than or equal to a second preset value, and is valid when the interval time between the adjacent pulses of the falling edge pulse signal is larger than the second preset value.

### Claim 16 (depends on 15)

The AC/DC converter of claim 15, wherein the counting circuit comprises:
a charging current source having a first terminal coupled to an internal power and a second terminal configured to provide a current;
a capacitor having a first terminal coupled to the second terminal of the charging current source to receive the current and a second terminal connected to the ground;
a counting switch having a first terminal coupled to the first terminal of the capacitor, a second terminal connected to the ground and a control terminal configured to the receive the falling edge pulse signal, wherein based on the falling edge pulse signal, the counting switch is turned ON and OFF; and
a counting comparator having a first input terminal coupled to the first terminal of the capacitor, a second input terminal configured to receive the reference signal, and an output terminal configured to provide the unplug indicate signal based on a voltage across the capacitor and the reference signal.

### Claim 17

A method for detecting an AC signal, comprising:
rectifying an AC signal to a rectified signal by a rectifier;
generating a delayed rectified signal by delaying the rectified signal;
generating a square signal based on the comparison of the rectified signal and the delayed rectified signal;
detecting the square signal to generate a pulse at every switching cycle of the square signal; and
generating an unplug indicate signal based on comparing the interval time between the adjacent pulses with a preset value;
wherein the unplug indicate signal is valid to indicate that the AC signal is unplugged when the interval time between the adjacent pulses is larger than the preset value, and the unplug indicate signal is invalid to indicate that the AC signal is plugged properly when the interval time between the adjacent pulses is smaller than the preset value.

### Claim 18 (depends on 17)

The method of claim 17, wherein detecting the square signal to generate a pulse at every switching cycle of the square signal comprises generating the pulse at the rising edge of the square signal.

### Claim 19 (depends on 17)

The method of claim 17, wherein detecting the square signal to generate a pulse at every switching cycle of the square signal comprises generating the pulse at the falling edge of the square signal.

### Claim 20 (depends on 17)

The method of claim 17, wherein detecting the square signal to generate a pulse at every switching cycle of the square signal comprises generating the pulse at both the rising edge and the falling edge of the square signal.
