1. Field of the Invention
The disclosed embodiments of the present invention relate to frequency calibration mechanism, and more particularly, to an on-chip oscillating method which is able to calibrate its frequency, and a related apparatus.
2. Description of the Prior Art
A conventional crystal oscillator is an electronic component which utilizes the piezoelectric effect of a quartz crystal to output a high precision oscillating frequency. The crystal oscillator is usually disposed outside a chip, and outputs a reference clock to the chip via a trace on a printed circuit board (PCB). With the development of integrated circuits, consumers' demand for mobile devices of a compact size and low price has resulted in on-chip oscillators being available on the market. An on-chip oscillator needs to be carefully adjusted in the factory so as to ensure it can operate with acceptable accuracy. Even with this adjustment, users may also need to further adjust the on-chip oscillator themselves, as on-chip oscillators are sensitive to changes in temperature. This is highly inconvenient.
Therefore, there is an urgent need for a novel method that can improve on a conventional on-chip oscillator.
One of the objectives of the present invention is to provide an on-chip oscillating method which is able to calibrate the frequency of an on-chip oscillator, and a related apparatus, to solve the aforementioned issues.
According to a first embodiment of the present invention, an on-chip oscillating method which can calibrate frequency of an on-chip oscillator is disclosed. The on-chip oscillating method includes: utilizing an on-chip oscillator to generate a predetermined frequency output; receiving an external data input from an off-chip data source; generating a comparison result by comparing the predetermined frequency output with the external data input; and calibrating the predetermined frequency output by utilizing the comparison result.
According to a second embodiment of the present invention, an on-chip oscillating apparatus which is able to calibrate its frequency is disclosed. The on-chip oscillating apparatus includes an on-chip oscillator and a calibration unit. The on-chip oscillator is arranged to generate a predetermined frequency output. The calibration unit is arranged to generate a comparison result by comparing the predetermined frequency output with an external data input received from an off-chip data source, and to calibrate the predetermined frequency output according to the comparison result.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Certain terms are used throughout the description and following claims to refer to particular components. As one skilled in the art will appreciate, manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following description and in the claims, the terms “include” and “comprise” are used in an open-ended fashion, and thus should be interpreted to mean “include, but not limited to . . . ”. Also, the term “couple” is intended to mean either an indirect or direct electrical connection. Accordingly, if one device is electrically connected to another device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
Please refer to
Please refer to
Please refer to
Step 302: Utilize an on-chip oscillator to generate a predetermined frequency output;
Step 304: Receive an external data input from an off-chip data source;
Step 306: Generate a comparison result by comparing the predetermined frequency output with the external data input; and
Step 308: Calibrate the predetermined frequency output by utilizing the comparison result.
As shown in
The detection unit 2042 provides the detected result to the processing unit 2044 to derive a comparison result COUT, which is directly fed back to an input terminal of the on-chip oscillator 202 to act as an oscillator input OSC′IN which satisfies the requirement of the on-chip oscillator 202. Specifically, the detection unit 2042 adjusts the oscillating apparatus 200 on the fly without requiring manual adjustment by users according to the predetermined frequency output OSC′OUT outputted by the output terminal of the oscillating apparatus 200. Hence, frequency offset induced by non-ideal effects such as variations in temperature or supply voltage can be calibrated immediately.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
102124808 | Jul 2013 | TW | national |