This application claims the priority benefit of Taiwan application serial no. 112124894, filed on Jul. 4, 2023. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The disclosure relates to a reference current generating circuit, and particularly relates to a reference current generating circuit applied to an oscillator circuit.
The processor circuit of the magnetoresistive sensor usually needs to configure an oscillator circuit to perform the counting function. For example, when the ultra-slow oscillator used for counting operates at a frequency of 1 Hz, the circuit is only activated once per second and enters a sleep mode at other times. Under such an application scenario, the accuracy of the counting function of the oscillator circuit is quite important. If the oscillation signal generated by the oscillator circuit changes with the temperature and voltage easily, then the accuracy of the counting is reduced.
The disclosure provides a reference current generating circuit, a reference current and a reference voltage generated by the reference current generating circuit does not change with the temperature easily, so the accuracy of the oscillator circuit can be improved when applied to the oscillator circuit.
The reference current generating circuit of the disclosure includes a reference voltage generating circuit and a current source circuit. The reference voltage generating circuit is configured to generate a first reference voltage according to a first current. The reference voltage generating circuit includes a native transistor device, and the first current flows through the native transistor device. The current source circuit is coupled to the reference voltage generating circuit. The current source circuit is configured to generate a reference current according to the first reference voltage. The current source circuit includes a cascode transistor circuit and the reference current flows through the cascode transistor circuit. The cascode transistor circuit includes a low-voltage transistor device and a high-voltage transistor device coupled in series.
In order to make the above-mentioned features and advantages of the disclosure more comprehensible, the following specific embodiments are described in detail together with the accompanying drawings.
The current source circuit 120 is coupled to the reference voltage generating circuit 110. The current source circuit 120 is configured to generate a reference current IREF according to the first reference voltage VBG. The current source circuit 120 includes a cascode transistor circuit 122. The reference current flows through the cascode transistor circuit 122. The cascode transistor circuit 122 includes a low-voltage transistor device MN6 and a high-voltage transistor device MN7 coupled in series. The low-voltage transistor device is a transistor device having a low threshold voltage and a low withstand voltage, for example, Vt=0.4V, and a maximum VDD is 1.8V. The high-voltage transistor device is a transistor device having a high threshold voltage and a high withstand voltage, for example, Vt=0.7V, and the maximum VDD is 3.3V.
Specifically, the current source circuit 120 further includes a first transistor device MP3. The first transistor device MP3 has a first terminal, a second terminal, and a control terminal. The first terminal of the first transistor device MP3 is coupled to the first voltage VDD (system high voltage), the second terminal of the first transistor device is coupled to the cascode transistor circuit 122, and the control terminal of the first transistor device MP3 is coupled to the second terminal of the first transistor device MP.
The low-voltage transistor device MN6 has a first terminal, a second terminal, and a control terminal. The first terminal of the low-voltage transistor device MN6 is coupled to the second terminal of the first transistor device MP3, and the control terminal of the low-voltage transistor device MN6 is coupled to the reference voltage generating circuit 110.
The high-voltage transistor device MN7 has a first terminal, a second terminal, and a control terminal. The first terminal of the high-voltage transistor device MN7 is coupled to the second terminal of the low-voltage transistor device MN6, the second terminal of the high-voltage transistor device MN7 is coupled to a second voltage GND (system low voltage), and the control terminal of the high-voltage transistor device MN7 is coupled to the reference voltage generating circuit 110. The high-voltage transistor device MN7 operates in a subthreshold region.
The control terminal of the low-voltage transistor device MN6 and the control terminal of the high-voltage transistor device MN7 receive the first reference voltage VBG and are controlled by the first reference voltage VBG. The reference current IREF flows through the first transistor device MP3, the low-voltage transistor device MN6, and the high-voltage transistor device MN7 sequentially to generate a second reference voltage VREF at the first terminal of the high-voltage transistor device MN7.
In this embodiment, the second reference voltage VREF is less affected by the change of the temperature, which is described as follows.
The second reference voltage VREF may be expressed as the following formula:
VREF is the second reference voltage; Vth6 and Vth7 are the threshold voltages of the low-voltage transistor device MN6 and the high-voltage transistor device MN7 respectively; S6 and S7 are parameters S of the low-voltage transistor device MN6 and the high-voltage transistor device MN7 respectively, in which S=(W/L)Cox, L is the channel length of the transistor, W is the channel width of the transistor, Cox is the gate oxide layer capacitance of the transistor; VT is the thermal voltage, approximately 0.026 V; and ln(S6/S7) is the natural logarithm of S6 divided by S7.
It may be seen from
In this embodiment, the high-voltage transistor device MN7 operates in the subthreshold or weak-inversion region, and a drain current ID may be expressed as:
ID is the drain current of the transistor; the parameter of the transistor S=(W/L)Cox, in which L is the channel length of the transistor, W is the channel width of the transistor, Cox is the gate oxide layer capacitance of the transistor; μ is the carrier mobility; exp( ) is an exponential function with the natural constant e as the base; VT is thermal voltage, approximately 0.026 V; VGS is the voltage difference between the gate and the source of the transistor; Vth is the threshold voltage of the transistor; and m is the subthreshold slope parameter.
Since the reference current IREF flows through the first transistor device MP3, the low-voltage transistor device MN6, and the high-voltage transistor device MN7 sequentially, the reference current IREF is substantially equal to the drain current ID of the high-voltage transistor device MN7. Therefore, the amount of the reference current IREF is also determined by the above current formula.
In the above current formula, when the temperature T increases, the carrier mobility μ decreases, the voltage difference VGS between the gate and the source of the transistor decreases, the threshold voltage Vth decreases, the subthreshold slope parameter m increases, the thermal voltage VT increases, and the overall value of the exponential function exp( ) decreases. Therefore, in this embodiment, by appropriately designing the size (i.e., the transistor parameter S) of the high-voltage transistor device MN7, the reference current IREF is less affected by the change of the temperature within a certain temperature range.
On the other hand, please refer to
The third transistor device MP2 has a first terminal, a second terminal, and a control terminal. The first terminal of the third transistor device MP2 is coupled to the first voltage VDD, and the control terminal of the third transistor device MP2 is coupled to the control terminal of the second transistor device MP1.
The fourth transistor device MN1 has a first terminal, a second terminal, and a control terminal. The first terminal of the fourth transistor device MN1 is coupled to the second terminal of the third transistor device MP2, the second terminal of the fourth transistor device MN1 is coupled to the second voltage GND, and the control terminal of the fourth transistor device MN1 is coupled to the first terminal of the fourth transistor device MN1. The first terminal of the fourth transistor device MN1 is coupled to the current source circuit 120, and the first reference voltage VBG is generated at the first terminal of the fourth transistor device MN1 and is output to the current source circuit 120 through the first terminal of the fourth transistor device MN1.
The native transistor device MN0 has a first terminal, a second terminal, and a control terminal. The first terminal of the native transistor device MN0 is coupled to the second terminal of the second transistor device MP1, and the second terminal and the control terminal of the native transistor device MN0 are coupled to the second voltage GND. The native transistor device MN0 operates in a saturation region.
In this embodiment, since the native transistor device MN0 operates in the saturation region, the first current I0 may be expressed as:
I0 is the drain current of the transistor; the parameter of the transistor S=½μCox, in which μ is the carrier mobility, Cox is the gate oxide capacitance of the transistor; L is the channel length of the transistor, W is the channel width of the transistor; VGS is the voltage difference between the gate and the source of the transistor; and Vth is the threshold voltage of the transistor, approximately −0.1V. In addition, since the VGS of the native transistor device MN0 is 0, the above current formula may be simplified as:
It may be known from the above current formula that the first current I0 is the current irrelevant to the first voltage VDD, and does not change with the first voltage VDD easily. Since the first current I0 does not change with the first voltage VDD easily, the reference voltage generating circuit 110 can also generate the accurate first reference voltage VBG (i.e., the reference voltage).
In addition, in the embodiment of
In addition, the oscillator circuit 300 shown in
In summary, according to the embodiments of the disclosure, the reference voltage generating circuit can generate the accurate reference voltage, and through properly designing the size of the high-voltage transistor device of the current source circuit, the reference current can be less affected by the change of the temperature within a certain temperature range. In addition, the reference current and the reference voltage generated by the reference current generating circuit do not change with the temperature easily, so the accuracy of the oscillator circuit can be improved when applied to the oscillator circuit.
Although the disclosure has been disclosed above with the embodiments, the embodiments are not intended to limit the disclosure. Persons with ordinary knowledge in the technical field may make some changes and modifications without departing from the spirit and scope of the disclosure. Therefore, the scope of protection of the disclosure shall be defined by the appended claims.
| Number | Date | Country | Kind |
|---|---|---|---|
| 112124894 | Jul 2023 | TW | national |