PWM signal generator

By introducing a signal conditioning circuit into the PWM signal generator to adjust the amplitude of the sawtooth wave signal, and combining it with a comparison circuit to achieve free setting of the duty cycle, it solves the problem of the uncontrollable minimum duty cycle in the existing technology and ensures that the signal Stability and applicability.

CN118611631APending Publication Date: 2024-09-063PEAK (SHANGHAI) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410661143.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing PWM signal generators have an uncontrollable minimum duty cycle problem, which causes the output voltage ripple to increase under the influence of process, temperature, and supply voltage, affecting applications.

Method used

A PWM signal generator including a signal generation circuit, a signal conditioning circuit and a comparison circuit is designed. The amplitude of the sawtooth wave signal is adjusted through the signal conditioning circuit and compared with the reference signal to realize the free setting of the duty cycle of the PWM signal. to avoid minimum duty cycle problems caused by comparator offset voltage and delay.

Benefits of technology

It realizes that the duty cycle of the PWM signal can continue to be 0 or 1, solving the problem of uncontrollable minimum duty cycle caused by the minimum value of the traditional sawtooth wave being limited to 0, ensuring the stability and controllability of the signal under different conditions. , suitable for rich system applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611631A
    Figure CN118611631A
Patent Text Reader

Abstract

The invention discloses a PWM (Pulse Width Modulation) signal generator which comprises a signal generation circuit, a signal conditioning circuit and a comparison circuit, the signal generation circuit is used for generating sawtooth wave signals based on control of the pulse signals. The signal adjusting circuit is connected with the signal generating circuit and used for adjusting the amplitude of the sawtooth wave signal and generating a result signal. The comparison circuit is connected with the output end of the signal conditioning circuit and a reference signal, and is used for comparing the result signal with the reference signal to generate a PWM signal. According to the PWM signal generator, the amplitude of the sawtooth wave signal is adjusted through the signal adjusting circuit, then the sawtooth wave signal is compared with the reference signal, the PWM signal which is continuously 0 or 1 can be obtained, the duty ratio of the PWM signal can change along with the reference signal, and the problem that a traditional PWM signal generator has the uncontrollable minimum duty ratio is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of integrated circuits, and in particular relates to a PWM signal generator. Background Art

[0002] Commonly used PWM signal generators use fast comparators to compare a changing voltage with a sawtooth voltage to obtain a square wave signal with a changing duty cycle, thereby performing feedback control. The sawtooth voltage signal is usually charged to the capacitor by a constant current source. When the voltage is greater than the reference voltage, the switch tube is controlled to turn on to discharge the capacitor. After the discharge is completed, the next round of charging is performed. The sawtooth signal generated in this way rises from 0 with a fixed slope. When the comparator is connected for comparison, due to the offset voltage and delay of the comparator, even if the comparison voltage is 0, a square wave signal with a very small duty cycle may be generated. That is, the generated PWM signal has a minimum duty cycle, and under the influence of process, temperature, and power supply voltage, this minimum duty cycle is not fixed. This minimum duty cycle will seriously affect the PWM feedback loop, which may cause the circuit to have a minimum load, increase the output voltage ripple, and seriously affect the application. Summary of the invention

[0003] The object of the present invention is to provide a PWM signal generator, which can solve the problem that the minimum duty cycle of the existing PWM signal generator is uncontrollable.

[0004] In order to achieve the above-mentioned purpose, a specific embodiment of the present invention provides a PWM signal generator, including: a signal generating circuit, a signal regulating circuit and a comparison circuit, the signal generating circuit is used to generate a sawtooth wave signal; the signal regulating circuit is connected to the signal generating circuit, and is used to regulate the amplitude of the sawtooth wave signal and generate a result signal; the comparison circuit is connected to the output end of the signal regulating circuit and a reference signal, and is used to compare the result signal with the reference signal to generate a PWM signal.

[0005] In one or more embodiments of the present invention, the signal generating circuit includes a first current source, a capacitor, a comparison unit and a first transistor, the first end of the first current source is connected to the power supply voltage, the second end of the first current source is connected to the first end of the capacitor, the first input end of the comparison unit and the second end of the first transistor to output a sawtooth wave signal, the second end of the capacitor and the first end of the first transistor are both connected to the ground voltage, the second input end of the comparison unit is used to receive a reference voltage, and the output end of the comparison unit is connected to the control end of the first transistor and outputs a pulse signal.

[0006] In one or more embodiments of the present invention, the PWM signal generator also includes a first control unit and / or a second control unit, the first control unit is connected to the output end of the signal conditioning circuit and the ground voltage, the first control unit controls the on-off between the output end of the signal conditioning circuit and the ground voltage based on a first control signal, the second control unit is connected to the output end of the signal conditioning circuit and the power supply voltage, the second control unit controls the on-off between the output end of the signal conditioning circuit and the power supply voltage based on a second control signal.

[0007] In one or more embodiments of the present invention, the first control unit includes a fifth transistor, a first end of the fifth transistor is connected to the ground voltage, a second end of the fifth transistor is connected to the output end of the signal conditioning circuit, and a control end of the fifth transistor is connected to the first control signal; the second control unit includes a sixth transistor, a first end of the sixth transistor is connected to the power supply voltage, a second end of the sixth transistor is connected to the output end of the signal conditioning circuit, and the control end of the sixth transistor is used to receive the second control signal.

[0008] In one or more embodiments of the present invention, the signal generating circuit generates a sawtooth wave signal based on the control of a pulse signal, and the PWM signal generator also includes a frequency adjustment unit, which is used to adjust the frequency of the pulse signal to generate a first control signal and / or a second control signal.

[0009] In one or more embodiments of the present invention, the frequency adjustment unit includes a first frequency divider, an input end of the first frequency divider is used to receive the pulse signal, and an output end of the first frequency divider is used to output a first control signal; and / or

[0010] The frequency adjustment unit comprises a second frequency divider and an inverter, the input end of the second frequency divider is used to receive the pulse signal, the output end of the second frequency divider is connected to the input end of the inverter, and the output end of the inverter is used to output the second control signal; or

[0011] The frequency adjustment unit includes a frequency divider and an inverter, the input end of the frequency divider is used to receive a pulse signal, the first output end of the frequency divider is used to output a first control signal, the second output end of the frequency divider is connected to the input end of the inverter, and the output end of the inverter is used to output a second control signal.

[0012] In one or more embodiments of the present invention, the signal conditioning circuit includes a conversion module, a current generating module and a signal generating module, the input end of the conversion module is connected to the signal generating circuit, the conversion module is used to convert the sawtooth wave signal into a first current, the first end of the current generating module is connected to the power supply voltage, the second end of the current generating module is connected to the output end of the conversion module, the current generating module is used to generate a regulating current, the first end of the signal generating module is connected to the output end of the conversion module and the second end of the current generating module, the second end of the signal generating module is connected to the ground voltage, and the signal generating module is used to generate a result signal based on the first current and the regulating current.

[0013] In one or more embodiments of the present invention, the conversion module includes a conversion unit and a current mirror unit, the conversion unit is used to convert the sawtooth wave signal into an output current, and the current mirror unit is used to mirror the output current to generate a first current.

[0014] In one or more embodiments of the present invention, the conversion unit includes an amplifier, a first resistor and a second transistor, the first input terminal of the amplifier is used to receive a sawtooth wave signal, the output terminal of the amplifier is connected to the control terminal of the second transistor, the second input terminal of the amplifier and the first terminal of the first resistor are connected to the first terminal of the second transistor, the second terminal of the first resistor is connected to a ground voltage, and the second terminal of the second transistor is connected to a current mirror unit.

[0015] In one or more embodiments of the present invention, the current generating module includes a second current source, a first end of the second current source is connected to the power supply voltage, and a second end of the second current source is connected to the output end of the conversion module and the first end of the signal generating module.

[0016] In one or more embodiments of the present invention, the signal generating module includes a second resistor, a first end of the second resistor is connected to the output end of the conversion module and the second end of the current generating module, and a second end of the second resistor is connected to the ground voltage.

[0017] Compared with the prior art, the PWM signal generator of the present invention adjusts the amplitude of the sawtooth wave signal through a signal adjustment circuit, and then compares it with a reference signal to obtain a PWM signal that is continuously 0 or 1. The duty cycle of the PWM signal can change with the reference signal, which solves the problem that the minimum value of the traditional sawtooth wave is limited to 0, and it is easy to cause an uncontrollable minimum duty cycle due to the comparator offset voltage and delay; the minimum duty cycle or maximum duty cycle of the PWM signal can be freely set through the control unit. The PWM signal generator of the present invention is based on a simple circuit structure, and cleverly completes the maximum and minimum settings of the PWM duty cycle, is not affected by the process, power supply voltage, and temperature, and is convenient for a variety of system applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 4 is a circuit diagram of a PWM signal generator in Embodiment 1 of the present invention.

[0020] Figure 2 1 is a waveform diagram of each signal of the PWM signal generator in Example 1 of the present invention.

[0021] Figure 3 This is a circuit diagram of a PWM signal generator in Embodiment 2 of the present invention.

[0022] Figure 4 1 is a waveform diagram of each signal of the PWM signal generator in Embodiment 2 of the present invention.

[0023] Figure 5 This is a circuit diagram of the PWM signal generator in Example 3 of the present invention.

[0024] Figure 6 This is a circuit schematic diagram of the PWM signal generator in Example 4 of the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0026] "Coupled" or "connected" or "connected" in the specification includes both direct connection and indirect connection. Indirect connection is a connection through an intermediate medium, such as a connection through an electrically conductive medium, which may have parasitic inductance or parasitic capacitance; indirect connection may also include connection through other active or passive devices on the basis of achieving the same or similar functional purposes, such as connection through circuits or components such as switches and follower circuits. In addition, in the invention, words such as "first" and "second" are mainly used to distinguish one technical feature from another technical feature, and do not necessarily require or imply that there is a certain actual relationship, quantity or order between these technical features.

[0027] Example 1

[0028] like Figure 1 As shown, the PWM signal generator in one embodiment of the present invention includes a signal generating circuit 10, a signal adjusting circuit 20, a comparing circuit 30, a frequency adjusting unit 40 and a first control unit.

[0029] The signal generating circuit 10 is used to generate a sawtooth wave signal Vc1 and a pulse signal Vt. In one embodiment, the signal generating circuit 10 generates the sawtooth wave signal Vc1 based on the control of the pulse signal Vt. The signal conditioning circuit 20 is connected to the signal generating circuit 10 to receive the sawtooth wave signal Vc1. The signal conditioning circuit 20 is used to adjust the amplitude of the sawtooth wave signal Vc1 and generate a result signal Vc2. The comparison circuit 30 is connected to the output end of the signal conditioning circuit 20 and the reference signal Veaout. The comparison circuit 30 is used to compare the result signal Vc2 with the reference signal Veaout to generate a PWM signal.

[0030] The frequency adjustment unit 40 is used to adjust the frequency of the pulse signal Vt to generate a first control signal. The first control unit is connected to the output end of the signal adjustment circuit 20 and the ground voltage, and the first control unit controls the connection and disconnection between the output end of the signal adjustment circuit 20 and the ground voltage based on the first control signal. In other embodiments, the first control signal can also be provided by an external clock.

[0031] Specifically, the signal generating circuit 10 includes a first current source I1, a capacitor C, a comparison unit, a first comparator Comp1 and a first transistor M1. In one embodiment, the comparison unit includes a first comparator Comp1 and a first follower F1.

[0032] The first end of the first current source I1 is connected to the power supply voltage, the second end of the first current source I1 is connected to the first end of the capacitor C, the first input end of the first comparator Comp1 and the second end of the first transistor M1 to output the sawtooth signal Vc1, the second end of the capacitor C and the first end of the first transistor M1 are both connected to the ground voltage, the second input end of the first comparator Comp1 is used to receive the reference voltage Vref, the output end of the first comparator Comp1 is connected to the input end of the first follower F1, and the output end of the first follower F1 is connected to the control end of the first transistor M1. The first follower F1 is used to isolate and buffer the output signal of the first comparator Comp1 and output the pulse signal Vt. In other embodiments, the first follower F1 may not be provided.

[0033] like Figure 2 As shown, the constant current Ic is generated by the first current source I1 to charge the capacitor C, the sawtooth signal Vc1 starts to rise at a fixed slope from 0, and the pulse signal Vt is initially at a low level. When the sawtooth signal Vc1 is greater than the reference voltage Vref, the pulse signal Vt turns from a low level to a high level, controls the first transistor M1 to turn on, discharges the capacitor C, and quickly pulls the sawtooth signal Vc1 down to the ground voltage, completing a cycle of change. The voltage range of the sawtooth signal Vc1 is 0 to Vref.

[0034] In one embodiment, the first transistor M1 is an N-channel MOS transistor, the control terminal of the first transistor is a gate, the first terminal of the first transistor is a source, the second terminal of the first transistor is a drain, the first input terminal of the first comparator Comp1 is a positive input terminal, and the second input terminal of the first comparator Comp1 is a negative input terminal. In other embodiments, the first input terminal of the first comparator Comp1 can be a negative input terminal, the second input terminal of the first comparator Comp1 can be a positive input terminal, the first transistor M1 can also be a P-channel MOS transistor or other types of transistor devices such as a triode, and the control and connection methods thereof can be adaptively adjusted.

[0035] like Figure 1 As shown, the signal conditioning circuit 20 includes a conversion module 21, a current generating module 22 and a signal generating module 23. The input end of the conversion module 21 is connected to the signal generating circuit 10, and the conversion module 21 is used to convert the sawtooth wave signal Vc1 into the first current Ia. The first end of the current generating module 22 is connected to the power supply voltage, the second end of the current generating module 22 is connected to the output end of the conversion module 21, and the current generating module 22 is used to generate the regulating current Iref. The first end of the signal generating module 23 is connected to the output end of the conversion module 21 and the second end of the current generating module 22, the second end of the signal generating module 23 is connected to the ground voltage, and the signal generating module 23 generates the result signal Vc2 based on the first current Ia and the regulating current Iref.

[0036] The conversion module 21 includes a conversion unit and a current mirror unit. The conversion unit is used to convert the sawtooth wave signal Vc1 into an output current Iout. The current mirror unit is used to mirror the output current Iout to generate a first current Ia.

[0037] The conversion unit includes an amplifier Amp, a first resistor R1 and a second transistor M2, the first input end of the amplifier Amp is connected to the first end of the capacitor C to receive the sawtooth wave signal Vc1, the output end of the amplifier Amp is connected to the control end of the second transistor M2, the second input end of the amplifier Amp, the first end of the first resistor R1 and the first end of the second transistor M2 are connected, the second end of the first resistor R1 is connected to the ground voltage, and the second end of the second transistor M2 is connected to the current mirror unit to convert the sawtooth wave signal Vc1 into the output current Iout.

[0038] The current mirror unit includes a third transistor M3 and a fourth transistor M4. The first end of the third transistor M3 and the first end of the fourth transistor M4 are connected to the power supply voltage, the control end of the third transistor M3, the second end of the third transistor M3, and the control end of the fourth transistor M4 are connected to the second end of the second transistor M2, and the second end of the fourth transistor M4 is used to mirror the output current Iout to generate the first current Ia. In other embodiments, the current mirror unit can also be a current mirror in other forms such as Cascode.

[0039] In one embodiment, the second transistor M2 is an N-channel MOS transistor, the third transistor M3 and the fourth transistor M4 are P-channel MOS transistors, the first end of the second transistor M2, the first end of the third transistor M3 and the first end of the fourth transistor M4 are sources, the second end of the second transistor M2, the second end of the third transistor M3 and the second end of the fourth transistor M4 are drains, and the control end of the second transistor M2, the control end of the third transistor M3 and the control end of the fourth transistor M4 are gates. The first input end of the amplifier Amp is a positive input end, and the second input end of the amplifier Amp is a negative input end.

[0040] In other embodiments, the first input terminal of the amplifier Amp may be a negative input terminal, the second input terminal of the amplifier Amp may be a positive input terminal, the second transistor M2 may be a P-channel MOS tube or other types of transistor devices such as a triode, the third transistor M3 and the fourth transistor M4 may be N-channel MOS tubes or other types of transistor devices such as a triode, and their control and connection methods may be adaptively adjusted.

[0041] like Figure 1As shown, the sawtooth wave signal Vc1 is applied to the first end of the first resistor R1 through the clamping of the amplifier Amp, and the sawtooth wave signal Vc1 is converted into the output current Iout through the first resistor R1:

[0042] Iout=Vc1 / R1

[0043] Wherein, R1 is the resistance value of the first resistor R1.

[0044] Assuming that the mirror ratio of the third transistor M3 and the fourth transistor M4 is 1:N, the first current Ia is:

[0045] Ia=N*Vc1 / R1

[0046] like Figure 1 As shown, the current generating module 22 includes a second current source I2, a first end of the second current source I2 is connected to the power supply voltage, a second end of the second current source I2 is connected to the second end of the fourth transistor M4 and the first end of the signal generating module 23, and the second current source I2 is used to generate the regulating current Iref.

[0047] like Figure 1 As shown, the signal generating module 23 includes a second resistor R2, a first end of the second resistor R2 is connected to the second end of the fourth transistor M4 and the second end of the second current source I2 to generate a result signal Vc2, and a second end of the second resistor R2 is connected to the ground voltage.

[0048] It can be seen that the current Ib flowing through the second resistor R2 is:

[0049] Ib=Ia+Iref=N*Vc1 / R1+Iref

[0050] Assuming that the resistance of the second resistor R2 is R2, the result signal Vc2 generated by the current Ib on the second resistor R2 is:

[0051] Vc2=R2*Iref+N*Vc1*R2 / R1

[0052] When the voltage range of the sawtooth wave signal Vc1 is 0 to Vref, the voltage range of the result signal Vc2 is:

[0053] R2*Iref~R2*Iref+N*Vref*R2 / R1

[0054] like Figure 1As shown, the comparison circuit 30 includes a second comparator Comp2 and a second follower F2. The first input terminal of the second comparator Comp2 is used to receive the result signal Vc2, and the second input terminal of the second comparator Comp2 is used to receive the reference signal Veaout. The second follower F2 is used to isolate and buffer the signal generated by the second comparator Comp2 and output a PWM signal. The first input terminal of the second comparator Comp2 is a positive input terminal, and the second input terminal of the second comparator Comp2 is a negative input terminal. In other embodiments, the first input terminal of the second comparator Comp2 can be a negative input terminal, the second input terminal of the second comparator Comp2 can be a positive input terminal, and the second follower F2 can also be not provided.

[0055] In one embodiment, when the reference signal Veaout is greater than the result signal Vc2, the comparison circuit 30 outputs a PWM signal of 1, and when the reference signal Veaout is less than the result signal Vc2, the comparison circuit 30 outputs a PWM signal of 0.

[0056] like Figure 2 As shown, the minimum voltage value of the result signal Vc2 is raised to R2*Iref. When the second comparator Comp2 compares the result signal Vc2 with the reference signal Veaout, as long as the reference signal Veaout does not exceed R2*Iref, a PWM signal of 0 can be output, thereby solving the problem of an uncontrollable minimum duty cycle that cannot generate a continuous PWM signal of 0 (i.e., a duty cycle of 0) due to the offset voltage and delay of the comparator.

[0057] In addition, by adjusting the adjustment current Iref and the resistance value of the second resistor R2, the voltage range of the result signal Vc2 can be flexibly adjusted to adapt to the reference signal Veaout of different voltage ranges. For example, when the range of the reference signal Veaout is 0.2V to 0.7V, by setting the voltage range of the result signal Vc2 to 0.3V to 0.6V, the duty cycle of the PWM signal can be completely changed from 0 to 1.

[0058] like Figure 1 As shown, the frequency adjustment unit 40 includes a first frequency divider 41. The input end of the first frequency divider 41 is connected to the output end of the first follower F1 to receive the pulse signal Vt, and the output end of the first frequency divider 41 is used to output the first control signal.

[0059] like Figure 1 As shown, the first control unit includes a fifth transistor M5, a first end of the fifth transistor M5 is connected to the ground voltage, a second end of the fifth transistor M5 is connected to the first end of the second resistor R2, and a control end of the fifth transistor M5 is connected to the output end of the first frequency divider 41 to receive the first control signal.

[0060] In one embodiment, the fifth transistor M5 is an N-channel MOS transistor, the first end of the fifth transistor M5 is a source, the second end of the fifth transistor M5 is a drain, and the control end of the fifth transistor M5 is a gate. In other embodiments, the fifth transistor M5 can be a P-channel MOS transistor, and its connection method and control method are adaptively adjusted.

[0061] like Figure 2 As shown, when the first frequency divider 41 is set to divide the pulse signal Vt with a frequency division ratio of 2 to generate the first control signal, the first control signal will generate a fixed high level pulse every two cycles to turn on the fifth transistor M5 and quickly pull the result signal Vc2 down to the ground voltage.

[0062] At this time, even when the voltage value of the reference signal Veaout is less than the minimum value R2*Iref of the result signal Vc2, the comparison circuit 30 should continue to output a PWM signal with a signal of 0, but because the result signal Vc2 is pulled down and is lower than the voltage value of the reference signal Veaout, the comparison circuit 30 will output a narrow pulse signal with a relatively fixed width, so that the PWM signal has a predictable minimum duty cycle. By setting the frequency division ratio of the first frequency divider 41, the fifth transistor M5 is turned on according to the required time period, and the minimum duty cycle of the PWM signal can be freely set, which is not affected by the process, power supply voltage, and temperature, and is convenient for a variety of system applications, avoiding load restrictions in system applications and affecting customer applications. At the same time, the pull-down and recovery of the result signal Vc2 by the fifth transistor M5 are very fast, which will not affect the application in higher frequency occasions.

[0063] Example 2

[0064] like Figure 3 As shown, the PWM signal generator in this embodiment includes a signal generating circuit 10, a signal regulating circuit 20, a comparison circuit 30, a frequency regulating unit 40 and a second control unit. The structures, connection methods and specific functions of the signal generating circuit 10, the signal regulating circuit 20 and the comparison circuit 30 are the same as those in Embodiment 1.

[0065] The frequency adjustment unit 40 is used to adjust the frequency of the pulse signal Vt to generate a second control signal. The second control unit is connected to the output end of the signal adjustment circuit 20 and the power supply voltage, and controls the connection between the output end of the signal adjustment circuit 20 and the power supply voltage based on the second control signal.

[0066] like Figure 3As shown, the frequency adjustment unit 40 includes a second frequency divider 42 and an inverter 43. The input end of the second frequency divider 42 is connected to the output end of the first follower F1 to receive the pulse signal Vt, the output end of the second frequency divider 42 is connected to the input end of the inverter 43, and the output end of the inverter 43 is used to output the second control signal.

[0067] like Figure 3 As shown, the second control unit includes a sixth transistor M6, a first end of the sixth transistor M6 is connected to the first end of the second resistor R2, a second end of the sixth transistor M6 is connected to the power supply voltage, and a control end of the sixth transistor M6 is connected to the output end of the inverter 43 to receive a second control signal.

[0068] In one embodiment, the sixth transistor M6 is a P-channel MOS transistor, the first end of the sixth transistor M6 is a source, the second end of the sixth transistor M6 is a drain, and the control end of the sixth transistor M6 is a gate. In other embodiments, the sixth transistor M6 can be an N-channel MOS transistor, and its connection method and control method are adaptively adjusted.

[0069] like Figure 4 As shown, when the second frequency divider 42 is set to divide the pulse signal Vt with a frequency division ratio of 2, and the second control signal is generated through the inverter 43, the second control signal will generate a short low level every two cycles to control the sixth transistor M6 to turn on, and pull the result signal Vc2 up to the power supply voltage. At this time, even if the voltage value of the reference signal Veaout is greater than the maximum value of the result signal Vc2, the comparison circuit 30 should continue to output a PWM signal with a signal of 1, that is, the duty cycle of the PWM signal should be 1, but because the result signal Vc2 is pulled up to exceed the reference signal Veaout, the comparison circuit 30 will output a low level signal with a relatively fixed width, so that the PWM signal has a predictable maximum duty cycle. By setting the frequency division ratio of the second frequency divider 42, the sixth transistor M6 is turned on according to the required time period, and the maximum duty cycle of the PWM signal can be freely set, which is not affected by the process, power supply voltage, and temperature, and is convenient for a variety of system applications. At the same time, the pull-up and recovery of the result signal Vc2 by the sixth transistor M6 are very fast, which will not affect the application in higher frequency occasions.

[0070] Example 3

[0071] like Figure 5 As shown, the PWM signal generator in this embodiment is based on Embodiment 1, with the addition of a sixth transistor M6, and the addition of a second frequency divider 42 and an inverter 43 in the frequency adjustment unit 40. The connection mode and specific functions of the sixth transistor M6, the second frequency divider 42 and the inverter 43 are the same as those in Embodiment 2.

[0072] Based on the control principles in Example 1 and Example 2, by respectively setting the division ratios of the first frequency divider 41 and the second frequency divider 42, the fifth transistor M5 and the sixth transistor M6 are controlled to be turned on at the required time period, respectively, and the minimum duty cycle and the maximum duty cycle of the PWM signal can be set at the same time, further expanding the use scenarios of the system.

[0073] It should be noted that when setting the maximum and minimum duty cycles of the PWM signal, it is necessary to ensure that the first control signal and the second control signal do not change simultaneously to avoid the fifth transistor M5 and the sixth transistor M6 being turned on at the same time and causing a short circuit.

[0074] Example 4

[0075] like Figure 6 As shown, the PWM signal generator in this embodiment is based on Embodiment 3, but the second frequency divider 42 is removed. The input end of the first frequency divider 41 is used to receive the pulse signal Vt, the first output end of the first frequency divider 41 is used to output the first control signal, the second output end of the first frequency divider 41 is connected to the input end of the inverter 43, and the output end of the inverter 43 is used to output the second control signal. The first frequency divider 41 simultaneously divides the pulse signal Vt at different frequency division ratios and generates two different control signals to meet the control requirements of the fifth transistor M5 and the sixth transistor M6.

[0076] In other embodiments, the frequency adjustment unit 40 may not be provided, so that the control end of the fifth transistor M5 and the control end of the sixth transistor M6 respectively receive the first control signal and the second control signal from other circuits or modules to respectively control the turn-on period and the turn-on duration of the fifth transistor M5 and the sixth transistor M6, thereby setting the minimum duty cycle and the maximum duty cycle of the PWM signal.

[0077] In other embodiments, the fifth transistor M5 and the sixth transistor M6 can be replaced by other devices or modules with similar functions, and only the function of pulling down and pulling up the result signal Vc2 at a preset period is required to complete the setting of the minimum duty cycle and the maximum duty cycle of the PWM signal.

[0078] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

[0079] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. A PWM signal generator, characterized in that: include: A signal generating circuit, used for generating a sawtooth wave signal; A signal adjustment circuit, connected to the signal generation circuit, is used to adjust the amplitude of the sawtooth wave signal and generate a result signal; The comparison circuit is connected to the output end of the signal conditioning circuit and the reference signal, and is used for comparing the result signal with the reference signal to generate a PWM signal.

2. The PWM signal generator according to claim 1, characterized in that: The signal generating circuit includes a first current source, a capacitor, a comparison unit and a first transistor, wherein the first end of the first current source is connected to a power supply voltage, the second end of the first current source is connected to the first end of the capacitor, the first input end of the comparison unit and the second end of the first transistor to output a sawtooth wave signal, the second end of the capacitor and the first end of the first transistor are both connected to a ground voltage, the second input end of the comparison unit is used to receive a reference voltage, and the output end of the comparison unit is connected to the control end of the first transistor and outputs a pulse signal.

3. The PWM signal generator according to claim 1, characterized in that: The PWM signal generator also includes a first control unit and / or a second control unit, the first control unit is connected to the output end of the signal conditioning circuit and the ground voltage, the first control unit controls the connection and disconnection between the output end of the signal conditioning circuit and the ground voltage based on a first control signal, the second control unit is connected to the output end of the signal conditioning circuit and the power supply voltage, the second control unit controls the connection and disconnection between the output end of the signal conditioning circuit and the power supply voltage based on a second control signal.

4. The PWM signal generator according to claim 3, characterized in that: The first control unit includes a fifth transistor, a first terminal of the fifth transistor is connected to the ground voltage, a second terminal of the fifth transistor is connected to the output terminal of the signal conditioning circuit, and a control terminal of the fifth transistor is connected to the first control signal; The second control unit includes a sixth transistor, a first end of the sixth transistor is connected to the power supply voltage, a second end of the sixth transistor is connected to the output end of the signal conditioning circuit, and a control end of the sixth transistor is used to receive a second control signal.

5. The PWM signal generator according to claim 3, characterized in that: The signal generating circuit generates a sawtooth wave signal based on the control of the pulse signal. The PWM signal generator further includes a frequency adjusting unit, which is used to adjust the frequency of the pulse signal to generate a first control signal and / or a second control signal.

6. The PWM signal generator according to claim 5, characterized in that: The frequency adjustment unit comprises a first frequency divider, wherein an input end of the first frequency divider is used to receive a pulse signal, and an output end of the first frequency divider is used to output a first control signal; and / or The frequency adjustment unit includes a second frequency divider and an inverter, the input end of the second frequency divider is used to receive the pulse signal, the output end of the second frequency divider is connected to the input end of the inverter, and the output end of the inverter is used to output a second control signal; or The frequency adjustment unit includes a frequency divider and an inverter, the input end of the frequency divider is used to receive a pulse signal, the first output end of the frequency divider is used to output a first control signal, the second output end of the frequency divider is connected to the input end of the inverter, and the output end of the inverter is used to output a second control signal.

7. The PWM signal generator according to claim 1, characterized in that: The signal conditioning circuit includes a conversion module, a current generating module and a signal generating module. The input end of the conversion module is connected to the signal generating circuit. The conversion module is used to convert the sawtooth wave signal into a first current. The first end of the current generating module is connected to the power supply voltage. The second end of the current generating module is connected to the output end of the conversion module. The current generating module is used to generate a regulating current. The first end of the signal generating module is connected to the output end of the conversion module and the second end of the current generating module. The second end of the signal generating module is connected to the ground voltage. The signal generating module is used to generate a result signal based on the first current and the regulating current.

8. The PWM signal generator according to claim 7, characterized in that: The conversion module includes a conversion unit and a current mirror unit. The conversion unit is used to convert the sawtooth wave signal into an output current. The current mirror unit is used to generate a first current by mirroring the output current.

9. The PWM signal generator according to claim 8, characterized in that: The conversion unit includes an amplifier, a first resistor and a second transistor. The first input end of the amplifier is used to receive a sawtooth wave signal. The output end of the amplifier is connected to the control end of the second transistor. The second input end of the amplifier and the first end of the first resistor are connected to the first end of the second transistor. The second end of the first resistor is connected to a ground voltage. The second end of the second transistor is connected to a current mirror unit.

10. The PWM signal generator according to claim 7, characterized in that: The current generating module comprises a second current source, a first end of the second current source is connected to the power supply voltage, and a second end of the second current source is connected to the output end of the conversion module and the first end of the signal generating module.

11. The PWM signal generator according to claim 7, characterized in that: The signal generating module comprises a second resistor, a first end of the second resistor is connected to the output end of the conversion module and the second end of the current generating module, and a second end of the second resistor is connected to the ground voltage.