# US 12,316,325 B2 · Circuits and methods for debouncing signals produced by a rotary encoder

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

- Number: US 12,316,325 B2
- Document ID: US12316325B2
- Status: Granted
- Kind: B2
- Application number: 18/127,397
- Filed: 2023-03-28
- Published: 2023-10-05
- Granted: 2025-05-27
- Earliest claimed: 2022-04-01
- Assignees: STMicroelectronics S.r.l.; STMicroelectronics (Rousset) SAS
- Applicants: STMicroelectronics S.r.l.; STMicroelectronics (Rousset) SAS
- Inventors: Giulio Zoppi; Vincent Pascal Onde; Giuseppe Romano
- Web page: https://patentgrep.com/patent/US12316325B2

## CPC

- H03K 5/125: Discriminating pulses (measuring characteristics of individual pulses G01R29/02; separation of synchronising signals in television systems H04N5/08)
- H03K 5/1254: specially adapted for pulses generated by closure of switches, i.e. anti-bouncing devices (debouncing circuits for electronic time-pieces G04G5/00)
- G01D 5/3473: {Circular or rotary encoders}
- H03K 3/013: Modifications of generator to prevent operation by noise or interference
- 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)
- G01D: MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR

## Abstract

A first input node receives a first input signal and a second input node receives a second input signal. The first and second input signals are in phase quadrature. An edge detector circuit senses the first input signal and produces a pulsed signal indicative of edges detected in the first input signal. A pulse skip and reset circuit senses the pulsed signal and the second input signal, and produces a reset signal indicative of pulses detected in the pulsed signal while the second input signal is de-asserted. A sampling circuit senses the second input signal and the reset signal, and produces an output signal that is deasserted in response to assertion of the second input signal and is asserted in response to a pulse being detected in the reset signal.

## Claims

### Claim 1

A circuit, comprising:
a first input node configured to receive a first input signal;
a second input node configured to receive a second input signal;
wherein said first input signal and said second input signal are in quadrature phase;
an edge detector circuit configured to receive said first input signal and produce a pulsed signal including a pulse for each edge detected in said first input signal;
a pulse skip and reset circuit configured to receive said pulsed signal and said second input signal, and produce a reset signal which includes only those pulses in said pulsed signal which occur when said second input signal is de-asserted; and
a sampling circuit configured to generate an output signal that is de-asserted in response to assertion of said second input signal and is asserted in response to a pulse of said reset signal.

### Claim 2 (depends on 1)

The circuit of claim 1, wherein said pulsed signal produced by the edge detector circuit is maintained in a normally de-asserted state and is asserted by a signal pulse in response to rising edges and falling edges detected in said first input signal.

### Claim 3 (depends on 1)

The circuit of claim 1, wherein said reset signal produced by the pulse skip and reset circuit is maintained in a normally de-asserted state and is asserted by a signal pulse in response to each signal pulse of said pulsed signal while said second input signal is de-asserted.

### Claim 4

A circuit, comprising:
a first input node configured to receive a first input signal;
a second input node configured to receive a second input signal;
wherein said first input signal and said second input signal are in quadrature phase;
an edge detector circuit configured to receive said first input signal and produce a pulsed signal indicative of edges detected in said first input signal;
a pulse skip and reset circuit configured to receive said pulsed signal and said second input signal, and produce a reset signal indicative of pulses detected in said pulsed signal while said second input signal is de-asserted; and
a sampling circuit configured to generate an output signal that is de-asserted in response to assertion of said second input signal and is asserted in response to a pulse of said reset signal;
wherein said edge detector circuit comprises:
a delay circuit configured to produce a delayed replica of said first input signal; and
a logic circuit configured to apply one of exclusive-NOR signal processing or exclusive-OR signal processing to said first input signal and said delayed replica of said first input signal to produce said pulsed signal.

### Claim 5 (depends on 4)

The circuit of claim 4, wherein said pulsed signal produced by the edge detector circuit is maintained in a normally de-asserted state and is asserted by a signal pulse in response to rising edges and falling edges detected in said first input signal.

### Claim 6 (depends on 4)

The circuit of claim 4, wherein said reset signal produced by the pulse skip and reset circuit is maintained in a normally de-asserted state and is asserted by a signal pulse in response to each signal pulse of said pulsed signal while said second input signal is de-asserted.

### Claim 7

A circuit, comprising:
a first input node configured to receive a first input signal;
a second input node configured to receive a second input signal;
wherein said first input signal and said second input signal are in quadrature phase;
an edge detector circuit configured to receive said first input signal and produce a pulsed signal indicative of edges detected in said first input signal;
a pulse skip and reset circuit configured to receive said pulsed signal and said second input signal, and produce a reset signal indicative of pulses detected in said pulsed signal while said second input signal is de-asserted; and
a sampling circuit configured to generate an output signal that is de-asserted in response to assertion of said second input signal and is asserted in response to a pulse of said reset signal;
wherein said pulse skip and reset circuit comprises a logic circuit configured to apply one of NOR signal processing or OR signal processing to said pulsed signal and said second input signal to produce said reset signal.

### Claim 8 (depends on 7)

The circuit of claim 7, wherein said pulsed signal produced by the edge detector circuit is maintained in a normally de-asserted state and is asserted by a signal pulse in response to rising edges and falling edges detected in said first input signal.

### Claim 9 (depends on 7)

The circuit of claim 7, wherein said reset signal produced by the pulse skip and reset circuit is maintained in a normally de-asserted state and is asserted by a signal pulse in response to each signal pulse of said pulsed signal while said second input signal is de-asserted.

### Claim 10

A circuit, comprising:
a first input node configured to receive a first input signal;
a second input node configured to receive a second input signal;
wherein said first input signal and said second input signal are in quadrature phase;
an edge detector circuit configured to receive said first input signal and produce a pulsed signal indicative of edges detected in said first input signal;
a pulse skip and reset circuit configured to receive said pulsed signal and said second input signal, and produce a reset signal indicative of pulses detected in said pulsed signal while said second input signal is de-asserted; and
a sampling circuit configured to generate an output signal that is de-asserted in response to assertion of said second input signal and is asserted in response to a pulse of said reset signal;
wherein said sampling circuit comprises a flip-flop having a clock input terminal configured to receive said second input signal, a clear input terminal configured to receive said reset signal, a data input terminal configured to receive a data input signal having a fixed logic value, at a preset input terminal configured to receive a preset input signal having a fixed logic value, and a data output terminal configured to produce said output signal.

### Claim 11 (depends on 10)

The circuit of claim 10, wherein said pulsed signal produced by the edge detector circuit is maintained in a normally de-asserted state and is asserted by a signal pulse in response to rising edges and falling edges detected in said first input signal.

### Claim 12 (depends on 10)

The circuit of claim 10, wherein said reset signal produced by the pulse skip and reset circuit is maintained in a normally de-asserted state and is asserted by a signal pulse in response to each signal pulse of said pulsed signal while said second input signal is de-asserted.

### Claim 13

A circuit, comprising:
an input configured to receive first and second periodic digital signals in phase quadrature having a frequency indicative of speed of mechanical rotation and phase relationship indicative of direction of mechanical rotation;
an edge detector circuit configured to detect edges of the first periodic digital signal and produce a signal pulse for each detected edge;
a pulse skip and reset circuit configured to generate a reset signal which includes only those signal pulses output from the edge detector circuit which occur when the second periodic digital signal is de-asserted; and
a set/reset circuit having a set input configured to receive the second periodic digital signal and set an output signal to a first logic state in response thereto, and a reset input configured to receive the reset signal and reset the output signal to a second logic state in response thereto.

### Claim 14 (depends on 13)

The circuit of claim 13, further comprising a rotary encoder circuit configured to generate the first and second periodic digital signals.

### Claim 15 (depends on 13)

The circuit of claim 13, further comprising a processing circuit configured to receive the first periodic digital signal and the output signal, said processing circuit operating to decode the first periodic digital signal and the output signal.

### Claim 16

A method, comprising:
receiving a first input signal;
receiving a second input signal;
wherein said first input signal and said second input signal are in quadrature phase;
producing a pulsed signal including a pulse for each edge detected in said first input signal;
producing a reset signal which includes only those pulses in said pulsed signal which occur when said second input signal is de-asserted; and
producing an output signal that is de-asserted in response to assertion of said second input signal and is asserted in response to a pulse being detected in said reset signal.

### Claim 17 (depends on 16)

The method of claim 16, wherein producing said pulsed signal comprises:
maintaining the pulse signal in a normally de-asserted state; and
asserting said pulsed signal by a signal pulse in response to rising edges and falling edges in said first input signal.

### Claim 18 (depends on 16)

The method of claim 16, wherein producing said reset signal comprises:
maintaining the reset signal in a normally de-asserted state; and
asserting said reset signal by a signal pulse in response to each signal pulse of said pulsed signal while said second input signal is de-asserted.
