Reference voltage generating circuit and generating method thereof
Through the combination of frequency divider, selection module, counter and digital-to-analog converter, the selection signal level state in the counter is adjusted, which solves the problem of linear change of reference voltage in the existing technology, realizes the reference voltage output with adjustable slope, and improves the The applicability and stability of the circuit are improved.
Patent Information
- Application Number
- CN202011455243.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-10
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-12-10
AI Technical Summary
In the existing reference voltage generation circuit, the generated reference voltage changes linearly with time, which cannot meet the application requirements of different slopes, and it is difficult to achieve stable output over a long period of time.
A combination of frequency divider, selection module, counter and digital-to-analog converter is used to adjust the selection signal level state in the counter and change the counting clock cycle of the counter in different time periods to achieve non-linear changes in the reference voltage.
The slope of the reference voltage is adjustable, which enhances the circuit's applicability to different application scenarios. The devices used are conventional and have good characteristics, making it easy to achieve stable output for a long time.
Smart Images

Figure CN114625194B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuits, and in particular to a reference voltage generating circuit and a generating method thereof. Background Art
[0002] There is often a need for reference voltage supply in circuit applications. Common solutions include: Figure 1a As shown, Figure 1a A circuit structure schematic diagram of an existing reference voltage generating circuit is shown, in which a current source i and a capacitor C are connected in series between a power supply terminal VDD and a reference ground, and a reference voltage Vref is obtained at an intermediate node between the current source i and the capacitor C.
[0003] But if Figure 1b As shown, Figure 1b Show Figure 1a The relationship curve diagram of the reference voltage changing with time is shown in FIG. 1 . The reference voltage Vref generated by the circuit changes with time in a linear relationship, which cannot meet the application needs that require different slopes. At the same time, based on the circuit structure, if you want to use the reference voltage Vref for a long period of time, the current source i needs to provide a very small current, or the capacitance value of the capacitor C needs to be very large, which is not easy to achieve.
[0004] Therefore, it is necessary to provide an improved technical solution to overcome the above technical problems existing in the prior art. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides a reference voltage generating circuit and a generating method thereof, which can change the generation slope of the reference voltage, realize the nonlinear increase of the reference voltage over time, and improve the applicability of the circuit to different application scenarios.
[0006] In a first aspect, a reference voltage generating circuit according to the present invention includes: a frequency divider for dividing the frequency of an initial clock signal to generate a plurality of sub-clock signals with different clock periods;
[0007] A selection module, connected to the frequency divider, for selecting and outputting one of the plurality of sub-clock signals based on a plurality of selection signals;
[0008] a counter, connected to the selection module, and configured to generate a plurality of counting clocks based on an output signal of the selection module;
[0009] a digital-to-analog converter connected to the counter and receiving a first reference voltage and a second reference voltage, and configured to perform digital-to-analog conversion on the count values represented by the plurality of count clocks based on the first reference voltage and the second reference voltage to generate a reference voltage,
[0010] Wherein, within the same counting cycle of the counter, the level state of the last level selection signal among the plurality of selection signals is adjustable.
[0011] Optionally, the several selection signals are some counting clocks among the multiple counting clocks.
[0012] Optionally, the selection module includes:
[0013] A first selector, wherein an input terminal receives a first part of the sub-clock signals among the plurality of sub-clock signals, and an output terminal selects and outputs one of the first part of the sub-clock signals based on a first selection signal among the plurality of selection signals;
[0014] a second selector, wherein the input end receives a second part of the sub-clock signals among the plurality of sub-clock signals and the output signal of the first selector, and the output end selects to output one of the second part of the sub-clock signals or the output signal of the first selector based on a second selection signal among the plurality of selection signals;
[0015] The second selection signal is a last-level selection signal among the plurality of selection signals.
[0016] Optionally, within the same counting cycle of the counter, the level state of each of the plurality of selection signals is adjustable.
[0017] Optionally, the digital-to-analog converter comprises:
[0018] A first branch, the first branch comprising a plurality of second resistors and a plurality of first resistors connected in series between a first reference voltage input terminal and a reference voltage output terminal;
[0019] A plurality of second branches, each of which comprises:
[0020] A selection switch, a first input terminal connected to a first reference voltage input terminal, and a second input terminal connected to a second reference voltage input terminal;
[0021] A plurality of second resistors are connected between the first branch and the output end of the selection switch,
[0022] The multiple selection switches on the multiple second branches receive the multiple counting clocks correspondingly, and a first resistor is included between the connection nodes of any two adjacent second branches and the first branch.
[0023] Optionally, each second branch includes a second resistor, and the resistance of each second resistor is twice the resistance of the first resistor.
[0024] Optionally, each second branch includes two second resistors connected in series, and the resistance value of each second resistor is equal to the resistance value of the first resistor.
[0025] In a second aspect, a method for generating a reference voltage according to the present invention includes:
[0026] generating a plurality of counting clocks based on an initial clock signal and a plurality of selection signals;
[0027] Performing digital-to-analog conversion on the count values represented by the plurality of count clocks based on the first reference voltage and the second reference voltage to generate a reference voltage,
[0028] Wherein, within the same counting cycle corresponding to the multiple counting clocks, the level state of the last level selection signal among the plurality of selection signals is adjustable.
[0029] Optionally, generating a plurality of counting clocks based on the initial clock signal and a plurality of selection signals comprises:
[0030] generating a plurality of sub-clock signals having different clock periods based on an initial clock;
[0031] Selecting to output one of the plurality of sub-clock signals based on the plurality of selection signals;
[0032] The plurality of count clocks are generated by counting based on the sub clock signal selected and outputted.
[0033] Optionally, within a same counting cycle corresponding to the multiple counting clocks, the level state of each of the plurality of selection signals is adjustable.
[0034] The beneficial effects of the present invention are as follows: the present invention relates to a reference voltage generating circuit and a generating method thereof, which uses a counter and a digital-to-analog converter to generate a reference voltage with different slopes in different time periods. In the process of generating the reference voltage, since the level state of the last level selection signal among several selection signals in the same counting cycle of the counter is adjustable, the clock cycle of the basic clock when the counter counts in different time periods of a counting cycle can be changed by adjusting the level state of the selection signal, so as to adjust the clock cycle of multiple counting clocks output by the counter, thereby changing the time required for the unit count value of the counter to step in the same counting cycle, and finally obtaining a reference voltage curve with adjustable slope, realizing nonlinear increase of the reference voltage over time, that is, generating a reference voltage with different slopes in different time periods of the same counting cycle. On the other hand, if the level state of the last level selection signal among several selection signals is not adjusted in the same counting cycle of the counter, the reference voltage can be linearly increased over time. The function of the reference voltage generating circuit is enhanced, and its applicability to different application scenarios is also improved. At the same time, the devices used in the reference voltage generating circuit disclosed in the present invention are all conventional, and have good characteristics, and it is easy to realize the long-term use of the reference voltage.
[0035] It should be noted that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings.
[0037] Figure 1a A schematic diagram showing the circuit structure of an existing reference voltage generating circuit is shown;
[0038] Figure 1b Show Figure 1a A schematic diagram of a curve showing the relationship between the reference voltage and time;
[0039] Figure 2 A schematic diagram showing the structure of a reference voltage generating circuit provided according to an embodiment of the present disclosure is shown;
[0040] Figure 3 Show Figure 2 Schematic diagram of the internal circuit structure of the digital-to-analog converter;
[0041] Figure 4 A schematic diagram showing a curve showing a relationship between a reference voltage and time provided according to an embodiment of the present disclosure;
[0042] Figure 5 A flow chart of a method for generating a reference voltage according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0043] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present invention are shown in the drawings. However, the present invention can be implemented in different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive.
[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0045] Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.
[0046] Figure 2 A schematic diagram of the structure of a reference voltage generating circuit provided according to an embodiment of the present disclosure is shown.
[0047] like Figure 2 As shown, in the embodiment of the present disclosure, the reference voltage generating circuit includes: a frequency divider 100, a selection module 200, a counter 300 and a digital-to-analog converter 400. Among them, the input end of the frequency divider 100 receives the initial clock signal CLK, and the output end of the frequency divider 100 is connected to the input end of the selection module 200. The selection module 200 also receives a number of selection signals, and the output end of the selection module 200 is connected to the input end of the counter 300. The output end of the counter 300 is connected to the first input end of the digital-to-analog converter 400. The second input end and the third input end of the digital-to-analog converter 400 receive the first reference voltage VA and the second reference voltage VB respectively, and the output end of the digital-to-analog converter 300 outputs the reference voltage Vref.
[0048] In this embodiment, the frequency divider 100 is used to divide the initial clock signal CLK to generate multiple sub-clock signals with different clock periods. The selection module 200 is used to select and output one of the multiple sub-clock signals based on a number of selection signals. The counter 300 is used to generate multiple counting clocks based on the output signal of the selection module 200. The digital-to-analog converter 400 is used to perform digital-to-analog conversion on the count values represented by the multiple counting clocks based on the first reference voltage VA and the second reference voltage VB to generate a reference voltage.
[0049] Furthermore, in each counting cycle of the counter 300 (ie, the counter 300 completes a counting round), the level state of the last level selection signal among the plurality of selection signals received by the counter 300 is adjustable.
[0050] Furthermore, in each counting cycle of the counter 300 (ie, the counter 300 completes a counting round), the level state of each of the plurality of selection signals received by the counter 300 is adjustable.
[0051] In this embodiment, the selection module 200 is constructed by a plurality of cascaded selectors. The selection end of each selector in the plurality of cascaded selectors receives a corresponding selection signal, and at the same time, the input end of the first-stage selector receives a part of the sub-clock signals in the plurality of sub-clock signals, and the input ends of the second-stage to the last-stage selectors respectively receive at least one of the other part of the sub-clock signals in the plurality of sub-clock signals, and the output signal of the previous-stage selector, thereby realizing the output of one of the plurality of sub-clock signals based on the plurality of selection signals, wherein the output end of the last-stage selector is the output end of the selection module 200. At this time, the selection signal received by the last-stage selector in the plurality of cascaded selectors corresponds to the last-stage selection signal.
[0052] Optionally, the selection signals received by the selection module 200 may be signals provided separately from the outside, so as to enhance the gating effect of the multiple sub-clock signals, and may also be part of the multiple counting clocks provided by the subsequent counter 300, so as to achieve adaptive adjustment.
[0053] On the other hand, in other embodiments of the present invention, a multi-select-one selection switch having multiple input terminals (the number of input terminals is greater than or equal to the number of sub-clock signals generated by the frequency divider 100) and connecting its output terminal with one of the multiple input terminals based on one or more selection signals can also be selected as the selection module 200. In this case, each of the one or more selection signals received by the multi-select-one selection switch can be used as the last-stage selection signal.
[0054] In this embodiment, the input end of the counter 300 is connected to the output end of the selection module 200, and then receives one of the multiple sub-clock signals selected and output by the selection module 200 as the basic clock for counting, and finally generates multiple counting clocks based on the basic clock to count according to the different level states of the multiple counting clocks.
[0055] Correspondingly, it can be understood that the change range of the count value of the counter 300 during stepping, i.e., the time required for the count value to increase by one unit, corresponds to the clock cycle of the basic clock received by the counter 300, that is, the change range of the count value of the counter 300 during stepping is different when the sub-clock signal selected and output by the selection module 200 is different. Therefore, by adjusting the clock cycle of the sub-clock signal selected and output by the selection module 200, the change range of the count value of the counter 300 can be adjusted accordingly.
[0056] It should be noted that the number of output terminals of the counter 300, that is, the number of counting clocks generated by it, is proportional to the step accuracy of the reference voltage Vref over time. That is, if the accuracy requirement of the corresponding reference voltage Vref is high, a counter 300 with a large number of output terminals can be selected to meet the high-precision requirement; if the accuracy requirement of the corresponding reference voltage Vref is low, a counter 300 with a relatively small number of output terminals can be selected to save circuit area and cost. At the same time, correspondingly, a counter with more output terminals can also be directly selected, and only when the circuit is connected, the number of output terminals actually effectively connected to the circuit is selected as needed. The present disclosure does not make specific restrictions on this, and in practice, corresponding selection can be made according to different application scenarios.
[0057] In this embodiment, the digital-to-analog converter 400 performs digital-to-analog conversion on the count value of the counter 300 based on the first reference voltage VA and the second reference voltage VB. When the counter 300 continuously counts within a counting cycle based on the base clock, the digital-to-analog converter 400 can obtain a continuous voltage curve that changes with time by performing digital-to-analog conversion on the continuous count value (the curve described in this article includes special curves such as straight lines and broken lines). This voltage curve is the voltage change curve of the reference voltage Vref over time.
[0058] The digital-to-analog converter 400 includes: a first branch and a plurality of second branches. The first branch includes a plurality of second resistors and a plurality of first resistors connected in series between the first reference voltage VA input terminal and the reference voltage Vref output terminal. Each of the plurality of second branches includes: a selection switch and a plurality of second resistors, the first input terminal of the selection switch is connected to the first reference voltage VA input terminal, the second input terminal of the selection switch is connected to the second reference voltage VB input terminal; and the plurality of second resistors are connected between the first branch and the output terminal of the selection switch. The plurality of selection switches on the plurality of second branches (each second branch includes a selection switch) correspond to receiving a plurality of counting clocks output by the counter 300 (that is, each selection switch corresponds to receiving a counting clock), and a first resistor is included between any two adjacent second branches and the connection node of the first branch.
[0059] It can be understood that the number of the second branches in the digital-to-analog converter 400 is equal to the number of counting clocks output by the counter 300 and the number of selection switches.
[0060] Optionally, the selection switch on each second branch includes but is not limited to a two-to-one selection switch or a relay.
[0061] Optionally, in the first embodiment of the present disclosure, each second branch includes a second resistor, and the resistance of the second resistor in each second branch is twice the resistance of the first resistor. In this case, if the resistance of the first resistor is R, the resistance of the second resistor is 2R. In this way, since only one resistor needs to be connected in series in each second branch, it helps to save the area of the step diagram.
[0062] Optionally, in the first embodiment of the present disclosure, each second branch includes two second resistors connected in series, and the resistance value of each second resistor on each second branch is equal to the resistance value of the first resistor. In this case, if the resistance value of the first resistor is R, the resistance value of the second resistor is also R. In this way, since resistors with the same resistance value are used in the digital-to-analog converter 400, the specifications of the resistors can be unified, avoiding the influence of the resistance value difference of resistors with different specifications on the performance of the digital-to-analog converter 400.
[0063] Based on the working principle of the digital-to-analog converter, it can be known that by changing the change amplitude and / or reference value (corresponding to the voltage value of the first reference voltage VA and the second reference voltage VB in this article) of the value to be converted received by the digital-to-analog converter 400, the purpose of changing the slope of the voltage curve outputted by it can be achieved. Furthermore, in the present disclosure, in different time periods in a counting cycle of the counter 300, or setting the level state of several selection signals received by the selection module 200 to be adjustable, so as to adjust the clock cycle of the sub-clock signal selected and output by the selection module 200, and thus adjust the change amplitude of the count value of the counter 300, and finally generate a reference voltage Vref curve with an adjustable slope, so as to achieve a nonlinear increase of the reference voltage Vref over time in a counting cycle of the counter 300.
[0064] For example, in this paper, only the frequency divider 100 generates three sub-clock signals (including the first sub-clock signal C <0> , the second sub-clock signal C <1> and the third sub-clock signal C <2> ), and the selector cascaded in the selection module 200 is a two-to-one selector, and the counter 300 is selected to output 9 counting clocks. Assume that the clock period of the initial clock signal CLK is Tclk=1us, and the clock periods of the three sub-clock signals generated after the frequency division are TC <0> =Tclk=1us,TC <1> =2us,TC <2> =4us.
[0065] Further, in this example, since the selectors cascaded in the selection module 200 are all two-to-one selectors, the selection module 200 can be set to include a first selector 210 and a second selector 220. The input end of the first selector 210 receives the first part of the sub-clock signals in the multiple sub-clock signals, and the output end of the first selector 210 is based on the first selection signal D in the multiple selection signals. <7> The input end of the second selector 220 receives the second part of the sub-clock signals in the plurality of sub-clock signals and the output signal of the first selector 210, and the output end of the second selector 220 is based on the second selection signal D in the plurality of selection signals. <8> Select one of the second part sub-clock signals to output or select the output signal of the first selector 210 to output. The second selection signal D <8> is the last level selection signal among several selection signals. Specifically, the first input terminal A of the first selector 210 receives the first sub-clock signal C <0> The second input terminal B of the first selector 210 receives the second sub-clock signal C <1> , the selection terminal sel of the first selector 210 receives the first selection signal D <7> At the same time, the first input terminal A of the second selector 220 receives the output signal of the first selector 210, and the second input terminal B of the second selector 220 receives the third sub-clock signal C <2> The selection terminal sel of the second selector 220 receives the second selection signal D <8> .
[0066] In this example, the multiple counting clocks (denoted as D<0:8>) output by the counter 300 include: a first counting clock D <0> , the second counting clock D <1> , the third counting clock D <2> , the fourth counting clock D <3> , the fifth counting clock D <4> , the sixth counting clock D <5> , seventh counting clock D <6> , the eighth counting clock D <7> and the ninth count clock D <8> Then, the output of 512 groups of control signals within 111111111~000000000 can be realized. <7> and the ninth count clock D <8> They are used as selection signals of the first selection switch 210 and the second selection switch 220 in the aforementioned selection module 200 respectively.
[0067] In this example, reference Figure 3 , Figure 3 Show Figure 2Schematic diagram of the internal circuit structure of the digital-to-analog converter, wherein the digital-to-analog converter 400 has 9 second branches, and a plurality of selection switches (such as including S0, S1, S2, ..., S8) in the 9 second branches respectively correspond to the first counting clock D output by the receiving counter 300 <0> , the second counting clock D <1> , the third counting clock D <2> , the fourth counting clock D <3> , the fifth counting clock D <4> , the sixth counting clock D <5> , seventh counting clock D <6> , the eighth counting clock D <7> and the ninth count clock D <8> As respective control signals, the reference voltage Vref can be controlled to change from VA to VB in 512 steps. It can be understood that the counter 300 uses different sub-clock signals, and the corresponding multiple counting clocks D <0> ~D <8> The clock cycles are also different.
[0068] Assume that in this example, the first selector 210 and the second selector 220 both select the signal transmission path between the first input terminal A and the output terminal when the corresponding received selection signal is at a high level (or corresponding to logic 1), and select the signal transmission path between the second input terminal B and the output terminal when the corresponding received selection signal is at a low level (or corresponding to logic 0). Then, in different time periods, when D <7> High level, D <8> When the level is high, the selection module 200 selects to output the first sub-clock signal C <0> To the input terminal of the counter 300, at this time, the first counting clock D output by the counter 300 <0> The clock period TD <0> =TC <0> =1us. When D <7> Low level, D <8> When the level is high, the selection module 200 selects to output the second sub-clock signal C <1> To the input terminal of the counter 300, at this time, the first counting clock D output by the counter 300 <0> The clock period TD <0> =TC <1> =2us. When D <8> When it is at a low level, the selection module 200 selects to output the third sub-clock signal C <2> To the input terminal of the counter 300, at this time, the first counting clock D output by the counter 300 <0> The clock period TD <0> =TC <2> =4us. Then, in the corresponding D <7> and D <8> The clock cycles of other counting clocks output by the counter 300 in different time periods of different level states are also different from each other.
[0069] Meanwhile, it is assumed that in this example, each selection switch in the digital-to-analog converter 400 selects to output the first reference voltage VA to the corresponding node of the first branch when the corresponding received control signal is at a high level (or corresponds to logic 1), and selects to output the second reference voltage VB to the corresponding node of the first branch when the corresponding received control signal is at a low level (or corresponds to logic 0). Figure 3 It can be seen that:
[0070] In the initial state of the counter 300 (corresponding to time t=0 us): D<8:0>=111111111, Vref=VA.
[0071] In the next state of the counter 300 (corresponding to time t=0.5 us): D<8:0>=111111110, Vref=VA+VB*1 / 2^9.
[0072] In the final state of the counter 300 (corresponding to time t=704 us): D<8:0>=0000000000, Vref=VB.
[0073] If we assume VA=0V, VB=2V, then the corresponding values are:
[0074] In the initial state of the counter 300 (corresponding to time t=0 us): D<8:0>=111111111, Vref=0V.
[0075] In the next state of the counter 300 (corresponding to time t=0.5 us): D<8:0>=111111110, Vref=2*1 / 2^9V.
[0076] In the final state of the counter 300 (corresponding to time t=704 us): D<8:0>=0000000000, Vref=2V.
[0077] Then we get Figure 4 The reference voltage is shown as a curve diagram of the relationship between the reference voltage and time. It should be noted that the counting clock D <0> ~D <8> The waveform diagram is the basic counter output waveform. Figure 4 For ease of understanding, only some counting clocks such as D are shown. <6> ~D <8> , but this does not affect the understanding of this technical solution.
[0078] refer to Figure 4It can be seen that based on the eighth counting clock D in the counting process <7> and the ninth count clock D <8> The level state changes of the reference voltage Vref from VA to VB, that is, a counting cycle of the counter 300, can be divided into a plurality of different time periods. In each time period, based on the ninth counting clock D <8> The level state changes, or based on the eighth count clock D <7> and the ninth count clock D <8> The level state changes, and the slope of the reference voltage Vref rising is different. For example, in the first time period, the selection module 200 selects to output the first sub-clock signal C <0> , and the basic timing cycle of the counter 300 is 1us, corresponding to the time t = 0 ~ 64us, the reference voltage Vref will rise from 0V to 0.5V (the change of the reference voltage Vref = 2*2^6 / 2^9), at this time the slope K1 = 0.5 / 64 (V / us); in the second time period, the selection module 200 selects to output the second sub-clock signal C <1> , and the basic timing cycle of the counter 300 is 2us, corresponding to the time t = 64 ~ 192us), the reference voltage Vref will rise from 0.5V to 1V (the change of the reference voltage Vref = 2*2^7 / 2^9), at this time the slope K1 = 0.5 / 128 (V / us); in the third time period, the selection module 200 selects to output the third sub-clock signal C <2> , and the basic timing cycle of the counter 300 is 4us, corresponding to the time t=192~704us), the reference voltage Vref will rise from 1V to 2V (the change of the reference voltage Vref=2*2^8 / 2^9), and the slope K1=1 / 512(V / us).
[0079] It can be seen from the above data that the basic timing cycle of the counter 300 corresponding to different time periods is different, and thus the rising slope of the reference voltage Vref is different, such as K1=2*K2=4*K3. Thus, in the present disclosure, by adjusting the control timing of the selection signal received by the selection module 200 to achieve different sub-clock signal outputs, the nonlinear increase of the reference voltage over time can be achieved.
[0080] However, it should be understood that this is only an exemplary description, and the number of sub-clock signals generated by the frequency divider 100 and the clock period corresponding to each sub-clock signal are not limited in this article. In different application scenarios, the appropriate initial clock signal can be selected according to the actual waveform requirements of the reference voltage Vref for different frequency divisions, and multiple sub-clock signals with different periods are generated accordingly. Correspondingly, when the number of sub-clock signals generated by the frequency divider 100 is greater than 3, the number of cascaded two-to-one selection switches included in the selection module 200 should also be increased accordingly to meet the design requirements of the frequency divider 100, and each two-to-one selector receives a selection signal respectively. On the other hand, in other embodiments of the present invention, if a plurality of input terminals (the number of input terminals is greater than or equal to the number of sub-clock signals generated by the frequency divider 100) is selected, a whole multi-selection-one selection switch whose output terminal can be connected to one of the plurality of input terminals based on one or more selection signals is used as the selection module 200, it should also be within the protection scope of the present disclosure. On the other hand, the control timing of the selection signal received by the selection module 200 and / or the number of counting clocks output by the counter 300 can be selected according to actual needs to meet different rising slope requirements of the reference voltage, and the present disclosure does not limit this.
[0081] Figure 5 A flow chart of a method for generating a reference voltage according to an embodiment of the present disclosure is shown.
[0082] like Figure 5 As shown, in this embodiment, the method for generating a reference voltage includes executing steps S1 to S2.
[0083] In step S1, a plurality of counting clocks are generated based on an initial clock signal and a plurality of selection signals.
[0084] In this embodiment, generating multiple counting clocks based on an initial clock signal and several selection signals includes: generating multiple sub-clock signals with different clock periods based on the initial clock; selecting and outputting one of the multiple sub-clock signals based on several selection signals; and counting based on the selected output sub-clock signal to generate multiple counting clocks.
[0085] In step S2, digital-to-analog conversion is performed on count values represented by a plurality of count clocks based on a first reference voltage and a second reference voltage to generate a reference voltage.
[0086] Furthermore, in this embodiment, within the same counting cycle corresponding to a plurality of counting clocks, the level state of the last level selection signal among a plurality of selection signals is adjustable.
[0087] Furthermore, within the same counting cycle corresponding to the multiple counting clocks, the level state of each selection signal among the plurality of selection signals is adjustable.
[0088] That is to say, within the same counting cycle corresponding to multiple counting clocks (wherein one counting cycle corresponds to a change process of the reference voltage from a first reference voltage to a second reference voltage), the level states of several selection signals are adjusted as needed in different time periods of the same counting cycle, and then the time required for the reference voltage to rise by a unit voltage value in the process of rising in different time periods is adjusted, thereby realizing the control of the rising slope of the reference voltage and realizing the nonlinear increase of the reference voltage over time.
[0089] In summary, in the process of generating a reference voltage, the present invention discloses that, since the level state of the last level selection signal among several selection signals in the same counting cycle of the counter is adjustable, by adjusting the level state of the selection signal, the clock cycle of the basic clock when the counter counts in different time periods of a counting cycle can be changed, and the clock cycle of multiple counting clocks output by the counter can be adjusted, so as to change the time required for the unit count value of the counter to step in a counting cycle, and finally obtain a reference voltage curve with adjustable slope, so as to realize the nonlinear increase of the reference voltage over time. On the other hand, if the level state of the last level selection signal among several selection signals is not adjusted in the same counting cycle of the counter, the linear increase of the reference voltage over time can be realized. The function of the reference voltage generating circuit is enhanced, and its applicability to different application scenarios is also improved. At the same time, the devices used in the reference voltage generating circuit disclosed in the present invention are all conventional, and have good characteristics, and it is easy to realize the long-term use of the reference voltage.
[0090] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0091] Finally, it should be noted that: Obviously, the above embodiments are only examples for clearly explaining the present invention, and are not intended to limit the implementation methods. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from this are still within the scope of protection of the present invention.
Claims
1. A reference voltage generating circuit, in, include: A frequency divider, used for dividing the frequency of an initial clock signal to generate a plurality of sub-clock signals with different clock periods; A selection module, connected to the frequency divider, for selecting and outputting one of the plurality of sub-clock signals based on a plurality of selection signals; A counter connected to the selection module, used to generate a plurality of counting clocks based on the output signal of the selection module, wherein the output signal of the selection module serves as a basic clock for the counter to count; a digital-to-analog converter connected to the counter and receiving a first reference voltage and a second reference voltage, and configured to perform digital-to-analog conversion on the count values represented by the plurality of count clocks based on the first reference voltage and the second reference voltage to generate a reference voltage, Among them, within the same counting cycle of the counter, the level state of the last level selection signal among the several selection signals is set to be adjustable, so as to adjust the clock cycle of the sub-clock signal selected and output by the selection module, thereby adjusting the variation amplitude of the counting value of the counter and generating a reference voltage curve with an adjustable slope.
2. The reference voltage generating circuit according to claim 1, in, The plurality of selection signals are part of the plurality of counting clocks.
3. The reference voltage generating circuit according to claim 2, in, The selection module comprises: A first selector, wherein an input terminal receives a first part of the sub-clock signals among the plurality of sub-clock signals, and an output terminal selects and outputs one of the first part of the sub-clock signals based on a first selection signal among the plurality of selection signals; a second selector, wherein the input end receives a second part of the sub-clock signals among the plurality of sub-clock signals and the output signal of the first selector, and the output end selects to output one of the second part of the sub-clock signals or the output signal of the first selector based on a second selection signal among the plurality of selection signals; The second selection signal is a last-level selection signal among the plurality of selection signals.
4. The reference voltage generating circuit according to claim 1, in, In the same counting cycle of the counter, the level state of each of the plurality of selection signals is adjustable.
5. The reference voltage generating circuit according to claim 1, in, The digital-to-analog converter comprises: A first branch, the first branch comprising a plurality of second resistors and a plurality of first resistors connected in series between a first reference voltage input terminal and a reference voltage output terminal; A plurality of second branches, each of which comprises: A selection switch, a first input terminal connected to a first reference voltage input terminal, and a second input terminal connected to a second reference voltage input terminal; A plurality of second resistors are connected between the first branch and the output end of the selection switch, The multiple selection switches on the multiple second branches receive the multiple counting clocks correspondingly, and a first resistor is included between the connection nodes of any two adjacent second branches and the first branch.
6. The reference voltage generating circuit according to claim 5, in, Each second branch includes a second resistor, and the resistance of each second resistor is twice the resistance of the first resistor.
7. The reference voltage generating circuit according to claim 5, in, Each second branch includes two second resistors connected in series, and the resistance value of each second resistor is equal to the resistance value of the first resistor.
8. A method for generating a reference voltage, in, include: generating a plurality of counting clocks based on an initial clock signal and a plurality of selection signals; Performing digital-to-analog conversion on the count values represented by the plurality of count clocks based on the first reference voltage and the second reference voltage to generate a reference voltage, The step of generating a plurality of counting clocks based on an initial clock signal and a plurality of selection signals comprises: generating a plurality of sub-clock signals having different clock periods based on an initial clock; Selecting to output one of the plurality of sub-clock signals based on the plurality of selection signals; The sub-clock signal selected as the output is used as the basic clock for counting, and the counting is performed to generate the plurality of counting clocks; Among them, within the same counting cycle corresponding to the multiple counting clocks, the level state of the last level selection signal among the several selection signals is set to be adjustable, so as to adjust the clock cycle of the sub-clock signal selected and output by the selection module, thereby adjusting the variation amplitude of the counting value of the counter and generating a reference voltage curve with an adjustable slope.
9. The method for generating a reference voltage according to claim 8, in, In a same counting cycle corresponding to the multiple counting clocks, the level state of each selection signal among the plurality of selection signals is adjustable.
Citation Information
Patent Citations
Reference-voltage generation circuit,reference-voltage generation method,chip and liquid crystal display
CN108648717A
