1. Technical Field
The present disclosure relates to a circuit for adjusting frequency of a crystal oscillator.
2. Description of Related Art
Frequency of a crystal oscillator needs to be precisely tuned for electronic devices. The frequency of the crystal oscillator is usually tuned using two capacitors soldered to opposite ends of the crystal oscillator. If the frequency changes over time, the oscillator is retuned by replacing the capacitors. However, capacitance of the new capacitors may change as it can be affected by the soldering process.
Therefore, there is need for improvement in the art.
Many aspects of the present disclosure can be better understood with reference to the following drawing(s). The components in the drawing(s) are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawing(s), like reference numerals designate corresponding parts throughout the several views.
In the embodiment, the BIOS 11 is connected to the PCH 12 by serial peripheral interfaces (SPIs) through input output (I/O) pins of the BIOS 11 and the PCH 12, to make a first register 110 of the BIOS 11 transmit control signals to a second register 120 of the PCH 12. In the embodiment, the control signals output by the first register 110 of the BIOS 11 includes a first digital signal and a second digital signal. A first general purpose input output (GPIO) pin GPIO1 of the PCH 12 and a second GPIO pin GPIO2 of the PCH 12 receive the first digital signal and the second digital signal, respectively, from the second register 120 of the PCH 12, and output the first digital signal and the second digital signal to the buffer 13.
The crystal oscillator X1 includes a first end X11 and a second end X12. The first end X11 of the crystal oscillator X1 is connected to a first clock pin RTCX1 of the PCH 12, and is grounded through a capacitor C1. The second end X12 of the crystal oscillator X1 is connected to a second clock pin RTCX2 of the PCH 12, and is grounded through a capacitor C2. The first end X11 is connected to the second end X12 through a resistor R1. In the embodiment, capacitance of each of the first capacitor C1 and the second capacitor C2 is 18 picofarads (pF).
The buffer 13 includes a first enable pin EN1, a second enable pin EN2, an input pin I, and four output pins O1-O4. The input pin I is connected to the second end X12 of the crystal oscillator X1. The first enable pin EN1 is connected to, and receives the first digital signal from, the first GPIO pin GPIO1. The second enable pin EN2 is connected to, and receives the second digital signal from, the second GPIO pin GPIO2.
The capacitor module 14 includes four capacitors C3-C6. First ends of the capacitors C3-C6 are connected to the output pins O1-O4 of the buffer 13, respectively. Second ends of the capacitors C3-C6 are grounded. In the embodiment, capacitance of each of the capacitors C3-C6 is 1 pF.
The buffer 13 further includes a control module 130.
In the embodiment, the first electronic switch Q1 is a pnp bipolar junction transistor. The second to fourth electronic switches Q2-Q4 are npn bipolar junction transistors. The first to third ends of the first to fourth electronic switches Q1-Q4 correspond to bases, emitters, and collectors of the bipolar junction transistors, respectively.
In use, when the first and second digital signals respectively received by the first and second enable pins EN1 and EN2 are low level signals, such as logic 0, the first electronic switch Q1 is turned on. The second to fourth electronic switches Q2-Q4 are turned off. Thereby, the capacitor C3 is connected to the input pin I through the first output pin O1 of the buffer 13, and is further connected to the crystal oscillator X1.
When the first digital signal received by the first enable pin EN1 is a low level signal, such as logic “0”, and the second digital signal received by the second enable pin EN2 is a high level signal, such as logic 1, the first and second electronic switches Q1 and Q2 are turned on. The third and fourth electronic switches Q3 and Q4 are turned off. Thereby, both of the capacitors C3 and C4 are connected to the input pin I of the buffer 13 through the first and second output pins O1 and O2, respectively, and are further connected to the crystal oscillator X1.
When the first digital signal received by the first enable pin EN1 is a high level signal, such as logic “1”, and the second digital signal received by the second enable pin EN2 is a low level signal, such as logic 0, the first to third electronic switches Q1-Q3 are turned on. The fourth electronic switch Q4 is turned off. Thereby, the capacitors C3-05 are connected to the input pin I of the buffer 13 through the first to third output pins O1-O3, respectively, and are further connected to the crystal oscillator X1.
When the first and second digital signals respectively received by the first and second enable pins EN1 and EN2 are high level signals with logic “1”, the first to fourth electronic switches Q1-Q4 are turned on. Thereby, the capacitors C3-C6 are connected to the input pin I of the buffer 13 through the first to fourth output pins O1-O4, respectively, and are further connected to the crystal oscillator X1.
Therefore, the frequency of the crystal oscillator X1 can be adjusted, according to the logic state of the first digital signal and the second digital signal received by the first enable pin EN1 and the second enable pin EN2, respectively, without the need to replace any capacitors.
In another embodiment, a number of the enable pins of the buffer 13 can be set according to a number of the capacitors connected to the buffer 13.
While the disclosure has been described by way of example and in terms of preferred embodiment, it is to be understood that the disclosure is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements as would be apparent to those skilled in the art. Therefore, the range of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
2012105889395 | Dec 2012 | CN | national |