Constant mean value and constant root mean square output circuit
By designing a constant average value and constant root mean square output circuit including a power switch and a resistance module, the problem of unstable output voltage in the existing technology is solved, and a stable output independent of the voltage and power supply is achieved. The user can freely switch between the two. This mode simplifies the circuit structure and reduces costs.
Patent Information
- Application Number
- CN202410621231.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-08-30
AI Technical Summary
It is difficult for the existing technology to achieve constant average and constant root mean square voltage output at the same time, and the output voltage is greatly affected by the battery voltage, resulting in poor user experience, and the complexity and cost of the solution are high.
A constant average value and constant root mean square output circuit including a power switch, sampling circuit, comparison circuit, average value circuit, root mean square circuit, digital duty cycle generator and analog drive control module is designed. Through an adjustable resistor The combination with NMOS/PMOS tubes achieves stable control of the output voltage. Users can switch between the two output modes according to needs.
It achieves constant average and root mean square voltage outputs that have nothing to do with the power supply voltage. Users can switch freely, broadening the application environment, and the circuit structure is simple.
Smart Images

Figure CN118573159A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of integrated circuit design, and in particular relates to a constant average value and constant root mean square output circuit. Background Art
[0002] Some DC heating products on the market, such as atomizers, have heating wires as their load. In order to control the temperature of the heating wire to be constant, the output end needs to have a constant average value or a constant RMS voltage.
[0003] The heating wire is heated, and its current is closely related to the power supply voltage (I = VDD / RL). However, the energy of the heating wire comes entirely from the battery. During actual use by the user, the battery power gradually decreases, the heating wire current decreases, the output power becomes lower, and the user experience becomes worse. Therefore, the output voltage at the heating wire end urgently needs to be a constant average value or constant root mean square voltage that is not affected by the battery voltage.
[0004] The existing technology divides the battery voltage into multiple areas, and each area selects a control signal with a different duty cycle pre-set through a digital circuit. However, as the battery voltage decreases, the transition smoothness between different areas is poor. In order to improve its continuity, the voltage difference between different areas needs to be reduced, but a large number of analog-to-digital converters will be added, occupying a large amount of layout area, and increasing chip complexity and cost.
[0005] After searching, in the prior art, application publication number CN112187043B, a constant root mean square voltage output device and method, comprising a power supply, a power switch (SW) and a PWM signal generator (100), wherein one end of the power switch (SW) is connected to the power supply (VDD), the other end is a voltage output end (OUT), and the other end is connected to a resistive load (RL); the PWM signal generator (100) is used to generate a square wave signal to control the power switch (SW) to be attracted, so that the voltage output end OUT outputs a constant root mean square voltage Vorms. The present invention can output a stable root mean square voltage, and the output root mean square voltage does not change with the power supply voltage.
[0006] The comparison file can only achieve constant RMS voltage output, but cannot achieve both constant RMS and constant average output modes at the same time. Users can freely switch between these two output modes according to their needs, which greatly broadens the application environment. Summary of the invention
[0007] The present invention aims to solve the above problems of the prior art. A constant average value and constant root mean square output circuit is proposed. The technical solution of the present invention is as follows:
[0008] A constant average value and constant root mean square output circuit comprises: a power switch MP1, a sampling circuit, a comparison circuit, an average value circuit, a root mean square circuit, a digital duty cycle generator, an analog drive control module and a resistor RL, wherein the sampling circuit, the comparison circuit, the average value circuit and the root mean square circuit are respectively connected to the digital duty cycle generator, the digital duty cycle generator is connected to the analog drive module, the analog drive module is connected to the gate of the power switch MP1, the voltage VDD is connected to the source of the power switch MP1, the drain of the power switch MP1 is connected to one end of the resistor RL and the output end AT, and the other end of the resistor RL is grounded.
[0009] The drain of the power switch MP1 is also connected to the AT output voltage sampling resistor vref_res circuit, the vref_res circuit is grounded, the vref_res circuit is used for AT output voltage sampling, and a constant root mean square and constant average value output mode selection circuit. When the enable signal avg_rms_sel=0 (low level), the NMOS tube M1 and the NMOS tube M2 are turned off, and the PMOS tube M3 and the PMOS tube M3N are turned on, which is a constant average value voltage output; when the enable signal avg_rms_sel=1 (high level), M1 and M2 are turned on, and M3 and M3N are turned off, which is a constant root mean square voltage output; the reference voltage output end of the vref_res circuit is connected to the positive input end of the comparator comp, and the output end of the comparator comp is connected to the digital duty cycle generator, and the digital duty cycle generator is connected to the analog drive module and the vref_res circuit.
[0010] Furthermore, the vref_res circuit is formed by a resistor R11, a resistor R12, and an adjustable resistor R13 connected in series in sequence, wherein the other end of the adjustable resistor R13 is connected to the power switch MP1, and the other end of the resistor R11 is grounded; the connection point between the resistor R11 and the resistor R12 is connected to the positive input end of the comparator comp, and the voltage between the resistor R2 and the adjustable resistor R3 is the output end voltage vref of the adjustable resistor R3.
[0011] Furthermore, the vref_res circuit includes N resistor modules, resistors R1-R6, NMOS tubes M1 and M2; the specific connection method is: the N resistor modules are connected in series with resistors R6, R5, R4, R3, R2 and R1 in series in sequence, the other end of the first resistor module is connected to the output terminal AT, and the other end of the resistor R1 is grounded; one end connected to R6 and R5 is connected to the drain of M2, one end connected to R5 and R4 is connected to the source of M2, one end connected to R2 and R1 is connected to the drain of M1, one end of R1 connected to the ground is connected to the source of M1, and one end connected to R4 and R3 is used as a resistor to sample the voltage at_ vref; the connection mode of the resistance module is as follows: let one end of the resistance module close to the output terminal AT be the head end, and the other end be the tail end, the resistance module includes two resistance units Rcell, a PMOS tube M4, and a PMOS tube M3, the head end of the resistance module is connected to the source of the NMOS tube M4, the tail end of the resistance module is connected to the drain of M4 and the drain of M3, the two resistance units Rcell are connected in series, and the connection point between the two resistance units Rcell is connected to the source of M3; the gates of M3, M3NM2, and M1 are connected to the enable signal avg_rms_sel, and the gates of M4 and M4N are connected to the duty cycle generator.
[0012] Furthermore, the constant average voltage output is:
[0013] When the output terminal AT is started, the digital duty cycle generator Digital Gen outputs 0, then R13 = 0; where R13 is composed of n*Rcell resistor units. When the at_vref resistor sampling voltage reaches the maximum value, the comparator output is 1, and the counter in the digital duty cycle generator is calculated by +1, then R13 = Rcell, and at_vref is reduced by one Rcell voltage divider;
[0014] When at_vref>vbg, the reference potential of the negative input terminal of the comparator, the comparator output is 1, and the counter in Digital Gen operates by +1. By analogy, if the counter is n, then R13=n*Rcell, and at_vref approaches vbg, the comparator output is 0, and the counter in the digital duty cycle generator operates by -1.
[0015] When at_vref is at the offset voltage of the vbg±vos_comp comparator input, the comparator outputs 0 and 1, and the counter in DigitalGen performs ±1 operation to finally determine the value of n;
[0016] Digital Gen outputs a PWM pulse width modulation waveform with a determined n value, namely, at_pwm, which drives the power tube through the analog drive module to obtain the AT voltage.
[0017] Furthermore, the constant root mean square voltage output is: According to the AT output principle, the AT constant root mean square voltage Vat_rms calculation formula is:
[0018]
[0019] and, Vat: power tube output voltage amplitude; D: duty cycle; N0: ratio of at_vref terminal to ground terminal resistance value to Rcell; N: R13 resistance value adjustable bit.
[0020] The advantages and beneficial effects of the present invention are as follows:
[0021] The circuit provided by the present invention can provide two modes: constant average voltage output and constant root mean square voltage output. The output voltage is independent of the power supply voltage, and the user can freely switch between the two output modes according to needs. Figure 4 Beneficial effect: Users can freely switch between the two output modes of constant average value and constant RMS according to their needs, which greatly broadens the application environment. Cleverness: Simple structure. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a functional structure block diagram of a constant average value and constant root mean square output circuit according to a preferred embodiment of the present invention;
[0023] Figure 2 It is a block diagram of constant mean value and constant RMS output;
[0024] Figure 3 Simplified schematic diagram for the vref_res circuit;
[0025] Figure 4 Optional circuit diagram for realizing constant average value and constant RMS for vref_res circuit;
[0026] Figure 5 This is a simulation result diagram of constant average voltage output;
[0027] Figure 6 This is a diagram of the simulation results for constant RMS voltage output. DETAILED DESCRIPTION
[0028] The following will describe the technical solutions in the embodiments of the present invention in detail in conjunction with the accompanying drawings in the embodiments of the present invention. The described embodiments are only part of the embodiments of the present invention.
[0029] The technical solution of the present invention to solve the above technical problems is:
[0030] The constant average voltage / constant RMS voltage output circuit structure block diagram is as follows Figure 1As shown, it mainly includes a power switch MP1, a sampling circuit, a comparison circuit, a constant average value constant root mean square selection circuit, a digital duty cycle generator, an analog drive module, and a resistor RL. The voltage VDD input circuit is connected to the digital duty cycle generator, the digital duty cycle generator is connected to the analog drive module, the analog drive module is connected to the gate of the power switch MP1, the voltage VDD is connected to the source of the power switch MP1, the drain of the power switch MP1 is connected to one end of the resistor RL and the output end AT, and the other end of the resistor RL is grounded.
[0031] Figure 2 It is a specific implementation circuit diagram of constant average voltage / constant root mean square voltage output, and the specific connection method of the circuit is as follows: voltage VDD is input to the source of power switch MP1, the gate of power switch MP1 is connected to the analog drive module, the drain of power switch MP1 is connected to the vref_res circuit, one end of resistor RL and output end AT, and the other end of resistor RL is grounded; the vref_res circuit is grounded, the reference voltage output end of the vref_res circuit is connected to the positive input end of comparator comp, the output end of comparator comp is connected to the digital duty cycle generator, and the digital duty cycle generator is connected to the analog drive module and vref_res circuit.
[0032] To facilitate the description of the realization principle of constant average voltage / constant RMS output voltage, Figure 2 The vref_res circuit is simplified to Figure 3 As shown in the dotted box, an implementable connection method of the vref_res circuit is as follows: resistor R11, resistor R12, and adjustable resistor R13 are connected in series to form a vref_res circuit, wherein the other end of the adjustable resistor R13 is connected to the power switch MP1, and the other end of the resistor R11 is grounded; the connection point of the resistor R11 and the resistor R12 is connected to the positive input end of the comparator comp, and the voltage between the resistor R12 and the adjustable resistor R13 is the output end voltage vref of the adjustable resistor R13. (The following formulas have been edited and modified)
[0033] Embodiment 1: Constant average voltage output circuit:
[0034] Here’s how it works:
[0035] When the output terminal AT is started, the digital duty cycle generator Digital Gen outputs 0, then R3 = 0; where R13 is composed of n*Rcell (resistance unit). When at_vref (resistance sampling voltage) reaches the maximum value, the comparator output is 1, and the counter in the digital duty cycle generator is calculated by +1, then R13 = Rcell, and at_vref is reduced by one Rcell voltage divider.
[0036] When at_vref>vbg (the reference potential of the negative input terminal of the comparator), the comparator output is 1, and the counter in Digital Gen operates by +1. By analogy, if the counter is n, then R13=n*Rcell, and at_vref approaches vbg, the comparator output is 0, and the counter in the digital duty cycle generator operates by -1.
[0037] When at_vref is at vbg±vos_comp (comparator input offset voltage), the comparator outputs 0 and 1, and the counter in DigitalGen performs ±1 operation to ultimately determine the n value.
[0038] Digital Gen outputs a PWM (pulse width modulation) waveform with a duty cycle of Duty (duty cycle) = N0 / (N0+n) according to the determined n value, that is, at_pwm drives the power tube through the analog drive module to obtain the AT voltage.
[0039] According to the AT output steps, the AT constant average output voltage Vat_avg calculation formula can be obtained:
[0040]
[0041] and,
[0042] Among them, Vat is the output voltage amplitude of the power tube, D is the duty cycle, N0 is the ratio of the resistance value from at_vref to the ground end to the resistance value of Rcell, n is the number of resistance units Rcell, and N is the adjustable bit of R13 resistance value.
[0043] The following formula can be obtained from the resistor voltage divider module:
[0044] We can get:
[0045]
[0046]
[0047]
[0048] Among them, Vref is the voltage at the output terminal of the adjustable resistor R13, and vbg is the reference potential at the negative input terminal of the comparator comp;
[0049] Substituting formula (4) into formula (3) yields:
[0050]
[0051] It can be seen from this that the constant average voltage output at the AT terminal is only related to vbg and has nothing to do with the power supply voltage; by changing the ratio of R12 / R11, different output Vat_avg values can be obtained, but R11+R12 needs to remain unchanged.
[0052] Figure 5 This is the simulation result of the average voltage output at the AT terminal. When N0=256 and N=8, the output average voltage changes by 37.39mV, a change of 1.2%, and a center value of ±0.6%, achieving a constant average output.
[0053] Example 2: Constant RMS voltage output circuit:
[0054] According to the AT output principle, the AT constant root mean square voltage Vat_rms is calculated as follows:
[0055]
[0056] and,
[0057] The following formula can be obtained from the resistor voltage divider module:
[0058]
[0059] Substituting formula (4) into formula (7) yields:
[0060]
[0061] It can be seen from this that the AT terminal RMS voltage output is only related to vbg and has nothing to do with the power supply voltage; by changing the ratio of R12 / R11, different output Vat_rms values can be obtained, but R11+R12 needs to remain unchanged.
[0062] Figure 6 This is the simulation result of the AT-terminal RMS voltage output, N0=256, N=8. It can be seen that the AT RMS voltage output changes by 66.37mV, a change of 2.2%, and a center value of ±1.1%, which can achieve a constant RMS voltage output.
[0063] Figure 4Another embodiment of the vref_res circuit in the circuit of the present invention includes N resistor modules, NMOS tubes M1 and M2; the specific connection method is: the N resistor modules are connected in series with resistors R6, R5, R4, R3, R2 and R1 in series in sequence, the other end of the first resistor module is connected to the output end AT, and the other end of the resistor R1 is grounded; one end connected to R6 and R5 is connected to the drain of M2, one end connected to R5 and R4 is connected to the source of M2, one end connected to R2 and R1 is connected to the drain of M1, one end of R1 that is grounded is connected to the source of M1, and one end connected to R4 and R3 is used as the resistor sampling voltage at_vref. The connection mode of the resistance module is as follows: one end of the resistance module close to the output terminal AT is the head end, and the other end is the tail end. The resistance module includes two resistance units Rcell, a PMOS tube M4 and a PMOS tube M3. The head end of the resistance module is connected to the source of the NMOS tube M4, and the tail end of the resistance module is connected to the drain of M4 and the drain of M3. The two resistance units Rcell are connected in series, and the connection point between the two resistance units Rcell is connected to the source of M3. The gates of M3, M3NM2 and M1 are connected to the enable signal avg_rms_sel, and the gates of M4 and M4N are connected to the duty cycle generator.
[0064] The AT terminal can realize constant average voltage output and constant RMS voltage output, which can be switched.
[0065] When the enable signal avg_rms_sel=0 (low level), the NMOS tubes M1 and M2 are turned off, and the PMOS tubes M3 and M3N are turned on, and a constant average value voltage is output; when the enable signal avg_rms_sel=1 (high level), M1 and M2 are turned on, and M3 and M3N are turned off, and a constant root mean square voltage is output.
[0066] When the output terminal AT is enabled, when Digital Gen outputs 0:
[0067] avg_rms_sel = 0
[0068] avg_rms_sel = 1
[0069] When at_vref=vbg±vos_comp:
[0070] avg_rms_sel = 0
[0071] avg_rms_sel = 1
[0072]
[0073] By setting appropriate values of R1 and R5, when n is the same, Vat_avg≈Vat_rms, thereby achieving switchability between constant average voltage output and constant root mean square voltage output.
[0074] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions.
[0075] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0076] The above embodiments should be understood to be only used to illustrate the present invention and not to limit the protection scope of the present invention. After reading the contents of the present invention, technicians can make various changes or modifications to the present invention, and these equivalent changes and modifications also fall within the scope defined by the claims of the present invention.
Claims
1. A constant average value and constant RMS output circuit, It is characterized in that include: A power switch MP1, a sampling circuit, a comparison circuit, an average value circuit, a root mean square circuit, a digital duty cycle generator, an analog drive control module and a resistor RL. The sampling circuit, the comparison circuit, the average value circuit and the root mean square circuit are respectively connected to the digital duty cycle generator. The digital duty cycle generator is connected to the analog drive module. The analog drive module is connected to the gate of the power switch MP1. The voltage VDD is connected to the source of the power switch MP1. The drain of the power switch MP1 is connected to one end of the resistor RL and the output end AT. The other end of the resistor RL is grounded.
2. A constant average value and constant RMS output circuit according to claim 1, It is characterized in that The drain of the power switch MP1 is also connected to the AT output voltage sampling resistor vref_res circuit, the vref_res circuit is grounded, the vref_res circuit is used for AT output voltage sampling, and a constant root mean square and constant average value output mode selection circuit. When the enable signal avg_rms_sel=0 (low level), the NMOS tube M1 and the NMOS tube M2 are turned off, and the PMOS tube M3 and the PMOS tube M3N are turned on, which is a constant average value voltage output; when the enable signal avg_rms_sel=1 (high level), M1 and M2 are turned on, and M3 and M3N are turned off, which is a constant root mean square voltage output; the reference voltage output end of the vref_res circuit is connected to the positive input end of the comparator comp, and the output end of the comparator comp is connected to the digital duty cycle generator, and the digital duty cycle generator is connected to the analog drive module and the vref_res circuit.
3. A constant average value and constant RMS output circuit according to claim 2, It is characterized in that The vref_res circuit is formed by a resistor R11, a resistor R12, and an adjustable resistor R13 connected in series in sequence, wherein the other end of the adjustable resistor R13 is connected to the power switch MP1, and the other end of the resistor R11 is grounded; the connection point of the resistor R11 and the resistor R12 is connected to the positive input end of the comparator comp, and the voltage between the resistor R2 and the adjustable resistor R3 is the output end voltage vref of the adjustable resistor R3.
4. A constant average value and constant RMS output circuit according to claim 2, It is characterized in that The vref_res circuit includes N resistor modules, resistors R1-R6, NMOS tubes M1 and M2; the specific connection method is: the N resistor modules are connected in series with resistors R6, R5, R4, R3, R2 and R1 in series in sequence, the other end of the first resistor module is connected to the output end AT, and the other end of the resistor R1 is grounded; one end connected to R6 and R5 is connected to the drain of M2, one end connected to R5 and R4 is connected to the source of M2, one end connected to R2 and R1 is connected to the drain of M1, the grounded end of R1 is connected to the source of M1, and one end connected to R4 and R3 is used as the resistor sampling voltage at_vr ef; the connection mode of the resistance module is as follows: let one end of the resistance module close to the output terminal AT be the head end, and the other end be the tail end, the resistance module includes two resistance units Rcell, a PMOS tube M4, and a PMOS tube M3, the head end of the resistance module is connected to the source of the NMOS tube M4, the tail end of the resistance module is connected to the drain of M4 and the drain of M3, the two resistance units Rcell are connected in series, and the connection point between the two resistance units Rcell is connected to the source of M3; the gates of M3, M3NM2, and M1 are connected to the enable signal avg_rms_sel, and the gates of M4 and M4N are connected to the duty cycle generator.
5. A constant average value and constant RMS output circuit according to claim 3, It is characterized in that The constant average voltage output is: When the output terminal AT is started, the digital duty cycle generator DigitalGen outputs 0, then R13 = 0; where R13 is composed of n*Rcell resistor units. When the at_vref resistor sampling voltage reaches the maximum value, the comparator output is 1, and the counter in the digital duty cycle generator is calculated by +1, then R13 = Rcell, and at_vref is reduced by one Rcell voltage divider; When at_vref>vbg, the reference potential of the negative input terminal of the comparator, the comparator output is 1, and the counter in Digital Gen operates by +1. By analogy, if the counter is n, then R13=n*Rcell, and at_vref approaches vbg, the comparator output is 0, and the counter in the digital duty cycle generator operates by -1. When at_vref is at the offset voltage of the vbg±vos_comp comparator input, the comparator outputs 0 and 1, and the counter in Digital Gen performs ±1 operation to finally determine the value of n; Digital Gen outputs a PWM pulse width modulation waveform with a determined n value, namely, at_pwm, which drives the power tube through the analog drive module to obtain the AT voltage.
6. A constant average value and constant RMS output circuit according to claim 3, It is characterized in that The constant RMS voltage output is: According to the AT output principle, the AT constant RMS voltage Vat_rms calculation formula is: and, Vat: power tube output voltage amplitude; D: duty cycle; N0: ratio of at_vref terminal to ground terminal resistance value to Rcell; N: R13 resistance value adjustable bit.
Citation Information
Patent Citations
A constant root mean square voltage output device and method
CN112187043B
