JP5016360B2 - Switching power supply circuit, switching power supply circuit control method, and control program - Google Patents
Switching power supply circuit, switching power supply circuit control method, and control program Download PDFInfo
- Publication number
- JP5016360B2 JP5016360B2 JP2007104407A JP2007104407A JP5016360B2 JP 5016360 B2 JP5016360 B2 JP 5016360B2 JP 2007104407 A JP2007104407 A JP 2007104407A JP 2007104407 A JP2007104407 A JP 2007104407A JP 5016360 B2 JP5016360 B2 JP 5016360B2
- Authority
- JP
- Japan
- Prior art keywords
- pwm signal
- threshold
- output voltage
- triangular wave
- value
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Dc-Dc Converters (AREA)
Description
本発明は、PWM(Pulse Width Modulation)方式のスイッチング電源回路、スイッチング電源回路の制御方法および制御プログラムに関するものであって、特に、検出時間から制御時間までの遅延を最小にし、高速制御を可能にしたスイッチング電源回路、スイッチング電源回路の制御方法および制御プログラムに関する。 The present invention relates to a PWM (Pulse Width Modulation) type switching power supply circuit, a control method for the switching power supply circuit, and a control program, and in particular, minimizes delay from detection time to control time and enables high-speed control. The present invention relates to a switching power supply circuit, a switching power supply circuit control method, and a control program.
従来より、出力電圧を検出し、この出力電圧の検出値に応じたデューティ比のPWM信号を形成し、このPWM信号を用いて、スイッチング素子をオン/オフして出力電圧を制御するようにしたPWM方式のスイッチング電源が知られている。このようなPWM方式のスイッチング電源では、従来、PWM信号を形成するために、アナログ回路が用いられてきた。 Conventionally, an output voltage is detected, a PWM signal having a duty ratio corresponding to a detected value of the output voltage is formed, and the output voltage is controlled by turning on / off the switching element using the PWM signal. A PWM type switching power supply is known. In such a PWM type switching power supply, an analog circuit has been conventionally used to form a PWM signal.
ところが、アナログ回路では、拡張性が低く、また、温度による特性変化や経年変化が大きい。そこで、近年、例えば特許文献1に示されるように、ディジタル回路を用いてPWM信号を形成することが多くなっている。
However, an analog circuit has low expandability, and changes in characteristics and aging with temperature are large. Therefore, in recent years, for example, as shown in
本願出願人は、このようなスイッチング電源回路において、DSP(Digital Signal Processor)を用いてPWM信号を形成するようにしたPWM方式のスイッチング電源の研究開発を進めている。DSPをもちいた場合には、ディジタル信号処理をソフトウェアで記述できるという利点がある。このため、DSPを用いてPWM信号を形成するような構成では、拡張性が高く、温度による特性変化や経年変化が少ないばかりでなく、演算による高度な制御を行うことが可能になり、また、回路内の様々なデータを用いて、多様な機能を実現できる。
従来、DSPを用いてPWM信号を発生させる場合、DSPの内部で三角波を発生させ、出力電圧の検出値に応じて閾値を設定し、三角波と閾値とをコンパレータで比較することで、所望のパルス幅のPWM信号を出力させるようにしている。この場合、従来では、スイッチング周期毎でディジタル化された出力電圧の検出値を取得し、デューティ比の制御量を演算し、デューティ比の制御量の演算値に基づく閾値をセットするようにしている。 Conventionally, when a PWM signal is generated using a DSP, a triangular wave is generated inside the DSP, a threshold is set according to the detected value of the output voltage, and the desired pulse is compared by comparing the triangular wave and the threshold using a comparator. A PWM signal having a width is output. In this case, conventionally, the detection value of the output voltage digitized every switching cycle is acquired, the control amount of the duty ratio is calculated, and the threshold value based on the calculated value of the control amount of the duty ratio is set. .
ところが、このような処理をスイッチング周期の開始時に行うと、出力電圧の検出値がパルス幅に反映されるまでの遅延時間が長くなるという問題が生じる。このような遅延時間は、サンプルホールドとA/D変換による遅れに加えて、そのまま位相遅れとなり、応答性の悪化につながる。 However, when such processing is performed at the start of the switching cycle, there arises a problem that a delay time until the detected value of the output voltage is reflected in the pulse width becomes long. Such a delay time becomes a phase delay as it is in addition to the delay due to sample hold and A / D conversion, leading to deterioration of responsiveness.
そこで、本発明は、上述の課題を鑑みてなされたものであり、検出時間から制御時間までの遅延を最小にし、高速制御を可能にしたスイッチング電源回路、スイッチング電源回路の制御方法および制御プログラムを提供することを目的とする。 Therefore, the present invention has been made in view of the above-described problems, and provides a switching power supply circuit, a switching power supply circuit control method, and a control program that minimize delay from a detection time to a control time and enable high-speed control. The purpose is to provide.
上述の課題を解決するために、本発明は、以下の事項を提案している。
(1)本発明は、出力電圧の検出手段と、該出力電圧の検出値に応じたデューティ比のPWM信号を形成するPWM信号形成手段と、該PWM信号によりオン/オフされるスイッチング素子とからなるスイッチング電源回路において、前記PWM信号形成手段は、前記出力電圧の検出値をディジタル化するA/D変換手段(例えば、図1のA/D11に相当)と、三角波を発生する三角波発生手段(例えば、図3の三角波発生回路12に相当)と、前記出力電圧の検出値に応じてデューティ比を演算し、このデューティ比に基づいて第1の閾値を設定する演算手段(例えば、図3の閾値設定部14に相当)と、前記三角波発生手段からの三角波と前記第1の閾値とを比較してPWM信号を生成する第1の比較手段(例えば、図3のコンパレータ13に相当)と、前記PWM信号のパルス幅に応じて第2の閾値を設定する設定手段(例えば、図8の閾値設定部16に相当)と、前記三角波発生手段からの三角波と前記第2の閾値とを比較して、この比較値に基づいて前記演算手段を起動する第2の比較手段(例えば、図8のコンパレータ15に相当)と、を備えることを特徴とするスイッチング電源回路を提案している。
In order to solve the above-described problems, the present invention proposes the following matters.
(1) The present invention includes an output voltage detection means, a PWM signal formation means for forming a PWM signal having a duty ratio corresponding to the detected value of the output voltage, and a switching element that is turned on / off by the PWM signal. In the switching power supply circuit, the PWM signal forming means includes an A / D conversion means for digitizing the detected value of the output voltage (for example, equivalent to A / D11 in FIG. 1), and a triangular wave generating means for generating a triangular wave ( For example, the calculation unit (equivalent to the triangular
(2)本発明は、出力電圧を検出し、該出力電圧の検出値に応じたデューティ比のPWM信号を形成し、該PWM信号によりスイッチング素子をオン/オフするようにしたスイッチング電源回路の制御方法において、三角波と比較する閾値として、第1の閾値と第2の閾値とを設ける第1のステップと、前記出力電圧の検出値をディジタル化する第2のステップと、前記三角波と前記第2の閾値との比較値に基づいて、演算動作を起動して、前記出力電圧の検出値に応じたデューティ比を演算し、該算出したデューティ比に基づいて、前記第1の閾値を設定する第3のステップ(例えば、図7のステップS114に相当)と、前記三角波と前記第1の閾値とを比較してPWM信号を生成する第4のステップと、前記PWM信号のパルス幅に応じて前記第2の閾値を設定する第5のステップと、を備えることを特徴とするスイッチング電源回路の制御方法を提案している。
( 2 ) The present invention controls a switching power supply circuit that detects an output voltage, forms a PWM signal having a duty ratio according to the detected value of the output voltage, and turns on / off the switching element by the PWM signal. in the method, a threshold value to be compared with the triangular wave, the a first step of providing a first threshold and a second threshold value, a second step of digitizing the detected value of said output voltage, and the triangular wave second based of the comparison value with the threshold value, the start arithmetic operation, calculates the duty ratio corresponding to the detected value of the output voltage, based on the duty ratio thus calculated, setting the
(3)本発明は、出力電圧を検出し、該出力電圧の検出値に応じたデューティ比のPWM信号を形成し、該PWM信号によりスイッチング素子をオン/オフするようにしたスイッチング電源回路の制御プログラムにおいて、三角波と比較する閾値として、第1の閾値と第2の閾値とを設ける第1のステップと、前記出力電圧の検出値をディジタル化する第2のステップと、前記三角波と前記第2の閾値との比較値に基づいて、演算動作を起動して、前記出力電圧の検出値に応じたデューティ比を演算し、該算出したデューティ比に基づいて、前記第1の閾値を設定する第3のステップ(例えば、図7のステップS114に相当)と、前記三角波と前記第1の閾値とを比較してPWM信号を生成する第4のステップと、前記PWM信号のパルス幅に応じて前記第2の閾値を設定する第5のステップと、をコンピュータに実行させるための制御プログラムを提案している。
( 3 ) The present invention controls a switching power supply circuit that detects an output voltage, forms a PWM signal having a duty ratio corresponding to the detected value of the output voltage, and turns on / off the switching element by the PWM signal. in the program, as a threshold value to be compared with the triangular wave, the a first step of providing a first threshold and a second threshold value, a second step of digitizing the detected value of said output voltage, and the triangular wave second based of the comparison value with the threshold value, the start arithmetic operation, calculates the duty ratio corresponding to the detected value of the output voltage, based on the duty ratio thus calculated, setting the
本発明によれば、PWM方式のスイッチング電源において、出力電圧の検出値に応じたPWM信号をディジタル制御で生成する際に、出力電圧の検出値に応じて第1の閾値を設定し、三角波と第1の閾値とを比較してPWM信号を生成すると共に、第2の閾値を設定し、三角波が第2の閾値を越えたときに、ディジタル化された出力電圧の検出値を取得して演算を開始するようにしている。これにより、出力電圧の検出値を取得してから、その検出値を反映してパルス幅が変化するまでの遅延時間が短縮され、高速制御が可能となるという効果がある。 According to the present invention, in the PWM switching power supply, when generating a PWM signal corresponding to the detected value of the output voltage by digital control, the first threshold is set according to the detected value of the output voltage, The PWM signal is generated by comparing with the first threshold value, and the second threshold value is set. When the triangular wave exceeds the second threshold value, the detection value of the digitized output voltage is acquired and calculated. Like to start. As a result, the delay time from when the detected value of the output voltage is acquired until the pulse width is changed to reflect the detected value is shortened, and high speed control is possible.
以下、本発明の実施の形態について図面を参照しながら説明する。 なお、本実施形態における構成要素は適宜、既存の構成要素等との置き換えが可能であり、また、他の既存の構成要素との組合せを含む様々なバリエーションが可能である。したがって、本実施形態の記載をもって、特許請求の範囲に記載された発明の内容を限定するものではない。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. Note that the constituent elements in the present embodiment can be appropriately replaced with existing constituent elements and the like, and various variations including combinations with other existing constituent elements are possible. Therefore, the description of the present embodiment does not limit the contents of the invention described in the claims.
<回路構成>
図1は、本発明の実施形態のスイッチング電源回路を示すものである。
図1において、1a、1b、1cは正極側の電源ラインを示し、2は接地側の電源ラインを示す。電源ライン1a及び電源ライン2には、電源入力端子3及び電源入力端子4が設けられている。また、電源入力端子3と電源入力端子4との間には、入力直流電圧源Vinが接続される。
<Circuit configuration>
FIG. 1 shows a switching power supply circuit according to an embodiment of the present invention.
In FIG. 1, 1a, 1b, and 1c indicate power supply lines on the positive side, and 2 indicates a power supply line on the ground side. A
電源ライン1aと電源ライン2との間には、コンデンサC1が接続され、電源ライン1aと電源ライン1bとの間には、スイッチング素子としてのMOSFET(Metal Oxided Semiconductor FET(Field Effect Transistor))Q1が接続されている。さらに、電源ライン1bと電源ライン2との間には、スイッチング素子としてのMOSFETQ2が接続され、電源ライン1bと電源ライン1cとの間には、インダクタL1が接続されている。
A capacitor C1 is connected between the
電源ライン1cと電源ライン2との間には、コンデンサC2が接続されている。また、電源ライン1cと電源ライン2との間には、抵抗R1と抵抗R2との直列接続が挿入され、電源ライン1c及び電源ライン2からは、電源出力端子5及び電源出力端子6が設けられている。さらに、電源出力端子5と電源出力端子6との間には、負荷RLが接続されている。
A capacitor C2 is connected between the power supply line 1c and the
ここで、抵抗R1及び抵抗R2は、出力電圧の検出抵抗であり、この抵抗R1と抵抗R2との接続点からの検出電圧は、DSP10に送られる。
Here, the resistors R1 and R2 are output voltage detection resistors, and the detection voltage from the connection point between the resistors R1 and R2 is sent to the
DSP10は、A/D(Analog to Digital)コンバータ11を有している。抵抗R1と抵抗R2との接続点からの出力電圧の検出電圧は、DSP10内のA/Dコンバータ11でディジタル化される。そして、DSP10で、この検出電圧に応じたデューティ比のPWM信号が形成される。
The DSP 10 has an A / D (Analog to Digital)
DSP10からのPWM信号は、ドライバ回路21を介して、MOSFETQ1及びQ2に供給される。MOSFETQ1及びQ2は、ドライバ回路21を介されたPWM信号により、交互にスイッチングされる。
The PWM signal from the
ここで、電源出力端子5と電源出力端子6との間の負荷RLの変動等により、出力電圧に変動が生じたとする。この出力電圧の変動は、抵抗R1と抵抗R2との間の検出電圧に現れる。DSP10は、抵抗R1と抵抗R2との接続点からの検出電圧が変動すると、出力電圧の検出値に応じて、PWM信号のデューティ比を変化させる。これにより、MOSFETQ1及びQ2のオン/オフの時間が変化し、出力電圧が制御される。
Here, it is assumed that the output voltage fluctuates due to the fluctuation of the load RL between the power output terminal 5 and the
<DSPの制御>
次に、図2から図10を用いて、本実施形態におけるDSP10での制御について説明する。
<Control of DSP>
Next, control by the
図2は、DSP10の基本的な制御フローを示すものである。
図2に示すように、ここでは、A/Dコンバータ11でディジタル化された出力電圧の検出値を取得し(ステップS11)、デューティ比の制御量を演算し(ステップS12)、デューティ比の制御量の演算値に基づく閾値CMPAをセットする(ステップS13)。
FIG. 2 shows a basic control flow of the
As shown in FIG. 2, here, the detected value of the output voltage digitized by the A /
デューティ比の制御量の演算は、例えば、以下の演算式に基づいて行われる。
U(t)=K0*e(t)+K1*e(t−1)+U(t−1)
K0,K1:係数
e(t):今回の検出値
e(t−1):前回の検出値
U(t):今回のデューティ比
U(t−1):前回のデューティ比
The calculation of the control amount of the duty ratio is performed based on the following arithmetic expression, for example.
U (t) = K0 * e (t) + K1 * e (t-1) + U (t-1)
K0, K1: Coefficient e (t): Current detection value e (t-1): Previous detection value U (t): Current duty ratio U (t-1): Previous duty ratio
図3は、DSP10でのPWM信号の発生の基本構成を示す機能ブロック図である。
図3に示すように、DSP10には、三角波発生回路12と、コンパレータ13と、閾値設定部14とが備えられている。上述のステップS13の処理により、閾値設定部14には、制御量の演算値に基づく閾値CMPAが設定されている。コンパレータ13で、三角波発生回路12からの三角波と、閾値設定部14にセットされた閾値CMPAとが比較される。そして、このコンパレータ13の出力がPWM信号として出力される。
FIG. 3 is a functional block diagram showing a basic configuration for generating a PWM signal in the
As shown in FIG. 3, the
すなわち、図4(A)において、S1が三角波発生回路12からの三角波であり、CMPAが閾値設定部14にセットされた閾値である。三角波S1が閾値CMPAより低いときには、図4(B)に示すように、コンパレータ13からのPWM信号はハイレベルである。三角波S1が閾値CMPAを越えると、コンパレータ13からのPWM信号はローレベルになる。したがって、閾値CMPAを変化させることで、所望のデューティ比のPWM信号を得ることができる。
That is, in FIG. 4A,
上述のように、DSP10を用いた場合、無限ループにより検出電圧をディジタル化していく間に、割り込み処理により、A/Dコンバータ11でディジタル化された出力電圧の検出値を取得し、デューティ比の制御量の演算を開始し、デューティ比の制御量の演算値に基づく閾値を閾値設定部14にセットすることで、所望のデューティ比のPWM信号を発生することができる。
As described above, when the
ところが、このような処理をスイッチング周期に行うと、出力電圧の検出値がパルス幅に反映されるまでの遅延時間が長くなる。 However, when such a process is performed in the switching period, the delay time until the detected value of the output voltage is reflected in the pulse width becomes long.
つまり、図5は、スイッチング周期が開始するタイミングで、ディジタル化された出力電圧の検出値を取得し、デューティ比の制御量の演算を開始し、デューティ比の制御量の演算値に基づく閾値を閾値設定部14にセットするようにした場合のタイミング図を示している。
That is, FIG. 5 obtains a digitized output voltage detection value at the timing when the switching cycle starts, starts calculation of the duty ratio control amount, and sets the threshold value based on the duty ratio control amount calculation value. The timing chart when it is set to the threshold
図5において、t1、t2、…はスイッチング周期の開始を示している。TadcはA/Dコンバータ11の処理時間で、ここでは、A/Dコンバータ11で出力電圧の検出値をサンプルホールドしてから、そのディジタル値が得られるまでの時間を示している。Tcalcは演算時間で、ここでは、A/Dコンバータ11でディジタル化された出力電圧の検出値を取得してから制御量を演算し、制御量に基づく閾値CMPAを設定するまでの時間を示している。Tdly1は検出値がパルス幅に反映されるまでの遅延時間で、ここでは、抵抗R1及びR2の接続点の検出電圧がA/Dコンバータ11に入力されてから、この検出値に基づいてデューティ比が設定されたパルスが出力されるまでの時間を示している。
In FIG. 5, t1, t2,... Indicate the start of the switching cycle. Tadc is the processing time of the A /
図5(A)において、時刻t1では、閾値CMPAは(CMPA=Vth1)であったとする。そして、この時刻t1で、A/Dコンバータ11でディジタル化された出力電圧の検出値を取得して演算を開始する(演算時間Tcalcの開始)。この場合、演算時間Tcalcが終了した後の時刻tb1で、デューティ比の制御量の演算値に基づいて、閾値CMPAが(CMPA=Vth2)に設定されることになる。
In FIG. 5A, it is assumed that the threshold value CMPA is (CMPA = Vth1) at time t1. At time t1, the detection value of the output voltage digitized by the A /
三角波S1は、時刻t1から上昇しており、時刻ta1で閾値CMPA(CMPA=Vth1)を越える。これに対して、閾値CMPAが新たな値に更新されるのは、時刻t1から演算時間Tcalcの後の時刻tb1である。この時刻tb1は、時刻ta1の後になる。したがって、図5(B)に示すように、検出値はパルスP1には反映されない。 The triangular wave S1 rises from time t1, and exceeds the threshold CMPA (CMPA = Vth1) at time ta1. On the other hand, the threshold CMPA is updated to a new value at time tb1 after the calculation time Tcalc from time t1. This time tb1 is after the time ta1. Therefore, as shown in FIG. 5B, the detected value is not reflected in the pulse P1.
この検出値がPWM制御に反映されるのは、遅延時間Tdly1の後のパルスP2になる。すなわち、次のスイッチング周期の開始する時刻t2から、三角波信号S1が上昇していく。このとき、閾値CMPAは、既に、新たに設定された値(CMPA=Vth2)となっている。時刻ta2で、三角波S1が閾値CMPA(CMPA=Vth2)を越え、PWM信号はローレベルとなる。 The detected value is reflected in the PWM control in the pulse P2 after the delay time Tdly1. That is, the triangular wave signal S1 rises from time t2 when the next switching cycle starts. At this time, the threshold value CMPA is already a newly set value (CMPA = Vth2). At time ta2, the triangular wave S1 exceeds the threshold CMPA (CMPA = Vth2), and the PWM signal becomes low level.
このように、スイッチング周期が開始するタイミングt1、t2、…で、A/Dコンバータ11からディジタル化された出力電圧の検出値を取得し、デューティ比の制御量の演算を開始した場合、検出値がパルス幅に反映されるまでに、遅延時間Tdly1が必要になる。この遅延時間Tdly1は、スイッチング周期以上の時間となる。
As described above, when the detection value of the output voltage digitized from the A /
そこで、本発明の第1の実施形態では、デューティ比の制御量の演算値に基づく閾値と三角波とを比較する第1の閾値CMPAの他に、第2の閾値CMPBを設け、三角波が第2の閾値CMPBを越えたときに、A/Dコンバータ11からディジタル化された出力電圧の検出値を取得し、デューティ比の制御量の演算を開始し、デューティ比の制御量の演算値に基づく閾値CMPAをセットするようにしている。これにより、検出時間と制御時間との間の遅延時間が少なくなる。
Therefore, in the first embodiment of the present invention, in addition to the first threshold value CMPA for comparing the threshold value based on the calculated value of the control amount of the duty ratio and the triangular wave, the second threshold value CMPB is provided, and the triangular wave is the second value. When the threshold value CMPB of the output value is exceeded, the detected value of the output voltage digitized from the A /
つまり、図6は、三角波S1が第2の閾値CMPBを越えたことが検出されたら、ディジタル化された出力電圧の検出値を取得し、デューティ比の制御量の演算を開始し、デューティ比の制御量の演算値に基づく閾値CMPAをセットするようにした場合のタイミング図を示している。 That is, FIG. 6 shows that when it is detected that the triangular wave S1 exceeds the second threshold value CMPB, the detection value of the digitized output voltage is acquired, and the calculation of the control amount of the duty ratio is started. The timing diagram when the threshold value CMPA based on the calculated value of the control amount is set is shown.
図6(A)において、時刻t101から、三角波S1が上昇していく。時刻t101では、第1の閾値CMPAは(CMPA=Vth1)であるとする。また、第2の閾値CMPBは(CMPB=Vth101)であるとする。そして、三角波S1が閾値CMPB(CMPB=Vth101)を越えた時点から、A/Dコンバータ11からディジタル化された出力電圧の検出値を取得して、演算を開始するとする(演算時間Tcalcの開始)。
In FIG. 6A, the triangular wave S1 rises from time t101. At time t101, the first threshold value CMPA is assumed to be (CMPA = Vth1). The second threshold value CMPB is (CMPB = Vth101). Then, when the triangular wave S1 exceeds the threshold value CMPB (CMPB = Vth101), the detection value of the digitized output voltage is acquired from the A /
この場合、時刻tc101で、三角波S1が第2の閾値CMPB(CMPB=Vth101)を越える。このため、この時刻tc101で、ディジタル化された出力電圧の検出値が取得されて演算時間Tcalcが開始する。演算時間Tcalcが終了した後の時刻tb101で、デューティ比の制御量の演算値に基づいて、閾値CMPAが(CMPA=Vth2)に設定される。 In this case, the triangular wave S1 exceeds the second threshold value CMPB (CMPB = Vth101) at time tc101. Therefore, at this time tc101, the detected value of the digitized output voltage is acquired, and the calculation time Tcalc starts. At time tb101 after the calculation time Tcalc ends, the threshold CMPA is set to (CMPA = Vth2) based on the calculated value of the control amount of the duty ratio.
時刻t102から、三角波信号S1が上昇し、時刻ta102になると、三角波S1が閾値CMPA(CMPA=Vth2)を越え、PWM信号はローレベルとなる。第1の閾値CMPAが更新される時刻tb101は、時刻ta102より前である。したがって、この場合、パルスP102から、検出値が反映されたことになり、検出値がパルス幅に反映される時間はTdly2になる。 From time t102, the triangular wave signal S1 rises. At time ta102, the triangular wave S1 exceeds the threshold value CMPA (CMPA = Vth2), and the PWM signal becomes low level. The time tb101 when the first threshold CMPA is updated is before the time ta102. Therefore, in this case, the detection value is reflected from the pulse P102, and the time during which the detection value is reflected in the pulse width is Tdly2.
図5と図6とを比較すれば分かるように、スイッチング周期が開始するタイミングで、A/Dコンバータ11からディジタル化された出力電圧の検出値を取得して演算を開始した場合には、図5に示すように、検出値がパルス幅に反映されるまでの遅延時間Tdly1はスイッチング周期以上の時間になる。これに対して、三角波が第2の閾値CMPBを越えたら、A/Dコンバータ11からディジタル化された出力電圧の検出値を取得して演算を開始すると、図6に示すように、検出値がパルス幅に反映されるまでの遅延時間Tdly2は、スイッチング周期以下に短縮されることになる。
As can be seen from a comparison between FIG. 5 and FIG. 6, when the detected value of the output voltage digitized from the A /
本実施形態では、上述のように、三角波が第2の閾値CMPBを越えたら、A/Dコンバータ11からディジタル化された出力電圧の検出値を取得して演算を開始している。この場合のDSP10での制御は、図7のフローチャートに示すようになる。
In the present embodiment, as described above, when the triangular wave exceeds the second threshold value CMPB, the detection value of the output voltage digitized from the A /
三角波と閾値CMPBとを比較し、三角波が閾値CMPBを越えたら演算処理に入る(ステップS111)。割り込み処理では、A/Dコンバータ11でディジタル化された出力電圧の検出値を取得し(ステップS112)、デューティ比の制御量を演算し(ステップS113)、デューティ比の制御量の演算値に基づく閾値CMPAをセットして(ステップS114)、メインルーチンに戻る。
The triangular wave is compared with the threshold value CMPB, and if the triangular wave exceeds the threshold value CMPB, the calculation process is started (step S111). In the interrupt process, the detected value of the output voltage digitized by the A /
図8は、本発明の一実施形態のDSP10をその動作に基づく機能ブロック図で示したものである。
FIG. 8 is a functional block diagram based on the operation of the
図8において、A/Dコンバータ11は、抵抗R1と抵抗R2との接続点からの検出電圧に基づく検出値を出力する。三角波発生回路12は、三角波S1を発生する。閾値設定部14には、演算部17からの演算値に基づいて、閾値CMPAが設定される。コンパレータ13は、三角波S1と閾値CMPAとを比較して、PWM信号を生成する。閾値設定部16には、閾値CMPBが設定される。
In FIG. 8, the A /
コンパレータ15は、三角波S1と閾値CMPBとを比較して、割り込み信号を生成する。演算部17は、コンパレータ15からの割り込み信号を受けて、A/Dコンバータ11からの検出値を取り込み、デューティ比の制御量を演算し、この演算値に基づいて、閾値設定部14には、閾値CMPAを設定する。デューティ比の制御量の演算は、
U(t)=K0*e(t)+K1*e(t−1)+U(t−1)
として求められる。
The
U (t) = K0 * e (t) + K1 * e (t-1) + U (t-1)
As required.
なお、上述の実施形態では、第2の閾値CMPBは、一定の値としているが、第2の閾値CMPBを適宜変更してもよい。 In the above-described embodiment, the second threshold value CMPB is a constant value, but the second threshold value CMPB may be changed as appropriate.
例えば、図9に示すように、PWM信号のハイレベルの期間が小さいようなデューティ比に設定されている場合、第2の閾値CMPB(CMPB=Vth201)が適切に設定されていないと、検出値がパルス幅に反映されるまでの遅延時間Tdly3は、スイッチング周期以上に長くなってしまう。 For example, as shown in FIG. 9, when the duty ratio is set so that the period of the high level of the PWM signal is small, the detected value if the second threshold value CMPB (CMPB = Vth201) is not set appropriately. The delay time Tdly3 until is reflected in the pulse width is longer than the switching period.
このような場合には、図10に示すように、第2の閾値CMPBを(CMPB=Vth201)から(CMPB=Vth301)に下げるようにする。このようにすると、検出値がパルス幅に反映されるまでの遅延時間Tdly4は、スイッチング周期以下に短縮される。 In such a case, as shown in FIG. 10, the second threshold value CMPB is lowered from (CMPB = Vth201) to (CMPB = Vth301). In this way, the delay time Tdly4 until the detected value is reflected in the pulse width is shortened to the switching period or less.
このように、PWM信号のパルス幅に応じて、第2の閾値CMPBの値を制御することにより、どのような条件の場合でも、検出値がパルス幅に反映されるまでの遅延時間を短縮させることが可能になる。 In this way, by controlling the value of the second threshold value CMPB according to the pulse width of the PWM signal, the delay time until the detected value is reflected in the pulse width under any condition is shortened. It becomes possible.
以上、本発明の実施形態について説明したが、本発明は、上述した実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内で様々な変形や応用が可能である。 As mentioned above, although embodiment of this invention was described, this invention is not limited to embodiment mentioned above, A various deformation | transformation and application are possible within the range which does not deviate from the summary of this invention.
なお、ソースとなるDSPのプログラムは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体等のコンピュータ読み取り可能な記録媒体で提供することができる。また、ソースとなるDSPのプログラムは、コンピュータシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピュータシステムに伝送されてもよい。 The DSP program as a source can be provided on a computer-readable recording medium such as a portable medium such as a flexible disk, a magneto-optical disk, a ROM, or a CD-ROM. The source DSP program may be transmitted from the computer system to another computer system via a transmission medium or by a transmission wave in the transmission medium.
1a〜1c:正極側の電源ライン,
2:接地側の電源ライン,
3,4:電源入力端子,
5,6:電源出力端子,
10:DSP,
11:A/Dコンバータ,
12:三角波発生回路,
13,15:コンパレータ,
14,16:閾値設定部,
17:演算部,
21:ドライバ回路,
1a to 1c: power line on the positive electrode side,
2: Power line on the ground side,
3, 4: Power input terminal,
5, 6: power output terminal,
10: DSP,
11: A / D converter,
12: Triangular wave generation circuit,
13, 15: Comparator,
14, 16: Threshold setting unit,
17: arithmetic unit,
21: Driver circuit,
Claims (3)
前記PWM信号形成手段は、
前記出力電圧の検出値をディジタル化するA/D変換手段と、
三角波を発生する三角波発生手段と、
前記出力電圧の検出値に応じてデューティ比を演算し、このデューティ比に基づいて第1の閾値を設定する演算手段と、
前記三角波発生手段からの三角波と前記第1の閾値とを比較してPWM信号を生成する第1の比較手段と、
前記PWM信号のパルス幅に応じて第2の閾値を設定する設定手段と、
前記三角波発生手段からの三角波と前記第2の閾値とを比較して、この比較値に基づいて前記演算手段を起動する第2の比較手段と、
を備えることを特徴とするスイッチング電源回路。 In a switching power supply circuit comprising output voltage detection means, PWM signal formation means for forming a PWM signal having a duty ratio corresponding to the detected value of the output voltage, and a switching element that is turned on / off by the PWM signal,
The PWM signal forming means includes:
A / D conversion means for digitizing the detected value of the output voltage;
A triangular wave generating means for generating a triangular wave;
A calculating means for calculating a duty ratio according to the detected value of the output voltage, and setting a first threshold based on the duty ratio;
First comparing means for generating a PWM signal by comparing the triangular wave with the first threshold value from said triangular wave generating means,
Setting means for setting a second threshold according to the pulse width of the PWM signal;
By comparing the triangular wave with the second threshold value from said triangular wave generating means, a second comparator means for activating said arithmetic means based on the comparison value,
A switching power supply circuit comprising:
三角波と比較する閾値として、第1の閾値と第2の閾値とを設ける第1のステップと、 A first step of providing a first threshold value and a second threshold value as threshold values to be compared with the triangular wave;
前記出力電圧の検出値をディジタル化する第2のステップと、 A second step of digitizing the detected value of the output voltage;
前記三角波と前記第2の閾値との比較値に基づいて、演算動作を起動して、前記出力電圧の検出値に応じたデューティ比を演算し、該算出したデューティ比に基づいて、前記第1の閾値を設定する第3のステップと、 Based on a comparison value between the triangular wave and the second threshold value, an arithmetic operation is started to calculate a duty ratio according to the detected value of the output voltage, and based on the calculated duty ratio, the first A third step of setting a threshold of
前記三角波と前記第1の閾値とを比較してPWM信号を生成する第4のステップと、 A fourth step of generating a PWM signal by comparing the triangular wave with the first threshold;
前記PWM信号のパルス幅に応じて前記第2の閾値を設定する第5のステップと、 A fifth step of setting the second threshold according to a pulse width of the PWM signal;
を備えることを特徴とするスイッチング電源回路の制御方法。 A method for controlling a switching power supply circuit, comprising:
三角波と比較する閾値として、第1の閾値と第2の閾値とを設ける第1のステップと、 A first step of providing a first threshold value and a second threshold value as threshold values to be compared with the triangular wave;
前記出力電圧の検出値をディジタル化する第2のステップと、 A second step of digitizing the detected value of the output voltage;
前記三角波と前記第2の閾値との比較値に基づいて、演算動作を起動して、前記出力電圧の検出値に応じたデューティ比を演算し、該算出したデューティ比に基づいて、前記第1の閾値を設定する第3のステップと、 Based on a comparison value between the triangular wave and the second threshold value, an arithmetic operation is started to calculate a duty ratio according to the detected value of the output voltage, and based on the calculated duty ratio, the first A third step of setting a threshold of
前記三角波と前記第1の閾値とを比較してPWM信号を生成する第4のステップと、 A fourth step of generating a PWM signal by comparing the triangular wave with the first threshold;
前記PWM信号のパルス幅に応じて前記第2の閾値を設定する第5のステップと、 A fifth step of setting the second threshold according to a pulse width of the PWM signal;
をコンピュータに実行させるための制御プログラム。 A control program that causes a computer to execute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007104407A JP5016360B2 (en) | 2007-04-12 | 2007-04-12 | Switching power supply circuit, switching power supply circuit control method, and control program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007104407A JP5016360B2 (en) | 2007-04-12 | 2007-04-12 | Switching power supply circuit, switching power supply circuit control method, and control program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008263713A JP2008263713A (en) | 2008-10-30 |
JP5016360B2 true JP5016360B2 (en) | 2012-09-05 |
Family
ID=39985796
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007104407A Expired - Fee Related JP5016360B2 (en) | 2007-04-12 | 2007-04-12 | Switching power supply circuit, switching power supply circuit control method, and control program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5016360B2 (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5523733B2 (en) * | 2009-04-21 | 2014-06-18 | ルネサスエレクトロニクス株式会社 | Power supply control device and power supply control method |
JP5409152B2 (en) * | 2009-07-14 | 2014-02-05 | 三菱重工業株式会社 | Power supply |
CN102386893B (en) * | 2011-08-02 | 2014-03-12 | 矽力杰半导体技术(杭州)有限公司 | Adjustable square signal generation circuit and switch-type regulator utilizing same |
JP5621795B2 (en) * | 2012-01-31 | 2014-11-12 | 株式会社デンソー | Pulse signal generator |
KR101404568B1 (en) * | 2013-01-24 | 2014-06-11 | 주식회사 에이디텍 | Current mode controlled pulse width modulation converter |
CN103346691B (en) * | 2013-07-04 | 2015-07-08 | 南京航空航天大学 | Digital inverter power supply real-time control system and method for eliminating sampling calculation delay |
KR101708817B1 (en) * | 2014-02-14 | 2017-02-21 | 주식회사 플러스 | Apparatus for controlling power of hydroxyl radical generator |
KR101517396B1 (en) * | 2014-11-28 | 2015-05-06 | 강원대학교산학협력단 | Power dual control apparatus for hydroxyl radical generator |
CN107091952B (en) * | 2017-05-18 | 2023-04-07 | 上海路美思电气有限公司 | Method for judging power and power judging module |
JP7379103B2 (en) * | 2019-11-12 | 2023-11-14 | 日本アビオニクス株式会社 | DC voltage conversion circuit, its drive control method and drive control program |
CN114451589B (en) * | 2022-04-13 | 2022-07-08 | 上海芯圣电子股份有限公司 | Electronic cigarette circuit for realizing constant power output and working method thereof |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11136950A (en) * | 1997-10-27 | 1999-05-21 | Fuji Electric Co Ltd | Output current sampling method of pwm inverter |
JP3409039B2 (en) * | 2001-12-13 | 2003-05-19 | 三菱電機株式会社 | Control device for power converter |
JP3897598B2 (en) * | 2002-01-10 | 2007-03-28 | 松下電器産業株式会社 | Inverter control semiconductor device |
JP3738015B2 (en) * | 2003-03-31 | 2006-01-25 | Tdk株式会社 | Power supply device and control device thereof |
JP4681830B2 (en) * | 2004-06-24 | 2011-05-11 | パナソニック株式会社 | PWM circuit and PWM circuit control method |
JP2006050723A (en) * | 2004-08-02 | 2006-02-16 | Univ Of Electro-Communications | Design apparatus of robust digital controller |
-
2007
- 2007-04-12 JP JP2007104407A patent/JP5016360B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2008263713A (en) | 2008-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5016360B2 (en) | Switching power supply circuit, switching power supply circuit control method, and control program | |
JP5163283B2 (en) | Power factor correction circuit | |
US8823349B2 (en) | Switching regulation controller, switching regulator and controlling method for switching regulation | |
JP7251351B2 (en) | Gate drive and power converter | |
US11005471B2 (en) | Signal generating circuit and power supply device | |
JP5038841B2 (en) | Switching power supply | |
JP5046618B2 (en) | Switching power supply, switching power supply control method, and switching power supply control program | |
TWI784054B (en) | switching regulator | |
JP2017005774A (en) | Digital control power circuit, control circuit for the same, control method, and electronic apparatus using the same | |
US11742784B2 (en) | Method for determining the error voltage of a current converter and three-phase machine having error voltage compensation | |
JP6904283B2 (en) | In-vehicle DCDC converter | |
JP5994740B2 (en) | Switching power supply | |
JP5578861B2 (en) | Switching power supply circuit | |
JP5482576B2 (en) | Inductive load drive control device and drive control method | |
JPWO2019234846A1 (en) | Power converter | |
JP4872621B2 (en) | DC-DC converter and control method thereof | |
JP4162416B2 (en) | High power factor power supply control circuit and power supply having this control circuit | |
US7923979B2 (en) | Control system for dynamically adjusting output voltage of voltage converter | |
JP4966252B2 (en) | Switching power supply | |
JP4942574B2 (en) | Switching power supply, switching power supply control method, and switching power supply control program | |
JP4660987B2 (en) | Inductive load current controller | |
JP4934442B2 (en) | Switching power supply | |
WO2014185240A1 (en) | Voltage converter | |
US11764674B2 (en) | On-board power supply device | |
JP6528634B2 (en) | Control method of switching power supply circuit and power supply device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20081110 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20081113 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100129 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120215 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120228 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120406 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20120605 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120608 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150615 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5016360 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |