A sawtooth wave generator

By introducing a charge pump, a V-I conversion circuit and a variable resistor array into the sawtooth wave generator, double adjustment of the frequency and amplitude of the sawtooth wave signal is achieved, which solves the problem of single and unstable signal adjustment in the existing technology and improves efficiency. Signal adaptability and stability.

CN118659776BActive Publication Date: 2024-10-15XI AN JIAOTONG UNIV
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411154405.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-10-15
Estimated Expiration
2044-08-22

AI Technical Summary

Technical Problem

The existing sawtooth wave generator has a single function, cannot achieve precise program-controlled adjustment of frequency and amplitude, and suffers from drift and instability of the output signal, making it unable to adapt to working requirements under different load conditions.

Method used

Using a structure including a charge pump, V-I conversion circuit, sawtooth wave generation and sampling circuit and level conversion circuit, the frequency and amplitude of the sawtooth wave are adjusted through a variable resistor array, and the system clock signal is used to switch the resistance of the resistor array, based on the bias The current generates a sawtooth wave signal with a preset frequency and amplitude, and the output voltage is adjusted through a comparator to ensure that the signal is within the preset range.

Benefits of technology

It realizes dual adjustment of the frequency and amplitude of the sawtooth wave signal, improves the stability and adaptability of the signal, and can adaptively adjust under different load conditions to meet the high-frequency development needs of complex electronic products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659776B_ABST
    Figure CN118659776B_ABST
Patent Text Reader

Abstract

The invention discloses a sawtooth wave generator, and relates to the technical field of oscillation circuits. The sawtooth wave generator of the invention outputs a reference voltage through a charge pump and a control circuit, performs V-I conversion on the reference voltage through a V-I conversion circuit and inputs it into the gate of a MOS tube, the source of the MOS tube is connected to a resistor array with a variable resistance, the resistance of the resistor array is switched to a target resistance corresponding to a preset sawtooth wave frequency through a system clock signal, and a bias current is provided to a sawtooth wave generation and sampling circuit through the drain of the MOS tube based on the target resistance, so that the sawtooth wave generation and sampling circuit generates a sawtooth wave signal of a preset sawtooth wave frequency according to a control signal and the bias current, and maintains a sawtooth wave peak value of a sawtooth wave generation cycle to obtain a peak sampling signal, and forms a negative feedback adjustment circuit through a level conversion circuit according to the peak sampling signal to adjust the amplitude of the sawtooth wave signal, and the frequency and amplitude of the sawtooth wave generator are adjustable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of oscillation circuits, and in particular to a sawtooth wave generator. Background Art

[0002] At present, in modern electronic circuits, especially in the pulse width modulation (PWM) control circuit of the switching power supply, the sawtooth wave generator is the core functional component, which determines the accuracy of the switching power supply duty cycle and has a great impact on the signal processing performance of the circuit. DC-DC converters are widely used in communication electronic product terminals, self-powered systems, and energy collection systems. Complex application requirements and power supply conditions require the control circuit of the DC-DC converter to adapt to changes in the supply voltage. In addition, in the face of different load conditions, the DC-DC converter usually also needs to adopt a configurable and variable operating frequency.

[0003] In the design of DC-DC converter, sawtooth generator is one of the core circuits. Its main function is to generate sawtooth wave signal, which generates PWM square wave signal after being tangent to the output of error amplifier, and is used to control the on and off of switch tube, so as to adjust the output voltage. When the power supply voltage changes, such as when it becomes higher, the output of the previous error amplifier will become higher. At this time, if the sawtooth generator does not change, the PWM duty cycle generated after the output voltage of the error amplifier and the sawtooth wave are tangent will become larger. Therefore, the sawtooth wave amplitude generated by the sawtooth generator should also be increased accordingly, so that the PWM duty cycle generated after the tangent remains unchanged. Therefore, the sawtooth wave generator needs to be able to automatically adjust the amplitude of its output signal according to the change of power supply voltage to ensure a stable output voltage, that is, there is a need for adaptive amplitude adjustment. At the same time, in order to meet the application requirements of configurable frequency, the sawtooth wave generator also needs to have a flexible operating frequency configuration function to adapt to the working requirements under different load conditions.

[0004] In the prior art, a sawtooth wave generator is usually formed based on an analog oscillation circuit. The circuit for generating a sawtooth wave by an analog oscillation circuit usually includes a positive feedback network, an amplifier, and a comparator. The positive feedback network is the key part to achieve oscillation. It can feed back the output signal of the amplifier to the input end, thereby forming a positive feedback loop. The function of positive feedback is to make the circuit produce continuous oscillation. The amplifier is used to amplify the input signal so that it reaches a sufficient amplitude to meet the threshold requirement of the comparator. The gain of the amplifier determines the amplitude of the sawtooth wave. The comparator is used to compare the signal output by the amplifier with the threshold voltage to generate a square wave output. The threshold voltage determines the frequency of the sawtooth wave.

[0005] However, this type of sawtooth wave generator has a single function and can only generate sawtooth wave signals with fixed frequency and amplitude, and cannot achieve precise programmable adjustment. Summary of the invention

[0006] Based on this, it is necessary to provide a sawtooth wave generator to address the technical problem that the above-mentioned sawtooth wave generator has a single function, can only generate a sawtooth wave signal with a fixed frequency and amplitude, and cannot achieve precise programmable adjustment.

[0007] The sawtooth wave generator of the present invention comprises a charge pump and a control circuit, a VI conversion circuit, a sawtooth wave generation and sampling circuit and a level conversion circuit. The charge pump and the control circuit output a reference voltage, and the VI conversion circuit performs VI conversion on the reference voltage provided by the charge pump and the control circuit and inputs the reference voltage into the gate of a MOS tube. The source of the MOS tube is connected to a resistor array with a variable resistance value. The resistance value of the resistor array is switched to a target resistance value corresponding to a preset sawtooth wave frequency through a system clock signal, and a bias current is provided to the sawtooth wave generation and sampling circuit through the drain of the MOS tube based on the target resistance value, so that the sawtooth wave generation and sampling circuit is controlled according to the control signal. The invention relates to a sawtooth wave generator which generates a sawtooth wave signal of a preset sawtooth wave frequency by using a signal and a bias current, and keeps the sawtooth wave peak value of a sawtooth wave generation cycle to obtain a peak sampling signal, converts the peak sampling signal into a comparison signal through a level conversion circuit, and when the comparison signal is judged by a comparator not being within the preset sawtooth wave amplitude error range, adjusts the output voltage of the charge pump and the control circuit to change the reference voltage until the amplitude of the generated sawtooth wave signal falls within the preset sawtooth wave amplitude error range, that is, the frequency of the sawtooth wave signal can be adjusted through a resistor array with variable resistance, and the amplitude of the sawtooth wave signal can be adjusted through negative feedback adjustment according to the peak sampling signal. A sawtooth wave generator with adjustable frequency and amplitude is realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0009] Figure 1 A schematic diagram of a circuit for generating a sawtooth wave using a capacitor charging and discharging method provided by the present invention;

[0010] Figure 2 A structural schematic diagram of a sawtooth wave generator provided by the present invention;

[0011] Figure 3 A schematic structural diagram of a frequency divider provided by the present invention;

[0012] Figure 4 A schematic diagram of the structure of a digital 4-to-1 multiplexer provided by the present invention;

[0013] Figure 5 A schematic diagram of the structure of a control signal generating circuit provided by the present invention;

[0014] Figure 6 A schematic diagram of the timing of various signals provided by the present invention;

[0015] Figure 7 A schematic diagram of the structure of a RAMP generation and sampling circuit provided by the present invention;

[0016] Figure 8 A schematic diagram of a RAMP generation and sampling circuit result waveform provided by the present invention;

[0017] Fig. 9 A schematic diagram of the structure of a level conversion circuit provided by the present invention;

[0018] Fig.10 A schematic diagram of the structure of a comparator provided by the present invention;

[0019] Fig.11 A schematic diagram of the structure of a charge pump and a control circuit thereof provided by the present invention;

[0020] Fig.12 A schematic diagram of the structure of a VI conversion and resistance sequence provided by the present invention;

[0021] Fig.13 The present invention provides a connection diagram of a level conversion circuit, a charge pump and a control circuit thereof, and a VI conversion circuit. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in combination with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] The technical solutions provided by various embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.

[0024] Generally, the traditional sawtooth wave generator can only generate sawtooth wave signals with fixed frequency and amplitude when implemented based on analog oscillation circuits. It is impossible to achieve precise programmable adjustment, such as changing parameters such as frequency, amplitude or slope. In addition, due to the influence of factors such as component characteristics and noise, the output sawtooth wave may have large drift and instability.

[0025] In addition, there is a solution based on direct digital frequency synthesis (DDS), the principle of which is to sample the sawtooth waveform to be generated, digitize the sampled value and store it in the memory as a lookup table, then read the data through the lookup table, and then convert it into analog quantity through a D / A converter, and re-synthesize the saved waveform.

[0026] Although DDS technology can achieve a wide range of frequency adjustment and waveform shape control, its cost is relatively high. The design of the DDS sawtooth generator requires complex digital signal processing chips and high-speed clocks, which increases the price and power consumption of the system. In addition, the high-frequency sawtooth wave signal generated by DDS technology has a spurious problem, that is, the output signal may contain undesired harmonic components and noise, which will reduce the waveform quality and accuracy.

[0027] At present, most sawtooth wave generators adjust the peak value and period of the sawtooth wave by controlling the size and duration of the charging and discharging current of the capacitor. Figure 1 As shown, Figure 1 The schematic diagram of a circuit for generating a sawtooth wave by using a capacitor charging and discharging method in the present invention. Figure 1 Where VDD is the power supply, K1 and K2 are switches, I1 is the current source, C is the capacitor, V OUT The circuit is simpler than other methods to generate sawtooth waves. However, there is no sawtooth wave generator that can adaptively adjust the frequency and amplitude using this method.

[0028] Most traditional sawtooth wave generators have the problems of relatively simple control mode, fixed output frequency, narrow frequency modulation range and no dual adjustment of frequency and amplitude. Their scope of use is limited and they can no longer adapt to the development trend of high frequency and increasing complexity of various electronic products.

[0029] In view of the problems of the existing sawtooth wave generator, the present invention proposes a sawtooth wave generator with a novel structure. The generator can perform dual adjustment on the frequency and amplitude of the generated sawtooth wave: if the switching power supply frequency needs to be changed, the frequency of the input clock signal and the size of the resistor array are synchronously adjusted through the frequency divider, thereby adjusting the sawtooth wave (ramp, RAMP) frequency.

[0030] If the power supply voltage of the adaptive sawtooth wave generator needs to be changed for the sake of driving safety and to adapt to the change of the power supply voltage, the present invention adjusts the output voltage of the charge pump through an adaptive adjustment index, thereby adjusting the bias current obtained by the sawtooth wave generation module, so as to adjust the capacitor charging and discharging current in the sawtooth wave generation circuit, and finally adaptively adjust the amplitude of RAMP.

[0031] Figure 2FIG. 1 is a schematic diagram of the structure of a sawtooth wave generator in the present invention. Figure 2 It can be seen that the sawtooth wave generator provided by the present invention is mainly composed of a frequency divider, a digital multiplexer (e.g., a 4-to-1 digital multiplexer), a control (Control, CTRL) signal generating circuit, a sawtooth wave (RAMP) generating and sampling circuit, a level conversion circuit, a comparator, a charge pump and control circuit, a VI conversion circuit and a resistor array.

[0032] Among them, the charge pump and the control circuit are used to output the reference voltage.

[0033] The positive input end of the VI conversion circuit is connected to the output end of the charge pump and the control circuit, the output end of the VI conversion circuit is connected to the gate of the MOS tube, the source of the MOS tube is connected to the variable resistance array and then grounded, the source of the MOS tube is also connected to the negative input end of the VI conversion circuit, and the drain of the MOS tube is connected to the bias current input end of the sawtooth wave generation and sampling circuit.

[0034] Among them, the VI conversion circuit is used to convert the reference voltage into a voltage-current, switch the resistance value of the resistor array to a target resistance value corresponding to a preset sawtooth wave frequency through a system clock signal, and provide a bias current for the sawtooth wave generation and sampling circuit through the drain of the MOS tube based on the target resistance value.

[0035] The first input terminal of the sawtooth wave generating and sampling circuit is connected to a generating control signal, the second input terminal of the sawtooth wave generating and sampling circuit is connected to a sampling control signal, and the sawtooth wave generating and sampling circuit includes a sawtooth wave signal output terminal and a peak sampling signal output terminal.

[0036] The sawtooth wave generation and sampling circuit is used to generate a sawtooth wave signal of a preset sawtooth wave frequency according to a generation control signal and a bias current, and is used to maintain a sawtooth wave peak value of a sawtooth wave generation cycle to obtain a peak sampling signal according to the timing control of the sampling control signal.

[0037] The input end of the level conversion circuit is connected to the peak sampling signal output end of the sawtooth wave generation and sampling circuit, the output end of the level conversion circuit is connected to the input end of the comparator, and the output end of the comparator is connected to the input end of the charge pump and control circuit.

[0038] The level conversion circuit is used to convert the peak sampling signal into a comparison signal. When the comparator determines that the comparison signal is not within the preset sawtooth wave amplitude error range, it obtains an adaptive adjustment index corresponding to the comparison signal, and adjusts the output voltage of the charge pump and the control circuit according to the adaptive adjustment index to change the reference voltage until the amplitude of the generated sawtooth wave signal falls within the preset sawtooth wave amplitude error range.

[0039] In one or more embodiments of the present invention, the following situation is taken as an example for explanation, and is not specifically limited. When the sawtooth wave frequency is adaptively adjusted, the input clock frequency is 2MHz, and four sawtooth waves with frequencies of 250kHz, 500kHz, 1MHz, and 2MHz can be switched to generate. When the sawtooth wave amplitude is adaptively adjusted, the voltage of the power supply can be adjusted between 800mV-2.2V.

[0040] For the control signal generating circuit, the control signal generating circuit includes a system clock signal input terminal, an enable signal input terminal, a generation control signal output terminal, a sampling control signal output terminal and a charge pump control signal output terminal. The generation control signal output terminal is connected to the first input terminal of the sawtooth wave generating and sampling circuit, and the sampling control signal output terminal is connected to the second input terminal of the sawtooth wave generating and sampling circuit. The charge pump control signal output terminal is connected to the control signal input terminal of the charge pump and control circuit.

[0041] The control signal generating circuit is used to generate corresponding generation control signals, sampling control signals and charge pump control signals according to a system clock signal, an enable signal and a preset sawtooth wave frequency.

[0042] In one or more embodiments of the present invention, the sawtooth wave generator may also include a system clock signal generating circuit, which includes a frequency divider and a digital multiplexer, wherein the input end of the frequency divider is connected to the clock signal, the output end of the frequency divider is connected to the data input end of the digital multiplexer, and the output end of the digital multiplexer is connected to the system clock signal input end of the control signal generating circuit.

[0043] The frequency divider is used to divide the input clock signal multiple times. The digital multiplexer is used to select a clock signal of a corresponding frequency from clock signals of different frequency division times as a system clock signal according to a preset sawtooth wave frequency and a corresponding selection control signal.

[0044] Specifically, Figure 3 FIG. 1 is a schematic diagram of the structure of a frequency divider in the present invention. Figure 3 It can be seen that the frequency divider includes multiple cascaded D flip-flops. The Q non-terminal of each D flip-flop is connected to the data input terminal D. The Q terminal level of the input clock signal CLKIN is reversed once every cycle, so that the frequency division by two CLK2X can be achieved. After the Q terminal of the previous stage D flip-flop is cascaded to the clock input terminal of the next stage D flip-flop, the frequency division by four CLK4X can be achieved. Similarly, cascading one more stage can achieve the frequency division by eight CLK8X.

[0045] Figure 4 FIG. 1 is a schematic diagram of the structure of a digital 4-to-1 multiplexer in the present invention. Figure 4It can be seen that the above CLK8X, CLK4X, CLK2X and CLKIN clock signals are directly connected to the input of the AND gate as four input items. CLK_SW1 and CLK_SW0 are used as control signals. After passing through one or two inverters, they enter the AND gate. The output of the AND gate is connected to the input of the NOR gate. When the control signal value is 00, the output is CLK8X. When the control signal value is 01, the output is CLK4X. When the control signal value is 10, the output is CLK2X. When the control signal value is 11, the output is CLKIN.

[0046] Figure 5 FIG. 1 is a schematic diagram of a control signal generating circuit in the present invention. Figure 5 It can be seen that the enable signal EN_RAMP passes through the buffer and the clock signal CLK_OUT is input into the AND gate, and then passes through the two-frequency division circuit to obtain the two-frequency division signal 2XCLKP and its inverse signal 2XCLKN. The two signals pass through the monostable trigger circuit (one-shot) and the AND gate to obtain corresponding pulses. After each signal passes through the one-shot circuit and the RS trigger, the CTRL signals such as SW_P, SW_C, SW_G, SW_Q, SW_N, SW_NQ, SW_H, SW_NH and the clock signal CLK_DFF of the subsequent D flip-flop are obtained. The timing of each signal is as follows Figure 6 As shown, Figure 6 is a schematic diagram of the timing of various signals in the present invention, φ 1 and φ 2 indicates different cycles. These CTRL signals will be used as transmission gate switch signals in the RAMP generation and sampling circuits. The CTRL signals marked in the subsequent figures can be referred to Figure 6 .

[0047] As for the sawtooth wave generating circuit and the sampling circuit, in one or more embodiments of the present invention, the sawtooth wave generating and sampling circuit includes a sawtooth wave generating circuit and a sawtooth wave sampling circuit.

[0048] The sawtooth wave generating circuit comprises a first current mirror, a first capacitor and a first transmission gate; the first transmission gate is connected as a first input terminal of the sawtooth wave generating and sampling circuit to generate a control signal, the input terminal of the first current mirror is connected to a bias current, the output terminal of the first current mirror is connected to the first capacitor, and the first transmission gate is connected to the first capacitor.

[0049] The first current mirror is used to divide the bias current into multiple current paths and charge the first capacitor through any current path.

[0050] The first transmission gate controls the first capacitor to discharge periodically to generate a sawtooth wave according to the timing control of the generated control signal.

[0051] The sawtooth wave sampling circuit includes a second capacitor and a second transmission gate. The first current mirror is connected to the second capacitor. The second transmission gate is connected to the second capacitor. The second transmission gate is connected to the sampling control signal as the second input terminal of the sawtooth wave generating and sampling circuit.

[0052] The first current mirror is used to divide the bias current into multiple currents and charge the second capacitor through the multiple currents.

[0053] The second transmission gate is used to control the periodic discharge of the second capacitor according to the timing control of the sampling control signal to maintain the sawtooth wave peak value of a sawtooth wave generation cycle to obtain a peak sampling signal.

[0054] Figure 7 It is a structural schematic diagram of a RAMP generation and sampling circuit in the present invention. Figure 7 In, MP gi All are PMOS tubes, MN gi All are NMOS tubes, C gi are all capacitors, and i corresponds to the specific number of different devices. g1 and MP g2 Forming a current mirror, MP g3 and MN g1 It forms a transmission gate (the same structure applies to the other three paths) to control the charging of the corresponding capacitor. g2 MN g4 MN g6 They are all switches that control the discharge of the corresponding capacitors.

[0055] Depend on Figure 7 It can be seen that the bias current I OUT By MP g1 and MP g2 The current mirror is divided into three paths I 1 , I 2 , I 3 , respectively, for capacitor C g2 , C g3 , C g4 Charging. The components used in the three-way charging and discharging circuits are of the same size and completely symmetrical. Figure 6 The CTRL signal waveform shows that φ 1 cycle, I 3 The transmission gate is not conducting (it can also be considered that the peak voltage of RAMP is maintained after the previous cycle ends). I 1 After this transmission gate is turned on, it will give C g2 Charging, the transmission gate closes at the end of the cycle, MN g2 conduction, to Cg2 The discharge is performed to generate a RAMP signal. I 2 This way, C g3 charging, but at the end of this cycle the transmission gate is closed, MN g4 No conduction, C g3 No discharge, V SAMP Maintains the peak voltage at RAMP until φ At the end of cycle 2, g3 Discharge. I 2 exist φ 2 cycles C g3 Do not discharge, to ensure I 1 The current does not change. φ 2 cycles will I 3 conduction to share the current. I 3 and I 2 The charging and discharging time and order are consistent, with a phase difference of 180°. The sawtooth wave RAMP and sampling signal V generated by this circuit SAMP 、V SAMPN Timing Figure 8 As shown, Figure 8 Schematic diagram of the waveform of a RAMP generation and sampling circuit result in the present invention. The sawtooth wave RAMP and the sampling signal V SAMP 、V SAMPN Timing can refer to Figure 8 .

[0056] For the level conversion circuit, in one or more embodiments of the present invention, it may include a second current mirror, a first MOS transistor, a second MOS transistor and a plurality of third capacitors.

[0057] The input end of the second current mirror is connected to a preset bias current, and the output end of the second current mirror is connected to the drain of the first MOS tube and to the drain of the second MOS tube, forming two branch circuits. The source of the first MOS tube is connected to the charge pump and the control circuit, the source of the second MOS tube is connected to the charge pump and the control circuit, the gate of the first MOS tube is connected to the charge pump and the control circuit, and the gate of the second MOS tube is connected to the peak sampling signal output end of the sawtooth wave sampling circuit. A plurality of third capacitors are respectively connected to the two branch circuits.

[0058] The second current mirror is used to divide the preset bias current into two paths and send them to the two branch circuits respectively, and form a sampling window voltage of a preset sawtooth wave amplitude error range corresponding to the peak sampling signal through at least two capacitors connected to the branch circuit corresponding to the first MOS tube, and form a voltage to be compared corresponding to the peak sampling signal through at least one capacitor connected to the branch circuit corresponding to the second MOS tube.

[0059] Among them, the size of the first MOS tube is smaller than that of the second MOS tube, so that when the peak sampling signal is greater than the upper limit of the preset sawtooth wave amplitude error range, the voltage to be compared formed by the level conversion circuit is greater than the upper limit of the sampling window voltage formed by the level conversion circuit.

[0060] Fig. 9 is a schematic diagram of the structure of a level conversion circuit in the present invention, Fig. 9 In, R ij is the resistance, MN si All are NMOS tubes, i corresponds to the specific number of different devices. MN s1 Respectively and MN s3 MN s7 A current mirror is formed, MN s2 Respectively and MN s4 MN s6 A current mirror is formed. Fig. 9 It can be seen that the current input by the external current source is I BN After passing through each current mirror, the right side I 1 and I 2 Two circuits provide bias current, and the NMOS tubes are of the same size. I 1 and I 2 The two currents are equal, and I 1 and I 2 Two-way device except MN s8 and MN s5 Because the gate voltage of MN5 is the power supply voltage, the peak voltage of the sawtooth wave is also the power supply voltage, and it is impossible to judge that the sawtooth wave is too large (that is, when the charging current of the capacitor is too large), so the size of MN8 is set slightly larger than MN5 to ensure that the peak voltage of the sawtooth wave is the power supply voltage. COM Higher than V H In the subsequent comparator, V COM Will be with V H and V L Make a comparison.

[0061] In a level conversion circuit, the current IBN After passing through the cascode current mirror, I 1 and I 2 Two paths provide bias current, and the current mirror ratio is 1:1:1. I 1 and I 2 Both currents are I BN . VDD I 1 Converted to V H and V L Signal, ramp signal peak value V SAMP exist I 2 Converted to V COM Signal.

[0062] When sampling V SAMP When the voltage of MN in the level conversion circuit is close to the power supply voltage VDD, s8 and MN s5 The bias voltage of the substrate is basically the same. COM =V H At this time, V SAMP Reach the upper limit of the design. Similarly, when V COM= V L At this time, V SAMP Reached the design lower limit.

[0063] Therefore, V H and V L Constitutes V SAMP The sampling window of the signal. If V COM If it is within the sampling window, there is no need to adjust RAMP. If it is not within the sampling window, for example, when the charging current of the capacitor is too small and the sawtooth peak voltage is low, V COM will be lower than V L When the charging current of the capacitor is too large, resulting in a high sawtooth wave amplitude, because VDD ≥ V SAMP , at this time, V COM >V H That is, MN s5 Size must be smaller than MN s8 The size is small, so as to ensure that when the charging current is too large, even if the sawtooth peak is the power supply voltage, V COM Will be higher than V H .

[0064] In one or more embodiments of the present invention, the comparator may adopt a symmetrical operational amplifier structure, and may include a sampling window voltage upper limit input terminal, a sampling window voltage lower limit input terminal, and a voltage to be compared input terminal. The window voltage upper limit input terminal and the sampling window voltage lower limit input terminal are connected to the sampling window voltage, and the voltage to be compared input terminal is connected to the voltage to be compared.

[0065] The comparator is used to determine whether the voltage to be compared is greater than the upper limit of the sampling window voltage and output the corresponding upper limit adjustment index, and is used to determine whether the voltage to be compared is less than the lower limit of the sampling window voltage and output the corresponding lower limit adjustment index.

[0066] Fig.10 is a schematic diagram of the structure of a comparator in the present invention, Fig.10 MN ci All are NMOS tubes, MP ci All are PMOS tubes, i corresponds to the specific number of different devices, MN c1 and MN c3 It forms a current mirror, MP c2 、MP c3 MN c5 MN c6 and MN c3 The first stage operational amplifier, MP c1 MN c2 MN c4 and MP c4 It forms the second stage operational amplifier, and the two stages of operational amplifiers form a comparator. Fig.10 It can be seen that the current input by the external current source is I SS By MN c1 MN c3 The current mirror formed by the comparator provides bias current for the comparator. The comparator adopts a symmetrical op amp structure with high gain and wide bandwidth, which significantly improves the speed and accuracy of the comparator. V COM Higher than V H hour, F H The output is high. V COM Lower than V L hour, F L The output is high. F H and F L It enters the subsequent feedback regulation circuit as an indicator.

[0067] In one or more embodiments of the present invention, the charge pump and control circuit may include a charge pump and a charge pump control circuit. The charge pump is used to output a reference voltage.

[0068] The charge pump control circuit includes two first triggers and a first monostable trigger circuit. The data input terminals of the two first triggers are respectively connected to the upper limit adjustment index output terminal and the lower limit adjustment index output terminal of the comparator. The clock input terminals of the two first triggers are connected to the charge pump control signal. The output terminal signals of the two first triggers are respectively ANDed with the output terminal signals of the first monostable trigger circuit and then sent to the switch of the charge pump.

[0069] The two first triggers are used to respectively obtain the upper limit adjustment index and the lower limit adjustment index, and convert the upper limit adjustment index into an upper limit signal and convert the lower limit adjustment index into a lower limit signal under the control of the charge pump adjustment signal.

[0070] The first monostable trigger circuit is used to receive a system clock signal and convert it into a corresponding pulse signal, and respectively AND the pulse signal with an upper limit signal and a lower limit signal to generate a switch signal of a charge pump with equal pulse width and different pulse numbers, so as to adjust the reference voltage output by the charge pump until the amplitude of the generated sawtooth wave signal falls within a preset sawtooth wave amplitude error range.

[0071] Fig.11 FIG. 1 is a schematic diagram of the structure of a charge pump and a control circuit in the present invention. Fig.11 It can be seen that the comparator result F H and F L Enter two D flip-flops respectively, and the clock input of the two D flip-flops is the result CLK_DFF of the CTRL generation circuit to F H and F L Converted into stable and continuous signals FH_OUT and FL_OUT. H Converted to FH_OUT upper limit signal, the lower limit adjustment index F L Converted to FL_OUT lower limit signal. V COM Higher than V H When FH_OUT is continuously high, V COM Lower than V L FL_OUT remains high when

[0072] The CLK_OUT signal is passed through a one-shot circuit to obtain the corresponding pulse signal PULSE, which is ANDed with FH_OUT and FL_OUT to obtain FLAGH and FLAGL with equal pulse width but different number of pulses, which are used as switching signals for the charge pump switch. Because the pulse widths are equal, the charge pump charges and discharges for the same time, and the output voltage V REF The level of FLAGH is determined by the number of pulses of FLAGH and FLAGL.

[0073] Fig.12 The figure is a schematic diagram of the structure of a VI conversion circuit and a resistor sequence in the present invention. Fig.12 MN ij All are NMOS tubes, MP ij They are all PMOS tubes, j corresponds to the specific number of different devices, Fig.12 The two places marked with "1" are electrically connected, and the same is true for the places marked with "2", "3" and "4". i1 and MN i2 MN i3 、MP i1 、MP i2 A current mirror is formed, and currents 1 and 2 are supplied to MP i6 、MP i7 and MN i8 MN i9 .MP i6 、MP i7 and MN i8 MN i9 It is the input pair of rail-to-rail op amp. i3 and MP i4 、MP i5 and MP i8 MN i4 and MN i5、 MN i6 and MN i7 The input pair tube generates current, where MP i6 The current flowing through MN i4 and MN i5 The current mirror composed of MN i9 The currents flowing through add up to current 4. Similarly, MN i8 The current flowing through MP i3 and MP i4 The current mirror composed of MP i7 The currents flowing through add up to current 3. Current 4 flows through MP i5 and MP i8 The current mirror formed by the current 3 flows to the output terminal through MN i6 and MNi7 The current mirror formed by the resistor array also flows to the output end, and the two currents are subtracted to form the output current. After the resistor array selects the corresponding resistance value, the output voltage V OUT Connect M NV Gate, M NV Drain current flowing I OUT Provides bias current for RAMP generation and sampling circuits. Fig.13 The present invention is a connection diagram of a level conversion circuit, a charge pump and its control circuit, and a VI conversion circuit.

[0074] Depend on Fig.12 It can be seen that the external current source input I BIAS Bias current is provided to 1 and 2 through the current mirror. The right side of the current mirror is a rail-to-rail op amp. V REF Enter the positive terminal of the op amp input in the VI conversion circuit, and the output of the op amp V OUT Connect M NV Gate, converts voltage into current I OUT ,for RAMP The generation and sampling circuit provides bias current. NV The source terminal connection resistor sequence R OUT , and short-circuit it back to the negative input terminal. Due to the virtual short and virtual disconnect properties of the op amp, the negative input voltage, i.e. M NV The source voltage is equal to the input positive voltage V REF ,therefore, I OUT The value is equivalent to: .

[0075] The two switching signals CLK_SW0 and CLK_SW1 of the digital 4-to-1 multiplexer are also used as switching signals of the resistance values ​​of the resistor series. The truth table is shown in Table 1.

[0076] Table 1 Truth table of switching signals and resistance series resistance values ​​in the present invention

[0077]

[0078] Amplitude adjustment process: When the external power supply voltage changes, the original sawtooth wave amplitude exceeds the sampling window, then F H or F L The signal is pulled high, turning on the charge pump charge or discharge switch, adjusting the reference voltage V REF , thereby changing RAMP The capacitor C in the generation and sampling circuit g2 The charge and discharge current of the RAMP generation and sampling circuit is known to be 1:4. g2 Charging Current I 1 Equal to 4 I OUT The RAMP amplitude voltage is V PEAK , the system clock period is T, then C g2 The process of charging to form RAMP is shown as follows: .

[0079] Integrating both sides of the equal sign, we get: , .

[0080] Therefore, the RAMP peak V PEAK The expression can be expressed as: .

[0081] In the formula, V p Represents capacitance C g2 The voltage of the resistor array is adjusted by adaptive amplitude R OUT and system clock cycle T unchanged, the RAMP peak V PEAK With reference voltage V REF Proportional, linear regulation V REF The RAMP peak value can be adjusted linearly.

[0082] Frequency adjustment process: When switching RAMP frequency f, it can be known from the following formula: .

[0083] When the frequency changes, a RAMP peak voltage is generated V PEAK , reference voltage V REF unchanged, the RAMP frequency and the resistor array R OUT Proportional, linear regulation R OUT The RAMP frequency can be adjusted linearly.

[0084] It should also be noted that the terms “comprises”, “includes” or any other variations thereof in the present invention are intended to cover non-exclusive inclusion, that is, in addition to the elements listed in the present invention, other elements not explicitly listed may also be included.

[0085] The various embodiments of the present invention are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments.

[0086] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims

1. A sawtooth wave generator, It is characterized in that include: Charge pump and control circuit, VI conversion circuit, sawtooth wave generation and sampling circuit and level conversion circuit; The charge pump and the control circuit are used to output a reference voltage; The positive input end of the VI conversion circuit is connected to the output end of the charge pump and control circuit, the output end of the VI conversion circuit is connected to the gate of the MOS tube, the source of the MOS tube is connected to the variable resistance resistor array and then grounded, the source of the MOS tube is also connected to the negative input end of the VI conversion circuit, and the drain of the MOS tube is connected to the bias current input end of the sawtooth wave generation and sampling circuit; wherein the VI conversion circuit is used to perform voltage-current conversion on the reference voltage; the resistance value of the resistor array is switched to a target resistance value corresponding to a preset sawtooth wave frequency through a system clock signal, and a bias current is provided to the sawtooth wave generation and sampling circuit through the drain of the MOS tube based on the target resistance value; The first input terminal of the sawtooth wave generating and sampling circuit is connected to the generating control signal, the second input terminal of the sawtooth wave generating and sampling circuit is connected to the sampling control signal, and the sawtooth wave generating and sampling circuit comprises a sawtooth wave signal output terminal and a peak sampling signal output terminal; wherein the sawtooth wave generating and sampling circuit is used to generate a sawtooth wave signal of a preset sawtooth wave frequency according to the generating control signal and the bias current, and is used to maintain the sawtooth wave peak value of a sawtooth wave generating cycle according to the timing control of the sampling control signal to obtain a peak sampling signal; The input end of the level conversion circuit is connected to the peak sampling signal output end of the sawtooth wave generating and sampling circuit, the output end of the level conversion circuit is connected to the input end of the comparator, and the output end of the comparator is connected to the input end of the charge pump and control circuit; wherein the level conversion circuit is used to convert the peak sampling signal into a comparison signal; when the comparator determines that the comparison signal is not within the preset sawtooth wave amplitude error range, the comparator obtains an adaptive adjustment index corresponding to the comparison signal, and adjusts the output voltage of the charge pump and control circuit according to the adaptive adjustment index to change the reference voltage until the amplitude of the generated sawtooth wave signal falls within the preset sawtooth wave amplitude error range.

2. The sawtooth wave generator according to claim 1, It is characterized in that Also includes: A control signal generating circuit; The control signal generating circuit comprises a system clock signal input terminal, an enable signal input terminal, a generation control signal output terminal, a sampling control signal output terminal and a charge pump control signal output terminal; the generation control signal output terminal is connected to the first input terminal of the sawtooth wave generation and sampling circuit, the sampling control signal output terminal is connected to the second input terminal of the sawtooth wave generation and sampling circuit; the charge pump control signal output terminal is connected to the control signal input terminal of the charge pump and control circuit; The control signal generating circuit is used to generate corresponding generation control signals, sampling control signals and charge pump control signals according to a system clock signal, an enable signal and a preset sawtooth wave frequency.

3. The sawtooth wave generator as claimed in claim 2, It is characterized in that Also includes: System clock signal generating circuit; The system clock signal generating circuit comprises a frequency divider and a digital multiplexer, wherein the input end of the frequency divider is connected to the clock signal, the output end of the frequency divider is connected to the data input end of the digital multiplexer, and the output end of the digital multiplexer is connected to the system clock signal input end of the control signal generating circuit; The frequency divider is used to divide the input clock signal multiple times; the digital multiplexer is used to select a clock signal of corresponding frequency from clock signals with different frequency division times as the system clock signal according to a preset sawtooth wave frequency and a corresponding selection control signal.

4. The sawtooth wave generator according to claim 1, It is characterized in that The sawtooth wave generating and sampling circuit includes a sawtooth wave generating circuit; The sawtooth wave generating circuit comprises a first current mirror, a first capacitor and a first transmission gate; the first transmission gate is connected to generate a control signal as a first input terminal of the sawtooth wave generating and sampling circuit, the input terminal of the first current mirror is connected to a bias current, the output terminal of the first current mirror is connected to the first capacitor, and the first transmission gate is connected to the first capacitor; The first current mirror is used to divide the bias current into multiple currents and charge the first capacitor through any current; The first transmission gate controls the first capacitor to periodically charge and discharge according to the timing control of the generated control signal to generate a sawtooth wave.

5. The sawtooth wave generator as claimed in claim 4, It is characterized in that The sawtooth wave generating and sampling circuit comprises a sawtooth wave sampling circuit; The sawtooth wave sampling circuit comprises a second capacitor and a second transmission gate, the first current mirror is connected to the second capacitor, the second transmission gate is connected to the second capacitor, and the second transmission gate is connected to the sampling control signal as the second input terminal of the sawtooth wave generating and sampling circuit; The first current mirror is used to divide the bias current into multiple currents and charge the second capacitor through the multiple currents; The second transmission gate is used to control the periodic charging and discharging of the second capacitor according to the timing control of the sampling control signal to maintain the sawtooth wave peak value of a sawtooth wave generation cycle to obtain a peak sampling signal.

6. The sawtooth wave generator according to claim 1, It is characterized in that The level conversion circuit includes a second current mirror, a first MOS transistor, a second MOS transistor and a plurality of third capacitors; The input end of the second current mirror is connected to a preset bias current, and the output end of the second current mirror is connected to the drain of the first MOS tube and to the drain of the second MOS tube to form two branch circuits; The source of the first MOS tube is connected to the charge pump and the control circuit, the source of the second MOS tube is connected to the charge pump and the control circuit, the gate of the first MOS tube is connected to the charge pump and the control circuit, and the gate of the second MOS tube is connected to the peak sampling signal output end of the sawtooth wave generation and sampling circuit; a plurality of third capacitors are respectively connected to the two branch circuits; The second current mirror is used to divide the preset bias current into two paths and send them to the two branch circuits respectively, and form a sampling window voltage of a preset sawtooth wave amplitude error range corresponding to the peak sampling signal through at least two capacitors connected to the branch circuit corresponding to the first MOS tube, and form a voltage to be compared corresponding to the peak sampling signal through at least one capacitor connected to the branch circuit corresponding to the second MOS tube; Among them, the size of the first MOS tube is smaller than that of the second MOS tube, so that when the peak sampling signal is greater than the upper limit of the preset sawtooth wave amplitude error range, the voltage to be compared formed by the level conversion circuit is greater than the upper limit of the sampling window voltage formed by the level conversion circuit.

7. The sawtooth wave generator as claimed in claim 6, It is characterized in that The comparator adopts a symmetrical operational amplifier structure, including a sampling window voltage upper limit input terminal, a sampling window voltage lower limit input terminal and a voltage to be compared input terminal; the window voltage upper limit input terminal and the sampling window voltage lower limit input terminal are connected to the sampling window voltage, and the voltage to be compared input terminal is connected to the voltage to be compared; The comparator is used to determine whether the voltage to be compared is greater than the upper limit of the sampling window voltage and output the corresponding upper limit adjustment index, and is used to determine whether the voltage to be compared is less than the lower limit of the sampling window voltage and output the corresponding lower limit adjustment index.

8. The sawtooth wave generator as claimed in claim 7, It is characterized in that The charge pump and control circuit comprises a charge pump and a charge pump control circuit; The charge pump is used to output a reference voltage; The charge pump control circuit comprises two first triggers and a first monostable trigger circuit, the data input terminals of the two first triggers are respectively connected to the upper limit adjustment index output terminal and the lower limit adjustment index output terminal of the comparator, the clock input terminals of the two first triggers are connected to the charge pump control signal, and the output terminal signals of the two first triggers are respectively ANDed with the output terminal signals of the first monostable trigger circuit and then respectively sent to the switch of the charge pump; The two first triggers are used to respectively obtain the upper limit adjustment index and the lower limit adjustment index, and convert the upper limit adjustment index into an upper limit signal and convert the lower limit adjustment index into a lower limit signal under the control of the charge pump adjustment signal; The first monostable trigger circuit is used to receive the system clock signal and convert it into a corresponding pulse signal, and respectively AND the pulse signal with the upper limit signal and the lower limit signal to generate a switching signal of the charge pump with equal pulse width and different pulse numbers, so as to adjust the reference voltage output by the charge pump until the amplitude of the generated sawtooth wave signal falls within a preset sawtooth wave amplitude error range.

Citation Information

Patent Citations

  • Phase delay line structure

    CN101409553A

  • High-cost performance single-integral analog-to-digital converter and conversion method thereof

    CN105811987A

  • Switching circuit and switching method for pulse wave modulation and pulse skip modulation

    CN106921294A

  • Current source input conversion device

    CN112782448A

  • Deflecting circuit having controllable saw tooth wave generator

    CN1514641A