Voltage generation circuit and crystal oscillator circuit
By designing specific voltage generation circuits and crystal oscillator circuits, using components such as MOS tubes and thermistors to regulate the current and transconductance, the problem of irregular start-up time of the crystal oscillator is solved, and the start-up time of the temperature is realized. The stability of time ensures the normal startup of the circuit.
Patent Information
- Application Number
- CN202310509846.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-08
- Publication Date
- 2024-11-08
AI Technical Summary
The start time of the crystal oscillator under different temperature environments is not fixed, resulting in wasted startup time of the application circuit or the problem of failure to start normally.
A voltage generation circuit and crystal oscillator circuit are designed to connect the specific MOS tube structure and resistor, and the channel width and length ratio and current of the MOS tube are adjusted by using the thermistor and capacitor with a positive temperature coefficient to ensure temperature changes. The voltage and transconductance change are moderate, so that the start-up time is relatively fixed.
The start-up time of the crystal oscillator circuit is relatively fixed when the temperature changes, avoiding the start-up delay or failure caused by temperature changes. At the same time, the circuit structure is simple and easy to implement.
Smart Images

Figure CN118921013A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit design, and in particular to a voltage generating circuit and a crystal oscillator circuit. Background Art
[0002] Crystal oscillators are widely used in circuits, but the applicant has found that the start-up time of crystal oscillators is not fixed, especially in different temperature environments, the difference in start-up time is more obvious, which has an adverse effect on the circuit using the crystal oscillator. For example, in the control system of the application circuit, either a long time is reserved for the crystal oscillator to complete the startup, resulting in a waste of time. In serious cases, it is more likely that the crystal oscillator cannot start normally, so the application circuit cannot be used normally. Summary of the invention
[0003] The object of the present invention is to provide a voltage generating circuit and a crystal oscillator circuit, wherein the oscillation start-up timetable is relatively fixed.
[0004] To achieve the above object, the present invention provides the following technical solutions:
[0005] The present invention provides a voltage generating circuit, comprising a first MOS tube, a second MOS tube, a third MOS tube, and a fourth MOS tube, wherein a first end of the first MOS tube and a first end of the second MOS tube are both coupled to an external power supply, a second end of the first MOS tube, a second end of the second MOS tube, and a third end of the first MOS tube are connected to each other, a third end of the first MOS tube is connected to a third end of the third MOS tube, a third end of the second MOS tube is connected to a third end of the fourth MOS tube, a second end of the third MOS tube, and a third end of the fourth MOS tube are connected to each other, a first end of the third MOS tube and a first end of the fourth MOS tube are both coupled to ground, and a second end of the second MOS tube is a voltage output end, generating a voltage to output externally.
[0006] In one implementation, the first end of the third MOS transistor and the first end of the fourth MOS transistor are connected to the ground via a first resistor.
[0007] In one implementation, the substrate of the third MOS transistor is directly connected to the ground, and the substrate of the fourth MOS transistor is connected to the first end of the fourth MOS transistor.
[0008] In one embodiment, the first MOS tube is a first PMOS tube, the second MOS tube is a second PMOS tube, the third MOS tube is a first NMOS tube, the fourth MOS tube is a second NMOS tube, the first ends of all MOS tubes are source ends, the second ends of all MOS tubes are gate ends, and the third ends of all MOS tubes are drain ends.
[0009] In one embodiment, the width-to-length ratio of the channel of the first MOS tube is the same as the width-to-length ratio of the channel of the second MOS tube, the width-to-length ratio of the channel of the third MOS tube is A times the width-to-length ratio of the channel of the fourth MOS tube, and A is greater than 1.
[0010] In one embodiment, the first resistor is a thermistor with a positive temperature coefficient.
[0011] The present invention also provides a crystal oscillator circuit, comprising a bias circuit, a fifth MOS tube, a sixth MOS tube, and a crystal oscillator. The bias circuit is the voltage generating circuit as described above, and its voltage output end is connected to the second end of the fifth MOS tube, the first end of the fifth MOS tube is coupled to an external power supply, the third end of the fifth MOS tube is connected to the third end of the sixth MOS tube, the crystal oscillator is connected between the third end of the sixth MOS tube and the second end of the sixth MOS tube, and the first end of the sixth MOS tube is coupled to the ground.
[0012] In one implementation, the fifth MOS tube is a third PMOS tube, the sixth MOS tube is a third NMOS tube, and accordingly, the first ends of all MOS tubes are source ends, the second ends of all MOS tubes are gate ends, and the third ends of all MOS tubes are drain ends.
[0013] In one implementation, the width-to-length ratio of the channel of the fifth MOS transistor is B times the width-to-length ratio of the channel of the first MOS transistor, and B is greater than 0.
[0014] In one embodiment, the crystal oscillator circuit also includes a second resistor, a first capacitor, and a second capacitor, the second resistor is connected between the third end of the sixth MOS tube and the second end of the sixth MOS tube, the first capacitor is connected between the first end of the crystal oscillator and the ground, and the second capacitor is connected between the second end of the crystal oscillator and the ground.
[0015] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:
[0016] The voltage generating circuit and the crystal oscillator circuit of the present invention, when the temperature rises, the voltage provided by the voltage generating circuit will slightly decrease, and the voltage provided to the crystal oscillator circuit makes the current flowing through the MOS tube in the crystal oscillator circuit slightly increase, and the transconductance of the MOS tube slightly increase; and when the temperature rises, the transconductance of the MOS tube in the crystal oscillator circuit itself will slightly decrease, so that the overall change of the transconductance of the MOS tube is not obvious, and then the start-up time of the crystal oscillator circuit is relatively fixed. Moreover, the voltage generating circuit and the crystal oscillator circuit of the present invention are relatively simple in structure and easy to implement. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A schematic diagram of the structure of a crystal oscillator circuit provided in the second embodiment of the present invention, wherein the dotted line frame portion is a schematic diagram of the structure of a voltage generating circuit provided in the first embodiment of the present invention;
[0019] Figure 2 This is a graph of experimental data of the start-up time of the crystal oscillator circuit of the present invention at different temperatures. DETAILED DESCRIPTION
[0020] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0021] The technical solution of the present invention provides a voltage generating circuit and a crystal oscillator circuit, which are described in detail below. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments of the present invention. In the following embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0022] See also Figure 1As shown in the dotted line frame, a first embodiment of the present invention provides a voltage generating circuit, including a first MOS tube, a second MOS tube, a third MOS tube, and a fourth MOS tube, wherein the first end of the first MOS tube and the first end of the second MOS tube are coupled to an external power supply HVDD, the second end of the first MOS tube, the second end of the second MOS tube, and the third end of the first MOS tube are connected to each other, the third end of the first MOS tube is connected to the third end of the third MOS tube, the third end of the second MOS tube is connected to the third end of the fourth MOS tube, the second end of the third MOS tube, and the third end of the fourth MOS tube are connected to each other, the first end of the third MOS tube and the first end of the fourth MOS tube are coupled to the ground, and the second end of the second MOS tube is a voltage output terminal VO1, which generates a voltage to output externally.
[0023] exist Figure 1 In the specific embodiment shown, the first MOS tube is a first PMOS tube PM1, the second MOS tube is a second PMOS tube PM2, the third MOS tube is a first NMOS tube NM1, the fourth MOS tube is a second NMOS tube NM2, the first ends of all MOS tubes are source ends, the second ends of all MOS tubes are gate ends, and the third ends of all MOS tubes are drain ends.
[0024] In one implementation, the first end of the third MOS transistor and the first end of the fourth MOS transistor are connected to the ground via a first resistor R1 .
[0025] In one implementation, the substrate of the third MOS transistor is directly connected to the ground, and the substrate of the fourth MOS transistor is connected to the first end of the fourth MOS transistor.
[0026] In one embodiment, the width-to-length ratio of the channel of the first MOS tube is the same as the width-to-length ratio of the channel of the second MOS tube, the width-to-length ratio of the channel of the third MOS tube is A times the width-to-length ratio of the channel of the fourth MOS tube, and A is greater than 1.
[0027] In one embodiment, the first resistor R1 is a thermistor with a positive temperature coefficient.
[0028] See also Figure 1As shown in the complete diagram in FIG. 1 , a second embodiment of the present invention provides a crystal oscillator circuit, including a bias circuit, a fifth MOS tube, a sixth MOS tube, and a crystal oscillator X. The bias circuit is the voltage generating circuit as described above, and its voltage output end is connected to the second end of the fifth MOS tube, the first end of the fifth MOS tube is coupled to an external power supply, the third end of the fifth MOS tube is connected to the third end of the sixth MOS tube, the crystal oscillator X is connected between the third end of the sixth MOS tube and the second end of the sixth MOS tube, and the first end of the sixth MOS tube is coupled to the ground.
[0029] exist Figure 1 In the specific embodiment shown, the fifth MOS tube is the third PMOS tube PM3, the sixth MOS tube is the third NMOS tube NM3, and accordingly, the first ends of all MOS tubes are also source ends, the second ends of all MOS tubes are gate ends, and the third ends of all MOS tubes are drain ends.
[0030] In one implementation, the width-to-length ratio of the channel of the fifth MOS transistor is B times the width-to-length ratio of the channel of the first MOS transistor, and B is greater than 0 and not equal to 1. Of course, B may also be equal to 1 in other implementations.
[0031] In one embodiment, the crystal oscillator circuit further includes a second resistor R2, a first capacitor C1, and a second capacitor C2, wherein the second resistor R2 is connected between the third end of the sixth MOS tube and the second end of the sixth MOS tube, the first capacitor C1 is connected between the first end of the crystal oscillator X and the ground, and the second capacitor C2 is connected between the second end of the crystal oscillator X and the ground.
[0032] In the voltage generating circuit and crystal oscillator circuit of the present invention, the first PMOS tube PM1 (first MOS tube) and the second PMOS tube PM2 (second MOS tube) form a current mirror, and the width-to-length ratio of the channel of the first PMOS tube PM1 is the same as the width-to-length ratio of the channel of the first PMOS tube PM1, and the current flowing through the first PMOS tube PM1 and the current flowing through the second PMOS tube PM2 will be consistent. When the temperature rises, the thresholds of the first NMOS tube NM1 (third MOS tube) and the second NMOS tube NM2 (fourth MOS tube) will both decrease, and the current flowing through the first NMOS tube NM1 and the current flowing through the second NMOS tube NM2 will both have an increasing trend. The width-to-length ratio of the channel of the first NMOS tube NM1 is greater than the width-to-length ratio of the channel of the second NMOS tube NM2 (multiple is A), and the increasing trend of the current flowing through the first NMOS tube NM1 is greater than the increasing trend of the current flowing through the second NMOS tube NM2. The substrate of the first NMOS tube NM1 is directly connected to the ground, and the substrate of the second NMOS tube NM2 is connected to its own first end, that is, connected to the ground via the first resistor R1. The threshold value of the first NMOS tube NM1 decreases at a lower speed than the threshold value of the second NMOS tube NM2. The current flowing through the first NMOS tube NM1 and the current flowing through the second NMOS tube NM2 both have an upward trend, and the current flowing through the first resistor R1 also has an upward trend, so that the voltage at the connection point (third node VO3) between the first resistor R1 and the first NMOS tube NM1 and the second NMOS tube NM2 has an upward trend, which reduces the amplitude of the threshold value decrease of the first NMOS tube NM1, so that the current flowing through the first NMOS tube NM1 and the current flowing through the second NMOS tube NM2 will not increase too much, and gradually enter a stable working state. In the final stable working state of the voltage generating circuit, the current I2 flowing through the second NMOS tube NM2 is calculated according to the following formula:
[0033]
[0034] is the surface potential, K n is the transconductance factor, γ is the body effect parameter, L is the length of the channel, W is the width of the channel, all of which are parameters of the second NMOS transistor NM2, and R is the resistance of the first resistor R1. By adjusting the value of A, the desired current I2 can be obtained, and this current has a small temperature coefficient.
[0035] The first resistor R1 is a thermistor with a positive temperature coefficient. The voltage at the third node VO3 has a more obvious rising trend. The threshold drop of the first NMOS transistor NM1 is further reduced, so that the current flowing through the first NMOS transistor NM1 and the current flowing through the second NMOS transistor NM2 will not increase too much. Combined with the formula of I2 above, Proportional to the first power of temperature, K n It is proportional to the negative 1.5th power of temperature, γ is independent of temperature, R is proportional to the 1st power of temperature, and finally the current I2 is proportional to the 0.5th power of temperature. Correspondingly, the voltage output terminal VO1, i.e. the gate terminal of the second PMOS tube, will slightly decrease when the temperature rises.
[0036] The voltage generating circuit of the present invention is applied to the crystal oscillator circuit of the present invention, because when the temperature rises, the voltage provided by the voltage generating circuit will decrease slightly, and the voltage is applied to the gate terminal of the third PMOS tube PM3, and the generated current will increase slightly (the current is B times the current I2 flowing through the second NMOS tube NM2, which may be greater than the current I2, or may be less than the current I2, depending on actual needs). When the current is applied to the third NMOS tube NM3, the transconductance Gm of the third NMOS tube NM3 will increase slightly; and when the temperature rises, the transconductance Gm of the third NMOS tube NM3 itself will decrease slightly, so that the overall change of the transconductance Gm of the third NMOS tube NM3 is not obvious, and thus the start-up time of the crystal oscillator circuit is relatively fixed.
[0037] See also Figure 2 As shown, the applicant conducted an experiment on the start-up time of the crystal oscillator circuit of the present invention at different temperatures to obtain a data graph, from which it can be easily seen that the start-up time is not much different and is relatively fixed.
[0038] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:
[0039] The voltage generating circuit and the crystal oscillator circuit of the present invention, when the temperature rises, the voltage provided by the voltage generating circuit will slightly decrease, and the voltage provided to the crystal oscillator circuit makes the current flowing through the MOS tube in the crystal oscillator circuit slightly increase, and the transconductance of the MOS tube slightly increase; and when the temperature rises, the transconductance of the MOS tube in the crystal oscillator circuit itself will slightly decrease, so that the overall change of the transconductance of the MOS tube is not obvious, and then the start-up time of the crystal oscillator circuit is relatively fixed. Moreover, the voltage generating circuit and the crystal oscillator circuit of the present invention are relatively simple in structure and easy to implement.
[0040] The above is only a specific implementation of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims. In addition, the specification uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. The content of this specification should not be understood as a limitation on the present invention.
Claims
1. A voltage generating circuit, characterized in that: The voltage generating circuit includes a first MOS tube, a second MOS tube, a third MOS tube, and a fourth MOS tube. The first end of the first MOS tube and the first end of the second MOS tube are both coupled to an external power supply. The second end of the first MOS tube, the second end of the second MOS tube, and the third end of the first MOS tube are connected to each other. The third end of the first MOS tube is connected to the third end of the third MOS tube. The third end of the second MOS tube is connected to the third end of the fourth MOS tube. The second end of the third MOS tube, the second end of the fourth MOS tube, and the third end of the fourth MOS tube are connected to each other. The first end of the third MOS tube and the first end of the fourth MOS tube are both coupled to the ground. The second end of the second MOS tube is a voltage output end, which generates a voltage and outputs it to the outside.
2. The voltage generating circuit according to claim 1, characterized in that: The first end of the third MOS tube and the first end of the fourth MOS tube are connected to the ground via a first resistor.
3. The voltage generating circuit according to claim 2, characterized in that: The substrate of the third MOS tube is directly connected to the ground, and the substrate of the fourth MOS tube is connected to the first end of the fourth MOS tube.
4. The voltage generating circuit according to claim 1, characterized in that: The first MOS tube is a first PMOS tube, the second MOS tube is a second PMOS tube, the third MOS tube is a first NMOS tube, the fourth MOS tube is a second NMOS tube, the first ends of all MOS tubes are source ends, the second ends of all MOS tubes are gate ends, and the third ends of all MOS tubes are drain ends.
5. The voltage generating circuit according to claim 1, characterized in that: The width-to-length ratio of the channel of the first MOS tube is the same as that of the channel of the second MOS tube, the width-to-length ratio of the channel of the third MOS tube is A times the width-to-length ratio of the channel of the fourth MOS tube, and A is greater than 1.
6. The voltage generating circuit according to claim 2, characterized in that: The first resistor is a thermistor with a positive temperature coefficient.
7. A crystal oscillator circuit, characterized in that: The invention comprises a bias circuit, a fifth MOS tube, a sixth MOS tube, and a crystal oscillator. The bias circuit is a voltage generating circuit as described in any one of claims 1 to 6, wherein a voltage output end thereof is connected to the second end of the fifth MOS tube, a first end of the fifth MOS tube is coupled to an external power supply, a third end of the fifth MOS tube is connected to the third end of the sixth MOS tube, the crystal oscillator is connected between the third end of the sixth MOS tube and the second end of the sixth MOS tube, and a first end of the sixth MOS tube is coupled to the ground.
8. The crystal oscillator circuit according to claim 7, characterized in that: The fifth MOS tube is a third PMOS tube, the sixth MOS tube is a third NMOS tube, the first ends of all MOS tubes are source ends, the second ends of all MOS tubes are gate ends, and the third ends of all MOS tubes are drain ends.
9. The crystal oscillator circuit according to claim 7, characterized in that: The width-to-length ratio of the channel of the fifth MOS transistor is B times the width-to-length ratio of the channel of the first MOS transistor, and B is greater than 0.
10. The crystal oscillator circuit according to claim 7, characterized in that: The crystal oscillator circuit also includes a second resistor, a first capacitor, and a second capacitor. The second resistor is connected between the third end of the sixth MOS tube and the second end of the sixth MOS tube. The first capacitor is connected between the first end of the crystal oscillator and the ground. The second capacitor is connected between the second end of the crystal oscillator and the ground.
