Comparator bias circuit, relaxation oscillator and chip
By introducing a comparator bias circuit into the relaxation oscillator and using the process compensation technology of the temperature compensation module and the fine-tuning resistor unit, the frequency deviation problem affected by the resistor process deviation is solved and the frequency accuracy of the clock signal is improved.
Patent Information
- Application Number
- CN202323414042.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-13
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2033-12-13
AI Technical Summary
The temperature compensation effect of the relaxation oscillator may be affected by the resistor process deviation, resulting in a large frequency deviation of the output clock signal.
A comparator bias circuit is used, including a temperature compensation module, a reference voltage module and a reference current module. Through the series-connected bias resistor unit, compensation resistor unit and trimming resistor unit, the switch sub-module is used to control the positive temperature coefficient resistor in the trimming resistor unit. and negative temperature coefficient resistors for process compensation to reduce frequency deviation.
It improves the temperature compensation effect, reduces the deviation of the bias current signal affected by different resistor processes, enhances the accuracy of the reference current signal, and improves the frequency accuracy of the relaxation oscillator output clock signal.
Smart Images

Figure CN221862828U_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of oscillators, and in particular, relates to a comparator bias circuit, a relaxation oscillator and a chip. Background Art
[0002] The reference clock of the chip is generally generated by an oscillator, which can be integrated inside the chip and is mainly affected by factors such as process deviation, temperature change and power supply fluctuation. The relaxation oscillator is an on-chip RC oscillator that uses resistor (R) and capacitor (C) components to form a frequency selection network.
[0003] In the related art, the relaxation oscillator may include components such as comparators, resistors and capacitors. The output frequency of the clock signal can be adjusted by adjusting the charging time or current of the capacitor in a certain step through proportional resistors or capacitors to compensate for the impact of process deviations and power supply fluctuations.
[0004] The influence of temperature changes on the output frequency of the clock signal can be compensated by adjusting the overall temperature coefficient of the relaxation oscillator through resistors with different temperature coefficients in the relaxation oscillator. However, resistors have process deviations under different processes. The temperature compensation effect of the relaxation oscillator may be affected by the process deviation of the resistors, resulting in large frequency deviation of the clock signal output by the relaxation oscillator. Utility Model Content
[0005] The present application provides a comparator bias circuit, a relaxation oscillator and a chip, so as to solve the problem that the temperature compensation effect of the relaxation oscillator may be affected by the resistor process deviation, resulting in a large frequency deviation of the relaxation oscillator output clock signal.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a comparator bias circuit, which is applied to a relaxation oscillator. The comparator bias circuit includes:
[0008] A temperature compensation module, the temperature compensation module comprising: a bias resistor unit, a compensation resistor unit and a fine-tuning resistor unit connected in series, and a switch submodule connected in parallel with the fine-tuning resistor unit; the polarity of the temperature coefficient corresponding to the bias resistor unit and the compensation resistor unit is opposite; the fine-tuning resistor unit comprises: a positive temperature coefficient resistor and / or a negative temperature coefficient resistor;
[0009] A reference voltage module, the reference voltage module comprising: a voltage output terminal; the voltage output terminal is connected to the temperature compensation module;
[0010] A reference current module, the reference current module comprises: a first input terminal and a first output terminal; the first input terminal is connected to the voltage output terminal, and the first output terminal is connected to the comparator module of the relaxation oscillator.
[0011] Optionally, the switch submodule includes: a first switch unit and a second switch unit; the fine-tuning resistance unit includes:
[0012] a first resistor component, the first resistor component including the positive temperature coefficient resistor and / or the negative temperature coefficient resistor; the first resistor component is connected in parallel with the first switch unit, and the first resistor component is connected in series with the bias resistor unit;
[0013] A second resistor component, the second resistor component includes the positive temperature coefficient resistor and / or the negative temperature coefficient resistor; the second resistor component is connected in parallel with the second switch unit, and the second resistor component is connected in series with the compensation resistor unit.
[0014] Optionally, the first switch unit includes: a first switch component and a second switch component connected in series; the first resistor component includes:
[0015] a first resistor string, wherein the polarity of the temperature coefficient corresponding to the first resistor string and the bias resistor unit is opposite; the first resistor string is connected in parallel with the first switch component;
[0016] A second resistor string, wherein the second resistor string is connected in series with the first resistor string, and the polarity of the temperature coefficient corresponding to the second resistor string and the bias resistor unit is the same; the second resistor string is connected in parallel with the second switch component.
[0017] Optionally, the second switch unit includes: a third switch component and a fourth switch component connected in series; and the second resistor component includes:
[0018] a third resistor string, wherein the polarity of the temperature coefficient corresponding to the third resistor string and the compensation resistor unit is opposite; and the third resistor string is connected in parallel with the third switch component;
[0019] A fourth resistor string, wherein the fourth resistor string is connected in series with the third resistor string; the polarity of the temperature coefficient corresponding to the fourth resistor string and the compensation resistor unit is the same; and the fourth resistor string is connected in parallel with the fourth switch component.
[0020] Optionally, the first switch component includes at least one first transistor connected in series; a first electrode of the first transistor is connected to one end of a corresponding resistor in the first resistor string, and a second electrode of the first transistor is connected to the other end of a corresponding resistor in the first resistor string;
[0021] The second switch component includes at least one second transistor connected in series; a first electrode of the second transistor is connected to one end of a corresponding resistor in the second resistor string, and a second electrode of the second transistor is connected to the other end of a corresponding resistor in the second resistor string;
[0022] The first switch component is connected in series with the first transistor and the second transistor adjacent to each other in the second switch component.
[0023] Optionally, the third switch component includes at least one third transistor connected in series; a first electrode of the third transistor is connected to one end of a corresponding resistor in the third resistor string, and a second electrode of the third transistor is connected to the other end of a corresponding resistor in the third resistor string;
[0024] The fourth switch component includes at least one fourth transistor connected in series; a first electrode of the fourth transistor is connected to one end of a corresponding resistor in the fourth resistor string, and a second electrode of the fourth transistor is connected to the other end of a corresponding resistor in the fourth resistor string;
[0025] The third switch component is connected in series with the third transistor and the fourth transistor adjacent to each other in the fourth switch component.
[0026] Optionally, the reference voltage module further includes:
[0027] A first current mirror, wherein a first electrode of the first current mirror is connected to a power supply module of the relaxation oscillator;
[0028] A differential pair transistor, wherein a control electrode of one transistor in the differential pair transistor is connected to the voltage output terminal, a first electrode of the differential pair transistor is connected to a ground terminal, and a second electrode of the differential pair transistor is connected to a second electrode of the first current mirror.
[0029] Optionally, the reference current module further includes:
[0030] a second current mirror, the second current mirror comprising a control transistor and a mirror transistor; a first electrode of the control transistor is connected to the voltage output terminal, and a second electrode of the control transistor is connected to the power module of the relaxation oscillator; a first electrode of the mirror transistor is connected to the first output terminal, and a second electrode of the mirror transistor is connected to the power module;
[0031] A bias voltage unit, one end of which is connected to the voltage output end, and the other end of which is connected to the control electrode of the control transistor and the control electrode of the mirror transistor respectively.
[0032] In a second aspect, an embodiment of the present application provides a relaxation oscillator, wherein the relaxation oscillator comprises the comparator bias circuit as described in the first aspect.
[0033] In a third aspect, an embodiment of the present application provides a chip, wherein the chip includes the relaxation oscillator as described in the second aspect.
[0034] In the embodiment of the present application, since the polarity of the temperature coefficient corresponding to the bias resistor unit and the compensation resistor unit of the temperature compensation module is opposite, the compensation resistor unit can be used to compensate for the resistance change caused by the temperature change of the bias resistor unit. Since the fine-tuning resistor unit includes a positive temperature coefficient resistor and / or a negative temperature coefficient resistor, and the bias resistor unit, the compensation resistor unit and the fine-tuning resistor unit are connected in series, the positive temperature coefficient resistor and / or the negative temperature coefficient resistor in the fine-tuning resistor unit can be controlled by the switch submodule to connect to the series branch, and the resistors of opposite polarities can be process compensated, that is, the frequency deviation of the bias resistor unit and / or the compensation resistor unit caused by the resistance process deviation can be compensated. Compensation, the temperature compensation module receives the reference voltage signal sent by the reference voltage module through the voltage output terminal, and the temperature compensation module generates a bias current signal according to the reference voltage signal and the bias resistance unit, compensation resistance unit and fine-tuning resistance unit connected in series, which can reduce the deviation of the bias current signal caused by the influence of different resistance processes, so that the bias current signal transmitted by the temperature compensation module to the first input terminal of the reference current module is more accurate, and the accuracy of the reference current signal output by the reference current module to the comparator module in the relaxation oscillator through the first output terminal can be improved, thereby improving the temperature compensation effect of the temperature compensation module, thereby improving the frequency accuracy of the clock signal output by the relaxation oscillator through the comparator module. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0036] Figure 1 It is one of the circuit structure diagrams of a comparator bias circuit provided in an embodiment of the present application;
[0037] Figure 2 This is one of the circuit structure diagrams of a temperature compensation module provided in an embodiment of the present application;
[0038] Figure 3 This is the second circuit structure diagram of a temperature compensation module provided in an embodiment of the present application;
[0039] Figure 4 This is the second circuit structure diagram of a comparator bias circuit provided in an embodiment of the present application.
[0040] Reference numerals:
[0041] Comparator bias circuit 10; temperature compensation module 101; bias resistor unit 1011; compensation resistor unit 1012; fine-tuning resistor unit 1013; first resistor component 10131; first resistor string 10131a; second resistor string 10131b; second resistor component 10132; third resistor string 10132a; fourth resistor string 10132b; switch submodule 1014; first switch unit 10141; first switch component 10141a; second switch Component 10141b; second switch unit 10142; third switch component 10142a; fourth switch component 10142b; reference voltage module 102; voltage output terminal 1021; first current mirror 1022; differential pair transistor 1023; reference current module 103; first input terminal 1031; first output terminal 1032; second current mirror 1033; bias voltage unit 1034; relaxation oscillator 20; comparator module 201; power supply module 202. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0043] Figure 1 is one of the structural diagrams of a comparator bias circuit 10 provided in an embodiment of the present application, such as Figure 1 As shown, the comparator bias circuit 10 is applied to a relaxation oscillator 20, and the comparator bias circuit 10 includes:
[0044] The temperature compensation module 101 includes: a bias resistor unit 1011, a compensation resistor unit 1012 and a fine-tuning resistor unit 1013 connected in series, and a switch submodule 1014 connected in parallel with the fine-tuning resistor unit 1013; the polarities of the temperature coefficients corresponding to the bias resistor unit 1011 and the compensation resistor unit 1012 are opposite; the fine-tuning resistor unit 1013 includes: a positive temperature coefficient resistor and / or a negative temperature coefficient resistor;
[0045] The reference voltage module 102 includes: a voltage output terminal 1021; the voltage output terminal 1021 is connected to the temperature compensation module 101;
[0046] The reference current module 103 includes: a first input terminal 1031 and a first output terminal 1032 ; the first input terminal 1031 is connected to the voltage output terminal 1021 , and the first output terminal 1032 is connected to the comparator module 201 of the relaxation oscillator 20 .
[0047] In the embodiment of the present application, the comparator bias circuit 10 can be arranged in the relaxation oscillator 20, connected to the input end of the comparator module 201, and as a single bias circuit of the comparator module 201, can provide a reference current for the comparator module 201. Compared with the related art in which the temperature coefficient of the overall circuit is adjusted by adjusting the resistance value and temperature curve of different temperature coefficients in different branches of the relaxation oscillator circuit, the comparator bias circuit provided in the embodiment of the present application can simplify the relaxation oscillator circuit structure.
[0048] In the embodiment of the present application, the bias resistor unit 1011, the compensation resistor unit 1012 and the fine-tuning resistor unit 1013 connected in series can form a series branch for generating a bias current signal. One end of the series branch is connected to the voltage output terminal 1021 of the reference voltage module 102, and the other end is connected to the ground terminal, so that the temperature compensation module 101 can generate a corresponding bias current signal based on the reference voltage signal output by the reference voltage module 102 and the resistance in the series branch. Among them, the order and position of the bias resistor unit 1011, the compensation resistor unit 1012 and the fine-tuning resistor unit 1013 in the series branch are not limited in the embodiment of the present application and can be determined according to actual application requirements.
[0049] In the embodiment of the present application, the polarity of the temperature coefficient corresponding to the bias resistor unit 1011 and the compensation resistor unit 1012 is opposite. If the bias resistor unit 1011 has a positive temperature coefficient, the compensation resistor unit 1012 has a negative temperature coefficient. Specifically, the bias resistor unit 1011 may include at least one bias resistor, and the compensation resistor unit 1012 may include at least one compensation resistor. The number, resistance value and temperature coefficient of the bias resistors in the bias resistor unit 1011 are not limited in the embodiment of the present application and can be determined according to actual application requirements. The number, resistance value and temperature coefficient of the compensation resistors in the compensation resistor unit 1012 can be determined according to the temperature coefficient and total resistance value of the bias resistor unit 1011 as a whole.
[0050] In the related art, the frequency deviations caused by resistors with different temperature coefficients are not the same. For example, the RNPOLY resistor is 749.57ppm / ℃ / K, the RPPOLY resistor is -96.19ppm / ℃ / K, and the HRPOLY resistor is -969.89ppm / ℃ / K. Among them, K represents kilo-ohms, ℃ represents degrees Celsius, ppm represents frequency deviation, and the meaning is part per million, ppm. The minus sign represents a negative temperature coefficient. The RNPOLY resistor is a positive temperature coefficient resistor, and the RPPOLY resistor and the HRPOLY resistor are negative temperature coefficient resistors. The deviations corresponding to the process corners of various resistors at room temperature are shown in Table 1. For the HRPOLY resistor and the RPPOLY resistor, the process limit deviation value is determined to be 20%. For the RNPOLY resistor, if the process limit deviation value is determined to be 20%, the RNPOLY resistor process corner is taken to ff, which can basically compensate for the limit process deviation.
[0051] Table 1 Simulation results of the process angle deviation of resistors at room temperature
[0052] resistance ff tt ss ff(%) tt(%) ss(%) HRPOLY 28.7287 38.27 47.8128 -24.932% 0.000 24.935% RNPOLY 45.20098 63.15851 158.0254 -28.432% 0.000 150.204% RPPOLY 1.19055 1.40015 1.61108 -14.970% 0.000 15.065%
[0053] In Table 1, process corners ss, tt, and ff refer to different types of process corners, which are used to describe the range of variation of some parameters in the chip manufacturing process. Among them, s refers to slow, t refers to typical, and f refers to fast. ss, tt, and ff are the lower left corner, center, and upper right corner of the process fluctuation range rectangle, respectively. Although RNPOLY-ss-150% has a certain probability of exceeding the pull-off limit value, due to the existence of a 1% deviation tolerance, the actual deviation can be within 1% through simulation evaluation.
[0054] For example, the bias resistor unit 1011 includes a positive temperature coefficient resistor, and the compensation resistor unit 1012 may include one or more negative temperature coefficient resistors, so that the polarities of the temperature coefficients corresponding to the bias resistor unit 1011 and the compensation resistor unit 1012 are opposite, and through the influence of each compensation resistor in the compensation resistor unit 1012 on the frequency deviation, the frequency deviation of the clock signal caused by temperature changes in the bias resistor unit 1011 can basically be compensated.
[0055] In practical applications, if the bias resistor unit 1011 is not temperature compensated, the bias resistor unit 1011 is an RPPOLY resistor with the smallest temperature coefficient, and the deviation is -96.19ppm / ℃ / K×165.772K=160780ppm / ℃. If temperature compensation is not performed, it is found through simulation that the frequency deviation reaches more than 4% when the process angle is SS and the temperature is 125℃. Therefore, it is necessary to set the compensation resistor unit 1012 to perform temperature compensation on the bias resistor unit 1011. For example, the compensation resistor unit 1012 can be an RNPOLY resistor, which can compensate the deviation by 749.57ppm / ℃ / K×4.25281k=157592ppm / ℃.
[0056] In the embodiment of the present application, the frequency deviation of the clock signal caused by the temperature change of the bias resistor unit 1011 is compensated by the compensation resistor unit 1012. However, since the bias resistor unit 1011 and the compensation resistor unit 1012 may have process deviations in actual applications, or the compensation resistor unit 1012 cannot completely compensate the bias resistor unit 1011, the comparator bias circuit 10 of the embodiment of the present application includes a fine-tuning resistor unit 1013. When there is no process deviation in the bias resistor unit 1011 and / or the compensation resistor unit 1012, the fine-tuning resistor unit 1013 is short-circuited by closing the switch submodule 1014, and the compensation resistor unit 1012 normally compensates the bias resistor unit 1011. When there is a process deviation in the bias resistor unit 1011 and / or the compensation resistor unit 1012, the process deviation of the negative temperature coefficient is compensated by the positive temperature coefficient resistor in the fine-tuning resistor unit 1013, and / or the deviation of the positive temperature coefficient is compensated by the negative temperature coefficient resistor. In this way, the frequency deviation of the clock signal output by the comparator module 201 connected to the comparator bias circuit 10 caused by the process deviation of the bias resistor unit 1011 and / or the compensation resistor unit 1012 can be compensated.
[0057] In the embodiment of the present application, the switch submodule 1014 is connected in parallel with the fine-tuning resistor unit 1013, and the switch submodule 1014 can be opened or closed under the control of the control signal sent by the control module corresponding to the relaxation oscillator 20. When the switch submodule 1014 is closed, the fine-tuning resistor unit 1013 is short-circuited, and when the switch submodule 1014 is opened, the fine-tuning resistor unit 1013 is connected to the series branch inside the temperature compensation module 101, that is, the positive temperature coefficient resistor and / or the negative temperature coefficient resistor in the fine-tuning resistor unit 1013 is connected to the series branch. Among them, the control module corresponding to the relaxation oscillator 20 can be the logic control unit of the relaxation oscillator 20 itself, or it can be the control unit of the chip where the relaxation oscillator 20 is located, and the embodiment of the present application does not limit this.
[0058] In this way, when there is a process deviation in the resistance of the bias resistor unit 1011, or there is a process deviation in the resistance of the compensation resistor unit 1012, or there is a process deviation in the resistance of both the bias resistor unit 1011 and the compensation resistor unit 1012, the resistance deviation caused by the corresponding process deviation can be compensated by fine-tuning the resistance of opposite polarity in the resistor unit 1013, thereby compensating the total resistance of the temperature compensation module 101 and eliminating the influence of the resistance deviation caused by the resistance process deviation on the temperature compensation effect.
[0059] In the embodiment of the present application, the number, resistance value and position of the positive temperature coefficient resistor and the negative temperature coefficient resistor in the fine-tuning resistor unit 1013 in the series branch of the temperature compensation module 101 are not limited in the embodiment of the present application. Specifically, the fine-tuning resistor unit 1013 can be set between the bias resistor unit 1011 and the compensation resistor unit 1012 in series, or between the compensation resistor unit 1012 and the ground terminal, or the positive temperature coefficient resistor and the negative temperature coefficient resistor in the fine-tuning resistor unit 1013 can be separately set at different positions in the series branch, and the embodiment of the present application does not limit this.
[0060] In the embodiment of the present application, the reference voltage module 102 includes a bandgap reference source, which can utilize the temperature stability of the bandgap and the characteristics of the doped semiconductor to obtain a reference voltage signal that does not change with temperature. Alternatively, the reference voltage module 102 can receive a reference voltage signal provided by a reference voltage source of the relaxation oscillator 20. This is only an example, and the embodiment of the present application does not limit this.
[0061] In an embodiment of the present application, the reference voltage module 102 transmits the reference voltage signal to the temperature compensation module 101 through the voltage output terminal 1021, so that the temperature compensation module 101 generates a bias current signal based on the reference voltage signal through the positive temperature coefficient resistor and / or negative temperature coefficient resistor in the series-connected bias resistor unit 1011, the compensation resistor unit 1012 and the fine-tuning resistor unit 1013. The bias current signal is a bias current signal after the compensation resistor unit 1012 performs temperature compensation on the bias resistor unit 1011 and the fine-tuning resistor unit 1013 performs process deviation compensation, which can improve the accuracy of the bias current signal.
[0062] In the embodiment of the present application, the first input terminal 1031 of the reference current module 103 is connected to the voltage output terminal 1021, so the first input terminal 1031 of the reference current module 103 is also connected to the temperature compensation module 101, and can receive the bias current signal generated by the temperature compensation module 101, and then obtain the reference current signal required by the comparator module 201 of the relaxation oscillator 20 according to the bias current signal, and transmit the reference current signal to the comparator module 201 of the relaxation oscillator 20 through the first output terminal 1032, so that the comparator module 201 can obtain the clock signal according to the reference current signal. Among them, the specific implementation method of the comparator module 201 obtaining the clock signal according to the reference current signal can refer to the technical means in the relevant technology, and the embodiment of the present application does not limit this.
[0063] In the embodiment s of the present application, the reference current signal may be equal to the bias current signal, and the reference current module 103 may directly transmit the bias current signal inputted from the first input terminal 1031 to the comparator module 201 of the relaxation oscillator 20 through the first output terminal 1032 as the reference current signal of the comparator module 201. Alternatively, the reference current module 103 may include a current mirror, and the bias current signal inputted from the first input terminal 1031 is mirrored to the first output terminal 1032 through the current mirror. This is merely an example, and the embodiment of the present application does not limit this.
[0064] In the embodiment of the present application, since the polarities of the temperature coefficients corresponding to the bias resistor unit 1011 and the compensation resistor unit 1012 of the temperature compensation module 101 are opposite, the compensation resistor unit 1012 can be used to compensate for the resistance change of the bias resistor unit 1011 caused by the temperature change. Since the fine-tuning resistor unit 1013 includes a positive temperature coefficient resistor and / or a negative temperature coefficient resistor, and the bias resistor unit 1011, the compensation resistor unit 1012 and the fine-tuning resistor unit 1013 are connected in series, the positive temperature coefficient resistor and / or the negative temperature coefficient resistor in the fine-tuning resistor unit 1013 can be controlled by the switch submodule 1014 to access the series branch, and process compensation can be performed on resistors of opposite polarities, that is, the frequency deviation caused by the resistance process deviation of the bias resistor unit 1011 and / or the compensation resistor unit 1012 can be compensated. The temperature compensation module 101 receives the reference voltage signal sent by the reference voltage module 102 through the voltage output terminal 1021. The temperature compensation module 101 generates a bias current signal according to the reference voltage signal and the bias resistance unit 1011, the compensation resistance unit 1012 and the fine-tuning resistance unit 1013 connected in series. The deviation of the bias current signal caused by the influence of different resistance processes can be reduced, so that the bias current signal transmitted by the temperature compensation module 101 to the first input terminal 1031 of the reference current module 103 is more accurate, and the accuracy of the reference current signal output by the reference current module 103 to the comparator module 201 in the relaxation oscillator 20 through the first output terminal 1032 can be improved, thereby improving the temperature compensation effect of the temperature compensation module 101, thereby improving the frequency accuracy of the clock signal output by the relaxation oscillator 20 through the comparator module 201.
[0065] Optionally, the switch submodule 1014 includes: a first switch unit 10141 and a second switch unit 10142; the fine-tuning resistance unit 1013 includes:
[0066] A first resistor component 10131, the first resistor component 10131 includes a positive temperature coefficient resistor and / or a negative temperature coefficient resistor; the first resistor component 10131 is connected in parallel with the first switch unit 10141, and the first resistor component 10131 is connected in series with the bias resistor unit 1011;
[0067] The second resistor component 10132 includes a positive temperature coefficient resistor and / or a negative temperature coefficient resistor; the second resistor component 10132 is connected in parallel with the second switch unit 10142, and the second resistor component 10132 is connected in series with the compensation resistor unit 1012.
[0068] In the present application examples, see Figure 2, the bias resistor unit 1011 can be connected in series with the first resistor component 10131, the first resistor component 10131 is used to compensate for the process deviation corresponding to the bias resistor unit 1011, and the temperature coefficient corresponding to the first resistor component 10131 is opposite to the temperature coefficient corresponding to the bias resistor unit 1011. For example, if the bias resistor unit 1011 has a negative temperature coefficient, then the first resistor component 10131 has a positive temperature coefficient, and the first resistor component 10131 may include a positive temperature coefficient resistor. In practical applications, in order to make the first resistor component 10131 fully compensate the bias resistor unit 1011, when only using a positive temperature coefficient resistor cannot meet the compensation standard, the compensation standard can also be met by combining a positive temperature coefficient resistor and a negative temperature coefficient resistor, and the embodiment of the present application does not limit this.
[0069] In the embodiment of the present application, the first resistor component 10131 is connected in parallel with the first switch unit 10141, and the first switch unit 10141 can be opened or closed under the control of the control signal sent by the control module corresponding to the relaxation oscillator 20. When the first switch unit 10141 is closed, the first resistor component 10131 is short-circuited, and when the first switch unit 10141 is opened, the first resistor component 10131 is connected to the series branch inside the temperature compensation module 101. In this way, when there is a process deviation in the bias resistor unit 1011, the first switch unit 10141 can be controlled to be opened, so that the first resistor component 10131 is connected to the series branch inside the temperature compensation module 101, and the bias resistor unit 1011 is compensated, so that the bias current signal generated by the temperature compensation module 101 is more accurate.
[0070] Similarly, in the embodiment of the present application, the compensation resistor unit 1012 can be connected in series with the second resistor component 10132, and the second resistor component 10132 is used to compensate for the process deviation corresponding to the compensation resistor unit 1012, and the temperature coefficient corresponding to the second resistor component 10132 is opposite to the temperature coefficient corresponding to the compensation resistor unit 1012. Figure 2, the second resistor component 10132 is also connected to the ground terminal. The second resistor component 10132 is connected in parallel with the second switch unit 10142, and the second switch unit 10142 can also be opened or closed under the control of the control signal sent by the control module corresponding to the relaxation oscillator 20. When the second switch unit 10142 is closed, the second resistor component 10132 is short-circuited, and when the second switch unit 10142 is opened, the second resistor component 10132 is connected to the series branch inside the temperature compensation module 101. In this way, when there is a process deviation in the compensation resistor unit 1012, the second switch unit 10142 can be controlled to be opened, so that the second resistor component 10132 is connected to the series branch inside the temperature compensation module 101, and the compensation resistor unit 1012 is compensated, so that the bias current signal generated by the temperature compensation module 101 is more accurate.
[0071] In an embodiment of the present application, when there are process deviations in both the bias resistor unit 1011 and the compensation resistor unit 1012, the first switch unit 10141 and the second switch unit 10142 can be controlled to be disconnected respectively, thereby connecting the first resistor component 10131 and the second resistor component 10132 to the series branch inside the temperature compensation module 101, and the process deviations of the bias resistor unit 1011 and the compensation resistor unit 1012 can be compensated respectively.
[0072] In the embodiment of the present application, since the first resistor component 10131 is connected in parallel with the first switch unit 10141, and the second resistor component 10132 is connected in parallel with the second switch unit 10142, it is convenient to control whether the first resistor component 10131 and the second resistor component 10132 are short-circuited. Since the first resistor component 10131 is connected in series with the bias resistor unit 1011, and the second resistor component 10132 is connected in series with the compensation resistor unit 1012, the first resistor component 10131 and the second resistor component 10132 respectively include positive temperature coefficient resistors and / or negative temperature coefficient resistors. Therefore, when the first resistor component 10131 and the second resistor component 10132 are not short-circuited, the process deviations of the bias resistor unit 1011 and the compensation resistor unit 1012 can be compensated respectively, so that the control of the comparator bias circuit 10 is more flexible and the practicality of the circuit can be improved.
[0073] Optionally, the first switch unit 10141 includes: a first switch component 10141a and a second switch component 10141b connected in series; the first resistor component 10131 includes:
[0074] A first resistor string 10131a, wherein the polarity of the temperature coefficient corresponding to the first resistor string 10131a and the bias resistor unit 1011 is opposite; the first resistor string 10131a is connected in parallel with the first switch component 10141a;
[0075] The second resistor string 10131b is connected in series with the first resistor string 10131a, and the polarity of the temperature coefficient corresponding to the second resistor string 10131b and the bias resistor unit 1011 is the same; the second resistor string 10131b is connected in parallel with the second switch component 10141b.
[0076] In the embodiment of the present application, the first resistor component 10131 may include a positive temperature coefficient resistor and a negative temperature coefficient resistor, the positive temperature coefficient resistors form a resistor string, and the negative temperature coefficient resistors form a resistor string. The first resistor string 10131a may be a positive temperature coefficient resistor or a negative temperature coefficient resistor, depending on the temperature coefficient corresponding to the bias resistor unit 1011, as long as the polarity of the temperature coefficient corresponding to the first resistor string 10131a and the bias resistor unit 1011 is opposite. Similarly, the polarity of the temperature coefficient corresponding to the second resistor string 10131b and the bias resistor unit 1011 is the same. In this way, the first resistor string 10131a and the second resistor string 10131b can be combined, and the number and resistance of the positive temperature coefficient resistor and the negative temperature coefficient resistor in the resistor string can be adjusted, so that the compensation result of the first resistor component 10131 to the bias resistor unit 1011 is more accurate, thereby improving the compensation effect of the first resistor component 10131 on the process deviation of the bias resistor unit 1011.
[0077] In the embodiment of the present application, the first switch unit 10141 includes a first switch component 10141a and a second switch component 10141b connected in series, the first resistor string 10131a is connected in parallel with the first switch component 10141a, and the second resistor string 10131b is connected in parallel with the second switch component 10141b. The first switch component 10141a can be opened or closed under the control of the control signal sent by the control module corresponding to the relaxation oscillator 20. When the first switch component 10141a is closed, the first resistor string 10131a is short-circuited, and when the first switch component 10141a is disconnected, the first resistor string 10131a is connected to the series branch inside the temperature compensation module 101. In this way, the first resistor string 10131a with the opposite temperature coefficient to the bias resistor unit 1011 can be connected to the series branch. Correspondingly, the second resistor string 10131b with the same temperature coefficient as the bias resistor unit 1011 can also be connected to the series branch by controlling the second switch component 10141b to be disconnected. It should be noted that when there is a process deviation in the bias resistor unit 1011, compensation is mainly performed through the first resistor string 10131 with an opposite temperature coefficient. If the compensation result does not meet the standard, fine-tuning can be performed through the second resistor string 10131b to improve the compensation effect.
[0078] In the embodiment of the present application, since the first resistor string 10131a is connected in parallel with the first switch component 10141a, the second resistor string 10131b is connected in parallel with the second switch component 10141b, and the first switch component 10141a and the second switch component 10141b are connected in series, the first switch component 10141a and the second switch component 10141b can be used to control whether the first resistor string 10131a and the second resistor string 10131b are short-circuited, respectively. Since the polarity of the temperature coefficient corresponding to the first resistor string 10131a and the bias resistor unit 1011 is opposite, Therefore, the process deviation of the bias resistor unit 1011 can be compensated by the first resistor string 10131a. When the second resistor string 10131b is not short-circuited, since the polarity of the temperature coefficient corresponding to the second resistor string 10131b and the bias resistor unit 1011 is the same, the second resistor string 10131b can be used to perform reverse fine-tuning. The first resistor string 10131a and the second resistor string 10131b can be combined to achieve more accurate compensation for the bias resistor unit 1011, thereby improving the compensation effect for the process deviation of the bias resistor unit 1011.
[0079] Optionally, the second switch unit 10142 includes: a third switch component 10142a and a fourth switch component 10142b connected in series; the second resistor component 10132 includes:
[0080] A third resistor string 10132a, wherein the polarity of the temperature coefficient corresponding to the third resistor string 10132a and the compensation resistor unit 1012 is opposite; the third resistor string 10132a is connected in parallel with the third switch component 10142a;
[0081] The fourth resistor string 10132b is connected in series with the third resistor string 10132a; the polarity of the temperature coefficient corresponding to the fourth resistor string 10132b and the compensation resistor unit 1012 is the same; the fourth resistor string 10132b is connected in parallel with the fourth switch component 10142b.
[0082] In the embodiment of the present application, the second resistor component 10132 may include a positive temperature coefficient resistor and a negative temperature coefficient resistor, the positive temperature coefficient resistors form a resistor string, and the negative temperature coefficient resistors form a resistor string. The third resistor string 10132a may be a positive temperature coefficient resistor or a negative temperature coefficient resistor, depending on the temperature coefficient corresponding to the compensation resistor unit 1012, as long as the polarity of the temperature coefficient corresponding to the third resistor string 10132a and the compensation resistor unit 1012 is opposite. Similarly, the polarity of the temperature coefficient corresponding to the fourth resistor string 10132b is the same as that of the compensation resistor unit 1012. In this way, the compensation result of the second resistor component 10132 to the compensation resistor unit 1012 can be more accurate by adjusting the number and resistance of the positive temperature coefficient resistor and the negative temperature coefficient resistor in the resistor string, thereby improving the compensation effect of the second resistor component 10132 on the process deviation of the compensation resistor unit 1012.
[0083] In the embodiment of the present application, the second switch unit 10142 includes a third switch component 10142a and a fourth switch component 10142b connected in series, the third resistor string 10132a is connected in parallel with the third switch component 10142a, and the fourth resistor string 10132b is connected in parallel with the fourth switch component 10142b. The third switch component 10142a can be opened or closed under the control of the control signal sent by the control module corresponding to the relaxation oscillator 20. When the third switch component 10142a is closed, the third resistor string 10132a is short-circuited, and when the third switch component 10142a is disconnected, the third resistor string 10132a is connected to the series branch inside the temperature compensation module 101. In this way, the third resistor string 10132a with the opposite temperature coefficient corresponding to the compensation resistor unit 1012 can be connected to the series branch. Correspondingly, the fourth switch component 10142b can also be controlled to be disconnected so that the fourth resistor string 10132b with the same temperature coefficient as the compensation resistor unit 1012 is connected to the series branch. It should be noted that when there is a process deviation in the compensation resistor unit 1012, compensation is mainly performed through the third resistor string 10132a with the opposite temperature coefficient. If the compensation result does not meet the standard, the fourth resistor string 10132b can be used for fine-tuning to improve the compensation effect.
[0084] In the embodiment of the present application, since the third resistor string 10132a is connected in parallel with the third switch component 10142a, the fourth resistor string 10132b is connected in parallel with the fourth switch component 10142b, and the third switch component 10142a and the fourth switch component 10142b are connected in series, the third resistor string 10132a and the fourth resistor string 10132b can be controlled by the third switch component 10142a and the fourth switch component 10142b to be short-circuited, respectively. Since the polarity of the temperature coefficient corresponding to the third resistor string 10132a and the compensation resistor unit 1012 is opposite, Therefore, the process deviation of the compensation resistor unit 1012 can be compensated by the third resistor string 10132a. When the fourth resistor string 10132b is not short-circuited, since the polarity of the temperature coefficient corresponding to the fourth resistor string 10132b is the same as that of the compensation resistor unit 1012, the fourth resistor string 10132b can be used to perform reverse fine-tuning. The third resistor string 10132a and the fourth resistor string 10132b can be combined to achieve more accurate compensation for the compensation resistor unit 1012, thereby improving the compensation effect for the process deviation of the compensation resistor unit 1012.
[0085] Optionally, the first switch component 10141a includes at least one first transistor connected in series; a first electrode of the first transistor is connected to one end of a corresponding resistor in the first resistor string 10131a, and a second electrode of the first transistor is connected to the other end of a corresponding resistor in the first resistor string 10131a;
[0086] The second switch component 10141b includes at least one second transistor connected in series; a first electrode of the second transistor is connected to one end of a corresponding resistor in the second resistor string 10131b, and a second electrode of the second transistor is connected to the other end of a corresponding resistor in the second resistor string 10131b;
[0087] The first switch component 10141a and the adjacent first transistor and second transistor in the second switch component 10141b are connected in series.
[0088] In the embodiment of the present application, the first transistor and the second transistor may be a triode or a field effect transistor, wherein the field effect transistor refers to a metal oxide semiconductor (MOS) field effect transistor, and the first transistor and the second transistor may be an N-type MOS transistor or a P-type MOS transistor, which is not limited in the embodiment of the present application. It should be noted that the types of the first transistor and the second transistor may be the same or different, for example, both may be NMOS, or the first transistor may be NMOS and the second transistor may be PMOS. This is only an example, and the embodiment of the present application does not limit this.
[0089] In the embodiment of the present application, the number of first transistors is not greater than the number of resistors corresponding to the first resistor string 10131a, that is, the first transistor can be connected in parallel with one or more resistors to control whether the corresponding resistors are short-circuited. Specifically, the first transistor includes a control electrode, a first electrode, and a second electrode. The control electrode can receive a control signal sent by a control module corresponding to the relaxation oscillator 20 to control whether the first electrode and the second electrode are turned on, thereby controlling whether the corresponding resistor is short-circuited.
[0090] In the embodiment of the present application, taking the field effect transistor as an example, the control electrode of the first transistor can be the gate of the MOS tube, the first electrode can be the source or the drain, and the second electrode is the drain or the source. When the first switch component 10141a includes multiple first transistors, the multiple first transistors are connected in series. The first transistor close to the second switch component 10141b is connected in series with the adjacent second transistor in the second switch component 10141b.
[0091] In an embodiment of the present application, the number of second transistors is not greater than the number of resistors corresponding to the second resistor string 10131b, that is, the second transistor can be connected in parallel with one or more resistors to control whether the corresponding resistor is short-circuited. Specifically, the second transistor includes a control electrode, a first electrode, and a second electrode. The control electrode can receive a control signal sent by a control module corresponding to the relaxation oscillator 20 to control whether the first electrode and the second electrode are turned on, thereby controlling whether the corresponding resistor is short-circuited. The control electrode of the second transistor can be the gate of a MOS tube, the first electrode can be a source or a drain, and the second electrode is a drain or a source. When the second switch component 10141b includes multiple second transistors, the multiple second transistors are connected in series with each other.
[0092] In the embodiment of the present application, by controlling the conduction or closing of the first transistor, it is possible to control whether the resistance of the first transistor in parallel is short-circuited, and by controlling the first transistor in series in the first switch component 10141a, the resistance and quantity of the resistance connected to the series branch in the first resistor string 10131a can be adjusted, so as to compensate for different process deviation values in a targeted manner. By controlling the conduction or closing of the second transistor, it is possible to control whether the resistance of the second transistor in parallel is short-circuited, and by controlling the second transistor in series in the second switch component 10141b, the resistance and quantity of the resistance connected to the series branch in the second resistor string 10131b can be adjusted, so as to compensate for different process deviation values in a targeted manner. In this way, the first resistor component 10131 can flexibly cope with the process deviation in different situations, thereby improving the flexibility of the first resistor component 10131.
[0093] In the embodiment of the present application, since the first switch component 10141a includes at least one first transistor connected in series, the first electrode of the first transistor is connected to one end of the corresponding resistor in the first resistor string 10131a, and the second electrode of the first transistor is connected to the other end of the corresponding resistor in the first resistor string 10131a, therefore, by controlling the first transistor to be turned on or off, it is possible to control whether the resistor connected in parallel with the first transistor is short-circuited, thereby adjusting the number of resistors in the first resistor string 10131a that are connected in series with the bias resistor unit 1011. Since the second switch component 10141b includes at least one second transistor connected in series, the first electrode of the second transistor is connected to one end of the corresponding resistor in the second resistor string 10131b, and the second electrode of the second transistor is connected to the other end of the corresponding resistor in the second resistor string 10131b, therefore, by controlling the second transistor to be turned on or off, it is possible to control whether the resistor connected in parallel with the second transistor is short-circuited. Short circuit, thereby adjusting the number of resistors in series with the bias resistor unit 1011 in the second resistor string 10131b, and the first transistor and the second transistor adjacent to each other in the first switch component 10141a and the second switch component 10141b are connected in series, so that the first switch component 10141a and the second switch component 10141b are connected in series. When the first transistor and the second transistor are both turned on, the first resistor string 10131a and the second resistor string 10131b can be short-circuited as a whole. In this way, the number of resistors in series with the bias resistor unit 1011 in the first resistor component 10131 can be flexibly adjusted through the first transistor and the second transistor, so that the first resistor component 10131 can flexibly respond to process deviations in different situations, thereby improving the flexibility of the first resistor component 10131 and improving the compensation effect of the process deviation of the bias resistor unit 1011 in the first resistor component 10131.
[0094] Optionally, the third switch component 10142a includes at least one third transistor connected in series; a first electrode of the third transistor is connected to one end of a corresponding resistor in the third resistor string 10132a, and a second electrode of the third transistor is connected to the other end of a corresponding resistor in the third resistor string 10132a;
[0095] The fourth switch component 10142b includes at least one fourth transistor connected in series; a first electrode of the fourth transistor is connected to one end of a corresponding resistor in the fourth resistor string 10132b, and a second electrode of the fourth transistor is connected to the other end of a corresponding resistor in the fourth resistor string 10132b;
[0096] The third switch component 10142a and the adjacent third transistor and fourth transistor in the fourth switch component 10142b are connected in series.
[0097] In the embodiment of the present application, the third transistor and the fourth transistor may be triodes or field effect transistors, and the third transistor and the fourth transistor may be NMOS or PMOS. It should be noted that the types of the third transistor and the fourth transistor may be the same or different, for example, both may be NMOS, or the third transistor may be NMOS and the fourth transistor may be PMOS. This is only an example, and the embodiment of the present application does not limit this.
[0098] In the embodiment of the present application, the number of the third transistors is not greater than the number of resistors corresponding to the third resistor string 10132a, that is, the third transistor can be connected in parallel with one or more resistors to control whether the corresponding resistors are short-circuited. Specifically, the third transistor includes a control electrode, a first electrode, and a second electrode. The control electrode can receive a control signal sent by a control module corresponding to the relaxation oscillator 20 to control whether the first electrode and the second electrode are turned on, thereby controlling whether the corresponding resistor is short-circuited.
[0099] In the embodiment of the present application, taking the field effect transistor as an example, the control electrode of the third transistor can be the gate of the MOS tube, the first electrode can be the source or the drain, and the second electrode is the drain or the source. When the third switch component 10142a includes multiple third transistors, the multiple third transistors are connected in series with each other. The third transistor close to the fourth switch component 10142b is connected in series with the adjacent fourth transistor in the fourth switch component 10142b.
[0100] In an embodiment of the present application, the number of fourth transistors is not greater than the number of resistors corresponding to the fourth resistor string 10132b, that is, the fourth transistor can be connected in parallel with one or more resistors to control whether the corresponding resistor is short-circuited. Specifically, the fourth transistor includes a control electrode, a first electrode, and a second electrode. The control electrode can receive a control signal sent by a control module corresponding to the relaxation oscillator 20 to control whether the first electrode and the second electrode are turned on, thereby controlling whether the corresponding resistor is short-circuited. The control electrode of the fourth transistor can be the gate of a MOS tube, the first electrode can be a source or a drain, and the second electrode is a drain or a source. When the fourth switch component 10142b includes multiple fourth transistors, the multiple fourth transistors are connected in series with each other.
[0101] In the embodiment of the present application, by controlling the conduction or closing of the third transistor, it is possible to control whether the resistance of the third transistor in parallel is short-circuited, and by controlling the third transistor in series in the third switch component 10142a, the resistance and quantity of the resistance connected to the series branch in the third resistor string 10132a can be adjusted, so as to compensate for different process deviation values in a targeted manner. By controlling the conduction or closing of the fourth transistor, it is possible to control whether the resistance of the fourth transistor in parallel is short-circuited, and by controlling the fourth transistor in series in the fourth switch component 10142b, the resistance and quantity of the resistance connected to the series branch in the fourth resistor string 10132b can be adjusted, so as to compensate for different process deviation values in a targeted manner. In this way, the second resistor component 10132 can flexibly respond to process deviations in different situations, thereby improving the flexibility of the second resistor component 10132.
[0102] In the embodiment of the present application, since the third switch component 10142a includes at least one third transistor connected in series, the first electrode of the third transistor is connected to one end of the corresponding resistor in the third resistor string 10132a, and the second electrode of the third transistor is connected to the other end of the corresponding resistor in the third resistor string 10132a. Therefore, by controlling the third transistor to be turned on or off, it is possible to control whether the resistor connected in parallel with the third transistor is short-circuited, thereby adjusting the number of resistors in the third resistor string 10132a that are connected in series with the compensation resistor unit 1012. Since the fourth switch component 10142b includes at least one fourth transistor connected in series, the first electrode of the fourth transistor is connected to one end of the corresponding resistor in the fourth resistor string 10132b, and the second electrode of the fourth transistor is connected to the other end of the corresponding resistor in the fourth resistor string 10132b. Therefore, by controlling the fourth transistor to be turned on or off, it is possible to control whether the resistor connected in parallel with the fourth transistor is short-circuited. The third switch component 10142a is connected in series with the adjacent third transistor and fourth transistor in the fourth switch component 10142b, so that the third switch component 10142a is connected in series with the fourth switch component 10142b. When the third transistor and the fourth transistor are turned on, the third resistor string 10132a and the fourth resistor string 10132b can be short-circuited as a whole. In this way, the number of resistors connected in series with the compensation resistor unit 1012 in the second resistor component 10132 can be flexibly adjusted through the third transistor and the fourth transistor, so that the second resistor component 10132 can flexibly respond to process deviations in different situations, thereby improving the flexibility of the second resistor component 10132 and improving the compensation effect of the process deviation of the compensation resistor unit 1012 in the second resistor component 10132.
[0103] like Figure 3The temperature compensation module 101 shown includes a bias resistor unit 1011, a first resistor string 10131a and a second resistor string 10131b connected in series with the bias resistor unit 1011, the first resistor string 10131a is connected in parallel with the first switch component 10141a, the second resistor string 10131b is connected in parallel with the second switch component 10141b, and the first switch component 10141a and the second switch component 10141b are connected in series. It also includes a compensation resistor unit 1012 connected in series with the second resistor string 10131b, and a third resistor string 10132a and a fourth resistor string 10132b connected in series with the compensation resistor unit 1012, the fourth resistor string 10132b is also connected to the ground terminal, the third resistor string 10132a is connected in parallel with the third switch component 10142a, the fourth resistor string 10132b is connected in parallel with the fourth switch component 10142b, and the third switch component 10142a and the fourth switch component 10142b are connected in series.
[0104] like Figure 3 As shown, the bias resistor unit 1011 includes a resistor R1, which is a RPPOLY resistor of 165.772KΩ (kilo-ohms). The first resistor string 10131a includes RNPOLY resistors R2, R3 and R4, with resistance values of 744.242Ω respectively. The second resistor string 10131b includes RPPOLY resistors R5-R11, with resistance values of 3.12777KΩ respectively. The compensation resistor unit 1012 includes a resistor R12, which is a RNPOLY resistor of 4.25281KΩ. The third resistor string 10132a includes a HRPOLY resistor R13, and the resistance value of R13 is 1.79412KΩ. The fourth resistor string 10132b includes RNPOLY resistors R14-R18, with resistance values of 1.27584KΩ, 637.922Ω, 318.961Ω, 106.32Ω and 53.1602Ω respectively. Figure 3In the embodiment, the first transistor, the second transistor, the third transistor and the fourth transistor are all NMOS. The first switch component 10141a includes a first transistor SWT_NN <4> and SWT_NN <3> , SWT_NN <4> In parallel with resistors R2 and R3, SWT_NN <3> The second switch component 10141b includes a second transistor SWT_N <2> 、SWT_N <1> and SWT_N <0> , SWT_N <2> In parallel with resistors R5~R8, SWT_N <1> In parallel with resistors R9 and R10, SWT_N <0> The third switch component 10142a includes a third transistor SWT_N <4> , SWT_N <4> In parallel with the resistor R13, the fourth switch component 10142b includes a fourth transistor SWT_N <3> 、SWT_NN <2> 、SWT_NN <1> and SWT_NN <0> , SWT_N <3> In parallel with resistor R14, SWT_NN <2> In parallel with resistor R15, SWT_NN <1> In parallel with resistor R16, SWT_NN <0> In parallel with the resistors R17 to R18, each transistor SWT<4:0> in the switch submodule 1014, namely SWT_NN<4:0> and SWT_N<4:0>, can receive a control signal sent by a control module corresponding to the relaxation oscillator 20 and be turned on or off in response to the control signal. Figure 3 If the transistor in the middle is an NMOS, then for any NMOS, when the received control signal is a high-level signal, the NMOS is turned on and the resistor connected in parallel with the NMOS is short-circuited.
[0105] Optionally, the reference voltage module 102 further includes:
[0106] A first current mirror 1022 , a first electrode of the first current mirror 1022 is connected to the power module 202 of the relaxation oscillator 20 ;
[0107] A differential pair transistor 1023 , wherein a control electrode of one transistor in the differential pair transistor 1023 is connected to the voltage output terminal 1021 , a first electrode of the differential pair transistor 1023 is connected to the ground terminal, and a second electrode of the differential pair transistor 1023 is connected to a second electrode of the first current mirror 1022 .
[0108] In the embodiment of the present application, the differential pair transistor 1023 includes two transistors, the first electrode of the differential pair transistor 1023 includes the first electrode of each transistor, the first electrode of the differential pair transistor 1023 is grounded, the second electrode of the differential pair transistor 1023 includes the second electrode of each transistor, and the second electrode of the differential pair transistor 1023 is connected to the second electrode of the first current mirror 1022. For example, the differential pair transistor 1023 can be a differential pair consisting of two MOS tubes. Taking NMOS as an example, the gate of one NMOS is connected to the voltage output terminal 1021, and the reference voltage signal can be transmitted to the voltage output terminal 1021, and the gate of the other NMOS receives the reference voltage signal input. The source electrodes of the two NMOS are connected as the first electrode of the differential pair transistor 1023 and grounded, and the drain electrodes of the two NMOS serve as the second electrode of the differential pair transistor 1023. Among them, the reference voltage signal can be provided by the reference voltage source of the relaxation oscillator 20. This is only an example, and the embodiment of the present application is not limited to this.
[0109] In an embodiment of the present application, the first current mirror 1022 includes two transistors, the first pole of the first current mirror 1022 includes the first poles of the two transistors, and the second pole of the first current mirror 1022 includes the second poles of the two transistors. Among them, the current mirror is composed of two interconnected transistors, and the characteristics of the transistors are used to convert the input current into the output current. In the current mirror, one transistor is called a "mirror transistor" and the other transistor is called a "control transistor". The first pole of the first current mirror 1022 is connected to the power module 202 of the relaxation oscillator 20, and can receive the power supply voltage signal provided by the power module 202.
[0110] For example, the first current mirror 1022 can be a current mirror composed of two MOS tubes. Taking PMOS as an example, the gates of the two PMOS are connected together, and one of the PMOS adopts a diode connection method, so that the current flowing through the PMOS can be mirrored to the other PMOS. The source electrodes of the two PMOS can be used as the first electrode of the first current mirror 1022, and the drain electrodes of the two PMOS can be used as the second electrode of the first current mirror 1022. Among them, the source electrodes of the two PMOS can be respectively connected to the power module 202 of the relaxation oscillator 20, and the drain electrodes of the two PMOS can be respectively connected to the drain electrodes of the corresponding NMOS.
[0111] In the embodiment of the present application, since the first electrode of the differential pair transistor 1023 is connected to the ground terminal, and the second electrode of the differential pair transistor 1023 is connected to the second electrode of the first current mirror 1022, by utilizing the characteristics of the current mirror, the current in the branch where the two transistors in the differential pair transistor 1023 are located can be controlled by the first current mirror 1022 to remain unchanged, and the control electrode voltage of the two transistors in the differential pair transistor 1023 remains stable. Since the control electrode of one transistor in the differential pair transistor 1023 is connected to the voltage output terminal 1021, the reference voltage signal output by the voltage output terminal 1021 can remain stable and be equal to the voltage corresponding to the control electrode of the other transistor in the differential pair transistor 1023.
[0112] In the embodiment of the present application, since the first electrode of the first current mirror 1022 in the reference voltage module 102 is connected to the power supply module 202 of the relaxation oscillator 20, the second electrode of the differential pair transistor 1023 is connected to the second electrode of the first current mirror 1022, the control electrode of one transistor in the differential pair transistor 1023 is connected to the voltage output terminal 1021, and the first electrode of the differential pair transistor 1023 is connected to the ground terminal, the characteristics of the current mirror can be utilized to keep the voltage corresponding to the control electrode of one transistor in the differential pair transistor 1023 stable, so that the reference voltage signal output by the reference voltage module 102 through the voltage output terminal 1021 remains stable, the quality of the reference voltage signal can be improved, and the bias current signal obtained by the temperature compensation module 101 according to the reference voltage signal is more accurate.
[0113] Optionally, the reference current module 103 further includes:
[0114] A second current mirror 1033, the second current mirror 1033 includes a control transistor and a mirror transistor; a first electrode of the control transistor is connected to the voltage output terminal 1021, and a second electrode of the control transistor is connected to the power module 202 of the relaxation oscillator 20; a first electrode of the mirror transistor is connected to the first output terminal 1032, and a second electrode of the mirror transistor is connected to the power module 202;
[0115] The bias voltage unit 1034 has one end connected to the voltage output end 1021 , and the other end connected to the control electrode of the control transistor and the control electrode of the mirror transistor respectively.
[0116] In the embodiment of the present application, the bias voltage unit 1034 may include components such as resistors and capacitors, which are used to provide a bias voltage to the control electrodes of the control transistor and the mirror transistor, so that the control transistor and the mirror transistor turn on the first electrode and the second electrode of the transistor when the control electrode voltage reaches the turn-on condition.
[0117] In the embodiment of the present application, the first electrode of the control transistor is connected to the voltage output terminal 1021, and the second electrode of the control transistor is connected to the power module 202 of the relaxation oscillator 20. Since the voltage output terminal 1021 is connected to the temperature compensation module 104, when the first electrode and the second electrode of the control transistor are turned on, the current flowing through the control transistor can be adjusted by the resistance value of the temperature compensation module 104, that is, when the control transistor is turned on, the reference current signal can be obtained according to the bias current signal.
[0118] In the embodiment of the present application, the second current mirror 1033 also includes a mirror transistor, which may be one or more. The number of mirror transistors may be determined according to the number of reference current signals required in the actual application, and the embodiment of the present application does not limit this. The control electrode of the mirror transistor is connected to the bias voltage unit 1034, and can receive the bias voltage signal provided by the bias voltage unit 1034. The second electrode of the mirror transistor is connected to the power module 202, and can receive the power supply voltage signal provided by the power module 202. The first electrode of the mirror transistor is connected to the first output terminal 1032. When the mirror transistor is turned on, the first electrode and the second electrode of the mirror transistor are turned on. The mirror transistor can copy the reference current signal flowing through the control transistor, and output the reference current signal through the first output terminal 1032, so as to provide a reference current signal for the comparator module 201 connected to the next stage of the comparator bias circuit 10.
[0119] In the embodiment of the present application, since one end of the bias voltage unit 1034 in the reference current module 103 is connected to the voltage output terminal 1021, and the other end is respectively connected to the control electrode of the control transistor and the control electrode of the mirror transistor in the second current mirror 1033, the bias voltage signal can be provided to each transistor in the second current mirror 1033 through the bias voltage unit 1034, and the second electrode of the control transistor and the second electrode of the mirror transistor are connected to the power module 202, and can receive the power supply voltage signal provided by the power module 202. When the voltage reaches the transistor conduction condition, the control transistor and the mirror transistor are turned on. In this way, the characteristics of the current mirror can be utilized to obtain the reference current signal from the control transistor through the mirror transistor, and the reference current signal is transmitted through the first output terminal 1032 to the comparator module 201 connected to the next stage.
[0120] Figure 4 FIG. 2 is a second circuit structure diagram of the comparator bias circuit 10 provided in an embodiment of the present application, such as Figure 4As shown, the comparator bias circuit 10 includes a temperature compensation module 101, a reference voltage module 102 and a reference current module 103. The reference voltage module 102 includes a voltage output terminal 1021, a first current mirror 1022 and a differential pair transistor 1023, the differential pair transistor 1023 includes NMOS transistors M1 and M2, and the first current mirror 1022 includes PMOS transistors M3 and M4. The drains of M3 and M4 are connected to the power supply module 202 of the relaxation oscillator 20, that is, VCC, the gate of M2 is connected to the voltage output terminal 1021, that is, point A, the sources of M1 and M2 are connected to the ground terminal, the drains of M1 and M2 are connected to the drains of M3 and M4, and point A is connected to the temperature compensation module 101. The temperature compensation module 101 is also connected to the ground terminal.
[0121] See also Figure 4 The reference current module 103 includes a first input terminal 1031, a first output terminal 1032, a second current mirror 1033 and a bias voltage unit 1034, wherein the first output terminal 1032 includes CMOP1 and CMOP2, and the bias voltage unit 1034 includes a resistor and a capacitor. The second current mirror 1033 includes a control transistor M5 and two mirror transistors M6 and M7, wherein the control transistor M5 is a PMOS tube, and M6 and M7 are PMOS tubes. The drain of M5 is connected to point A, and the source of M5 is connected to VCC. The drains of M6 and M7 are connected to CMOP1 and CMOP2 respectively, and the sources of M6 and M7 are connected to VCC respectively. One end of the bias voltage unit 1034 is connected to the voltage output terminal 1021, and the other end of the bias voltage unit 1034 is connected to the gates of M5 to M7 respectively, and the other end of the bias voltage unit 1034 is also connected to the drain of M3. The gate of M1 receives the reference voltage signal Vref, M1 and M2 are differential inputs of the input reference voltage signal, M4 is a diode connection on the opposite side of the reference voltage, M4 can mirror the current to M3, because the current of M3 remains unchanged, the current of M4 branch remains unchanged, the gate voltage of M2 will be stable at Vref, the voltage at point A is stable at Vref, and the current of M5 branch can be adjusted by adjusting the resistance value of the temperature compensation module 101. The current flowing through M6 and M7 is the mirror current of M5, which serves as the reference current signal of the next-stage comparator module 201.
[0122] In the embodiment of the present application, the control module corresponding to the relaxation oscillator 20, such as the logic control unit of the relaxation oscillator 20 itself or the control unit of the chip where the relaxation oscillator 20 is located, can pre-store the default control code of the switch submodule 1014, that is, the initial control signal. When the relaxation oscillator 20 is started, the initial control signal is sent to the switch submodule 1014, so that the switch submodule 1014 is disconnected in response to the initial control signal, that is, the fine-tuning resistor unit 1013 is not short-circuited, so that the positive temperature coefficient resistor and / or the negative temperature coefficient resistor in the fine-tuning resistor unit 1013 are connected to the series branch inside the temperature compensation module 101. The positive temperature coefficient resistor and / or the negative temperature coefficient resistor in the fine-tuning resistor unit 1013 compensates for the process deviation of the bias resistor unit 1011 or the compensation resistor unit 1012 or both.
[0123] Optionally, the initial control signal may include a first initial sub-signal sent to the first switch unit 10141 in the switch submodule 1014, and / or a second initial sub-signal sent to the second switch unit 10142. The first initial sub-signal is used to control the first switch unit 10141 to be disconnected, and the second initial sub-signal is used to control the second switch unit 10142 to be disconnected. In this way, the first switch unit 10141 can be set to be disconnected alone by default, or the second switch unit 10142 can be set to be disconnected alone by default, or the first switch unit 10141 and the second switch unit 10142 can be set to be disconnected by default. That is, through the first initial sub-signal and / or the second initial sub-signal, it is controlled whether the first resistor component 10131 and the second resistor component 10132 in the fine-tuning resistor unit 1013 are connected to the series branch of the temperature compensation module 104 by default, or the first resistor component 10131 and the second resistor component 10132 are both connected to the series branch by default.
[0124] It should be noted that when only one of the first resistor component 10131 and the second resistor component 10132 is connected to the series branch of the temperature compensation module 104 by default, it means that the bias resistor unit 1011 or the compensation resistor unit 1012 is subjected to extreme pull-bias compensation. Figure 3 , the control code can be set to SWT<4:0>=11000, that is, SWT_NN<4:0>=11000, SWT_N<4:0>=00111, and the control code is sent to the switch submodule 1014. Figure 3 All the NMOS in the first switch unit 10141 on the left side receive the high level signal corresponding to "1", so that all the resistors in the first resistor component 10131 are short-circuited, and Figure 3All the NMOS in the second switch unit 10142 on the right side receive the low level signal corresponding to "0", so that all the resistors in the second resistor component 10132 are connected to the series branch of the temperature compensation module 101. Then, the second resistor component 10132 can perform extreme pull-off compensation on the compensation resistor unit 1012, that is, Figure 3 The R12 resistor in the comparator module 201 is used for compensation, and after simulation compensation, the frequency deviation of the clock signal output by the comparator module 201 is within 1%. This is only an example, and the embodiment of the present application does not limit this.
[0125] Table 2 is the simulation results of the frequency deviation of the limit pull value gear
[0126]
[0127] In Table 2, TMT <x><h2 style=";text-align:left;direction:ltr">=SWT_NN<h2 style=";text-align:left;direction:ltr"> <x>=~SWT_N <x>. Among them, ~ means negation, x = 4:0. The process corners include tt, ss, and ff. TMT <x>Indicates the trim level of the digital signal sent when the chip where the relaxation oscillator 20 is located is powered on. TN40, T25 and T125 respectively indicate the frequency deviations at -40°C, 25°C and 125°C. TCN40(%) indicates the percentage of the frequency deviation at -40°C corresponding to the normal temperature TC25, TC125(%) indicates the percentage of the frequency deviation at 125°C corresponding to the normal temperature TC25, and TC25(%) is 0 as a comparison benchmark.
[0128] See also Figure 3 If the control code is set to SWT<4:0>=00111, so that all the resistors in the second resistor component 10132 are short-circuited, and all the resistors in the first resistor component 10131 are connected to the series branch of the temperature compensation module 101, then the first resistor component 10131 can perform extreme pull-bias compensation on the bias resistor unit 1011, that is, Figure 3 The R1 resistor in the comparator module 201 is used for compensation, and after simulation compensation, the frequency deviation of the clock signal output by the comparator module 201 is within 1%. This is only an example, and the embodiment of the present application does not limit this.
[0129] In the embodiment of the present application, the original clock signal output by the comparator module 201 of the relaxation oscillator 20 when the switch submodule 1014 is closed, that is, when the fine-tuning resistor unit 1013 is short-circuited, can be obtained first, and the first frequency value of the original clock signal can be determined. Then, the latest clock signal output by the comparator module 201 after the switch submodule 1014 is disconnected is obtained, and the second frequency value of the latest clock signal is determined. The first frequency value is compared with the second frequency value to determine the frequency deviation corresponding to the latest clock signal, thereby obtaining the frequency deviation compensation result of the comparator bias circuit 10 for temperature changes and resistor process deviations under the current temperature conditions as a frequency compensation result.
[0130] In the embodiment of the present application, the preset frequency deviation threshold can be determined according to actual application needs. For example, the frequency deviation threshold can be set to 1%. After temperature compensation and process deviation compensation are performed by the temperature compensation module 101, the frequency deviation of the clock signal output by the comparator module 201 of the relaxation oscillator 20 is less than 1%.
[0131] In the embodiment of the present application, if the frequency deviation of the clock signal output by the comparator module 201 is greater than the preset frequency deviation threshold value by sending an initial control signal to the switch submodule 1014, that is, when the fine-tuning resistor unit 1013 adopts the default configuration, the control code corresponding to the first process angle corresponding to the bias resistor unit 1011 can be obtained as the first control signal, and the first control signal is sent to the first switch unit 10141 to control the positive temperature coefficient resistor and / or the negative temperature coefficient resistor in the first resistor component 10131 to be connected to the series branch to compensate for the process deviation of the bias resistor unit 1011. The control code corresponding to the second process angle corresponding to the compensation resistor unit 1012 can be obtained as the second control signal, and the second control signal is sent to the second switch unit 10142 to control the positive temperature coefficient resistor and / or the negative temperature coefficient resistor in the second resistor component 10132 to be connected to the series branch to compensate for the process deviation of the compensation resistor unit 1012.
[0132] In the embodiment of the present application, the first switch unit 10141 includes a first switch component 10141a and a second switch component 10141b connected in series, the first switch component 10141a includes at least one first transistor connected in series, and the second switch component 10141b includes at least one second transistor connected in series. The second switch unit 10142 includes a third switch component 10142a and a fourth switch component 10142b connected in series, the third switch component 10142a includes at least one third transistor connected in series, and the fourth switch component 10142b includes at least one fourth transistor connected in series. One transistor in the switch submodule 1014 corresponds to a control code, and the control code is represented by a binary code, "1" can represent a high-level signal, and "0" can represent a low-level signal. When all transistors in the switch submodule 1014 correspond to different control bit values, multiple control code gears can be obtained.
[0133] In the embodiment of the present application, it is possible to predetermine different process angles by actual testing or software simulation, traverse each control code gear, obtain the frequency deviation of the clock signal corresponding to each control code gear, and make a control code gear and frequency deviation correspondence table, which can be pre-stored in the control module corresponding to the relaxation oscillator 20. In actual applications, when the frequency deviation corresponding to the initial control signal is greater than a preset frequency deviation threshold, the first process angle corresponding to the bias resistor unit 1011 and the second process angle corresponding to the compensation resistor unit 1012 are searched from the pre-stored control code gear and frequency deviation correspondence table for the frequency deviation under different temperature conditions corresponding to the first process angle and the second process angle, and the control code gear with a frequency deviation less than the preset deviation threshold is determined as the target gear, and then the first control signal and the second control signal are generated according to the control code of the target gear. The first control signal is sent to the first switch unit 10141, and the second control signal is sent to the second switch unit 10142, so as to adjust the resistance value and quantity of the resistors in the series branch connected to the temperature compensation module 101 in the fine-tuning resistor unit 1013 until the frequency deviation of the clock signal output by the comparator module 201 is less than the preset frequency deviation threshold.
[0134] In the embodiment of the present application, when the frequency deviation is greater than the preset frequency deviation threshold, the first control signal and the second control signal are generated according to the first process angle corresponding to the bias resistor unit 1011 and the second process angle corresponding to the compensation resistor unit 1012, the first control signal is sent to the first switch unit 10141, and the second control signal is sent to the second switch unit 10142. In this way, the fine-tuning resistor unit 1013 can be controlled by the initial control signal to be connected to the series branch of the temperature compensation module 101, so that the fine-tuning resistor unit 1013 performs resistance process deviation compensation. When the frequency deviation of the obtained clock signal does not meet the compensation standard, that is, the frequency deviation is greater than the preset frequency deviation threshold, the first control signal and the second control signal are obtained through the first process angle corresponding to the bias resistor unit 1011 and the second process angle corresponding to the compensation resistor unit 1012, so that the first control signal and the second control signal are in accordance with the first process angle corresponding to the bias resistor unit 1011 and the second process angle corresponding to the compensation resistor unit 1012. The corresponding second process angle is more matched, and then the first control signal is sent to the first switch unit 10141, and the second control signal is sent to the second switch unit 10142 to control whether the positive temperature coefficient resistor and / or the negative temperature coefficient resistor in the first resistor component 10131 and the second resistor component 10132 are short-circuited, thereby adjusting the total resistance value of the temperature compensation module 101, so that the bias current signal obtained by the temperature compensation module 101 is more accurate, thereby improving the accuracy of the reference current signal obtained by the reference current module 103, and can improve the frequency accuracy of the clock signal output by the comparator module 201 of the relaxation oscillator 20.
[0135] Table 3 is the simulation result of the frequency deviation corresponding to the control code position value of the resistor provided in the embodiment of the present application under the tt process angle. Table 4 is the simulation result of the frequency deviation corresponding to the control code position value of the resistor provided in the embodiment of the present application under the ss process angle. Table 5 is the simulation result of the frequency deviation corresponding to the control code position value of the resistor provided in the embodiment of the present application under the ff process angle.
[0136] Table 3 Frequency deviation simulation results corresponding to each control code position under tt process angle
[0137]
[0138]
[0139]
[0140] Table 4 Frequency deviation simulation results corresponding to each control code position under SS process angle
[0141]
[0142]
[0143] Table 5 Frequency deviation simulation results corresponding to each control code position value under ff process angle
[0144]
[0145]
[0146]
[0147] In the embodiment of the present application, an initial control signal is sent to the switch submodule 1014, and the initial control signal is used to control the switch submodule 1014 to be disconnected. Since the bias resistor unit 1011, the compensation resistor unit 1012 and the fine-tuning resistor unit 1013 are connected in series, the positive temperature coefficient resistor and / or the negative temperature coefficient resistor in the fine-tuning resistor unit 1013 can be controlled to be connected to the series branch. Since the polarity of the temperature coefficients corresponding to the bias resistor unit 1011 and the compensation resistor unit 1012 of the temperature compensation module 101 are opposite, the compensation resistor unit 1012 can compensate for the resistance change caused by the temperature change of the bias resistor unit 1011. The positive temperature coefficient resistor and / or the negative temperature coefficient in the fine-tuning resistor unit 1013 can perform process compensation for the resistors of opposite polarities in the bias resistor unit 1011 and / or the compensation resistor unit 1012, that is, the frequency deviation caused by the resistance process deviation of the bias resistor unit 1011 and / or the compensation resistor unit 1012 can be compensated. The reference voltage signal sent by the reference voltage module 102 through the voltage output terminal 1021 is received, and the temperature compensation module 101 generates a bias current signal according to the reference voltage signal and the bias resistance unit 1011, the compensation resistance unit 1012 and the fine-tuning resistance unit 1013 connected in series, so that the deviation of the bias current signal caused by the influence of different resistance processes can be reduced, so that the bias current signal transmitted by the temperature compensation module 101 to the first input terminal 1031 of the reference current module 103 is more accurate, and the accuracy of the reference current signal output by the reference current module 103 to the comparator module 201 in the relaxation oscillator 20 through the first output terminal 1032 can be improved, and the temperature compensation effect of the temperature compensation module 101 is improved, and the clock signal output by the comparator module 201 of the relaxation oscillator 20 is obtained, and the frequency deviation corresponding to the clock signal is determined as the frequency compensation result, so that the clock signal output by the relaxation oscillator 20 through the comparator module 201 is temperature compensated and the resistance process deviation is compensated, so that the frequency accuracy of the clock signal can be improved.
[0148] The embodiment of the present application provides a relaxation oscillator 20 , which includes the comparator bias circuit 10 as described in the above embodiment.
[0149] An embodiment of the present application provides a chip, which includes the relaxation oscillator 20 as described in the above embodiment.
[0150] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known circuits, structures and technologies are not shown in detail so as not to obscure the understanding of this description.
[0151] Similarly, it should be understood that in order to streamline the present application and aid in understanding one or more of the various utility model aspects, in the above description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed circuit should not be interpreted as reflecting the following intention: the claimed application requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, the utility model aspects are less than all the features of the single embodiment disclosed above. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present application.
[0152] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any circuit or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0153] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application.
[0154] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.< / x> < / x> < / x> < / x>
Claims
1. A comparator bias circuit (10), characterized in that: Applied to a relaxation oscillator (20), the comparator bias circuit (10) comprises: A temperature compensation module (101), the temperature compensation module (101) comprising: a bias resistor unit (1011), a compensation resistor unit (1012) and a fine-tuning resistor unit (1013) connected in series, and a switch submodule (1014) connected in parallel with the fine-tuning resistor unit (1013); the polarities of the temperature coefficients corresponding to the bias resistor unit (1011) and the compensation resistor unit (1012) are opposite; the fine-tuning resistor unit (1013) comprises: a positive temperature coefficient resistor and / or a negative temperature coefficient resistor; A reference voltage module (102), the reference voltage module (102) comprising: a voltage output terminal (1021); the voltage output terminal (1021) is connected to the temperature compensation module (101); A reference current module (103), the reference current module (103) comprising: a first input terminal (1031) and a first output terminal (1032); the first input terminal (1031) is connected to the voltage output terminal (1021), and the first output terminal (1032) is connected to the comparator module (201) of the relaxation oscillator (20).
2. The comparator bias circuit (10) according to claim 1, characterized in that: The switch submodule (1014) comprises: a first switch unit (10141) and a second switch unit (10142); the fine-tuning resistance unit (1013) comprises: A first resistor component (10131), the first resistor component (10131) comprising the positive temperature coefficient resistor and / or the negative temperature coefficient resistor; the first resistor component (10131) is connected in parallel with the first switch unit (10141), and the first resistor component (10131) is connected in series with the bias resistor unit (1011); A second resistor component (10132), wherein the second resistor component (10132) includes the positive temperature coefficient resistor and / or the negative temperature coefficient resistor; the second resistor component (10132) is connected in parallel with the second switch unit (10142), and the second resistor component (10132) is connected in series with the compensation resistor unit (1012).
3. The comparator bias circuit (10) according to claim 2, characterized in that: The first switch unit (10141) comprises: a first switch component (10141a) and a second switch component (10141b) connected in series; the first resistor component (10131) comprises: A first resistor string (10131a), wherein the polarity of the temperature coefficient corresponding to the first resistor string (10131a) and the bias resistor unit (1011) is opposite; the first resistor string (10131a) is connected in parallel with the first switch component (10141a); A second resistor string (10131b), wherein the second resistor string (10131b) is connected in series with the first resistor string (10131a), and the polarity of the temperature coefficient corresponding to the second resistor string (10131b) and the bias resistor unit (1011) is the same; and the second resistor string (10131b) is connected in parallel with the second switch component (10141b).
4. The comparator bias circuit (10) according to claim 2 or 3, characterized in that: The second switch unit (10142) includes: a third switch component (10142a) and a fourth switch component (10142b) connected in series; the second resistor component (10132) includes: a third resistor string (10132a), wherein the polarity of the temperature coefficient corresponding to the third resistor string (10132a) and the compensation resistor unit (1012) is opposite; the third resistor string (10132a) is connected in parallel with the third switch component (10142a); A fourth resistor string (10132b), the fourth resistor string (10132b) is connected in series with the third resistor string (10132a); the polarity of the temperature coefficient corresponding to the fourth resistor string (10132b) and the compensation resistor unit (1012) is the same; the fourth resistor string (10132b) is connected in parallel with the fourth switch component (10142b).
5. The comparator bias circuit (10) according to claim 3, characterized in that: The first switch component (10141a) comprises at least one first transistor connected in series; a first electrode of the first transistor is connected to one end of a corresponding resistor in the first resistor string (10131a), and a second electrode of the first transistor is connected to the other end of a corresponding resistor in the first resistor string (10131a); The second switch component (10141b) comprises at least one second transistor connected in series; a first electrode of the second transistor is connected to one end of a corresponding resistor in the second resistor string (10131b), and a second electrode of the second transistor is connected to the other end of a corresponding resistor in the second resistor string (10131b); The first switch component (10141a) and the second switch component (10141b) are connected in series to the adjacent first transistor and the second transistor.
6. The comparator bias circuit (10) according to claim 4, characterized in that: The third switch component (10142a) comprises at least one third transistor connected in series; a first electrode of the third transistor is connected to one end of a corresponding resistor in the third resistor string (10132a), and a second electrode of the third transistor is connected to the other end of a corresponding resistor in the third resistor string (10132a); The fourth switch component (10142b) comprises at least one fourth transistor connected in series; a first electrode of the fourth transistor is connected to one end of a corresponding resistor in the fourth resistor string (10132b), and a second electrode of the fourth transistor is connected to the other end of a corresponding resistor in the fourth resistor string (10132b); The third switch component (10142a) and the adjacent third transistor and the fourth transistor in the fourth switch component (10142b) are connected in series.
7. The comparator bias circuit (10) according to claim 1, characterized in that: The reference voltage module (102) further includes: A first current mirror (1022), wherein a first electrode of the first current mirror (1022) is connected to a power supply module (202) of the relaxation oscillator (20); A differential pair transistor (1023), wherein a control electrode of one transistor in the differential pair transistor (1023) is connected to the voltage output terminal (1021), a first electrode of the differential pair transistor (1023) is connected to a ground terminal, and a second electrode of the differential pair transistor (1023) is connected to a second electrode of the first current mirror (1022).
8. The comparator bias circuit (10) according to claim 1, characterized in that: The reference current module (103) further includes: a second current mirror (1033), the second current mirror (1033) comprising a control transistor and a mirror transistor; a first electrode of the control transistor is connected to the voltage output terminal (1021), and a second electrode of the control transistor is connected to a power module (202) of the relaxation oscillator (20); a first electrode of the mirror transistor is connected to the first output terminal (1032), and a second electrode of the mirror transistor is connected to the power module (202); A bias voltage unit (1034), one end of which is connected to the voltage output end (1021), and the other end of which is connected to the control electrode of the control transistor and the control electrode of the mirror transistor respectively.
9. A relaxation oscillator (20), characterized in that: The relaxation oscillator (20) comprises a comparator bias circuit (10) as claimed in any one of claims 1 to 8.
10. A chip, characterized in that: The chip comprises the relaxation oscillator (20) as claimed in claim 9.
