# US 9,438,164 B2 · System and method for calibrating capacitor-based oscillators in crystal-less devices

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

- Number: US 9,438,164 B2
- Document ID: US9438164B2
- Status: Granted
- Kind: B2
- Application number: 14/541,863
- Filed: 2014-11-14
- Published: 2015-07-02
- Granted: 2016-09-06
- Earliest claimed: 2013-12-30
- Assignees: SanDisk Technologies LLC
- Applicants: SanDisk Technologies Inc.
- Inventors: Deepak Pancholi; Bhavin Odedara
- Web page: https://patentgrep.com/patent/US9438164B2

## CPC

- H03B 5/1228: {the amplifier comprising one or more field effect transistors}
- H03B 5/02: Details
- H03B 5/1215: {the current source or degeneration circuit being in common to both transistors of the pair, e.g. a cross-coupled long-tailed pair}
- H03B 5/1265: {switched capacitors}
- H03J 2200/09: Calibration of oscillator in receiver, using an external carrier frequency as reference
- H03J 2200/10: Tuning of a resonator by means of digitally controlled capacitor bank
- H03B: GENERATION OF OSCILLATIONS, DIRECTLY OR BY FREQUENCY-CHANGING, BY CIRCUITS EMPLOYING ACTIVE ELEMENTS WHICH OPERATE IN A NON-SWITCHING MANNER; GENERATION OF NOISE BY SUCH CIRCUITS (generators adapted for electrophonic musical instruments G10H; masers or lasers H01S; generation of oscillations in plasma H05H)
- H03J: TUNING RESONANT CIRCUITS; SELECTING RESONANT CIRCUITS

## Abstract

A method for calibrating an oscillator in an electronic device and an electronic device configured for calibration are provided. Multiple signals are sent to the electronic device from another electronic device, such as from a host device. With knowledge of the time interval between the multiple signals, the electronic device may calibrate the oscillator in the electronic device. For example, the electronic device may be a USB-compliant electronic device. The USB-compliant electronic device may receive Start of Frame (SoF) signals from a host device, which in one USB implementation is received at 1 mSec intervals. The USB-compliant electronic device may count the output of the oscillator between receipt of different SoF signals in order to determine the frequency of the oscillator at different oscillator settings.

## Claims

### Claim 1

A method for calibrating an oscillator in an electronic device, the electronic device configured to communicate with an external device via an interface, the oscillator configurable to a plurality of coarse-tuned settings and a plurality of fine-tuned settings, each of the plurality of coarse-tuned settings and the plurality of fine-tuned settings resulting in a different frequency output by the oscillator, the method comprising:
iteratively performing for the plurality of coarse-tuned settings:
configuring the oscillator to a respective coarse-tuned setting;
receiving a first signal indicative of a periodic signal from the electronic device via the interface;
receiving a second signal indicative of the periodic signal from the electronic device via the interface; and
determining a number of cycles output from the oscillator at the respective coarse-tuned setting in between when the first signal was received and the second signal was received;
selecting one of the plurality of coarse-tuned settings to configure the oscillator based on the determined number of cycles output from the oscillator at the respective coarse-tuned settings;
iteratively performing for the plurality of fine-tuned settings within the selected one of plurality of coarse-tuned capacitor settings:
configuring the oscillator to a respective fine-tuned setting;
receiving a third signal indicative of the periodic signal from the electronic device via the interface;
receiving a fourth signal indicative of the periodic signal from the electronic device via the interface; and
determining a number of cycles output from the oscillator at the respective fine-tuned setting in between when the third signal was received and the fourth signal was received;
selecting one of the plurality of fine-tuned settings within the selected one of plurality of coarse-tuned capacitor to configure the oscillator based on the determined number of cycles output from the oscillator at the respective fine-tuned settings.

### Claim 2 (depends on 1)

The method of claim 1, wherein the electronic device is a peripheral device; and
wherein the external device is a host device, the peripheral device removably connected to the host device via the interface.

### Claim 3 (depends on 2)

The method of claim 2, wherein the peripheral device is a storage device;
wherein the interface is a USB interface; and
wherein the first signal, the second signal, the third signal, and the fourth signal are Start of Frame (SoF) signals.

### Claim 4 (depends on 1)

The method of claim 1, wherein the second signal is a next successive SoF signal after receipt of the first signal.

### Claim 5 (depends on 1)

The method of claim 1, wherein the oscillator comprises an L-C oscillator.

### Claim 6 (depends on 5)

The method of claim 5, wherein, for iteratively performing for the plurality of coarse-tuned settings, determining the number of cycles output from the oscillator comprises, after receiving the first signal, comprises counting the number of cycles of the L-C oscillator until receipt of the second signal.

### Claim 7 (depends on 1)

The method of claim 1, wherein selecting one of the plurality of coarse-tuned settings to configure the oscillator based on the determined number of cycles output from the oscillator at the respective coarse-tuned settings comprises:
accessing a desired number of cycles in a memory in the electronic device, the desired number of cycles indicative of a number of cycles at a desired frequency;
comparing the determined number of cycles from the oscillator at the respective coarse-tuned settings with the desired number of cycles; and
selecting the one of the plurality of coarse-tuned settings based on the comparison,
wherein selecting one of the plurality of fine-tuned settings within the selected one of plurality of coarse-tuned capacitor settings to configure the oscillator based on the determined number of cycles output from the oscillator at the respective fine-tuned settings comprises:
comparing the determined number of cycles from the oscillator at the respective fine-tuned settings within the selected one of plurality of coarse-tuned capacitor settings with the desired number of cycles; and
selecting the one of the plurality of fine-tuned settings within the selected one of plurality of coarse-tuned capacitor settings based on the comparison.

### Claim 8 (depends on 1)

The method of claim 1, wherein the oscillator comprises a capacitor-based oscillator.

### Claim 9 (depends on 8)

The method of claim 8, wherein, for iteratively performing for the plurality of coarse-tuned settings, selecting one of the plurality of coarse-tuned capacitor settings comprises:
comparing the number of cycles output from the oscillator at each of the plurality of coarse-tuned capacitor settings with a desired number of cycles in a memory in the electronic device, the desired number of cycles indicative of a number of cycles at a desired frequency;
selecting one of the plurality of coarse-tuned capacitor settings that has the number of cycles closest to the desired number of cycles;
wherein for iteratively performing for the plurality of fine-tuned settings, selecting one of the plurality of fine-tuned capacitor settings within the selected one of plurality of coarse-tuned capacitor settings comprises:
comparing the number of cycles output from the oscillator at each of the plurality of fine-tuned capacitor settings with the desired number of cycles;
selecting one of the plurality of fine-tuned capacitor settings that has the number of cycles closest to the desired number of cycles.

### Claim 10 (depends on 1)

The method of claim 1, wherein iteratively performing for the plurality of coarse-tuned settings and for the plurality of fine-tuned settings comprises iteratively performing for the plurality of coarse-tuned settings and for the plurality of fine-tuned settings at a plurality of different temperatures;
wherein selecting one of the plurality of coarse-tuned settings and fine-tuned settings to configure the oscillator based on the determined number of cycles output from the oscillator at the respective coarse-tuned settings and fine-tuned settings comprises selecting, for each of the plurality of different temperatures, a correlated coarse-tuned setting and fine-tuned setting to configure the oscillator; and
further comprising storing in a look-up table each of the plurality of different temperatures correlated to a correlated coarse-tuned setting and fine-tuned setting to configure the oscillator.

### Claim 11

An electronic device comprising:
an interface configured to communicate with an external device;
an oscillator configurable to a plurality of settings, each of the settings resulting in a different frequency output by the oscillator; and
a controller in communication with the interface and the oscillator, the controller configured to:
iteratively perform for the plurality of coarse-tuned settings:
configure the oscillator to a respective coarse-tuned setting;
receive a first signal indicative of a periodic signal from the electronic device via the interface;
receive a second signal indicative of the periodic signal from the electronic device via the interface; and
determine a number of cycles output from the oscillator at the respective coarse-tuned setting in between when the first signal was received and the second signal was received;
select one of the plurality of coarse-tuned settings to configure the oscillator based on the determined number of cycles output from the oscillator at the respective coarse-tuned settings;
iteratively perform for the plurality of fine-tuned settings within the selected one of plurality of coarse-tuned capacitor settings:
configure the oscillator to a respective fine-tuned setting;
receive a third signal indicative of the periodic signal from the electronic device via the interface;
receive a fourth signal indicative of the periodic signal from the electronic device via the interface; and
determine a number of cycles output from the oscillator at the respective fine-tuned setting in between when the third signal was received and the fourth signal was received;
select one of the plurality of fine-tuned settings within the selected one of plurality of coarse-tuned capacitor to configure the oscillator based on the determined number of cycles output from the oscillator at the respective fine-tuned settings.

### Claim 12 (depends on 11)

The electronic device of claim 11, wherein the electronic device is a peripheral device; and
wherein the external device is a host device, the peripheral device removably connected to the host device via the interface.

### Claim 13 (depends on 12)

The electronic device of claim 12, wherein the peripheral device is a storage device;
wherein the interface is a USB interface; and
wherein the first signal, the second signal, the third signal, and the fourth signal are Start of Frame (SoF) signals.

### Claim 14 (depends on 11)

The electronic device of claim 11, wherein the second signal is a next successive SoF signal after receipt of the first signal.

### Claim 15 (depends on 11)

The electronic device of claim 11, wherein the oscillator comprises an L-C oscillator.

### Claim 16 (depends on 15)

The electronic device of claim 15, wherein, for iteratively performing for the plurality of coarse-tuned settings, the controller is configured to determine the number of cycles output from the oscillator by, after receiving the first signal, by counting the number of cycles of the L-C oscillator until receipt of the second signal.

### Claim 17 (depends on 11)

The electronic device of claim 11, wherein the controller is configured to select one of the plurality of coarse-tuned settings to configure the oscillator based on the determined number of cycles output from the oscillator at the respective coarse-tuned settings by:
accessing a desired number of cycles in a memory in the electronic device, the desired number of cycles indicative of a number of cycles at a desired frequency;
comparing the determined number of cycles from the oscillator at the respective coarse-tuned settings with the desired number of cycles; and
selecting the one of the plurality of coarse-tuned settings based on the comparison,
wherein the controller is configured to select one of the plurality of fine-tuned settings within the selected one of plurality of coarse-tuned capacitor settings to configure the oscillator based on the determined number of cycles output from the oscillator at the respective fine-tuned settings by:
comparing the determined number of cycles from the oscillator at the respective fine-tuned settings within the selected one of plurality of coarse-tuned capacitor settings with the desired number of cycles; and
selecting the one of the plurality of fine-tuned settings within the selected one of plurality of coarse-tuned capacitor settings based on the comparison.

### Claim 18 (depends on 11)

The electronic device of claim 11, wherein the oscillator comprises a capacitor-based oscillator.

### Claim 19 (depends on 18)

The electronic device of claim 18, wherein, for iteratively performing for the plurality of coarse-tuned settings, the controller is configured to select one of the plurality of coarse-tuned capacitor settings by:
comparing the number of cycles output from the oscillator at each of the plurality of coarse-tuned capacitor settings with a desired number of cycles in a memory in the electronic device, the desired number of cycles indicative of a number of cycles at a desired frequency;
selecting one of the plurality of coarse-tuned capacitor settings that has the number of cycles closest to the desired number of cycles; and
wherein, for iteratively performing for the plurality of fine-tuned settings, the controller is configured to select one of the plurality of fine-tuned capacitor settings within the selected one of plurality of coarse-tuned capacitor settings by:
comparing the number of cycles output from the oscillator at each of the plurality of fine-tuned capacitor settings with the desired number of cycles;
selecting one of the plurality of fine-tuned capacitor settings that has the number of cycles closest to the desired number of cycles.

### Claim 20 (depends on 11)

The electronic device of claim 11, further comprising a memory;
wherein the controller is configured to iteratively perform for the plurality of coarse-tuned settings and for the plurality of fine-tuned settings by iteratively performing for the plurality of coarse-tuned settings and for the plurality of fine-tuned settings at a plurality of different temperatures;
wherein the controller is configured to select one of the plurality of coarse-tuned settings and fine-tuned settings to configure the oscillator based on the determined number of cycles output from the oscillator at the respective coarse-tuned settings and fine-tuned settings by selecting, for each of the plurality of different temperatures, a correlated coarse-tuned setting and fine-tuned setting to configure the oscillator; and
wherein the controller is further configured to store in the memory each of the plurality of different temperatures correlated to a correlated coarse-tuned setting and fine-tuned setting to configure the oscillator.
