CN112104368A - Feedback signal high-speed sampling holding circuit driven by PWM (pulse-Width modulation) wave to load - Google Patents
Feedback signal high-speed sampling holding circuit driven by PWM (pulse-Width modulation) wave to load Download PDFInfo
- Publication number
- CN112104368A CN112104368A CN202010975358.1A CN202010975358A CN112104368A CN 112104368 A CN112104368 A CN 112104368A CN 202010975358 A CN202010975358 A CN 202010975358A CN 112104368 A CN112104368 A CN 112104368A
- Authority
- CN
- China
- Prior art keywords
- output
- resistor
- mos transistor
- sampling
- pwm
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000005070 sampling Methods 0.000 title claims abstract description 50
- 230000010354 integration Effects 0.000 claims description 14
- 239000003990 capacitor Substances 0.000 claims description 11
- 230000009977 dual effect Effects 0.000 claims description 6
- 230000002093 peripheral effect Effects 0.000 claims description 6
- 125000004122 cyclic group Chemical group 0.000 claims description 4
- 238000013461 design Methods 0.000 abstract description 4
- 230000001276 controlling effect Effects 0.000 abstract 1
- 230000001105 regulatory effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 4
- 238000001914 filtration Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M1/00—Analogue/digital conversion; Digital/analogue conversion
- H03M1/12—Analogue/digital converters
- H03M1/124—Sampling or signal conditioning arrangements specially adapted for A/D converters
- H03M1/1245—Details of sampling arrangements or methods
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Analogue/Digital Conversion (AREA)
- Electronic Switches (AREA)
Abstract
一种受PWM波驱动负载的反馈信号高速采样保持电路,属于信号采样电路技术领域。本发明包括控制时序模块和积分采样器,控制时序模块同步PWM信号并循环输出,控制时序模块通过控制积分采样器在大于等于3个PWM信号的周期内对反馈信号进行积分、保持、清零,获得反馈信号的平均值,控制积分采样器提供至少一个PWM信号周期的时间用于A/D采样、至少一个PWM信号周期的时间用于调节输出。本发明基于基本数字逻辑电路和模拟电路组合设计,能实现在最少三个PWM信号周期内,用一个PWM信号周期来获得准确的反馈信号平均值,同时给系统提供至少一个PWM信号周期的时间用于A/D采样、至少一个PWM信号周期的时间用于调节输出。
A high-speed sampling and holding circuit of a feedback signal driven by a PWM wave load belongs to the technical field of signal sampling circuits. The invention includes a control time sequence module and an integral sampler, the control time sequence module synchronizes the PWM signal and outputs it cyclically, and the control time sequence module integrates, maintains and clears the feedback signal within a period of three or more PWM signals by controlling the integral sampler. The average value of the feedback signal is obtained, and the integral sampler is controlled to provide at least one PWM signal period for A/D sampling and at least one PWM signal period for regulating the output. The invention is based on the combined design of the basic digital logic circuit and the analog circuit, and can achieve at least three PWM signal cycles, use one PWM signal cycle to obtain an accurate feedback signal average value, and at the same time provide the system with at least one PWM signal cycle time. After A/D sampling, at least one PWM signal cycle time is used to condition the output.
Description
技术领域technical field
本发明属于信号采样电路技术领域,具体是涉及一种受PWM波驱动负载的反馈信号高速采样保持电路。The invention belongs to the technical field of signal sampling circuits, in particular to a high-speed sampling and holding circuit of feedback signals driven by PWM waves.
背景技术Background technique
以PWM波作为驱动信号的对象很多,例如电机控制、DC/AC变换、DC/DC变换及压电驱动等场合。为了对控制对象进行闭环控制,都必须实时检测被控对象的工作电流或电压反馈信号,工作对象实际上的反馈信号大多都是以驱动信号PWM的基波为基础,叠加了大量高次谐波的一个复杂的组合信号。对工作对象反馈信号的检测通常使用两种方法:其一,精密整流滤波;其二,微处理器高速A/D采样,以获取反馈信号在一个或者多个周期中的平均值。There are many objects that use PWM waves as driving signals, such as motor control, DC/AC conversion, DC/DC conversion, and piezoelectric drive. In order to carry out closed-loop control of the controlled object, it is necessary to detect the working current or voltage feedback signal of the controlled object in real time. Most of the actual feedback signals of the working object are based on the fundamental wave of the driving signal PWM, and a large number of high-order harmonics are superimposed. a complex combination of signals. Two methods are usually used to detect the feedback signal of the working object: one is precise rectification and filtering; the other is the high-speed A/D sampling of the microprocessor to obtain the average value of the feedback signal in one or more cycles.
使用精密整流滤波方法对以PWM波作为驱动信号的对象反馈信号进行处理,特点是输出为直流信号,缺点十分明显,就是想要获得稳定的直流信号需要比较长的滤波滞后时间,对于要求对象高速反应的场合,无法使用此方案。微处理器高速A/D采样进行对象反馈信号处理,在能够提供足够高的采样速度情况下,能够在一个或者多个PWM信号周期内获得反馈信号的平均值,但是当PWM的频率比较高并且受控对象反馈信号的高频分量比较复杂的时候,对微处理器高速A/D采样的速度与处理速度要求也高,以至于需要采用DSP、FPGA和高速独立A/D的高成本方案才能解决问题。The precision rectification and filtering method is used to process the feedback signal of the object with the PWM wave as the driving signal. The characteristic is that the output is a DC signal. The disadvantage is very obvious, that is, to obtain a stable DC signal, a relatively long filtering lag time is required. In case of reaction, this scheme cannot be used. Microprocessor high-speed A/D sampling performs object feedback signal processing. In the case of providing a sufficiently high sampling speed, the average value of the feedback signal can be obtained in one or more PWM signal cycles, but when the PWM frequency is relatively high and When the high-frequency components of the feedback signal of the controlled object are more complex, the high-speed A/D sampling speed and processing speed of the microprocessor are also high, so that the high-cost solutions of DSP, FPGA and high-speed independent A/D are required to be used. Solve the problem.
因此需要提出一种新的方案来解决这个问题。Therefore, it is necessary to propose a new solution to solve this problem.
发明内容SUMMARY OF THE INVENTION
本发明主要是解决上述现有技术所存在的技术问题,提供一种受PWM波驱动负载的反馈信号高速采样保持电路。The present invention mainly solves the technical problems existing in the above-mentioned prior art, and provides a high-speed sampling and holding circuit of a feedback signal driven by a PWM wave.
本发明的上述技术问题主要是通过下述技术方案得以解决的:一种受PWM波驱动负载的反馈信号高速采样保持电路,包括控制时序模块和积分采样器,所述控制时序模块和积分采样器相连,所述控制时序模块同步PWM信号并循环输出,所述控制时序模块通过控制积分采样器在大于等于3个PWM信号的周期内对反馈信号进行积分、保持、清零,从而获得反馈信号的平均值,所述控制时序模块控制积分采样器提供至少一个PWM信号周期的时间用于反馈信号积分、至少一个PWM信号周期的时间保持采样结果和用于A/D采样、至少一个PWM信号周期的时间用于积分采样器清零和调节输出。The above-mentioned technical problems of the present invention are mainly solved by the following technical solutions: a high-speed sampling and holding circuit of feedback signals driven by a PWM wave load, comprising a control sequence module and an integral sampler, the control sequence module and the integral sampler Connected to each other, the control timing module synchronizes the PWM signal and outputs it cyclically, and the control timing module integrates, maintains and clears the feedback signal by controlling the integral sampler within a period greater than or equal to 3 PWM signals, thereby obtaining the feedback signal. The average value, the control timing module controls the integral sampler to provide at least one PWM signal cycle time for feedback signal integration, at least one PWM signal cycle time to hold the sampling result, and at least one PWM signal cycle time for A/D sampling, at least one PWM signal cycle time. Time is used to clear the integral sampler and adjust the output.
作为优选,所述积分采样器进入保持状态时,所述控制时序模块同步触发进行A/D采样;所述积分采样器进入清零状态时,所述控制时序模块调节计算并更新控制输出。Preferably, when the integrating sampler enters the hold state, the control timing module synchronously triggers A/D sampling; when the integrating sampler enters the clearing state, the control timing module adjusts the calculation and updates the control output.
作为优选,所述控制时序模块包括十进制计数器和双四输入端或门芯片,所述十进制计数器将其中一个输出端反馈到复位端形成三进制计数器,所述十进制计数器剩余输出端做循环输出,并与双四输入端或门芯片相应的输入端相连。Preferably, the control timing module includes a decimal counter and a dual four-input terminal OR gate chip, the decimal counter feeds back one of the output terminals to the reset terminal to form a ternary counter, and the remaining output terminals of the decimal counter are used for cyclic output, And it is connected with the corresponding input terminal of the dual four-input terminal or gate chip.
作为优选,所述积分采样器包括采样电路和整流电路,所述采样电路分别与整流电路和控制时序模块相连,所述采样电路对整流电路的输出信号进行积分、保持和清零。Preferably, the integrating sampler includes a sampling circuit and a rectifying circuit, the sampling circuits are respectively connected with the rectifying circuit and the control timing module, and the sampling circuit integrates, maintains and clears the output signal of the rectifying circuit.
作为优选,所述整流电路包括运算放大器U1A、运算放大器U1B、以及外围器件,所述外围器件包括电阻R1、电阻R2和二极管D1,所述运算放大器U1A的同向输入端接地,所述运算放大器U1A的反向输入端分别接电阻R1的一端和电阻R2的一端,所述电阻R1的另一端作为积分采样器的信号输入端VIN,所述运算放大器U1B的同向输入端分别接电阻R2的另一端和二极管D1的正极,所述二极管D1的负极接运算放大器U1A的输出端,所述运算放大器U1B的输出端分别接其反向输入端和采样电路,且其公共连接端作为整流电路输出信号V1的输出端。Preferably, the rectifier circuit includes an operational amplifier U1A, an operational amplifier U1B, and peripheral devices, the peripheral devices include a resistor R1, a resistor R2 and a diode D1, the non-inverting input end of the operational amplifier U1A is grounded, and the operational amplifier The inverting input terminal of U1A is respectively connected to one end of the resistor R1 and one end of the resistor R2, the other end of the resistor R1 is used as the signal input terminal VIN of the integrating sampler, and the non-inverting input terminal of the operational amplifier U1B is respectively connected to the one end of the resistor R2. The other end and the anode of the diode D1, the cathode of the diode D1 is connected to the output terminal of the operational amplifier U1A, the output terminal of the operational amplifier U1B is respectively connected to its reverse input terminal and the sampling circuit, and its common connection terminal is used as the output of the rectifier circuit Output of signal V1.
作为优选,所述采样电路包括电阻R3、电阻R4、电阻R5、电容C1、MOS管T1、MOS管T2、MOS管T3、MOS管T4、以及运算放大器U2A,所述电阻R3的一端接整流电路,所述电阻R3的另一端分别接电阻R4的一端和MOS管T1的漏极,且其公共连接端作为整流电路输出信号V2的输出端,所述MOS管T1的源极接MOS管T2的源极,所述MOS管T2的漏极接地,所述MOS管T1的栅极接MOS管T2的栅极,且其公共连接端接控制时序模块,所述运算放大器U2A的同向输入端接地,所述运算放大器U2A的反向输入端分别接电阻R4的另一端、电容C1的一端和MOS管T3的漏极,所述运算放大器U2A的输出端分别接电容C1的另一端和电阻R5的一端,且其公共连接端作为积分采样器的信号输出端VOUT,所述电阻R5的另一端接MOS管T4的漏极,所述MOS管T4的源极接MOS管T3的源极,所述MOS管T4的栅极接MOS管T3的栅极,且其公共连接端接控制时序模块。Preferably, the sampling circuit includes a resistor R3, a resistor R4, a resistor R5, a capacitor C1, a MOS transistor T1, a MOS transistor T2, a MOS transistor T3, a MOS transistor T4, and an operational amplifier U2A, and one end of the resistor R3 is connected to the rectifier circuit , the other end of the resistor R3 is respectively connected to one end of the resistor R4 and the drain of the MOS transistor T1, and its common connection end is used as the output end of the output signal V2 of the rectifier circuit, and the source of the MOS transistor T1 is connected to the MOS transistor T2. The source, the drain of the MOS transistor T2 is grounded, the gate of the MOS transistor T1 is connected to the gate of the MOS transistor T2, and its common connection terminal is connected to the control timing module, and the non-inverting input terminal of the operational amplifier U2A is grounded , the reverse input end of the operational amplifier U2A is respectively connected to the other end of the resistor R4, one end of the capacitor C1 and the drain of the MOS transistor T3, the output end of the operational amplifier U2A is respectively connected to the other end of the capacitor C1 and the other end of the resistor R5 One end, and its common connection end is used as the signal output end VOUT of the integral sampler, the other end of the resistor R5 is connected to the drain of the MOS transistor T4, the source of the MOS transistor T4 is connected to the source of the MOS transistor T3, the The gate of the MOS transistor T4 is connected to the gate of the MOS transistor T3, and its common connection terminal is connected to the control timing module.
本发明具有的有益效果:The beneficial effects that the present invention has:
1、本发明中,控制时序模块分为积分、保持和清零三个阶段,这三个阶段的时间均可以设置成PWM信号周期的整数倍,控制时序模块可以在多个PWM信号周期内进行设置,控制时序模块最少可以被设置成三个PWM信号周期;1. In the present invention, the control sequence module is divided into three stages: integration, holding and clearing. The time of these three stages can be set to an integer multiple of the PWM signal cycle, and the control sequence module can be performed in multiple PWM signal cycles. Setting, the control timing module can be set to at least three PWM signal cycles;
2、本发明基于基本数字逻辑电路和模拟电路组合设计,能够实现在最少三个PWM信号周期内,用一个PWM信号周期来获得准确的反馈信号平均值,同时给系统提供至少一个PWM信号周期的时间用于A/D采用、至少一个PWM信号周期的时间用于调节输出;2. The present invention is based on the combined design of basic digital logic circuit and analog circuit, which can achieve at least three PWM signal cycles, use one PWM signal cycle to obtain an accurate feedback signal average value, and provide the system with at least one PWM signal cycle. time for A/D adoption, time for at least one PWM signal cycle to regulate the output;
3、在控制时序模块的控制下,积分采样器首先能够在大于等于3个PWM信号周期中对反馈信号进行积分并获得反馈信号的平均值,然后进入保持状态,为控制器的A/D转换器提供稳定的采样信号和足够长的采样保持时间,最后进入清零状态,为下一个积分环节做零起点准备。3. Under the control of the control sequence module, the integrating sampler can first integrate the feedback signal in three or more PWM signal cycles and obtain the average value of the feedback signal, and then enter the hold state, which is the A/D conversion of the controller. The controller provides a stable sampling signal and a long enough sampling and holding time, and finally enters the clearing state to prepare for the zero starting point for the next integral link.
附图说明Description of drawings
图1是本发明的一种电路图;Fig. 1 is a kind of circuit diagram of the present invention;
图2是本发明实施例1主要逻辑控制点波形及积分采样器主要波形点波形的一种示意图;2 is a schematic diagram of the main logic control point waveform and the main waveform point waveform of the integral sampler in
图3是本发明实施例2控制时序模块的一种电路图;3 is a circuit diagram of a control sequence module in
图4是本发明实施例2控制逻辑电路的主要输出的一种时序图。FIG. 4 is a timing chart of the main output of the control logic circuit in
图中:1、控制时序模块;2、积分采样器。In the figure: 1. Control timing module; 2. Integral sampler.
具体实施方式Detailed ways
下面通过实施例,并结合附图,对本发明的技术方案作进一步具体的说明。The technical solutions of the present invention will be further described in detail below through embodiments and in conjunction with the accompanying drawings.
实施例1:一种受PWM波驱动负载的反馈信号高速采样保持电路,包括控制时序模块1和积分采样器2,所述控制时序模块1和积分采样器2相连,所述控制时序模块1同步PWM信号并循环输出,所述控制时序模块1通过控制积分采样器2在大于等于3个PWM信号的周期内对反馈信号进行积分、保持、清零,从而获得反馈信号的平均值,所述控制时序模块1控制积分采样器2提供至少一个PWM信号周期的时间用于反馈信号积分、至少一个PWM信号周期的时间保持采样结果和用于A/D采样、至少一个PWM信号周期的时间用于积分采样器清零和调节输出。Embodiment 1: A high-speed sample-and-hold circuit for feedback signals driven by a PWM wave load, comprising a
如图1所示,所述控制时序模块1包括十进制计数器和双四输入端或门芯片,所述十进制计数器的型号为CD4017,所述双四输入端或门芯片的型号为CD4072,所述十进制计数器的输出端为Q0-Q9,所述十进制计数器的输出端Q3通过二极管D2反馈到复位端RESET形成三进制计数器,所述十进制计数器的输出端Q0、输出端Q1和输出端Q2做循环输出,完成三个PWM信号周期的控制时序,分别为:一个PWM信号周期的积分、一个PWM信号周期的保持、一个PWM信号周期的清零。所述双四输入端或门芯片包括芯片U4A和芯片U4B,芯片U4A的第二脚接十进制计数器的输出端Q2,所述芯片U4A的第三脚、第四脚和第五脚均接第二脚,芯片U4A的输出端作为控制时序模块1的输出端CTL1_1,所述芯片U4B的第九脚接十进制计数器的输出端Q1,所述芯片U4B的第十脚接十进制计数器的输出端Q2,所述芯片U4B的第十一脚和第十二脚均接第十脚,所述芯片U4B的输出端作为控制时序模块1的输出端CTL2_1。As shown in FIG. 1 , the
时序设计为:Q0对应积分阶段,Q1对应保持阶段,Q2对应清零阶段。使用Q0和Q1的或非信号来控制积分采样器2清零,使用Q1和Q2的或信号配合Q0和Q1的或非信号完成积分、保持和清零。The timing design is: Q0 corresponds to the integration stage, Q1 corresponds to the hold stage, and Q2 corresponds to the clear stage. Use the NOR signal of Q0 and Q1 to control the
所述积分采样器2包括采样电路和整流电路,所述采样电路分别与整流电路和控制时序模块1相连,所述采样电路对整流电路的输出信号进行积分、保持和清零。The integrating
所述整流电路包括运算放大器U1A、运算放大器U1B、以及外围器件,所述外围器件包括电阻R1、电阻R2和二极管D1,所述运算放大器U1A的同向输入端接地,所述运算放大器U1A的反向输入端分别接电阻R1的一端和电阻R2的一端,所述电阻R1的另一端作为积分采样器2的信号输入端VIN,用于与反馈信号连接,所述运算放大器U1B的同向输入端分别接电阻R2的另一端和二极管D1的正极,所述二极管D1的负极接运算放大器U1A的输出端,所述运算放大器U1B的输出端分别接其反向输入端和采样电路中电阻R3的一端,且其公共连接端作为整流电路输出信号V1的输出端。The rectifier circuit includes an operational amplifier U1A, an operational amplifier U1B, and peripheral devices. The peripheral devices include a resistor R1, a resistor R2, and a diode D1. Connect one end of the resistor R1 and one end of the resistor R2 to the input terminals, respectively, and the other end of the resistor R1 is used as the signal input terminal VIN of the
所述采样电路包括电阻R3、电阻R4、电阻R5、电容C1、MOS管T1、MOS管T2、MOS管T3、MOS管T4、以及运算放大器U2A,所述电阻R3的一端接运算放大器U1B的输出端,所述电阻R3的另一端分别接电阻R4的一端和MOS管T1的漏极,且其公共连接端作为整流电路输出信号V2的输出端,所述MOS管T1的源极接MOS管T2的源极,所述MOS管T2的漏极接地,所述MOS管T1的栅极接MOS管T2的栅极,且其公共连接端接控制时序模块1的输出端CTL2_1,所述运算放大器U2A的同向输入端接地,所述运算放大器U2A的反向输入端分别接电阻R4的另一端、电容C1的一端和MOS管T3的漏极,所述运算放大器U2A的输出端分别接电容C1的另一端和电阻R5的一端,且其公共连接端作为积分采样器2的信号输出端VOUT,所述电阻R5的另一端接MOS管T4的漏极,所述MOS管T4的源极接MOS管T3的源极,所述MOS管T4的栅极接MOS管T3的栅极,且其公共连接端接控制时序模块1的输出端CTL1_1。The sampling circuit includes a resistor R3, a resistor R4, a resistor R5, a capacitor C1, a MOS transistor T1, a MOS transistor T2, a MOS transistor T3, a MOS transistor T4, and an operational amplifier U2A. One end of the resistor R3 is connected to the output of the operational amplifier U1B. The other end of the resistor R3 is respectively connected to one end of the resistor R4 and the drain of the MOS transistor T1, and its common connection end is used as the output end of the output signal V2 of the rectifier circuit, and the source of the MOS transistor T1 is connected to the MOS transistor T2. The source of the MOS transistor T2 is grounded, the gate of the MOS transistor T1 is connected to the gate of the MOS transistor T2, and its common connection terminal is connected to the output terminal CTL2_1 of the
所述整流电路对交流信号进行整流,并传输至采样电路。对应Q0有效阶段,输出端CTL1_1和输出端CTL2_1均输出低电平,MOS管T1、MOS管T2、MOS管T3和MOS管T4关断,积分采样器2对整流电路的输出信号V1进行积分;对应Q1有效阶段,输出端CTL1_1输出低电平,输出端CTL2_1输出高电平,MOS管T1和MOS管T2导通接地,相当于整流电路的输出信号V2点电位为零,此时积分采样器2因输入信号为零,进入保持状态,此保持状态持续一个PWM信号的周期,于此同时,控制时序模块1用Q2的上升沿同步触发进行A/D采样;对应Q2有效阶段,输出端CTL1_1和输出端CTL2_1均输出高电平,MOS管T1、MOS管T2、MOS管T3和MOS管T4导通,整流电路的输出信号V2点电位为零,同时积分电容C1被放电,积分采样器2进入清零状态。对于控制时序模块1,在A/D采样之后,直到清零结束前,有一个PWM信号周期的时间用于调节计算并更新控制输出。The rectifying circuit rectifies the AC signal and transmits it to the sampling circuit. Corresponding to the effective stage of Q0, both the output terminal CTL1_1 and the output terminal CTL2_1 output a low level, the MOS transistor T1, MOS transistor T2, MOS transistor T3 and MOS transistor T4 are turned off, and the
在图1中,十进制计数器、双四输入端或门芯片、运算放大器U1A和运算放大器U2A的工作电压以±5V为例,使用时可根据实际工况需要调整,逻辑电路以CMOS逻辑芯片为主,使用时可根据实际工况需要调整,运算放大器U1A、运算放大器U1B和运算放大器U2A以OPA2227为例,使用时可根据实际工况需要调整。图2为本实施例主要逻辑控制点波形及积分采样器2主要波形点波形的示意图。在图2中,PWM信号以50%占空比状态为例,反馈信号VIN以三角波为例。In Figure 1, the working voltage of the decimal counter, dual four-input terminal OR gate chip, operational amplifier U1A and operational amplifier U2A is taken as an example of ±5V, which can be adjusted according to the actual working conditions. The logic circuit is mainly CMOS logic chip , and can be adjusted according to the actual working conditions during use. The operational amplifier U1A, the operational amplifier U1B and the operational amplifier U2A take the OPA2227 as an example, and can be adjusted according to the actual working conditions during use. FIG. 2 is a schematic diagram of the main logic control point waveform and the main waveform point waveform of the
实施例2:一种受PWM波驱动负载的反馈信号高速采样保持电路,与实施例1的区别仅在于十进制计数器完成一个具有2个PWM信号周期的积分、一个具有2个PWM信号周期的保持、一个具有2个PWM信号周期的清零。Embodiment 2: A high-speed sample-and-hold circuit for feedback signals driven by a PWM wave, the difference from
对于某些具有应用,可能因为反馈信号噪声较大,仅采样一个周期的平均值误差较大,需要采样对个周期来获得精度较高的平均值;某些应用可能系统采样速度慢,需要多个周期的采样保持时间;某些应用可能系统输出反应滞后较大,需要在调节输出后预留几个周期的系统稳定反应时间。在这种情况下,可以对实施例1中的逻辑时序进行简单修改,以获得多个PWM信号周期的积分时间、多个PWM信号周期的采样保持时间、多个PWM信号周期的清零时间。For some applications, the average error of sampling only one cycle may be large due to the high noise of the feedback signal, and it is necessary to sample a pair of cycles to obtain an average value with higher precision; The sample and hold time of one cycle; some applications may have a large delay in the system output response, and it is necessary to reserve several cycles of system stability response time after adjusting the output. In this case, the logic sequence in
如图3所示,为具有2个PWM信号周期的积分时间、2个PWM信号周期的保持时间、2个PWM信号周期的清零时间的控制逻辑电路。CD4017做计数器使用时,可以将积分时间、采样时间和清零时间在3-10个PWM信号周期内进行任意组合分配,如果对计数器进行扩展,则可以在更多PWM信号周期内组合分配。As shown in FIG. 3 , it is a control logic circuit with an integration time of 2 PWM signal cycles, a hold time of 2 PWM signal cycles, and a clearing time of 2 PWM signal cycles. When CD4017 is used as a counter, the integration time, sampling time and clearing time can be assigned in any combination within 3-10 PWM signal cycles. If the counter is expanded, it can be combined and assigned within more PWM signal cycles.
使用时,所述十进制计数器的输出端Q6通过二极管D2反馈到复位端RESET形成三进制计数器,所述十进制计数器的输出端Q0、输出端Q1、输出端Q2、输出端Q3、输出端Q4和输出端Q5做循环输出,所述双四输入端或门芯片包括芯片U4A和芯片U4B,芯片U4A的第二脚接十进制计数器的输出端Q4,芯片U4A的第三脚接十进制计数器的输出端Q5,芯片U4A的第四脚和第五脚均接第三脚,芯片U4A的输出端作为控制时序模块1的输出端CTL1_1,芯片U4B的第九脚接十进制计数器的输出端Q2,芯片U4B的第十脚接十进制计数器的输出端Q3,芯片U4B的第十一脚接十进制计数器的输出端Q4,芯片U4B的第十二脚接十进制计数器的输出端Q5,芯片U4B的输出端作为控制时序模块1的输出端CTL2_1。时序设计为:Q0和Q1对应积分阶段,Q2和Q3对应保持阶段,Q4和Q5对应清零阶段。When in use, the output terminal Q6 of the decimal counter is fed back to the reset terminal RESET through the diode D2 to form a ternary counter, and the output terminal Q0, output terminal Q1, output terminal Q2, output terminal Q3, output terminal Q4 and The output terminal Q5 is used for cyclic output. The dual four-input terminal OR gate chip includes a chip U4A and a chip U4B. The second pin of the chip U4A is connected to the output terminal Q4 of the decimal counter, and the third pin of the chip U4A is connected to the output terminal Q5 of the decimal counter. , the fourth and fifth pins of the chip U4A are connected to the third pin, the output end of the chip U4A is used as the output end CTL1_1 of the
如图4所示,为本实施例控制逻辑电路的主要输出时序图。对应Q0和Q1连续有效阶段,输出端CTL1_1和输出端CTL2_1均输出低电平,MOS管T1、MOS管T2、MOS管T3和MOS管T4关断,积分采样器2对整流电路的输出信号V1进行积分;对应Q2和Q3连续有效阶段,输出端CTL1_1输出低电平,输出端CTL2_1输出高电平,MOS管T1和MOS管T2导通接地,相当于整流电路的输出信号V2点电位为零,此时积分采样器2因输入信号为零,进入保持状态;对应Q4和Q5连续有效阶段,输出端CTL1_1和输出端CTL2_1均输出高电平,MOS管T1、MOS管T2、MOS管T3和MOS管T4导通,整流电路的输出信号V2点电位为零,同时积分电容C1被放电,积分采样器2进入清零状态。As shown in FIG. 4 , the main output timing diagram of the control logic circuit of this embodiment is shown. Corresponding to the continuous valid stage of Q0 and Q1, the output terminal CTL1_1 and the output terminal CTL2_1 both output low level, the MOS transistor T1, MOS transistor T2, MOS transistor T3 and MOS transistor T4 are turned off, and the
综上所述,本发明中,控制时序模块分为积分、保持和清零三个阶段,这三个阶段的时间均可以设置成PWM信号周期的整数倍,控制时序模块可以在多个PWM信号周期内进行设置,控制时序模块最少可以被设置成三个PWM信号周期;本发明基于基本数字逻辑电路和模拟电路组合设计,能够实现在最少三个PWM信号周期内,用一个PWM信号周期来获得准确的反馈信号平均值,同时给系统提供至少一个PWM信号周期的时间用于A/D采用、至少一个PWM信号周期的时间用于调节输出;在控制时序模块的控制下,积分采样器首先能够在大于等于3个PWM信号周期中对反馈信号进行积分并获得反馈信号的平均值,然后进入保持状态,为控制器的A/D转换器提供稳定的采样信号和足够长的采样保持时间,最后进入清零状态,为下一个积分环节做零起点准备。To sum up, in the present invention, the control sequence module is divided into three stages: integration, holding and clearing. The time of these three stages can be set to an integer multiple of the PWM signal period, and the control sequence module can be used in multiple PWM signals. The control timing module can be set to at least three PWM signal cycles; the invention is based on the combined design of basic digital logic circuits and analog circuits, and can achieve at least three PWM signal cycles with one PWM signal cycle to obtain Accurate feedback signal average value, and at the same time provide the system with at least one PWM signal cycle time for A/D adoption, and at least one PWM signal cycle time for adjusting the output; under the control of the control sequence module, the integral sampler can firstly Integrate the feedback signal in more than or equal to 3 PWM signal cycles and obtain the average value of the feedback signal, and then enter the hold state to provide a stable sampling signal and a long enough sampling and holding time for the A/D converter of the controller, and finally Enter the clearing state, and prepare for the zero starting point for the next integral link.
最后,应当指出,以上实施例仅是本发明较有代表性的例子。显然,本发明不限于上述实施例,还可以有许多变形。凡是依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化与修饰,均应认为属于本发明的保护范围。Finally, it should be pointed out that the above embodiments are only representative examples of the present invention. Obviously, the present invention is not limited to the above-mentioned embodiments, and many modifications are possible. Any simple modifications, equivalent changes and modifications made to the above embodiments according to the technical essence of the present invention shall be considered to belong to the protection scope of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010975358.1A CN112104368B (en) | 2020-09-16 | 2020-09-16 | A high-speed sampling and holding circuit for feedback signals of a load driven by a PWM wave |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010975358.1A CN112104368B (en) | 2020-09-16 | 2020-09-16 | A high-speed sampling and holding circuit for feedback signals of a load driven by a PWM wave |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112104368A true CN112104368A (en) | 2020-12-18 |
CN112104368B CN112104368B (en) | 2024-05-24 |
Family
ID=73760221
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010975358.1A Active CN112104368B (en) | 2020-09-16 | 2020-09-16 | A high-speed sampling and holding circuit for feedback signals of a load driven by a PWM wave |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112104368B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB1250528A (en) * | 1967-11-06 | 1971-10-20 | ||
JP2004304494A (en) * | 2003-03-31 | 2004-10-28 | Fuji Electric Holdings Co Ltd | A/D CONVERTER ADOPTING DeltaSigma MODULATION SYSTEM AND CONTROL APPARATUS EMPLOYING THE SAME |
CN101814920A (en) * | 2010-05-05 | 2010-08-25 | 余浩 | Analog-digital converter with sample hold and MDAC (Multiplying Digital-to-Analog Conversion) sharing capacitance and operational amplifier in time sharing way |
CN203399060U (en) * | 2013-08-23 | 2014-01-15 | 四川省迪特尔电子有限公司 | An intelligent electrolytic water machine acquisition signal processing circuit |
CN104316172A (en) * | 2014-10-09 | 2015-01-28 | 中国科学院上海光学精密机械研究所 | Energy detection device for photoetching machine |
CN104568169A (en) * | 2015-01-28 | 2015-04-29 | 江苏物联网研究发展中心 | Infrared focal plane reading circuit with offset cancelling function |
US20150137854A1 (en) * | 2013-03-20 | 2015-05-21 | No. 24 Research Institute Of China Electronic Technology Corporation | High speed sampling front-end circuit |
CN106877278A (en) * | 2016-12-28 | 2017-06-20 | 武汉智能控制工业技术研究院有限公司 | A circuit overload protection system and protection method based on load detection |
WO2019109811A1 (en) * | 2017-12-05 | 2019-06-13 | 广州金升阳科技有限公司 | Battery short-circuit protection circuit for charging power supply |
-
2020
- 2020-09-16 CN CN202010975358.1A patent/CN112104368B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB1250528A (en) * | 1967-11-06 | 1971-10-20 | ||
JP2004304494A (en) * | 2003-03-31 | 2004-10-28 | Fuji Electric Holdings Co Ltd | A/D CONVERTER ADOPTING DeltaSigma MODULATION SYSTEM AND CONTROL APPARATUS EMPLOYING THE SAME |
CN101814920A (en) * | 2010-05-05 | 2010-08-25 | 余浩 | Analog-digital converter with sample hold and MDAC (Multiplying Digital-to-Analog Conversion) sharing capacitance and operational amplifier in time sharing way |
US20150137854A1 (en) * | 2013-03-20 | 2015-05-21 | No. 24 Research Institute Of China Electronic Technology Corporation | High speed sampling front-end circuit |
CN203399060U (en) * | 2013-08-23 | 2014-01-15 | 四川省迪特尔电子有限公司 | An intelligent electrolytic water machine acquisition signal processing circuit |
CN104316172A (en) * | 2014-10-09 | 2015-01-28 | 中国科学院上海光学精密机械研究所 | Energy detection device for photoetching machine |
CN104568169A (en) * | 2015-01-28 | 2015-04-29 | 江苏物联网研究发展中心 | Infrared focal plane reading circuit with offset cancelling function |
CN106877278A (en) * | 2016-12-28 | 2017-06-20 | 武汉智能控制工业技术研究院有限公司 | A circuit overload protection system and protection method based on load detection |
WO2019109811A1 (en) * | 2017-12-05 | 2019-06-13 | 广州金升阳科技有限公司 | Battery short-circuit protection circuit for charging power supply |
Non-Patent Citations (3)
Title |
---|
SURESH LAKHIMSETTY: "A Four-Level Open-End Winding Induction Motor Drive With a Nested Rectifier–Inverter Combination With Two DC Power Supplies", 《IEEE TRANSACTIONS ON POWER ELECTRONICS ( VOLUME: 34, ISSUE: 9, SEPTEMBER 2019)》, 2 February 2018 (2018-02-02), pages 8894 - 8904 * |
常肖;徐龙祥;董继勇;: "磁悬浮轴承数字功率放大器", 机械工程学报, no. 20, 20 October 2010 (2010-10-20), pages 1 - 4 * |
郑雪;蒲世豪;陈常;: "基于DSP的开关电源控制系统的设计", 真空, no. 02, 25 March 2016 (2016-03-25), pages 1 - 4 * |
Also Published As
Publication number | Publication date |
---|---|
CN112104368B (en) | 2024-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104300788B (en) | A kind of adaptive voltage scaling circuit | |
US6744241B2 (en) | Method for driving a switch in a switch-mode converter, and a drive circuit for driving a switch | |
EP2947762A1 (en) | Duty cycle based current estimation in buck converter | |
CN105071649B (en) | Fully digital power factor correction circuit with frequency switching modulation | |
CN102196621B (en) | LED dimming circuit | |
CN203279254U (en) | LED driving circuit and constant current control circuit thereof | |
CN105763052A (en) | Average current control circuit and average current control method | |
WO2024217114A1 (en) | Electric energy conversion circuit, electric energy conversion method and electric energy conversion device | |
CN105553264A (en) | Single chip machine controlled peak current mode switching power supply | |
CN104539170A (en) | Three-level Cuk voltage regulation constant current source and operation method thereof | |
CN206848855U (en) | Power factor correction circuit structure and electric appliance with same | |
CN108762158A (en) | Efficient numerically controlled DC power supply and its test method based on the design of MSP430 microcontrollers | |
CN114552990B (en) | Ripple control Buck converter based on switching current integrator | |
CN110057061B (en) | Humidifier atomizing PID control system | |
CN112104368A (en) | Feedback signal high-speed sampling holding circuit driven by PWM (pulse-Width modulation) wave to load | |
CN103731150B (en) | A kind of analogue quantity output circuit and control method | |
CN208971397U (en) | A kind of Switching Power Supply of output ripple suppression circuit topological structure | |
CN111313678A (en) | Power factor correction circuit | |
CN110277905A (en) | Digital control method of power supply, power factor correction stage, and power factor correction method | |
CN109327145A (en) | A kind of Switching Power Supply of output ripple suppression circuit topological structure | |
CN115694437A (en) | High-linearity voltage-controlled duty cycle generation circuit | |
CN209250489U (en) | power supply circuit and household appliance | |
CN108233683B (en) | Single-phase alternating current signal power amplification control system | |
CN210986536U (en) | L ED drive circuit and L ED power | |
CN205787749U (en) | A kind of control circuit based on FPGA |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20241206 Address after: Building 3, 3rd Floor, Tiancheng Reclamation A-20-1 Plot, No. 940 Jinhai 1st Road, Konggang New Area, Yongxing Street, Longwan District, Wenzhou City, Zhejiang Province, 325000 Patentee after: Wenzhou Huaneng Ultrasonic Technology Co.,Ltd. Country or region after: China Address before: 312000 No. 508 West Ring Road, Zhejiang, Shaoxing Patentee before: SHAOXING University Country or region before: China |