JP3469574B2 - Power supply device and power supply circuit control method - Google Patents

Power supply device and power supply circuit control method

Info

Publication number
JP3469574B2
JP3469574B2 JP2002227674A JP2002227674A JP3469574B2 JP 3469574 B2 JP3469574 B2 JP 3469574B2 JP 2002227674 A JP2002227674 A JP 2002227674A JP 2002227674 A JP2002227674 A JP 2002227674A JP 3469574 B2 JP3469574 B2 JP 3469574B2
Authority
JP
Japan
Prior art keywords
power supply
supply circuit
output
supply device
time
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
Application number
JP2002227674A
Other languages
Japanese (ja)
Other versions
JP2003079136A (en
Inventor
浩 島森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2002227674A priority Critical patent/JP3469574B2/en
Publication of JP2003079136A publication Critical patent/JP2003079136A/en
Application granted granted Critical
Publication of JP3469574B2 publication Critical patent/JP3469574B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、DC出力を生成す
る電源回路を備える電源装置に係わる。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a power supply device including a power supply circuit that generates a DC output.

【0002】[0002]

【従来の技術】AC/DCコンバータ、DC/DCコン
バータ、充電器などの電源装置は、様々な分野で広く使
われている。電源装置は、一般に、その損失が小さいこ
とが要求される。特に、近年急速に普及してきているノ
ード型のパーソナルコンピュータや移動体通信における
端末などにおいては、電源装置の損失を低減することは
非常に重要である。
2. Description of the Related Art Power supply devices such as AC / DC converters, DC / DC converters, and chargers are widely used in various fields. The power supply device is generally required to have low loss. In particular, it is very important to reduce the loss of the power supply device in a node type personal computer, a terminal for mobile communication, etc., which has rapidly spread in recent years.

【0003】ところで、パーソナルコンピュータ等は、
通常、互いに異なる複数の電圧を要求する。したがっ
て、電源装置は、この要求に応じるために、互いに異な
る複数の電圧を生成できるようになっているものが多
い。また、各種携帯型の電子機器は、通常、バッテリに
より駆動されるので、充電機能を備えた電源装置も数多
く知られている。
By the way, personal computers and the like are
Usually, a plurality of different voltages are required. Therefore, many power supply devices are capable of generating a plurality of different voltages in order to meet this demand. Further, since various portable electronic devices are usually driven by a battery, many power supply devices having a charging function are known.

【0004】図19は、従来の電源装置の一例の構成図
である。この電源装置は、不図示のバッテリを充電する
ための充電器501、および不図示の負荷に電流を供給
する複数のDC電源502−1〜502−4を備える。
FIG. 19 is a block diagram of an example of a conventional power supply device. This power supply device includes a charger 501 for charging a battery (not shown) and a plurality of DC power supplies 502-1 to 502-4 that supply current to a load (not shown).

【0005】プロセッサ(MPU)503は、この電源
装置の動作を制御するための演算処理装置であり、RO
M504に格納されているプログラムに従って、上位機
器との通信、シーケンス制御、バッテリ管理、状態監視
/表示などを実行する。上位機器は、例えば、この電源
装置がコンピュータに搭載される場合、そのコンピュー
タのCPU(メインプロセッサ)である。プロセッサ5
03は、たとえば、上位機器から電圧レベルの変更指示
などを受信すると、その旨を対応するDC電源に通知す
る。シーケンス制御は、複数のDC電源502−1〜5
02−4を所定の順番に従って投入していく処理、また
は所定の順番に従って切断していく処理である。バッテ
リ管理は、バッテリの残量をモニタする処理等である。
状態監視/表示は、たとえば、この電源装置への入力電
圧や周囲温度を監視し、必要に応じてそれらを表示する
機能である。
A processor (MPU) 503 is an arithmetic processing unit for controlling the operation of this power supply unit, and is an RO unit.
According to the program stored in M504, communication with a higher-level device, sequence control, battery management, status monitoring / display, etc. are executed. The host device is, for example, a CPU (main processor) of the computer when the power supply device is installed in the computer. Processor 5
Upon receiving a voltage level change instruction or the like from a higher-level device, 03 notifies the corresponding DC power supply to that effect. Sequence control is performed by a plurality of DC power sources 502-1 to 50-5.
02-4 is a process of inserting in a predetermined order or a process of disconnecting in a predetermined order. Battery management is a process of monitoring the remaining amount of the battery, and the like.
The status monitoring / display is a function of monitoring the input voltage to the power supply device and the ambient temperature, and displaying them as necessary.

【0006】図20は、従来の電源装置に設けられてい
る充電器またはDC電源の構成図である。充電器および
DC電源は、基本的には同じ構成であり、それぞれ電力
変換部510、アナログ回路部520、および信号送受
信部530を備える。なお、DC電源は、ここでは、D
C/DCコンバータである。
FIG. 20 is a configuration diagram of a charger or a DC power source provided in a conventional power supply device. The charger and the DC power source have basically the same configuration, and each include a power conversion unit 510, an analog circuit unit 520, and a signal transmission / reception unit 530. The DC power source is D here.
It is a C / DC converter.

【0007】電力変換部510は、PWM制御回路52
4からの指示に従って制御されるスイッチング素子(M
OSFET)、整流用ダイオード、エネルギーを蓄積/
放出するためのインダクタ、インダクタ電流または出力
電流を検出するための抵抗、および出力を平滑化するた
めの出力コンデンサを備える。スイッチング素子がオン
状態の期間は、インダクタ電流がランプアップしてゆ
き、負荷に電流が供給されると共に、余った電荷は出力
コンデンサに蓄積される。一方、スイッチング素子がオ
フ状態の期間は、インダクタ電流がランプダウンしてゆ
き、必要に応じて出力コンデンサに蓄積されている電荷
を放出しながら負荷へ電流を供給する。
The power converter 510 includes a PWM control circuit 52.
A switching element (M
OSFET), rectifying diode, energy storage /
An inductor for discharging, a resistor for detecting an inductor current or an output current, and an output capacitor for smoothing the output are provided. While the switching element is in the ON state, the inductor current ramps up, the current is supplied to the load, and excess charge is accumulated in the output capacitor. On the other hand, while the switching element is in the OFF state, the inductor current is ramped down, and the current is supplied to the load while discharging the electric charge accumulated in the output capacitor as necessary.

【0008】アナログ回路部520は、インダクタ電流
を増幅するアンプ521、アンプ521の出力と参照電
圧Vref1との差を増幅するアンプ522、出力電圧と参
照電圧Vref2との差を増幅するアンプ523、これらの
アンプの出力等に従ってスイッチング素子を制御するた
めのPWM信号を生成するPWM制御回路524、およ
びPWM制御回路524に所定周波数のクロックを供給
する発振器(OSC)525を備える。
The analog circuit section 520 includes an amplifier 521 for amplifying the inductor current, an amplifier 522 for amplifying the difference between the output of the amplifier 521 and the reference voltage Vref1, an amplifier 523 for amplifying the difference between the output voltage and the reference voltage Vref2, and these. A PWM control circuit 524 that generates a PWM signal for controlling the switching element according to the output of the amplifier of FIG. 1 and an oscillator (OSC) 525 that supplies a clock of a predetermined frequency to the PWM control circuit 524.

【0009】PWM制御回路524は、出力電圧が参照
電圧Vref2よりも低下すると、スイッチング素子へ供給
するPWM信号のデューティを大きくすることにより、
インダクタ電流を増加させて出力電圧を上昇させる。反
対に、出力電圧が参照電圧Vref2よりも高くなると、P
WM制御回路524は、上記PWM信号のデューティを
小さくすることにより、インダクタ電流を減少させて出
力電圧を低下させる。出力電圧は、このようにして一定
の値に保持される。また、PWM制御回路524は、ア
ンプ522の出力に基づいて過電流を検出すると、上記
PWM信号のデューティを小さくしたり、或いはスイッ
チング素子を強制的にターンオフしたりする。
When the output voltage becomes lower than the reference voltage Vref2, the PWM control circuit 524 increases the duty of the PWM signal supplied to the switching element.
Increase the inductor current to increase the output voltage. On the contrary, when the output voltage becomes higher than the reference voltage Vref2, P
The WM control circuit 524 reduces the duty of the PWM signal to reduce the inductor current and reduce the output voltage. The output voltage is thus held at a constant value. When the PWM control circuit 524 detects an overcurrent based on the output of the amplifier 522, the PWM control circuit 524 reduces the duty of the PWM signal or forcibly turns off the switching element.

【0010】信号送受信部530は、出力電圧が極端に
低下したことを検出してアラーム信号を発生させるコン
パレータ等を備える。また、信号送受信部530は、I
/O回路を介して上位機器から入力される信号を受信す
る機能を備える。
The signal transmitting / receiving unit 530 includes a comparator which detects that the output voltage has dropped extremely and generates an alarm signal. In addition, the signal transmitting / receiving unit 530
It has a function of receiving a signal input from a higher-level device via the / O circuit.

【0011】このように、プロセッサ等を使用して電源
装置の動作を管理・制御する構成は従来から知られてい
た。しかしながら、従来は、電源装置が備える充電器あ
るいは各DC電源は、それぞれ独立してアナログ制御に
よりその出力が調整されていた。
As described above, the configuration for managing and controlling the operation of the power supply device by using the processor or the like has been conventionally known. However, conventionally, the output of the charger or each DC power source included in the power supply device has been independently adjusted by analog control.

【0012】[0012]

【発明が解決しようとする課題】上述したような従来の
電源装置は、以下の点が問題となっていた。 (1) デジタル技術が急速に進歩し、プロセッサの性能が
飛躍的に向上した。このため、低価格で高性能のプロセ
ッサを容易に入手できるようになった。ところが、上述
したような従来の電源装置における使用法では、そのプ
ロセッサの負荷(処理量)は小さい。したがって、高性
能なプロセッサを使用すると、その性能を有効に利用で
きないことになる。
The conventional power supply device as described above has the following problems. (1) Digital technology has advanced rapidly, and processor performance has dramatically improved. Therefore, it has become possible to easily obtain a high-performance processor at a low price. However, in the usage of the conventional power supply device as described above, the load (processing amount) of the processor is small. Therefore, when a high performance processor is used, the performance cannot be effectively used.

【0013】(2) アナログ技術の進歩のスピードは低下
してきており、今後、損失を減少させたり、或いは回路
規模を小さくすることは難しいと推測される。また、ア
ナログ回路を使用していると、電源装置の仕様を変更す
る場合には、部品を変更する必要が生じたり、場合によ
っては回路の配線パターン等をも変更しなければならな
い。
(2) The speed of progress in analog technology is decreasing, and it is presumed that it will be difficult to reduce loss or reduce the circuit scale in the future. Further, when an analog circuit is used, when the specifications of the power supply device are changed, it is necessary to change the parts, and in some cases, the wiring pattern of the circuit must be changed.

【0014】(3) 電源装置内において、プロセッサと他
の回路との間での信号伝達のためのI/O回路またはI
/F回路が多く、小型化および低価格化が困難である。 (4) 電力変換部およびアナログ回路部は、互いに独立し
て製造されることが多い。このことも、製造コストが高
くなる要因の1つである。
(3) In the power supply device, an I / O circuit or I for signal transmission between the processor and other circuits
Since there are many / F circuits, downsizing and cost reduction are difficult. (4) The power conversion unit and the analog circuit unit are often manufactured independently of each other. This is also one of the factors that increase the manufacturing cost.

【0015】本発明は、上述の問題を解決するものであ
る。すなわち、本発明の課題は、仕様変更が容易であ
り、且つ損失の低い電源装置を提供することである。本
発明の他の課題は、電源装置の小型化および低コスト化
を計ることである。本発明のさらに他の課題は、搭載さ
れたプロセッサの性能を有効に利用する電源装置を提供
することである。
The present invention solves the above problems. That is, an object of the present invention is to provide a power supply device in which the specifications can be easily changed and the loss is low. Another object of the present invention is to reduce the size and cost of a power supply device. Still another object of the present invention is to provide a power supply device that effectively utilizes the performance of the installed processor.

【0016】[0016]

【課題を解決するための手段】本発明の電源装置は、プ
ロセッサを備える構成と前提とし、それぞれDC出力を
生成する複数の電源回路と、上記複数の電源回路の各出
力に係わるパラメータをそれぞれデジタルデータに変換
する変換手段とを有する。そして、上記変換手段により
得られたデジタルデータに基づいて上記複数の電源回路
の出力を制御する処理を上記プロセッサに実行させる。
A power supply device of the present invention is premised on a configuration including a processor, and a plurality of power supply circuits for respectively generating DC outputs and parameters relating to respective outputs of the plurality of power supply circuits are respectively digitalized. And conversion means for converting the data. Then, the processor is caused to execute a process of controlling the outputs of the plurality of power supply circuits based on the digital data obtained by the conversion means.

【0017】上記構成によれば、従来はアナログ回路で
実現していた機能を、プロセッサを用いたソフトウェア
処理で置き換えることができる。このため、電源装置と
しての回路規模が小さくなる。
According to the above configuration, the function conventionally realized by an analog circuit can be replaced by software processing using a processor. Therefore, the circuit scale of the power supply device is reduced.

【0018】本発明の他の態様の電源装置は、与えられ
るパルス信号に基づいてDC出力を生成する電源回路
と、上記電源回路の出力に係わる出力パラメータをデジ
タルデータに変換する変換手段と、上記変換手段により
得られるデジタルデータと基準値との差を増幅する演算
手段と、上記演算手段の出力に基づいて上記電源回路に
与えるパルス信号を生成する生成手段を有する。
According to another aspect of the present invention, there is provided a power supply device which generates a DC output based on a pulse signal applied thereto, a conversion means which converts output parameters related to the output of the power supply circuit into digital data, and It has arithmetic means for amplifying the difference between the digital data obtained by the converting means and the reference value, and generating means for generating a pulse signal to be applied to the power supply circuit based on the output of the arithmetic means.

【0019】上記構成において、上記基準値は、電源回
路の出力を定義する値であり、変換手段により変換され
るパラメータに対応するデジタル値である。したがっ
て、演算手段および生成手段は、デジタル処理を実行す
る。このデジタル処理は、プロセッサ等を用いてソフト
ウェアプログラムを実行することにより実現される。
In the above structure, the reference value is a value that defines the output of the power supply circuit, and is a digital value corresponding to the parameter converted by the conversion means. Therefore, the calculation means and the generation means perform digital processing. This digital processing is realized by executing a software program using a processor or the like.

【0020】演算手段は、たとえば、IIRフィルタま
たはFIRフィルタ等のデジタルフィルタで実現する。
また、電源回路のDC出力をPWM方式で制御する場合
は、変換手段により得られるデジタルデータと上記基準
値との差に基づいてその電源回路に与えるパルス信号の
デューティが決定される。このデューティを決定する処
理も、ソフトウェアプログラムを実行することによるデ
ジタル処理である。
The calculation means is realized by a digital filter such as an IIR filter or an FIR filter.
When the DC output of the power supply circuit is controlled by the PWM method, the duty of the pulse signal given to the power supply circuit is determined based on the difference between the digital data obtained by the conversion means and the reference value. The processing for determining the duty is also digital processing by executing a software program.

【0021】[0021]

【発明の実施の形態】本実施形態の電源装置は、パーソ
ナルコンピュータ等の装置に搭載され、その装置が備え
るバッテリを充電するための充電器、およびその装置に
おいて使用される複数のDC電圧をそれぞれ生成する複
数のDC電源を含む。尚、以下では、これらの充電器お
よびDC電源を総称して「電源回路」と呼ぶことがあ
る。
BEST MODE FOR CARRYING OUT THE INVENTION A power supply device according to the present embodiment is mounted on a device such as a personal computer, and a charger for charging a battery included in the device, and a plurality of DC voltages used in the device, respectively. It includes a plurality of DC power supplies to generate. In the following, these chargers and DC power supplies may be collectively referred to as "power supply circuit".

【0022】各電源回路は、PWM(パルス幅変調)に
より各出力電圧をそれぞれ一定の値に保持する。出力電
圧を制御するためのPWM制御では、通常、電源回路の
出力電圧と基準電圧との差に従ってその電源回路に供給
するパルス信号のデューティが変更される。そして、電
源回路は、そのパルス信号に従って出力電圧を調整す
る。すなわち、フィードバック制御が実行される。本実
施形態では、電源装置が備えるプロセッサがこのフィー
ドバック制御を実行する。
Each power supply circuit holds each output voltage at a constant value by PWM (pulse width modulation). In the PWM control for controlling the output voltage, the duty of the pulse signal supplied to the power supply circuit is usually changed according to the difference between the output voltage of the power supply circuit and the reference voltage. Then, the power supply circuit adjusts the output voltage according to the pulse signal. That is, feedback control is executed. In the present embodiment, the processor included in the power supply device executes this feedback control.

【0023】図1は、本実施形態の電源装置の構成図で
ある。充電器10は、この電源装置を搭載する本体装置
(パーソナルコンピュータ等)が備える不図示のバッテ
リを充電する。DC電源20−1〜20−nは、それぞ
れ互いに異なるDC電圧を生成して負荷に供給する。
尚、充電器10およびDC電源20−1〜20−nは、
それぞれ基本的に互いに同じ構成であり、PWM部11
および電力変換部12を備える。
FIG. 1 is a block diagram of the power supply device of this embodiment. The charger 10 charges a battery (not shown) included in a main body device (personal computer or the like) equipped with the power supply device. The DC power supplies 20-1 to 20-n generate different DC voltages and supply them to the load.
The charger 10 and the DC power supplies 20-1 to 20-n are
The PWM units 11 have basically the same configuration as each other.
And a power converter 12.

【0024】I/O部31は、この電源装置を搭載する
本体装置が備えるスイッチからのオン/オフ信号を受信
してプロセッサ(MPU)41に通知する。A/D変換
部32は、充電器10により充電されるバッテリに係わ
る情報(たとえば、バッテリ残量)をデジタルデータに
変換してプロセッサ41に渡す。シリアルI/F部33
は、プロセッサ41と上位機器との間の情報の送受信を
制御する。上位機器とは、たとえば、この電源装置を搭
載する本体装置が備えるCPU(メインプロセッサ)の
ことである。この場合、上位機器は、例えば、その動作
モードを通常モードからレジュームモードに切り換える
際に、電源装置に対してその出力電圧を低下させること
を指示する信号を送る。
The I / O unit 31 receives an on / off signal from a switch provided in the main body device having this power supply device and notifies the processor (MPU) 41 of the signal. The A / D conversion unit 32 converts information related to the battery charged by the charger 10 (for example, remaining battery capacity) into digital data and passes it to the processor 41. Serial I / F section 33
Controls the transmission and reception of information between the processor 41 and the host device. The host device is, for example, a CPU (main processor) included in a main body device in which the power supply device is mounted. In this case, for example, when switching the operation mode from the normal mode to the resume mode, the host device sends a signal instructing the power supply device to reduce its output voltage.

【0025】多重化部(MUX)34は、各電源回路
(充電器10およびDC電源20−1〜20−n)が備
える電力変換部12からのフィードバック信号、および
各電源回路へ供給される入力電圧を受信し、プロセッサ
41からの指示に従ってその中から所定の1つを選択し
て出力する。電力変換部12からのフィードバック信号
は、電源回路の出力に係わるパラメータであり、たとえ
ば、各電源回路の出力電圧や出力電流である。A/D変
換部35は、多重化部34の出力をデジタルデータに変
換する。A/D変換部35により変換されたデジタルデ
ータは、プロセッサ41により読み取られる。セグメン
トコントローラ(SEG)36は、プロセッサ41から
の指示に従って、バッテリ残量等を不図示の表示装置に
表示するための信号を出力する。
The multiplexer (MUX) 34 is provided with a feedback signal from the power converter 12 included in each power supply circuit (charger 10 and DC power supplies 20-1 to 20-n) and an input supplied to each power supply circuit. The voltage is received, and a predetermined one is selected and output according to an instruction from the processor 41. The feedback signal from the power converter 12 is a parameter relating to the output of the power supply circuit, and is, for example, the output voltage or output current of each power supply circuit. The A / D converter 35 converts the output of the multiplexer 34 into digital data. The digital data converted by the A / D converter 35 is read by the processor 41. The segment controller (SEG) 36 outputs a signal for displaying the remaining battery level and the like on a display device (not shown) according to an instruction from the processor 41.

【0026】プロセッサ41は、RAM43を使用しな
がらROM42に格納されているプログラムを実行す
る。プロセッサ41により実行されるプログラムには、
I/O部31、A/D変換部32、シリアルI/F部3
3、およびA/D変換部35からのデジタルデータに従
ってこの電源装置の動作を制御するための処理手順が記
述されている。なお、このプログラムは、図1において
はROM領域に格納されているが、書き換えことができ
るようにしておいてもよい。また、プロセッサ41とし
て、DSP(Digital Signal Processor)を用いてもよ
い。
The processor 41 uses the RAM 43 to execute the programs stored in the ROM 42. The program executed by the processor 41 includes
I / O unit 31, A / D conversion unit 32, serial I / F unit 3
3 and the processing procedure for controlling the operation of the power supply device in accordance with the digital data from the A / D converter 35. Although this program is stored in the ROM area in FIG. 1, it may be rewritable. A DSP (Digital Signal Processor) may be used as the processor 41.

【0027】上記構成において、プロセッサ41は、従
来の技術として上述したシーケンス制御、バッテリ管
理、状態監視/表示などを実行すると共に、電源回路の
出力電圧を一定の値に保持するための制御の実行する。
なお、この電源装置は、更に、クロック信号を生成する
クロック生成部44、およびタイマ45を備える。
In the above configuration, the processor 41 executes the sequence control, the battery management, the status monitoring / display, etc. described above as the prior art, and the control for keeping the output voltage of the power supply circuit at a constant value. To do.
The power supply device further includes a clock generation unit 44 that generates a clock signal and a timer 45.

【0028】図2は、電力変換部12の構成図である。
電力変換部12は、基本的に、図20に示した従来の電
力変換部と同じである。すなわち、電力変換部12は、
PWM部11からの指示に従って制御されるスイッチン
グ素子(図2では、MOSFET)13、整流用ダイオ
ードD、エネルギーを蓄積/放出するためのインダクタ
L、インダクタ電流または出力電流を検出するための抵
抗R、および出力を平滑化するための出力コンデンサC
out を備える。また、電力変換部12は、PWM部11
からのパルス信号を増幅してスイッチング素子13を駆
動するドライバ(駆動回路)14を備える。なお、上記
整流用ダイオードDをMOSトランジスタ等に置き換え
てもよい。この場合、2つのMOSトランジスタは、同
時にオン状態にならないように、互いに逆位相のスイッ
チング制御信号によりオン/オフが行われる。
FIG. 2 is a block diagram of the power converter 12.
The power converter 12 is basically the same as the conventional power converter shown in FIG. That is, the power conversion unit 12 is
A switching element (MOSFET in FIG. 2) 13 controlled according to an instruction from the PWM unit 11, a rectifying diode D, an inductor L for storing / releasing energy, a resistor R for detecting an inductor current or an output current, And an output capacitor C for smoothing the output
with out. In addition, the power conversion unit 12 includes the PWM unit 11
A driver (driving circuit) 14 that amplifies the pulse signal from the device and drives the switching element 13 is provided. The rectifying diode D may be replaced with a MOS transistor or the like. In this case, the two MOS transistors are turned on / off by switching control signals having opposite phases so that they are not turned on at the same time.

【0029】DC入力は、たとえば、AC/DCコンバ
ータまたはDC/DCコンバータにより生成される。D
C出力は、負荷(バッテリを含む)に供給される。上記
構成において、スイッチング素子13がオン状態の期間
は、インダクタ電流がランプアップしてゆき、負荷に電
流が供給されるとともに、余った電荷は出力コンデンサ
Cout に蓄積される。一方、スイッチング素子13がオ
フ状態の期間は、インダクタ電流がランプダウンしてゆ
き、必要に応じて出力コンデンサCout に蓄積されてい
る電荷を放出しながら負荷へ電流を供給する。したがっ
て、電力変換部12の出力電圧、すなわち各電源回路の
出力電圧は、スイッチング素子13のオン時間とオフ時
間との比率に応じて変化させることができる。
The DC input is generated by, for example, an AC / DC converter or a DC / DC converter. D
The C output is supplied to the load (including the battery). In the above configuration, while the switching element 13 is in the ON state, the inductor current ramps up, the current is supplied to the load, and the excess charge is accumulated in the output capacitor Cout. On the other hand, while the switching element 13 is in the OFF state, the inductor current is ramped down, and the current is supplied to the load while discharging the electric charge accumulated in the output capacitor Cout as necessary. Therefore, the output voltage of the power conversion unit 12, that is, the output voltage of each power supply circuit can be changed according to the ratio of the ON time and the OFF time of the switching element 13.

【0030】ところで、スイッチング素子13のオン/
オフ状態は、PWM部11により生成されるパルス信号
に従って制御される。本実施例では、パルス信号の
「H」をスイッチング素子13のオン状態に対応させ、
そのパルス信号の「L」をオフ状態に対応させる。した
がって、電源回路の出力電圧は、そのパルス信号の
「H」時間と「L」時間との比率に従って変化させるこ
とができる。
On / off of the switching element 13
The off state is controlled according to the pulse signal generated by the PWM unit 11. In this embodiment, “H” of the pulse signal is made to correspond to the ON state of the switching element 13,
The "L" of the pulse signal is made to correspond to the off state. Therefore, the output voltage of the power supply circuit can be changed according to the ratio of the “H” time and the “L” time of the pulse signal.

【0031】ここで、PWMにおいては、一般に、スイ
ッチング素子13を制御するためのパルス信号の周期は
一定である。したがって、そのパルス信号のデューティ
を指定するためには、そのパルス信号の1周期内の
「H」時間または「L」時間を指定すればよい。本実施
形態では、パルス信号の周期および「H」の時間を指定
することにより、デューティを指定する。なお、以下で
は、パルス信号の「H」をスイッチング素子13のオン
状態に対応させるので、パルス信号が「H」である時間
を「オン時間Ton」を呼ぶことがある。
Here, in PWM, the period of the pulse signal for controlling the switching element 13 is generally constant. Therefore, in order to specify the duty of the pulse signal, "H" time or "L" time within one cycle of the pulse signal may be specified. In the present embodiment, the duty is specified by specifying the period of the pulse signal and the time of “H”. In the following, since "H" of the pulse signal corresponds to the ON state of the switching element 13, the time when the pulse signal is "H" may be referred to as "ON time Ton".

【0032】電力変換部12は、この電源回路の出力に
係わるパラメータをフィードバック信号として多重化部
34へを送る。この実施例で使用されるパラメータは、
出力端子の電圧(出力電圧Vout )、およびインダクタ
Lと抵抗Rとの接続点の電圧(電圧Vs )である。これ
らのパラメータは、上述したように、A/D変換部35
によりデジタルデータに変換されてプロセッサ41に送
られる。プロセッサ41は、このデジタルデータによ
り、出力電圧Vout を検出すると共に、「(電圧Vs −
出力電圧Vout )/R」を演算することにより、出力電
流を検出する。
The power conversion unit 12 sends the parameter relating to the output of the power supply circuit to the multiplexing unit 34 as a feedback signal. The parameters used in this example are
It is the voltage at the output terminal (output voltage Vout) and the voltage at the connection point between the inductor L and the resistor R (voltage Vs). As described above, these parameters are stored in the A / D conversion unit 35.
It is converted into digital data by and is sent to the processor 41. The processor 41 detects the output voltage Vout based on this digital data, and at the same time, displays “(voltage Vs −
The output current is detected by calculating the output voltage Vout) / R ".

【0033】図3は、本実施形態における出力電圧制御
について説明する図である。ここでは、図1に示す充電
器10およびDC電源20−1〜20−nの中の任意の
1つの電源回路に着目して説明する。なお、図3におい
ては、この着目する電源回路を識別する番号を「i」と
している。また、図3では、出力電圧制御に直接的には
関係していない要素については省略している。
FIG. 3 is a diagram for explaining the output voltage control in this embodiment. Here, an explanation will be given focusing on any one power supply circuit in the charger 10 and the DC power supplies 20-1 to 20-n shown in FIG. In FIG. 3, the number for identifying the power supply circuit of interest is designated as "i". Further, in FIG. 3, elements that are not directly related to output voltage control are omitted.

【0034】演算部51は、電力変換部12からA/D
変換部35を介して受信するパラメータに基づいて、電
力変換部12のスイッチング素子13を制御するための
パルス信号のパルス幅(即ち、そのパルス信号のデュー
ティ)を演算する。使用するパラメータは、ここでは、
電力変換部12の出力電圧である。したがって、演算部
51は、出力電圧をデジタルデータに変換した値である
Vout を受け取る。なお、この演算部51は、ROM4
2に格納されている所定のプログラムがプロセッサ41
によって実行されることにより実現される。
The calculation unit 51 is provided with an A / D converter from the power conversion unit 12.
The pulse width of the pulse signal (that is, the duty of the pulse signal) for controlling the switching element 13 of the power conversion unit 12 is calculated based on the parameter received via the conversion unit 35. The parameters used here are
It is the output voltage of the power converter 12. Therefore, the arithmetic unit 51 receives Vout which is a value obtained by converting the output voltage into digital data. It should be noted that this calculation unit 51 is
2 is a predetermined program stored in the processor 41
It is realized by being executed by.

【0035】演算部51は、デジタルフィルタ52およ
びパルス幅計算部53を備える。デジタルフィルタ52
は、後述詳しく説明するが、出力電圧Vout と参照値V
refとの差を増幅して出力する。この参照値Vref は、
この電源回路が保持すべき出力電圧の代用値である。た
とえば、この電源回路が保持すべき出力電圧を2.5V
とすると、参照値Vref は、「2.5V」がA/D変換
部35に入力されたならば得られるであろうデジタルデ
ータである。なお、充電器10およびDC電源20−1
〜20−nの各出力電圧を制御する処理を記述したプロ
グラムは、基本的には互いに同じであるが、異なる出力
電圧を得るためにこの参照値Vref の値を互いに変えて
いる。
The calculation unit 51 includes a digital filter 52 and a pulse width calculation unit 53. Digital filter 52
Will be described later in detail, the output voltage Vout and the reference value V
The difference from ref is amplified and output. This reference value Vref is
This is a substitute value for the output voltage that this power supply circuit should hold. For example, the output voltage that this power supply circuit should hold is 2.5V.
Then, the reference value Vref is digital data that would be obtained if “2.5V” was input to the A / D conversion unit 35. The charger 10 and the DC power source 20-1
The programs that describe the processing for controlling the output voltages of .about.20-n are basically the same as each other, but the values of the reference value Vref are changed to obtain different output voltages.

【0036】パルス幅計算部53は、後述詳しく説明す
るが、デジタルフィルタ52の出力に基づいて「オン時
間Ton」を算出する。このオン時間は、スイッチング素
子13のスイッチング周期内においてそのスイッチング
素子13をオン状態にする時間である。パルス幅計算部
53は、このオン時間をPWM部11のオン時間レジス
タ62に書き込む。
The pulse width calculator 53 calculates the “on time Ton” based on the output of the digital filter 52, which will be described in detail later. This on-time is the time during which the switching element 13 is turned on within the switching cycle of the switching element 13. The pulse width calculation unit 53 writes this ON time in the ON time register 62 of the PWM unit 11.

【0037】PWM部11は、周期レジスタ61、オン
時間レジスタ62、タイマ63、およびパルス生成部6
4を備える。周期レジスタ61は、出力するパルス信号
の周期を格納する記憶領域である。このパルス信号の周
期は、スイッチング素子13のスイッチング周期であ
り、この電源装置の初期設定シーケンスにおいて周期レ
ジスタ61に書き込まれる。オン時間レジスタ62は、
演算部51により算出されたオン時間を格納する記憶領
域である。タイマ63は、パルス信号の立上りエッジま
たは立下りエッジからの経過時間を計時する。パルス生
成部64は、タイマ63を使用し、周期レジスタ61に
格納されている周期およびオン時間レジスタ62に格納
されているオン時間に従ってパルス信号を生成する。
The PWM section 11 includes a period register 61, an on-time register 62, a timer 63, and a pulse generating section 6.
4 is provided. The cycle register 61 is a storage area for storing the cycle of the pulse signal to be output. The cycle of this pulse signal is the switching cycle of the switching element 13, and is written in the cycle register 61 in the initialization sequence of this power supply device. The on-time register 62 is
This is a storage area for storing the on-time calculated by the calculation unit 51. The timer 63 measures the elapsed time from the rising edge or the falling edge of the pulse signal. The pulse generator 64 uses the timer 63 to generate a pulse signal in accordance with the cycle stored in the cycle register 61 and the ON time stored in the ON time register 62.

【0038】PWM部11の出力は、上述したように、
電力変換部12においてスイッチング素子13を制御す
るスイッチング信号として使用される。このように、本
実施形態の電源装置は、従来の電源装置のアナログ部の
機能を演算部51およびPWM部11により実行させる
ので、回路規模が小さくなる。また、本実施形態では、
アナログ回路をデジタル回路に置き換えるためにA/D
変換器が必要になるが、多重化部34を用いることによ
り、複数の電源回路が1つのA/D変換器を共用するの
で、回路規模はさほど大きくならない。さらに、本実施
形態の電源装置では、電力制御部12以外の部分をすべ
てLSI化することができるので、小型化、低コスト
化、および高機能化に寄与する。さらに、本実施形態
は、従来の電源装置のアナログ部をソフトウェアプログ
ラムで記述した構成である。したがって、従来のアナロ
グ回路により提供されていた機能を変更する必要が生じ
た場合であっても、プログラムを書き換えるだけで簡単
に対処できる。
The output of the PWM section 11 is, as described above,
It is used as a switching signal for controlling the switching element 13 in the power conversion unit 12. As described above, in the power supply device of the present embodiment, the function of the analog unit of the conventional power supply device is executed by the arithmetic unit 51 and the PWM unit 11, so that the circuit scale is reduced. Further, in this embodiment,
A / D to replace analog circuits with digital circuits
Although a converter is required, since the plurality of power supply circuits share one A / D converter by using the multiplexing unit 34, the circuit scale does not become so large. Furthermore, in the power supply device according to the present embodiment, all parts other than the power control unit 12 can be integrated into an LSI, which contributes to downsizing, cost reduction, and high functionality. Furthermore, the present embodiment has a configuration in which the analog part of the conventional power supply device is described by a software program. Therefore, even if the function provided by the conventional analog circuit needs to be changed, it can be easily dealt with by simply rewriting the program.

【0039】次に、演算部51の実現方法について説明
する。デジタルフィルタ52は、基本的には、図20に
示した従来の電源装置において使用されていたアンプ5
23の特性(特に、G−Φ特性)をそのままインプリメ
ントするように設計する。従来の電源装置において使用
されていたアンプ523の具体的な回路の一例を図4
(a) に示す。このアンプの伝達関数は、下式の通りであ
る。
Next, a method of realizing the arithmetic unit 51 will be described. The digital filter 52 is basically the amplifier 5 used in the conventional power supply device shown in FIG.
It is designed so that the characteristics of 23 (in particular, the G-Φ characteristics) are directly implemented. An example of a specific circuit of the amplifier 523 used in the conventional power supply device is shown in FIG.
Shown in (a). The transfer function of this amplifier is as follows.

【0040】[0040]

【数1】 [Equation 1]

【0041】デジタルフィルタとしては、例えば、FI
R(finite impulse response )フィルタおよびIIR
(infinite impulse response )フィルタが広く知られ
ている。デジタルフィルタ52は、いずれのデジタルフ
ィルタを用いても実現できるが、この実施例では、II
Rフィルタを用いるものとする。
As the digital filter, for example, FI
R (finite impulse response) filter and IIR
(Infinite impulse response) filters are widely known. The digital filter 52 can be realized by using any digital filter, but in this embodiment, II
An R filter is used.

【0042】アナログアンプ(アナログフィルタ)の特
性をそのままIIRフィルタに持たせるためには、s−
z変換を用いる。s−z変換は、s領域におけるアナロ
グフィルタの伝達関数G(s) をz領域へ変換する方法で
ある。
To give the IIR filter the characteristics of the analog amplifier (analog filter) as it is, s-
Use z-transform. The s-z conversion is a method of converting the transfer function G (s) of the analog filter in the s domain into the z domain.

【0043】IIRを用いて作成した図4(a) に示すア
ンプ(アナログフィルタ)と等価なデジタルフィルタを
図4(b) に示す。このデジタルフィルタは、加算器7
1、係数乗算器72〜74、および単位遅延素子75〜
76を有する。図4(a) に示すアンプを図4(b) に示す
デジタルフィルタに置き換える方法は既知であるが、以
下に示しておく。
FIG. 4 (b) shows a digital filter equivalent to the amplifier (analog filter) shown in FIG. 4 (a) created by using IIR. This digital filter has an adder 7
1, coefficient multipliers 72-74, and unit delay element 75-
Has 76. Although a method of replacing the amplifier shown in FIG. 4 (a) with the digital filter shown in FIG. 4 (b) is known, it will be described below.

【0044】z領域における伝達関数は、以下の通りで
ある。
The transfer function in the z domain is as follows.

【0045】[0045]

【数2】 [Equation 2]

【0046】上記(1) 式、および(2) 式により、以下が
得られる。
From the above equations (1) and (2), the following is obtained.

【0047】[0047]

【数3】 [Equation 3]

【0048】上記(3) 式により、図4(b) に示す構成が
得られる。また、係数乗算器72〜74に設定される係
数は、それぞれ上記(4) 式〜(6) 式により表される。上
記(3) 式((4) 式〜(6) 式を含む)は、ソフトウェアプ
ログラム内に記述され、プロセッサ41がそのプログラ
ムを実行することによりデジタルフィルタ52が実現さ
れる。このように、本実施形態では、従来の電源装置に
おいて使用されていたアナログアンプの動作および特性
をソフトウェアプログラムで記述し、そのプログラムを
実行することによってそのアナログアンプと同じ動作を
提供する。したがって、アナログアンプの特性を変更す
る際には、そのプログラムを書き換えるだけでよいので
簡単である。
From the equation (3), the configuration shown in FIG. 4 (b) is obtained. The coefficients set in the coefficient multipliers 72 to 74 are expressed by the above equations (4) to (6), respectively. The expressions (3) (including the expressions (4) to (6)) are described in a software program, and the processor 41 executes the program to realize the digital filter 52. As described above, in the present embodiment, the operation and characteristics of the analog amplifier used in the conventional power supply device are described by a software program, and the program is executed to provide the same operation as the analog amplifier. Therefore, when changing the characteristics of the analog amplifier, it is only necessary to rewrite the program, which is easy.

【0049】図5は、演算部51の動作を説明するフロ
ーチャートである。ここでは、図3に係わる説明と同様
に、充電器10およびDC電源20−1〜20−nの中
の任意の1つの電源回路に着目して説明する。また、参
照値Vref は予め設定されているものとする。なお、こ
のフローチャートの処理は、タイマ割込などにより所定
間隔ごとに実行される。
FIG. 5 is a flow chart for explaining the operation of the arithmetic unit 51. Here, similar to the description related to FIG. 3, the description will be given focusing on any one power supply circuit in the charger 10 and the DC power supplies 20-1 to 20-n. Further, the reference value Vref is set in advance. The process of this flowchart is executed at predetermined intervals by a timer interrupt or the like.

【0050】ステップS1では、出力電圧Vout を取得
する。具体的には、まず、プロセッサ41が、複数の電
源回路の中から1つの電源回路を指定し、その指定した
電源回路を多重化部34に通知する。多重化部34に
は、複数の電源回路の出力電圧が入力されている。多重
化部34は、上記プロセッサ41からの通知に従って、
指定された電源回路の出力電圧をA/D変換部35へ出
力する。そして、プロセッサ41がこのA/D変換部3
5による変換結果であるデジタルデータ(出力電圧Vou
t )を読み込む。
In step S1, the output voltage Vout is acquired. Specifically, first, the processor 41 specifies one power supply circuit from a plurality of power supply circuits and notifies the multiplexing unit 34 of the specified power supply circuit. Output voltages of a plurality of power supply circuits are input to the multiplexing unit 34. The multiplexing unit 34, according to the notification from the processor 41,
The output voltage of the designated power supply circuit is output to the A / D conversion unit 35. Then, the processor 41 uses the A / D converter 3
Digital data (output voltage Vou
t) is read.

【0051】ステップS2では、参照値Vref を取得す
る。ステップS3では、ステップS1で取得した出力電
圧Vout とステップS2で取得した参照値Vref との差
を算出する。そして、ステップS4においてデジタルフ
ィルタ演算を実行する。この処理は、ステップS3の算
出結果を図4(b) に示したデジタルフィルタに入力する
処理である。具体的には、ステップS3の算出結果を上
記(3) 式に代入する演算である。
In step S2, the reference value Vref is acquired. In step S3, the difference between the output voltage Vout acquired in step S1 and the reference value Vref acquired in step S2 is calculated. Then, in step S4, a digital filter calculation is executed. This process is a process of inputting the calculation result of step S3 to the digital filter shown in FIG. Specifically, it is an operation for substituting the calculation result of step S3 into the equation (3).

【0052】ステップS5では、デジタルフィルタ演算
の結果に基づいて、PWM部11において生成するパル
ス信号のデューティを算出する。ここで、パルス信号の
デューティについて図6を参照しながら簡単に説明して
おく。
In step S5, the duty of the pulse signal generated in the PWM unit 11 is calculated based on the result of the digital filter calculation. Here, the duty of the pulse signal will be briefly described with reference to FIG.

【0053】パルス信号は、アナログ回路においては、
一般に、三角波を用いて生成することが多い。三角波を
用いるとすると、ステップS5は、三角波のレベルとデ
ジタルフィルタ演算の結果とを比較する処理に相当す
る。この場合、デジタルフィルタ52の出力をVamp 、
三角波の周期をT、三角波の最大値をVmax とすると、
生成されるパルス信号のデューティは下記の式で表され
る。 D = Ton/T = (Vmax −Vamp )/Vmax ・・・(7) したがって、本実施形態では、三角波の最大値Vmax を
予め設定しておき、デジタルフィルタ52の出力を上記
(7) 式に代入することにより、パルス信号のデューティ
を得る。
In an analog circuit, the pulse signal is
Generally, it is often generated using a triangular wave. If a triangular wave is used, step S5 corresponds to the process of comparing the level of the triangular wave with the result of the digital filter calculation. In this case, the output of the digital filter 52 is Vamp,
If the period of the triangular wave is T and the maximum value of the triangular wave is Vmax,
The duty of the generated pulse signal is represented by the following formula. D = Ton / T = (Vmax-Vamp) / Vmax (7) Therefore, in the present embodiment, the maximum value Vmax of the triangular wave is set in advance, and the output of the digital filter 52 is set to the above value.
By substituting in equation (7), the duty of the pulse signal is obtained.

【0054】ステップS6では、ステップS5で求めた
デューティが予め決められている最大設定値以下である
か否かを調べる。ステップS5で求めたデューティが予
め決められている最大設定値以下であれば、ステップS
7において、そのデューティを用いて上記(7) 式に従っ
てオン時間Tonを求める。すなわち、Ton=D・Tを演
算する。一方、ステップS5で求めたデューティが予め
決められている最大設定値よりも大きかった場合には、
ステップS8において、ステップS5で求めたデューテ
ィDの代わりに最大設定値Dmax を用いてオン時間Ton
を求める。すなわち、Ton=Dmax ・Tを演算する。
In step S6, it is checked whether the duty obtained in step S5 is less than or equal to a predetermined maximum set value. If the duty obtained in step S5 is less than or equal to the predetermined maximum set value, step S5
In 7, the on-time Ton is calculated according to the above equation (7) using the duty. That is, Ton = D · T is calculated. On the other hand, when the duty obtained in step S5 is larger than the predetermined maximum set value,
In step S8, the maximum set value Dmax is used instead of the duty D obtained in step S5, and the ON time Ton
Ask for. That is, Ton = Dmax · T is calculated.

【0055】ステップS9では、上記ステップS7また
はS8において算出されたオン時間をPWM部11のオ
ン時間レジスタ62に書き込む。上記ステップS1〜S
9は、所定間隔ごとに繰り返し実行される。このため、
オン時間レジスタ62には、電源回路の出力電圧に概ね
リアルタイムに対応したオン時間が常に書き込まれてい
ることになる。また、上記処理は、複数の電源回路に対
してサイクリックに実行され、各演算結果は、対応する
PWM部11のオン時間レジスタ62に書き込まれる。
In step S9, the on-time calculated in step S7 or S8 is written in the on-time register 62 of the PWM section 11. Steps S1 to S above
9 is repeatedly executed at predetermined intervals. For this reason,
In the on-time register 62, the on-time corresponding to the output voltage of the power supply circuit almost in real time is always written. Further, the above processing is cyclically executed for the plurality of power supply circuits, and the respective calculation results are written in the corresponding on-time register 62 of the PWM unit 11.

【0056】図7は、図5に示した処理の変形例であ
る。図5に示した処理では、オン時間を算出する毎にオ
ン時間レジスタ62を更新する。これに対して、図7に
示す処理では、新たに算出したオン時間がすでにオン時
間レジスタ62に書き込まれている場合には、プロセッ
サ41からオン時間レジスタ62へのアクセスを省略す
る。
FIG. 7 is a modification of the process shown in FIG. In the process shown in FIG. 5, the on-time register 62 is updated every time the on-time is calculated. On the other hand, in the processing shown in FIG. 7, when the newly calculated on-time is already written in the on-time register 62, the access from the processor 41 to the on-time register 62 is omitted.

【0057】オン時間を算出する処理は、図5に示した
ステップS1〜S8と同じである。ステップS11およ
びS12では、新たに算出したオン時間と、以前の演算
により得られてRAM43に保持してあるオン時間とを
比較する。これら2つのオン時間が互いに一致した場合
には、新たに算出したオン時間は既にPWM部11のオ
ン時間レジスタ62に書き込まれているものとみなし、
PWM部11へアクセスすることなく処理を終了する。
一方、上記2つのオン時間が互いに一致しなかった場合
には、ステップS9において、その新たに算出したオン
時間でオン時間レジスタ62を更新する。なお、この場
合、その新たに算出したオン時間をRAM43に格納
し、RAM43に先に保持してあったオン時間を消去す
る。
The process for calculating the on-time is the same as steps S1 to S8 shown in FIG. In steps S11 and S12, the newly calculated on-time is compared with the on-time obtained by the previous calculation and stored in the RAM 43. If these two on-times match each other, it is considered that the newly calculated on-time has already been written in the on-time register 62 of the PWM unit 11,
The process ends without accessing the PWM unit 11.
On the other hand, if the two on-times do not match each other, the on-time register 62 is updated with the newly calculated on-time in step S9. In this case, the newly calculated ON time is stored in the RAM 43, and the ON time previously held in the RAM 43 is deleted.

【0058】上記処理により、プロセッサ41とPWM
部11との間の信号の伝送を減らすことができる。ここ
で、パルス信号のデューティを算出するために用いた三
角波を決定する方法を説明しておく。PWM方式でスイ
ッチング素子のオン/オフ状態を制御することによって
電源回路の出力電圧を調整する場合、一般に、パルス信
号のデューティは、下式により近似される。ここで、V
INは、電源回路へのDC入力電圧であり、VOUT は、電
源回路の出力電圧である。
By the above processing, the processor 41 and the PWM
It is possible to reduce the transmission of signals to and from the unit 11. Here, a method of determining the triangular wave used to calculate the duty of the pulse signal will be described. When the output voltage of the power supply circuit is adjusted by controlling the on / off state of the switching element by the PWM method, the duty of the pulse signal is generally approximated by the following equation. Where V
IN is a DC input voltage to the power supply circuit, and VOUT is an output voltage of the power supply circuit.

【0059】D=VOUT /VIN ・・・(8) したがって、上記(7) 式、および(8) 式により、三角波
の最大値Vmax は、以下のように表される。
D = VOUT / VIN (8) Therefore, the maximum value Vmax of the triangular wave is expressed by the following equations (7) and (8) as follows.

【0060】 Vmax = Vamp ・VIN/(VIN−VOUT ) ・・・(9) ここで、デジタルフィルタ52の出力であるVamp は、
電源回路に供給される入力電圧VINに依存して変化す
る。すなわち、Vamp は、VINが大きくなると、それに
伴って大きくなる。したがって、Vamp の中心値をデジ
タルフィルタ52の出力範囲の中心に一致させておくこ
とが望ましい。
Vmax = Vamp · VIN / (VIN−VOUT) (9) Here, Vamp which is the output of the digital filter 52 is
It changes depending on the input voltage VIN supplied to the power supply circuit. That is, Vamp increases as VIN increases. Therefore, it is desirable to match the center value of Vamp with the center of the output range of the digital filter 52.

【0061】一例を示す。デジタルフィルタ52の出力
範囲を5v、入力電圧=12.5vとすると、保持すべ
き電圧が2.5vの電源回路のための三角波は、これら
の値を上記(9) 式に代入することにより、Vmax =3.
125vが得られる。
An example is shown. Assuming that the output range of the digital filter 52 is 5v and the input voltage is 12.5v, the triangular wave for the power supply circuit whose voltage to be held is 2.5v is obtained by substituting these values into the equation (9). Vmax = 3.
125v is obtained.

【0062】次に、PWM部11の処理を説明する。P
WM部11は、周期レジスタ61に格納されている周期
T、およびオン時間レジスタ62に格納されているオン
時間Tonに従ってパルス信号を生成する。
Next, the processing of the PWM unit 11 will be described. P
The WM unit 11 generates a pulse signal according to the cycle T stored in the cycle register 61 and the on-time Ton stored in the on-time register 62.

【0063】図8(a) は、パルス生成部64の動作を説
明するフローチャートである。ステップS21では、タ
イマ63を起動する。ステップS22では、そのタイマ
起動と同時にPWM部11の出力を「L」から「H」に
切り換える。ステップS23およびS24では、タイマ
63を起動した時からの経過時間がオン時間レジスタ6
2に格納されているオン時間Tonに達するまで、PWM
部11の出力を「H」に保持する。
FIG. 8A is a flow chart for explaining the operation of the pulse generator 64. In step S21, the timer 63 is started. In step S22, the output of the PWM unit 11 is switched from "L" to "H" at the same time when the timer is started. In steps S23 and S24, the elapsed time from the time when the timer 63 is started is the on-time register 6
PWM until the ON time Ton stored in 2 is reached
The output of the section 11 is held at "H".

【0064】ステップS21のタイマ起動からの経過時
間がオン時間Tonに達すると、ステップS25におい
て、PWM部11の出力を「H」から「L」に切り換え
る。ステップS26およびS27では、タイマ63を起
動した時からの経過時間が周期レジスタ61に格納され
ている周期Tに達するまでの間、PWM部11の出力を
「L」に保持する。そして、ステップS21のタイマ起
動からの経過時間が周期Tに達すると、ステップS21
に戻ってタイマ63を再起動する。
When the time elapsed after the timer is started in step S21 reaches the on time Ton, the output of the PWM section 11 is switched from "H" to "L" in step S25. In steps S26 and S27, the output of the PWM unit 11 is held at "L" until the time elapsed from the time when the timer 63 is activated reaches the cycle T stored in the cycle register 61. Then, when the time elapsed from the timer starting in step S21 reaches the cycle T, step S21
Then, the timer 63 is restarted.

【0065】上記処理を繰り返し実行することにより、
図8(b) に示すパルス信号が生成されることになる。そ
して、このパルス信号に従って、電力変換部12のスイ
ッチング素子13が制御される。
By repeating the above processing,
The pulse signal shown in FIG. 8 (b) will be generated. Then, according to this pulse signal, the switching element 13 of the power conversion unit 12 is controlled.

【0066】このように、本実施形態の電源装置は、ス
イッチング素子13を制御するためのパルス信号をソフ
トウェア処理により生成する。したがって、プログラム
の書き換えにより、各電源回路の出力電圧の設定、スイ
ッチング素子13のスイッチング周波数、応答特性など
を容易に変更できる。例えば、出力電圧の設定は、参照
値Vref の設定により決めることができる。また、スイ
ッチング周波数は、三角波の周波数により決まる。さら
に、応答特性は、デジタルフィルタの係数により変更可
能である。
As described above, the power supply device of this embodiment generates the pulse signal for controlling the switching element 13 by software processing. Therefore, it is possible to easily change the setting of the output voltage of each power supply circuit, the switching frequency of the switching element 13, the response characteristic, and the like by rewriting the program. For example, the setting of the output voltage can be determined by setting the reference value Vref. Moreover, the switching frequency is determined by the frequency of the triangular wave. Furthermore, the response characteristic can be changed by the coefficient of the digital filter.

【0067】図3に示した実施例では、電源回路の出力
に係わるパラメータとしてその出力電圧を用いていた
が、出力電流に基づいて電力変換部の動作を制御するこ
とも可能である。
In the embodiment shown in FIG. 3, the output voltage is used as the parameter relating to the output of the power supply circuit, but it is also possible to control the operation of the power converter based on the output current.

【0068】図9は、過電流保護機能を持った電源装置
の構成図である。ここでは、電力変換部12は、出力に
係わるパラパータとして、インダクタLと出力端子との
間に設けられている抵抗Rの両端の各電位(Vout 、V
s )を出力する。これらの電位は、それぞれ多重化部3
4に入力される。
FIG. 9 is a block diagram of a power supply device having an overcurrent protection function. Here, the power conversion unit 12 serves as a parameter related to the output, and the potentials (Vout, Vout) at both ends of the resistor R provided between the inductor L and the output terminal.
s) is output. These potentials are respectively applied to the multiplexer 3
4 is input.

【0069】演算部81は、抵抗Rの両端の各電位に基
づいて電源回路の出力電流を見積もり、過電流を検出し
た場合には、スイッチング素子13を介して流れる電流
を強制的に小さくするか、或いはスイッチング素子13
を強制的にオフ状態にする。なお、演算部81は、図3
に示した演算部51と同様に、ROM42に格納されて
いる所定のプログラムがプロセッサ41によって実行さ
れることにより実現される。
The arithmetic unit 81 estimates the output current of the power supply circuit on the basis of the respective potentials across the resistor R, and if an overcurrent is detected, forcibly reduces the current flowing through the switching element 13. Alternatively, the switching element 13
Is forcibly turned off. The calculation unit 81 is similar to that of FIG.
Similar to the calculation unit 51 shown in FIG. 3, it is realized by the processor 41 executing a predetermined program stored in the ROM 42.

【0070】図10は、演算部81の動作を説明するフ
ローチャートである。ステップS31およびS32で
は、抵抗Rの両端の各電位を取得する。続いて、ステッ
プS33では、これら2つの電位の差、および抵抗Rの
抵抗値に基づいて、出力電流を算出する。そして、ステ
ップS34では、この出力電流が予め決められている上
限電流を越えているか否かを調べる。
FIG. 10 is a flow chart for explaining the operation of the arithmetic unit 81. In steps S31 and S32, each potential of both ends of the resistor R is acquired. Then, in step S33, the output current is calculated based on the difference between these two potentials and the resistance value of the resistor R. Then, in step S34, it is checked whether or not the output current exceeds a predetermined upper limit current.

【0071】もし、算出した出力電流が上限電流を越え
ていた場合には、ステップS35において、過電流保護
処理を実行する。過電流保護は、たとえば、以下のよう
な処理である。
If the calculated output current exceeds the upper limit current, an overcurrent protection process is executed in step S35. Overcurrent protection is, for example, the following processing.

【0072】(1) オン時間レジスタ62に強制的に
「0」、または演算部51により算出されたオン時間よ
りも小さい値を書き込む。 (2) スイッチング素子13を強制的にオフ状態にするた
めの信号を電力変換部12へ送る。
(1) Forcibly write "0" or a value smaller than the on-time calculated by the arithmetic unit 51 to the on-time register 62. (2) A signal for forcibly turning off the switching element 13 is sent to the power conversion unit 12.

【0073】このような処理を実行することにより、ス
イッチング素子13および負荷を過電流から保護するこ
とができる。なお、ステップS34において、算出した
出力電流が上限電流を越えていなかった場合には、過電
流保護処理を実行することなく処理を終了する。この場
合、オン時間レジスタ62には、図3に示した演算部5
1により算出されたオン時間がそのまま書き込まれる。
By performing such processing, the switching element 13 and the load can be protected from overcurrent. In step S34, if the calculated output current does not exceed the upper limit current, the process ends without executing the overcurrent protection process. In this case, the on-time register 62 includes the arithmetic unit 5 shown in FIG.
The on-time calculated by 1 is written as it is.

【0074】上記実施例の電源回路は、出力電圧を一定
の値に保持するためのフィードバック信号として出力電
圧を使用する構成であるが、本発明は、この構成に限定
されるものではない。本発明は、たとえば、出力電流
(または、インダクタ電流)をフィードバック信号とし
て、或いは出力電流(または、インダクタ電流)および
出力電圧をフィードバック信号としてを電源回路の出力
を制御する構成にも適用可能である。
Although the power supply circuit of the above-mentioned embodiment has a structure in which the output voltage is used as a feedback signal for holding the output voltage at a constant value, the present invention is not limited to this structure. The present invention is also applicable to a configuration in which the output of the power supply circuit is controlled by using the output current (or inductor current) as a feedback signal or the output current (or inductor current) and the output voltage as feedback signals. .

【0075】図11は、出力電流に応じて電源回路の動
作を制御する電源装置の構成図である。この電源装置
は、図3に示した電源装置に図9に示したアイデアを導
入することによって実現できる。
FIG. 11 is a block diagram of a power supply device for controlling the operation of the power supply circuit according to the output current. This power supply device can be realized by introducing the idea shown in FIG. 9 into the power supply device shown in FIG.

【0076】図11に示す電源装置においては、演算部
51は、抵抗Rの両端の各電位の差を算出する減算部5
4を備える。そして、デジタルフィルタ52は、この減
算部54の出力と予め設定されている基準値との差を増
幅する。パルス幅計算部53の処理は基本的に図3を参
照しながら説明した通りである。すなわち、パルス幅計
算部53は、デジタルフィルタ52の出力に基づいてオ
ン時間を算出し、その算出したオン時間をオン時間レジ
スタ62に書き込む。
In the power supply device shown in FIG. 11, the arithmetic unit 51 has a subtracting unit 5 for calculating the difference between the potentials at both ends of the resistor R.
4 is provided. Then, the digital filter 52 amplifies the difference between the output of the subtraction unit 54 and the preset reference value. The processing of the pulse width calculation unit 53 is basically as described with reference to FIG. That is, the pulse width calculation unit 53 calculates the on-time based on the output of the digital filter 52 and writes the calculated on-time in the on-time register 62.

【0077】上記構成によれば、演算部51に対応する
プログラムの記述により、所望の特性を容易にえること
ができる。たとえば、出力電流の設定、垂下特性の定義
が容易である。
According to the above configuration, the desired characteristic can be easily obtained by the description of the program corresponding to the arithmetic unit 51. For example, it is easy to set the output current and define the drooping characteristic.

【0078】次に、電源回路の状態制御について説明す
る。本実施形態の電源装置が備える各電源回路(充電器
10、及びDC電源20−1〜20−n)は、それぞれ
「ON状態」、「ONシーケンス」、「OFF状態」、
「OFFシーケンス」からなる4つの動作状態の中のい
ずれか1つに属する。「ON状態」および「OFF状
態」は、それぞれ作動中状態、および停止状態である。
「ONシーケンス」は、「OFF状態」から「ON状
態」への移行過程状態であり、反対に、「OFFシーケ
ンス」は、「ON状態」から「OFF状態」への移行過
程状態である。
Next, the state control of the power supply circuit will be described. Each power supply circuit (charger 10 and DC power supplies 20-1 to 20-n) included in the power supply device of the present embodiment has an “ON state”, an “ON sequence”, an “OFF state”,
It belongs to any one of the four operation states consisting of the "OFF sequence". The “ON state” and the “OFF state” are an operating state and a stopped state, respectively.
The "ON sequence" is a transition process state from the "OFF state" to the "ON state", while the "OFF sequence" is a transition process state from the "ON state" to the "OFF state".

【0079】本実施形態の電源装置では、電源回路毎
に、入力電圧、出力電圧、出力電流、負荷電流、温度、
などをモニタし、それらに基づいて各電源回路の動作状
態の遷移を制御する。この制御は、プロセッサ41によ
り実行される。
In the power supply device of this embodiment, the input voltage, output voltage, output current, load current, temperature,
Etc. are monitored and the transition of the operating state of each power supply circuit is controlled based on them. This control is executed by the processor 41.

【0080】本実施形態では、各電源回路の状態制御の
ために、図12に示す項目A〜項目Jをモニタする。項
目Bおよび項目Fに係わるデータは、I/O部31を介
してプロセッサ41に通知される。項目Cおよび項目G
に係わるデータは、各電源回路に供給される入力電圧が
A/D変換部35により変換されてプロセッサ41に通
知される。他の項目に係わるデータは、各電源回路から
出力され、A/D変換部35により変換されてプロセッ
サ41に通知される。
In the present embodiment, items A to J shown in FIG. 12 are monitored in order to control the state of each power supply circuit. The data related to the items B and F are notified to the processor 41 via the I / O unit 31. Item C and item G
With respect to the data related to (1), the input voltage supplied to each power supply circuit is converted by the A / D conversion unit 35 and is notified to the processor 41. Data relating to other items is output from each power supply circuit, converted by the A / D conversion unit 35, and notified to the processor 41.

【0081】なお、電源回路がある状態から他の状態に
遷移する必要があるか否かは、上記項目A〜項目Jの判
断に従うが、図12に示すように、各状態ごとにすべて
の項目について判断を要するわけではない。たとえば、
ある電源回路が、現在、ON状態に属しているとする
と、項目A〜項目D、および項目Jのみをモニタすれば
よい。
Whether or not the power supply circuit needs to transit from one state to another state depends on the judgments of the above items A to J. However, as shown in FIG. It doesn't need to be judged. For example,
Assuming that a certain power supply circuit is currently in the ON state, only item A to item D and item J need be monitored.

【0082】図13は、各項目の判定結果を格納する状
態管理テーブルを模式的に示した図である。この状態管
理テーブルは、たとえば、RAM43の所定領域に設け
られる。状態管理テーブルは、各電源回路ごとに作成さ
れている。そして、電源回路ごとに、当該電源回路の現
在の状態、および当該電源回路についての各項目ごとの
判定結果が格納される。判定結果は、フラグとして格納
される。ここでは、該当する項目の条件が満たされてい
る場合が「0」、条件が満たされていない場合が「1」
に対応するものとする。図13に示す例では、電源回路
が「ON状態」に属しており、且つ、その電源回路にお
いて過電流が発生していることを示している。
FIG. 13 is a diagram schematically showing a state management table that stores the determination result of each item. This state management table is provided in a predetermined area of the RAM 43, for example. The state management table is created for each power supply circuit. Then, for each power supply circuit, the current state of the power supply circuit and the determination result for each item regarding the power supply circuit are stored. The determination result is stored as a flag. Here, “0” indicates that the condition of the corresponding item is satisfied, and “1” indicates that the condition is not satisfied.
Shall correspond to. The example shown in FIG. 13 indicates that the power supply circuit belongs to the “ON state” and that an overcurrent is occurring in the power supply circuit.

【0083】なお、状態管理テーブルは、プロセッサ4
1により随時更新される。即ち、プロセッサ41は、た
とえば、所定間隔毎に入力電圧、出力電圧、出力電流、
負荷電流、温度、などをモニタし、その都度、各項目の
条件を満たすか否かを判断する。そして、状態管理テー
ブルは、その判断結果により更新される。また、後述す
る方法により電源回路の状態遷移が検出されたときも、
状態管理テーブルは更新される。
The state management table is the processor 4
It is updated at any time by 1. That is, the processor 41 may, for example, input voltage, output voltage, output current,
The load current, temperature, etc. are monitored, and each time it is determined whether or not the conditions of each item are satisfied. Then, the state management table is updated according to the determination result. Also, when the state transition of the power supply circuit is detected by the method described later,
The state management table is updated.

【0084】図14は、電源回路の状態遷移を説明する
図である。電源回路の状態は、図14に示す判定式1〜
判定式14により決定される。例えば、現在の状態が
「ON状態」であった場合には、判定式1〜判定式3が
実行される。現在の状態は、状態管理テーブルを参照し
て認識する。また、実行する判定式に必要な情報は、状
態管理テーブルから読み出す。
FIG. 14 is a diagram for explaining the state transition of the power supply circuit. The state of the power supply circuit is determined by the judgment formulas 1 to 1 shown in FIG.
It is determined by the judgment formula 14. For example, when the current state is the “ON state”, the judgment formulas 1 to 3 are executed. The current state is recognized by referring to the state management table. In addition, the information necessary for the determination formula to be executed is read from the state management table.

【0085】各判定式は、図14では、論理式で記述し
ている。たとえば、判定式1は、項目Aとして過電圧、
項目Dとして過電流、項目Jとして短絡検出に関する判
定結果を状態管理テーブルから読み出し、それらの論理
和を演算する。もし、これら3つの項目の中の少なくと
も1つの項目において異常が検出されると、論理和演算
の結果が「1」となり、「ON状態」から「OFF状
態」に遷移すべきであると判断する。
Each judgment expression is described by a logical expression in FIG. For example, the judgment formula 1 is overvoltage as the item A,
The determination result regarding the overcurrent as the item D and the short-circuit detection as the item J is read from the state management table, and their logical sum is calculated. If an abnormality is detected in at least one of these three items, the result of the OR operation becomes "1", and it is determined that the "ON state" should be changed to the "OFF state". .

【0086】理解を深めるために、判定式2についても
説明しておく。判定式2は、「この電源装置を搭載する
本体装置の主スイッチがオフ状態であるか、或いは入力
電圧が所定の範囲外である」という条件と、「過電圧、
過電流、および短絡がいずれも発生していない」という
2つの条件が同時に得られたときに、その演算結果が
「1」になる。判定式2の演算結果が「1」になったと
きには、電源回路の状態は、「ON状態」から「OFF
シーケンス」に遷移する。
To deepen the understanding, the judgment formula 2 will also be explained. The determination formula 2 is a condition that "the main switch of the main body device in which this power supply device is mounted is in an off state or the input voltage is outside a predetermined range", and "overvoltage,
When the two conditions "overcurrent and short circuit have not occurred" are obtained at the same time, the operation result is "1". When the calculation result of the judgment formula 2 becomes "1", the state of the power supply circuit is changed from "ON state" to "OFF state".
Sequence ”.

【0087】このように、本実施形態では、各電源回路
の動作状態を把握するために必要な情報を統括して管理
するので、すべての電源回路の状態制御を確実に行うこ
とができる。また、上記情報は、判定項目ごとにフラグ
として格納してあり、簡単な論理式にそのフラグの値を
代入することで状態遷移を判断するので、各電源回路の
状態制御を迅速に且つ確実に行うことができる。
As described above, in this embodiment, since the information necessary for grasping the operating state of each power supply circuit is centrally managed, it is possible to surely control the state of all the power supply circuits. Further, the above information is stored as a flag for each determination item, and the state transition is determined by substituting the value of the flag into a simple logical expression, so the state control of each power supply circuit can be performed quickly and reliably. It can be carried out.

【0088】図15は、電源回路を制御するプログラム
の構成図である。図16は、図15に示すプログラムの
動作を説明する図である。ここでは、2つの電源回路
(3.4V用DC電源、および2.5V用DC電源)を制御する
例を示す。また、これらの電源回路の動作の制御に際し
て、各電源回路ごとの出力電圧、各電源回路ごとの出力
電流、および各電源回路への入力電圧が使用される。そ
して、多重化部34の入力チャネルCH1〜CH5に、
それぞれ、3.4V用DC電源の出力電圧、3.4V用DC電源
の出力電流、2.5V用DC電源の出力電圧、2.5V用DC電
源の出力電流、およびこれらの電源回路への入力電圧が
入力されている。
FIG. 15 is a block diagram of a program for controlling the power supply circuit. FIG. 16 is a diagram for explaining the operation of the program shown in FIG. Here, an example of controlling two power supply circuits (a DC power supply for 3.4 V and a DC power supply for 2.5 V) is shown. In controlling the operation of these power supply circuits, the output voltage of each power supply circuit, the output current of each power supply circuit, and the input voltage to each power supply circuit are used. Then, in the input channels CH1 to CH5 of the multiplexing unit 34,
The output voltage of the DC power supply for 3.4V, the output current of the DC power supply for 3.4V, the output voltage of the DC power supply for 2.5V, the output current of the DC power supply for 2.5V, and the input voltage to these power supply circuits are input, respectively. ing.

【0089】電源回路を制御するプログラムは、図15
に示すメインプログラムの他に、図16に示すように、
A/D変換割込サブルーチン、およびタイマ割込サブル
ーチンを含む。メインプログラムには、各電源回路の状
態制御に係わる処理、PWM制御のパルス信号を生成す
る処理などが記述されている。A/D変換割込サブルー
チンには、多重化部34の入力チャネルを指定してその
入力チャネルに対応するデジタルデータをA/D変換部
35から読み込む処理などが記述されている。タイマ割
込サブルーチンは、所定時間ごとに発生するタイムアウ
ト割込を検出したときにメインプログラムを再実行する
プログラムである。
The program for controlling the power supply circuit is shown in FIG.
In addition to the main program shown in, as shown in FIG.
It includes an A / D conversion interrupt subroutine and a timer interrupt subroutine. The main program describes the processing related to the state control of each power supply circuit, the processing for generating a pulse signal for PWM control, and the like. The A / D conversion interrupt subroutine describes a process of designating an input channel of the multiplexing unit 34 and reading digital data corresponding to the input channel from the A / D conversion unit 35. The timer interrupt subroutine is a program that re-executes the main program when a timeout interrupt that occurs every predetermined time is detected.

【0090】以下、上記プログラムを具体的に説明す
る。「初期設定」は、各種レジスタの初期化、タイマの
設定(図16に示すサンプリング周期の設定)、割込処
理の設定、PWM部11の設定などを含む。PWM部1
1の設定としては、周期レジスタ61に所定の値を書き
込む処理、およびON時間レジスタをリセットする処理
を含む。「タイマスタート」は、「初期設定」において
設定されたタイマを起動する処理である。
The above program will be specifically described below. “Initial setting” includes initialization of various registers, setting of timer (setting of sampling period shown in FIG. 16), setting of interrupt processing, setting of PWM unit 11, and the like. PWM section 1
The setting of 1 includes a process of writing a predetermined value in the period register 61 and a process of resetting the ON time register. "Timer start" is a process of activating the timer set in "initial setting".

【0091】「データ読込」は、多重化部34に対して
入力チャネルを指示する処理、およびその指示に対応す
るデジタルデータをA/D変換部35から読み込む処理
を含む。なお、本実施例では、サンプリング周期ごとに
複数のデータを読み込む構成であるが、第1回目のデー
タ読込処理はメインプログラムに記述され、2回目以降
の処理はA/D変換割込サブルーチンに記述されてい
る。ここで、A/D変換割込サブルーチンは、多重化部
34の入力チャネルが指定されてからA/D変換部35
による変換処理に要する時間が経過したときに呼び出さ
れる。そして、A/D変換割込サブルーチンは、入力チ
ャネルの指定およびデータの読込を実行すると、処理を
メインプログラムに戻す。
The "data reading" includes a process of instructing the multiplexing unit 34 about an input channel and a process of reading digital data corresponding to the instruction from the A / D conversion unit 35. In this embodiment, a plurality of data is read in every sampling cycle, but the first data reading process is described in the main program, and the second and subsequent processes are described in the A / D conversion interrupt subroutine. Has been done. Here, in the A / D conversion interrupt subroutine, the A / D conversion unit 35 is operated after the input channel of the multiplexing unit 34 is designated.
It is called when the time required for the conversion processing by has passed. Then, when the A / D conversion interrupt subroutine executes the designation of the input channel and the reading of the data, the process is returned to the main program.

【0092】たとえば、期間T1 〜T2 において、多重
化部34の入力チャネルCH2を指定すると共に、前回
指定した入力チャネルCH1からのデータを読み込む
と、処理をメインプログラムに渡す。プロセッサ41
は、期間T2 〜T3 は、メインプログラムを実行する。
この期間は、図15に示す処理などが実行される。ま
た、この期間は、A/D変換部35がそこに入力される
アナログデータをデジタルデータに変換するのに十分な
時間である。したがって、時刻T3 までには、A/D変
換部35は、入力チャネルCH2を介して入力されたア
ナログデータに対する変換処理を終了している。続い
て、時刻T3 において、割込によりA/D変換割込サブ
ルーチンが呼び出される。そして、期間T3 〜T4 にお
いて、多重化部34の入力チャネルCH2から入力され
てA/D変換部35により変換されたデジタルデータを
読み込む。また、このとき、次の入力チャネルを指定
し、その後に処理をメインプログラムに戻す。この処理
は、各入力チャネルに対して実行される。
For example, when the input channel CH2 of the multiplexing unit 34 is designated and the data from the previously designated input channel CH1 is read in the periods T1 to T2, the process is passed to the main program. Processor 41
Executes the main program during the period T2 to T3.
During this period, the processing shown in FIG. 15 and the like are executed. Further, this period is a time sufficient for the A / D conversion unit 35 to convert the analog data input thereto into digital data. Therefore, by the time T3, the A / D converter 35 has finished the conversion process for the analog data input via the input channel CH2. Then, at time T3, the A / D conversion interrupt subroutine is called by the interrupt. Then, in the periods T3 to T4, the digital data input from the input channel CH2 of the multiplexing unit 34 and converted by the A / D conversion unit 35 is read. At this time, the next input channel is designated, and then the process is returned to the main program. This process is executed for each input channel.

【0093】「次の状態判定」は、図12〜図14を参
照しながら説明した処理である。すなわち、図13に示
す状態管理テーブルを参照し、電源回路ごとの現在の動
作状態を検出すると共に、検出した動作状態に対応する
項目のフラグを取り出す。そして、取り出した複数のフ
ラグに基づいて、他の動作状態に遷移すべきか否かを判
断する。
The "next state determination" is the process described with reference to FIGS. That is, referring to the state management table shown in FIG. 13, the current operating state of each power supply circuit is detected, and the flag of the item corresponding to the detected operating state is taken out. Then, based on the plurality of extracted flags, it is determined whether or not to transit to another operating state.

【0094】「ON状態の処理」は、図5のステップS
1〜S8に対応する処理である。すなわち、出力電圧を
検出し、デジタルフィルタ演算を実行し、その演算結果
に基づいてスイッチング素子13のオン時間を決定す
る。
The "processing in the ON state" is the step S in FIG.
This is processing corresponding to 1 to S8. That is, the output voltage is detected, the digital filter calculation is executed, and the ON time of the switching element 13 is determined based on the calculation result.

【0095】「ONシーケンスの処理」は、電源回路の
出力電圧を徐々に上昇させるための処理である。この動
作を実現するため、デジタルフィルタ52に与えられる
参照値を時間経過に従って大きくしていく処理が実行さ
れる。具体的には、デジタルフィルタ52に与えられる
参照値を格納するための不図示のレジスタを更新する処
理である。そして、参照値が更新されるごとに、図5の
ステップS1〜S8に対応する処理が実行され、スイッ
チング素子13のオン時間が決定される。
The "ON sequence process" is a process for gradually increasing the output voltage of the power supply circuit. In order to realize this operation, a process of increasing the reference value given to the digital filter 52 over time is executed. Specifically, it is a process of updating a register (not shown) for storing the reference value given to the digital filter 52. Then, each time the reference value is updated, the processing corresponding to steps S1 to S8 of FIG. 5 is executed, and the ON time of the switching element 13 is determined.

【0096】「OFF状態の処理」は、スイッチング素
子13をオフ状態に保持する処理である。なお、整流用
ダイオードDをトランジスタに置き換えた電源回路にお
いては、そのトランジスタもオフ状態に保持する。
The "OFF state process" is a process for holding the switching element 13 in the OFF state. In the power supply circuit in which the rectifying diode D is replaced with a transistor, the transistor is also kept in the off state.

【0097】「OFFシーケンスの処理」は、電源回路
の出力電圧を徐々に下降させるための処理である。この
動作を実現するため、デジタルフィルタ52に与えられ
る参照値を時間経過に従って小さくしていく処理が実行
される。具体的には、デジタルフィルタ52に与えられ
る参照値を格納するための不図示のレジスタを更新する
処理である。そして、参照値が更新されるごとに、図5
のステップS1〜S8に対応する処理が実行され、スイ
ッチング素子13のオン時間が決定される。
The "OFF sequence process" is a process for gradually decreasing the output voltage of the power supply circuit. In order to realize this operation, a process of decreasing the reference value given to the digital filter 52 with the lapse of time is executed. Specifically, it is a process of updating a register (not shown) for storing the reference value given to the digital filter 52. Then, each time the reference value is updated, FIG.
The processing corresponding to steps S1 to S8 is executed to determine the ON time of the switching element 13.

【0098】「PWM出力」は、「ON状態の処理」
「ONシーケンスの処理」または「OFFシーケンスの
処理」により残出されたオン時間をオン時間レジスタ6
2に書き込む処理である。なお、「OFF状態の処理」
の場合には、オン時間レジスタ62に「0」を書き込む
ようにしてもよい。
"PWM output" means "processing in ON state"
The ON time left by the “ON sequence processing” or the “OFF sequence processing” is set to the ON time register 6
This is the process of writing to 2. In addition, "OFF state processing"
In this case, “0” may be written in the on-time register 62.

【0099】「データ条件判定」は、図12に示した各
項目についての判定を行い、図13に示す状態管理テー
ブルにその判定結果を格納する処理である。上記各処理
が終了すると、「タイマスタート」により起動されたタ
イマのタイムアウトを待つ。そして、タイムアウトを検
出すると、「タイマスタート」に戻り、「データ読込」
から「データ条件判定」の処理を繰り返す。
The "data condition judgment" is a process of making a judgment for each item shown in FIG. 12 and storing the judgment result in the state management table shown in FIG. When the above processes are completed, the timer started by "timer start" is timed out. When a time-out is detected, it returns to "Timer start" and "Read data"
The processing of “data condition determination” is repeated.

【0100】上記構成において、各電源回路ためのプロ
グラムは、定数として与えられる参照値や係数などを電
源回路ごとに変更する必要があるが、基本的には互いに
同じ記述でよい。したがって、電源回路の数を増加させ
る場合であっても、プログラムの追加・修正は容易であ
る。
In the above structure, the program for each power supply circuit needs to change the reference value, coefficient, etc. given as a constant for each power supply circuit, but basically the description may be the same. Therefore, even if the number of power supply circuits is increased, it is easy to add / modify programs.

【0101】上記実施例は、PWMにより出力電圧を一
定の値に保持する構成の電源回路を採り上げたが、本発
明はこれに限定されるものではない。本発明は、例え
ば、PFM(パルス周波数変調)により出力電圧を制御
する構成の電源回路にも適用可能である。
In the above embodiment, the power supply circuit having a structure in which the output voltage is held at a constant value by PWM is adopted, but the present invention is not limited to this. The present invention is also applicable to, for example, a power supply circuit configured to control an output voltage by PFM (pulse frequency modulation).

【0102】図17は、PFM制御の電源装置の構成図
である。この電源装置の基本構成は図3に示した電源装
置と同じである。ただし、PWM部11の代わりに、P
FM部91が設けられている。PFM部91は、オフ時
間レジスタ92およびオン時間レジスタ93を備える。
FIG. 17 is a block diagram of a PFM-controlled power supply device. The basic configuration of this power supply device is the same as that of the power supply device shown in FIG. However, instead of the PWM unit 11, P
The FM unit 91 is provided. The PFM unit 91 includes an off time register 92 and an on time register 93.

【0103】PFMでは、一般に、パルス信号のオン時
間またはオフ時間を一定の値に固定しておき、オン時間
を固定した場合にはオフ時間を変化させることにより、
オフ時間を固定した場合にはオン時間を変化させること
によりパルス信号のデューティを変化させる。図18に
示す例では、オフ時間を固定している。
In the PFM, generally, the ON time or OFF time of the pulse signal is fixed to a fixed value, and when the ON time is fixed, the OFF time is changed.
When the off time is fixed, the duty of the pulse signal is changed by changing the on time. In the example shown in FIG. 18, the off time is fixed.

【0104】オフ時間が固定されたパルス信号を生成す
る場合、予め決められたオフ時間が初期設定時にオフ時
間レジスタ92に設定される。また、オン時間レジスタ
93は、演算部94によりオン時間が計算される毎に更
新される。そして、PFM部91は、これらのレジスタ
の設定に従ってパルス信号を生成する。なお、デジタル
フィルタ95の係数、およびオン時間計算部96におい
て用いる計算式は、デジタルフィルタ52の係数、およ
びパルス幅計算部53において用いる計算式とは必ずし
も同じではない。
When a pulse signal having a fixed off time is generated, a predetermined off time is set in the off time register 92 at the time of initial setting. The on-time register 93 is updated every time the on-time is calculated by the calculation unit 94. Then, the PFM unit 91 generates a pulse signal according to the settings of these registers. Note that the coefficient of the digital filter 95 and the calculation formula used in the on-time calculation unit 96 are not necessarily the same as the coefficient of the digital filter 52 and the calculation formula used in the pulse width calculation unit 53.

【0105】[0105]

【発明の効果】電源回路の出力の制御をソフトウェアで
処理するので、従来のアナログ回路が不要になり、回路
規模が小さくなる。また、ソフトウェア処理なので、電
源回路の出力電圧を一定に保持する制御だけでなく、高
度な制御が容易に実現できる。さらに、複数の電源回路
を統括的に扱うことができるので、電源回路の数の変更
の際の作業が簡単である。
Since the output control of the power supply circuit is processed by software, the conventional analog circuit becomes unnecessary and the circuit scale is reduced. Further, since it is software processing, not only control for keeping the output voltage of the power supply circuit constant but also advanced control can be easily realized. Furthermore, since it is possible to handle a plurality of power supply circuits as a whole, it is easy to change the number of power supply circuits.

【図面の簡単な説明】[Brief description of drawings]

【図1】本実施形態の電源装置の構成図である。FIG. 1 is a configuration diagram of a power supply device according to an embodiment.

【図2】電力変換部の構成図である。FIG. 2 is a configuration diagram of a power conversion unit.

【図3】本実施形態における出力電圧制御について説明
する図である。
FIG. 3 is a diagram illustrating output voltage control according to the present embodiment.

【図4】(a) は、従来の電源装置において使用されてい
たアンプの具体的な回路図である。(b) は、IIRを用
いて作成した図4(a) に示すアンプと等価なデジタルフ
ィルタである。
FIG. 4A is a specific circuit diagram of an amplifier used in a conventional power supply device. (b) is a digital filter equivalent to the amplifier shown in FIG. 4 (a) created using IIR.

【図5】演算部の動作を説明するフローチャートであ
る。
FIG. 5 is a flowchart illustrating an operation of a calculation unit.

【図6】パルス信号のデューティを説明する図である。FIG. 6 is a diagram illustrating the duty of a pulse signal.

【図7】図5に示した処理の変形例である。FIG. 7 is a modification of the process shown in FIG.

【図8】(a) は、パルス生成部の動作を説明するフロー
チャートである。(b) は、生成されるパルス信号の例で
ある。
FIG. 8A is a flowchart illustrating an operation of the pulse generation unit. (b) is an example of the generated pulse signal.

【図9】過電流保護機能を持った電源装置の構成図であ
る。
FIG. 9 is a configuration diagram of a power supply device having an overcurrent protection function.

【図10】演算部の動作を説明するフローチャートであ
る。
FIG. 10 is a flowchart illustrating an operation of a calculation unit.

【図11】出力電流に基づいて電力変換部を制御する電
源装置の構成図である。
FIG. 11 is a configuration diagram of a power supply device that controls a power conversion unit based on an output current.

【図12】電源回路の状態制御の判定条件をまとめた図
表である。
FIG. 12 is a table summarizing determination conditions for controlling the state of a power supply circuit.

【図13】状態管理テーブルの一例を示す図である。FIG. 13 is a diagram showing an example of a state management table.

【図14】電源回路の状態遷移について説明する図であ
る。
FIG. 14 is a diagram illustrating a state transition of a power supply circuit.

【図15】電源回路を制御するプログラムの構成図であ
る。
FIG. 15 is a configuration diagram of a program for controlling a power supply circuit.

【図16】図15に示すプログラムの動作を説明する図
である。
16 is a diagram for explaining the operation of the program shown in FIG.

【図17】PFM制御の電源装置の構成図である。FIG. 17 is a configuration diagram of a PFM-controlled power supply device.

【図18】PFMによるパルス信号を示す図である。FIG. 18 is a diagram showing a pulse signal by PFM.

【図19】従来の電源装置の一例の構成図である。FIG. 19 is a configuration diagram of an example of a conventional power supply device.

【図20】従来の電源装置に設けられている充電器また
はDC電源の構成図である。
FIG. 20 is a configuration diagram of a charger or a DC power source provided in a conventional power supply device.

【符号の説明】[Explanation of symbols]

10 充電器 11 PWM部 12 電力変換部 13 スイッチング素子 20−1〜20−n DC電源 41 プロセッサ(MPU) 42 ROM 51 演算部 52 デジタルフィルタ 53 パルス幅計算部 61 周期レジスタ 62 オン時間レジスタ 63 タイマ 64 パルス生成部 10 charger 11 PWM section 12 Power converter 13 switching elements 20-1 to 20-n DC power supply 41 Processor (MPU) 42 ROM 51 arithmetic unit 52 Digital Filter 53 Pulse width calculator 61 cycle register 62 On-time register 63 timer 64 pulse generator

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平6−22453(JP,A) 特開 平7−322616(JP,A) 特開 平4−125707(JP,A) 特開 平4−334971(JP,A) 特開 昭54−129456(JP,A) 特開 昭63−3561(JP,A) 特開 昭60−62866(JP,A) 特公 平1−17334(JP,B2) 特許2724167(JP,B2) (58)調査した分野(Int.Cl.7,DB名) H02M 3/155 G05F 1/10 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-6-22453 (JP, A) JP-A-7-322616 (JP, A) JP-A-4-125707 (JP, A) JP-A-4- 334971 (JP, A) JP-A 54-129456 (JP, A) JP-A 63-3561 (JP, A) JP-A 60-62866 (JP, A) JP-B-1-17334 (JP, B2) Patent 2724167 (JP, B2) (58) Fields investigated (Int.Cl. 7 , DB name) H02M 3/155 G05F 1/10

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 与えられるパルス信号に基づいてDC出
力を生成する電源回路と、 上記電源回路の出力に係わる出力パラメータをデジタル
データに変換する変換手段と、 上記変換手段により得られるデジタルデータと基準値と
の差を増幅する演算手段と、 上記演算手段の出力に基づいて上記電源回路に与えるパ
ルス信号を生成する生成手段と、を有し、 上記演算手段は、プロセッサを用いて予め記述されたソ
フトウェアプログラムを所定間隔ごとに実行することに
より実現されるデジタルフィルタであって、新たに入力
された上記デジタルデータと上記基準値との差、過去に
入力された上記デジタルデータと上記基準値との差、お
よび過去に当該演算手段が出力した演算結果に基づい
て、次の演算結果を出力する ことを特徴とする 電源装
置。
1. A DC output based on a given pulse signal.
Power supply circuit that generates force and output parameters related to the output of the power supply circuit
Conversion means for converting to data, digital data and reference value obtained by the conversion means
Of the power supply circuit based on the output of the arithmetic means.
Generating means for generating a pulse signal, and the arithmetic means is a so-called pre-described source using a processor.
To execute the software program at predetermined intervals
It is a digital filter that is more realized and newly input
Difference between the digital data and the reference value
The difference between the input digital data and the reference value,
And based on the calculation results output by the calculation means in the past
The power supply device is characterized by outputting the following calculation result .
【請求項2】 上記出力パラメータが上記電源回路の出
力電圧である請求項に記載の電源装置。
2. The power supply device according to claim 1 , wherein the output parameter is an output voltage of the power supply circuit.
【請求項3】 上記出力パラメータが上記電源回路の出
力電流である請求項に記載の電源装置。
3. The power supply device according to claim 1 , wherein the output parameter is an output current of the power supply circuit.
【請求項4】 上記デジタルフィルタがIIRフィルタ
またはFIRフィルタである請求項に記載の電源装
置。
4. The power supply device according to claim 1 , wherein the digital filter is an IIR filter or an FIR filter.
【請求項5】 DC出力を生成する電源回路を備え、そ
の電源回路が、作動中状態、停止状態、作動中状態から
停止状態への移行過程状態、および停止状態から作動中
状態への移行過程状態の中のいずれか1つの動作状態に
属する構成の電源装置であって、 上記電源回路の出力電圧、上記電源回路の出力電流、上
記電源回路に供給される入力電圧、および上記電源回路
の負荷電流の中の少なくとも1つをデジタルデータに変
換する変換手段と、 上記変換手段により得られるデジタルデータが予め決め
られた複数の条件をそ れぞれ満たすか否かを判定する判
定手段と、 上記判定手段により得られる複数の判定結果に基づいて
上記電源回路を制御する制御手段と、を有し、 上記制御手段が、上記判定手段による複数の判定結果の
中の1以上の判定結果をそれぞれ使用する複数の条件式
の中から、上記電源回路の現在の動作状態に対応する1
または複数の条件式を選択し、その選択した1または複
数の条件式を満たしているか否かに応じて、その電源回
路が次に遷移すべき動作状態を認識し、その認識結果に
従った制御を実行することを特徴とする電源装置。
5. A power supply circuit for generating a DC output is provided,
The power supply circuit of the operating state, stop state, operating state
Transition process state to stop state and operating from stop state
Transition process to any one of the operating states
A power supply device having a configuration to which the output voltage of the power supply circuit, the output current of the power supply circuit,
Input voltage supplied to the power supply circuit, and the above power supply circuit
Convert at least one of the load currents of the
The conversion means to be converted and the digital data obtained by the conversion means are predetermined.
Was-size determines whether a plurality of conditions its Re respectively satisfy
Based on the determination means and the plurality of determination results obtained by the determination means
A control means for controlling the power supply circuit, wherein the control means controls the plurality of determination results by the determination means.
Conditional expressions that use one or more judgment results in
Corresponding to the current operating state of the power supply circuit
Or select multiple conditional expressions and select the selected one or
Number of power supplies depending on whether or not the
It recognizes the operating state that the road should transition to next and
A power supply device characterized by executing compliant control.
JP2002227674A 2002-08-05 2002-08-05 Power supply device and power supply circuit control method Expired - Fee Related JP3469574B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002227674A JP3469574B2 (en) 2002-08-05 2002-08-05 Power supply device and power supply circuit control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002227674A JP3469574B2 (en) 2002-08-05 2002-08-05 Power supply device and power supply circuit control method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP10072723A Division JPH11272344A (en) 1998-03-20 1998-03-20 Power supply device and method for controlling power supply circuit

Publications (2)

Publication Number Publication Date
JP2003079136A JP2003079136A (en) 2003-03-14
JP3469574B2 true JP3469574B2 (en) 2003-11-25

Family

ID=19196218

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002227674A Expired - Fee Related JP3469574B2 (en) 2002-08-05 2002-08-05 Power supply device and power supply circuit control method

Country Status (1)

Country Link
JP (1) JP3469574B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4494106B2 (en) * 2004-07-14 2010-06-30 日本電信電話株式会社 Power supply device, power supply control method, and power supply control program
JP2006340438A (en) 2005-05-31 2006-12-14 Toshiba Corp Power unit, information processor, and power control method
JP2012095379A (en) * 2010-10-25 2012-05-17 Aisin Seiki Co Ltd Voltage control device
JP2012186916A (en) * 2011-03-04 2012-09-27 Fuji Electric Co Ltd Circuit and method for controlling dc-dc converter
JP2014107879A (en) * 2012-11-22 2014-06-09 Renesas Electronics Corp Power supply controller and power supply control method
JP7004143B2 (en) * 2017-10-06 2022-01-21 株式会社デンソー Motor control device

Also Published As

Publication number Publication date
JP2003079136A (en) 2003-03-14

Similar Documents

Publication Publication Date Title
JPH11272344A (en) Power supply device and method for controlling power supply circuit
JP3702091B2 (en) Power supply device and method for controlling power supply circuit
JP3744680B2 (en) Power supply device and method for controlling power supply circuit
EP2495633B1 (en) Method and apparatus for low standby current switching regulator
EP1745536B1 (en) Method and system for communicating filter compensation coefficients for a digital power control system
US9564772B2 (en) Charging system with adaptive power management
JP6013846B2 (en) Switching regulator and electronic equipment
JP5584824B2 (en) PWM signal generation circuit and processor system
JP4944208B2 (en) Capacitive voltage divider / buck converter / battery charger integrated voltage converter
US20110062926A1 (en) System and method for controlling a voltage supply
JP2004096982A (en) Dc-dc converter
JP2013192422A (en) Switching regulator
JP2012249433A (en) Switching regulator
JP6023468B2 (en) Switching power supply
KR20140109023A (en) Bidirectional voltage positioning circuit, voltage converter and power supply device including the same
JP2014531192A (en) Switch mode power supply controller
KR20190024710A (en) Systems and methods for generating a feedback current in a dc-dc converter
JP2011199993A (en) Charge controller, load driver
JP3469574B2 (en) Power supply device and power supply circuit control method
CN104052282B (en) The internal compensation of power management integrated circuit
JP2016032320A (en) Switching power supply device
US7489975B2 (en) Power supply device, information processing apparatus, and power control method
US20080258699A1 (en) Converter Circuit with Improved Efficiency
CN213305259U (en) Control circuit, multiphase converter device and multiphase converter circuit
EP4199296A1 (en) Voltage regulation circuit, device and method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030826

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080905

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080905

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090905

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090905

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100905

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100905

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110905

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120905

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120905

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130905

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees