# US 2022/0286122 A1 · Clock selector circuit

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

- Number: US 2022/0286122 A1
- Document ID: US20220286122A1
- Status: Published application
- Kind: A1
- Application number: 17/685,288
- Filed: 2022-03-02
- Published: 2022-09-08
- Earliest claimed: 2021-03-03
- Assignees: Nordic Semiconductor ASA
- Applicants: Nordic Semiconductor ASA
- Inventors: Simon Berg
- Web page: https://patentgrep.com/patent/US20220286122A1

## CPC

- G06F 1/06: Clock generators producing several clock signals {(G06F1/08 - G06F1/14 take precedence)}
- H03K 5/135: by the use of time reference signals, e.g. clock signals
- G06F 1/08: Clock generators with changeable or programmable clock frequency
- G06F 1/12: Synchronisation of different clock signals {provided by a plurality of clock generators}
- H03K 4/026: {using digital techniques}
- 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 clock selector circuit includes a first input for receiving a reference clock signal having a reference frequency, a second input for receiving an offset clock signal having an offset frequency, a clock output for outputting the reference or offset clock signal, and switching circuitry. The switching circuitry includes a switching input and sign detector circuitry that outputs a sign signal indicating whether the reference clock signal is leading the offset clock signal in phase. In response to receiving a switching signal, the switching circuitry detects when like edges of the reference clock signal and the offset clock signal are aligned to within a predetermined tolerance, with the new signal leading the current signal if the offset frequency is lower than the reference frequency, or with the new clock signal trailing the current clock signal if not. In response, the switching circuitry switches to outputting the new clock signal.

## Claims

### Claim 1

A clock selector circuit comprising:
a first input for receiving a reference clock signal having a reference frequency;
a second input for receiving an offset clock signal having an offset frequency, wherein the offset frequency differs from the reference frequency by a frequency offset;
a clock output for outputting the reference clock signal or the offset clock signal as an output clock signal; and
switching circuitry,
wherein the switching circuitry comprises a switching input and is arranged, when the clock selector circuit is outputting a current one of the reference and offset clock signals as the output clock signal, in response to receiving a switching signal at the switching input indicating that the output clock signal should be switched to be a new one of the reference and offset clock signals, to detect when like edges of the reference clock signal and the offset clock signal are aligned to within a predetermined tolerance with the new clock signal leading the current clock signal in phase, if the offset frequency is lower than the reference frequency, or with the new clock signal trailing the current clock signal in phase, if the offset frequency is higher than the reference frequency, and, in response to said detection, to switch to outputting the new clock signal from the clock output.

### Claim 2 (depends on 1)

The clock selector circuit of claim 1, wherein the clock selector circuit is arranged to switch to outputting the new clock signal from the clock output within less than half a clock period of the reference clock signal after the switching circuitry detects that like edges of the reference clock signal and the offset clock signal are aligned to within a predetermined tolerance with the new clock signal leading the current clock signal in phase, if the offset frequency is lower than the reference frequency, or with the new clock signal trailing the current clock signal in phase, if the offset frequency is higher than the reference frequency.

### Claim 3 (depends on 1)

The clock selector circuit of claim 1, wherein the clock selector circuit is arranged to receive an offset clock signal that is lower than the reference frequency, and wherein the switching circuitry is configured to detect when the new clock signal is leading the current clock signal in phase.

### Claim 4 (depends on 1)

The clock selector circuit of claim 1, wherein the switching circuitry is arranged to determine phase alignment based both on rising edges and on falling edges of the reference and offset clock signals.

### Claim 5 (depends on 1)

The clock selector circuit of claim 1, wherein the switching circuitry comprises phase-alignment detector circuitry arranged to output a phase-alignment signal when like edges of the reference clock signal and the offset clock signal are aligned to within the predetermined tolerance.

### Claim 6 (depends on 5)

The clock selector circuit of claim 5, wherein the phase-alignment detector circuitry comprises a reset input and is configured to signal in response to detecting that like edges of the reference clock signal and the offset clock signal are aligned, to within the predetermined tolerance, after receiving a reset signal at the reset input.

### Claim 7 (depends on 1)

The clock selector circuit of claim 1, wherein the switching circuitry comprises sign detector circuitry arranged to output a sign signal indicating whether or when the reference clock signal is leading the offset clock signal in phase.

### Claim 8 (depends on 7)

The clock selector circuit of claim 7, wherein the switching circuitry comprises phase-alignment detector circuitry arranged to output a phase-alignment signal when like edges of the reference clock signal and the offset clock signal are aligned to within the predetermined tolerance, and wherein the switching circuitry is configured to use the phase-alignment signal and the sign signal to determine when to start outputting the new clock signal from the clock output. 25

### Claim 9 (depends on 8)

The clock selector circuit of claim 8, wherein the switching circuitry is arranged to combine the phase-alignment signal and the sign signal in a logic AND gate.

### Claim 10 (depends on 1)

The clock selector circuit of claim 1, comprising phase-alignment detector circuitry arranged to:
generate a reference-clock pulse each time a rising edge occurs in the reference clock signal and each time a falling edge occurs in the reference clock signal;
generate an offset-clock pulse each time a rising edge occurs in the offset clock signal and each time a falling edge occurs in the offset clock signal; and
use the reference-clock pulse and the offset-clock pulse to generate an alignment pulse each time an edge of the reference clock signal occurs within a predetermined time interval of a like edge of the offset clock signal.

### Claim 11 (depends on 10)

The clock selector circuit of claim 10, wherein the phase-alignment detector circuitry comprises:
a first logic gate for generating said reference-clock pulse, wherein a first input of the first logic gate is arranged to receive the reference clock signal and a second input of the first logic gate arranged to receive a time-delayed version of the reference clock signal;
a second logic gate for generating said offset-clock pulse, wherein a first input of the second logic gate is arranged to receive the offset clock signal and a second input of the second logic gate arranged to receive a time-delayed version of the offset clock signal; and
a further logic gate for generating said alignment pulse, wherein a first input of the further logic gate is arranged to receive an output of the first logic gate and a second input of the further logic gate arranged to receive an output of the second logic gate.

### Claim 12 (depends on 1)

The clock selector circuit of claim 1, comprising sign detector circuitry comprising a first edge alignment detector configured to output a pulse each time a falling edge of the reference clock signal is detected while the offset clock signal is high, and a second edge alignment detector configured to output a pulse each time a rising edge of the reference clock signal is detected while the offset clock signal is low.

### Claim 13 (depends on 1)

An electronic apparatus comprising the clock selector circuit of claim 1, wherein the electronic device further comprises circuitry arranged to be clocked by the output clock signal output by the clock selector circuit.

### Claim 14

A method of switching clock signals, the method comprising:
receiving a reference clock signal having a reference frequency;
receiving an offset clock signal having an offset frequency, wherein the offset frequency differs from the reference frequency by a frequency offset;
outputting a current one of the reference clock signal and the offset clock signal as an output clock signal;
receiving a switching signal indicating that the output clock signal should be switched to be a new one of the reference clock signal and the offset clock signal;
in response to receiving the switching signal, detecting when like edges of the reference clock signal and the offset clock signal are aligned to within a predetermined tolerance with the new clock signal leading the current clock signal in phase, if the offset frequency is lower than the reference frequency, or with the new clock signal trailing the current clock signal in phase, if the offset frequency is higher than the reference frequency; and
in response to said detecting, starting to output the new clock signal as the output clock signal.

### Claim 15 (depends on 14)

The method of claim 14, wherein the frequency offset is less than 10% of the reference frequency.
