JPH0716290B2 - Device for converting absolute value of battery charge / discharge current into pulse width - Google Patents

Device for converting absolute value of battery charge / discharge current into pulse width

Info

Publication number
JPH0716290B2
JPH0716290B2 JP1086458A JP8645889A JPH0716290B2 JP H0716290 B2 JPH0716290 B2 JP H0716290B2 JP 1086458 A JP1086458 A JP 1086458A JP 8645889 A JP8645889 A JP 8645889A JP H0716290 B2 JPH0716290 B2 JP H0716290B2
Authority
JP
Japan
Prior art keywords
output
converter
absolute value
counter
pulse width
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 - Lifetime
Application number
JP1086458A
Other languages
Japanese (ja)
Other versions
JPH02266832A (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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP1086458A priority Critical patent/JPH0716290B2/en
Publication of JPH02266832A publication Critical patent/JPH02266832A/en
Publication of JPH0716290B2 publication Critical patent/JPH0716290B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Tests Of Electric Status Of Batteries (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Analogue/Digital Conversion (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、バッテリに流れる充電電流,放電電流の絶対
値に応じたパルス幅を持つパルスを生成するバッテリ充
放電電流の絶対値をパルス幅に変換する装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention provides an absolute value of a battery charging / discharging current for generating a pulse having a pulse width corresponding to an absolute value of a charging current or a discharging current flowing in a battery. It relates to a device for converting into.

〔従来の技術〕[Conventional technology]

実際にバッテリに流れる充放電電流を検出して充放電容
量や残存容量等を求め、更にその結果に基づいてバッテ
リの充電制御等を行うバッテリ充放電制御装置において
は、バッテリ充放電電流の絶対値をパルス幅に変換し、
そのパルス幅を使って各種の処理を行っている。
The absolute value of the battery charge / discharge current in a battery charge / discharge control device that detects the charge / discharge current that actually flows in the battery to obtain the charge / discharge capacity, remaining capacity, etc., and then controls the battery charge based on the results. To pulse width,
Various processing is performed using the pulse width.

そして従来、この種の変換装置は、第3図に示すよう
に、バッテリ充放電電流の経路に挿入された電流検出用
抵抗9に接続されバッテリ充放電電流に応じた正の電圧
値あるいは負の電圧値を出力する充放電電流検出回路1
と、この出力電圧を全波整流することにより充放電電流
の絶対値に応じた正の電圧値を出力するアナログ絶対値
アンプ10と、所定周期たとえば1/64秒毎に例えば64KHz
のクロックのカウント動作を初期値零から開始するカウ
ンタ7と、カウンタ7のカウント値をディジタル電圧値
にみたててそれをアナログ電圧値に変換するユニポーラ
タイプのD/Aコンバータ2′と、D/Aコンバータ2′の出
力電圧とアナログ絶対値アンプ10の出力電圧とを比較す
る比較器3とで構成され、比較器3からバッテリ充放電
電流の絶対値に応じたパルス幅を持つパルスが所定周期
毎に出力されるものであった。
Conventionally, as shown in FIG. 3, this type of converter is connected to a current detecting resistor 9 inserted in a battery charging / discharging current path, and has a positive voltage value or a negative voltage value depending on the battery charging / discharging current. Charge / discharge current detection circuit 1 that outputs a voltage value
And an analog absolute value amplifier 10 that outputs a positive voltage value according to the absolute value of the charging / discharging current by full-wave rectifying this output voltage, and a predetermined cycle, for example, 1/64 seconds, for example, 64 KHz
The counter 7 which starts the counting operation of the clock of 0 from the initial value zero, the unipolar type D / A converter 2 ′ which converts the count value of the counter 7 into the analog voltage value and converts it into the analog voltage value, It is composed of a comparator 3 for comparing the output voltage of the A converter 2'and the output voltage of the analog absolute value amplifier 10, and a pulse having a pulse width from the comparator 3 according to the absolute value of the battery charging / discharging current has a predetermined cycle. It was output every time.

なお、同図において、5は比較器3からパルスが出力さ
れている期間中クロックを通す論理積回路であり、この
結果、論理積回路5からは所定周期毎にバッテリ充放電
電流の絶対値に応じた数のクロックが出力されることに
なり、容量積算用カウンタ8のクロック端子CLKに入力
される。この容量積算用カウンタ8は、充放電判定部6
でバッテリが充電状態にあると判定されているときカウ
ントアップ動作を行い、放電状態にあると判定されてい
るときカウントダウン動作を行うものであり、従って容
量積算用カウンタ8のカウント値はバッテリの残存容量
を表示することになる。
In the figure, 5 is an AND circuit that passes a clock during the period in which a pulse is output from the comparator 3. As a result, the AND circuit 5 outputs the absolute value of the battery charging / discharging current every predetermined period. A corresponding number of clocks will be output and input to the clock terminal CLK of the capacity integration counter 8. The capacity integration counter 8 includes a charge / discharge determination unit 6
The count-up operation is performed when it is determined that the battery is in the charging state, and the count-down operation is performed when the battery is determined to be in the discharging state. Therefore, the count value of the capacity integrating counter 8 remains in the battery. The capacity will be displayed.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

従来は上述した構成によってバッテリ充放電電流の絶対
値をパルス幅に変換していたが、充放電電流検出回路1
の後段にアナログ絶対値アンプを接続して全波整流する
構成を採用している為、次のような問題点があった。
Conventionally, the absolute value of the battery charging / discharging current was converted into the pulse width by the above-mentioned configuration, but the charging / discharging current detection circuit 1
The following problems have been encountered since the configuration is adopted in which full-wave rectification is performed by connecting an analog absolute value amplifier in the latter stage.

(1) 一般にアナログ絶対値アンプは整流用にダイオ
ードを使用しているため、温度変化によるその順方向電
圧ドロップの変動によって、アンプ自体の温度特性が良
くない。このため、変換装置自体の温度特性もその影響
を受けて悪化する。
(1) In general, since the analog absolute value amplifier uses a diode for rectification, the temperature characteristic of the amplifier itself is not good due to the fluctuation of the forward voltage drop due to the temperature change. For this reason, the temperature characteristics of the conversion device itself are also affected and deteriorate.

(2) 変換装置の調整作業の1つに、アナログ絶対値
アンプの全波整流を行う際のゲイン調整が加わり、この
種のゲイン調整は難しいので、全体の調整作業が繁雑か
つ難しくなる。
(2) Since one of the adjustment operations of the converter is gain adjustment when full-wave rectification of the analog absolute value amplifier is added, and this kind of gain adjustment is difficult, the overall adjustment operation becomes complicated and difficult.

本発明はこのような従来の問題点を解決したものであ
り、その目的は、温度特性の劣化,調整作業の困難化等
を招来するアナログ絶対値アンプを使用する必要のない
バッテリ充放電電流の絶対値をパルス幅に変換する装置
を提供することにある。
The present invention solves such a conventional problem, and an object thereof is to reduce a battery charge / discharge current which does not require the use of an analog absolute value amplifier which causes deterioration of temperature characteristics and difficulty of adjustment work. An object is to provide a device for converting an absolute value into a pulse width.

〔課題を解決するための手段〕[Means for Solving the Problems]

本発明のバッテリ充放電電流の絶対値をパルス幅に変換
する装置は、上記の目的を達成するために、バッテリ充
放電電流の検出回路と、所定周期毎にクロックの計数を
開始するカウンタと、このカウンタのカウント値をアナ
ログ電圧に変換するバイポーラタイプのD/Aコンバータ
と、このD/Aコンバータの出力電圧と前記検出回路の出
力電圧とを比較する比較器と、前記D/Aコンバータの入
力となる前記カウンタの出力ビットの内の零アンペア相
当で値が反転するビットの出力と前記比較器の出力とを
入力とする排他的論理和回路とを有している。
A device for converting the absolute value of the battery charge / discharge current of the present invention into a pulse width is, in order to achieve the above-mentioned object, a battery charge / discharge current detection circuit, and a counter for starting the counting of a clock for each predetermined period, A bipolar type D / A converter that converts the count value of this counter into an analog voltage, a comparator that compares the output voltage of this D / A converter with the output voltage of the detection circuit, and the input of the D / A converter. Of the output bits of the counter corresponding to zero amperes, the output of the bit whose value is inverted and the output of the comparator are input to the exclusive OR circuit.

〔作用〕 本発明のバッテリ充放電電流の絶対値をパルス幅に変換
する装置においては、検出回路が実際にバッテリを流れ
るバッテリ充放電電流を検出して比較器の一方の入力に
その出力電圧を加え、バイポーラのD/Aコンバータが、
所定周期毎にクロックの計数を開始するカウンタのカウ
ント値をアナログ電圧に変換して比較器の他方の入力に
加え、比較器が双方の電圧を比較し、排他的論理和回路
がD/Aコンバータの入力となる前記カウンタの出力ビッ
トの内の零アンペア相当で値が反転するビットの出力と
前記比較器の出力との排他的論理和条件をとることによ
りバッテリ充放電電流の絶対値に応じたパルス幅のパル
スを出力する。
[Operation] In the device for converting the absolute value of the battery charging / discharging current of the present invention into the pulse width, the detection circuit detects the battery charging / discharging current actually flowing through the battery and outputs the output voltage to one input of the comparator. In addition, the bipolar D / A converter
The count value of the counter that starts counting the clock at every predetermined cycle is converted to an analog voltage and added to the other input of the comparator, the comparator compares both voltages, and the exclusive OR circuit is the D / A converter. According to the absolute value of the battery charge / discharge current, the exclusive OR condition of the output of the comparator and the output of the bit whose value is inverted by zero amps of the output bits of the counter that becomes the input of Output a pulse of pulse width.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して詳細に説
明する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は本発明のバッテリ充放電電流の絶対値をパルス
幅に変換する装置の一実施例のブロック図であり、既に
説明した第3図と同一符号は同一部分を示し、2はバイ
ポーラタイプのD/Aコンバータ、4は排他的論理和回路
である。本実施例が第3図の従来例と相違するところ
は、第3図のアナログ絶対値アンプ10を取り除いて充放
電電流検出回路1の出力をそのまま比較器3の一方の入
力端子に入力した点、第3図のユニポーラタイプのD/A
コンバータ2′をバイポーラタイプのD/Aコンバータ2
に置き換えた点、D/Aコンバータ2の入力となるカウン
タ7の出力ビットの内の零アンペア(0A)相当で値が反
転するビットの出力と比較器3の出力とを入力とする排
他的論理和回路4を論理積回路5の前段に設けた点にあ
る。カウンタ7が8ビットカウンタとすると、その0ビ
ット目〜7ビット目の値がD/Aコンバータ2に入力さ
れ、D/Aコンバータ2はカウンタ7のカウント値が00HEX
のとき−5Vを、FFHEXのとき+5Vを出力し、00HEX〜FF
HEXの間では−5Vから+5Vまで線形に変化する電圧を出
力する。従って、カウンタ7のカウント値が80HEX(100
0 0000)のとき即ち7ビット目のみが“1"のとき零Vの
電圧を出力することになるので、その7ビット目が排他
的論理和回路4に加えられている。
FIG. 1 is a block diagram of an embodiment of an apparatus for converting an absolute value of a battery charge / discharge current into a pulse width according to the present invention. The same reference numerals as those in FIG. D / A converter 4 is an exclusive OR circuit. The present embodiment is different from the conventional example of FIG. 3 in that the analog absolute value amplifier 10 of FIG. 3 is removed and the output of the charge / discharge current detection circuit 1 is directly input to one input terminal of the comparator 3. , Unipolar type D / A in Fig. 3
The converter 2'is a bipolar type D / A converter 2
The exclusive logic in which the output of the bit whose value is inverted by zero amperes (0A) among the output bits of the counter 7 that is the input of the D / A converter 2 and the output of the comparator 3 are input The sum circuit 4 is provided before the AND circuit 5. If the counter 7 is an 8-bit counter, the value of the 0th bit to the 7th bit is input to the D / A converter 2, and the D / A converter 2 sets the count value of the counter 7 to 00 HEX.
-5V when FF HEX , + 5V when FF HEX , 00 HEX ~ FF
A voltage that changes linearly from -5V to + 5V is output during HEX . Therefore, the count value of the counter 7 is 80 HEX (100
00000), that is, when only the 7th bit is "1", a voltage of 0V is output, so the 7th bit is added to the exclusive OR circuit 4.

第2図は、カウンタ7がクロックの計数を開始してから
ほぼ最大値に達するまでの期間における第1図のD/Aコ
ンバータ2の入出力特性と、比較器3の出力,カウンタ
7の7ビット目の値および排他的論理和回路4の出力の
時間的な変化を示す図であり、以下第2図を参照しなが
ら第1図の実施例の動作を説明する。
2 shows the input / output characteristics of the D / A converter 2 in FIG. 1 during the period from when the counter 7 starts counting the clock to when it reaches the maximum value, the output of the comparator 3, and 7 of the counter 7. FIG. 6 is a diagram showing a temporal change in the value of the bit and the output of the exclusive OR circuit 4, and the operation of the embodiment shown in FIG. 1 will be described below with reference to FIG.

所定周期の開始時点の到来によりカウンタ7がクロック
の計数を開始し、カウント値が00HEXから徐々に増大し
ていくと、それに応じてD/Aコンバータ2の出力電圧V2
が第2図に示すようにリニアに増大していく。今、バッ
テリが放電状態にあり、充放電電流検出回路1の出力電
圧V1が第2図に示すレベルであったとすると、D/Aコン
バータ2の出力電圧V2が出力電圧V1より小さい期間中、
比較器3の出力は第2図に示すようにロウレベルであ
り、D/Aコンバータ2の出力電圧V2が出力電圧V1を超え
るとハイレベルになる。
When the counter 7 starts counting clocks at the start of a predetermined cycle and the count value gradually increases from 00 HEX , the output voltage V 2 of the D / A converter 2 is correspondingly increased.
Increases linearly as shown in FIG. Now, assuming that the battery is in a discharging state and the output voltage V 1 of the charge / discharge current detection circuit 1 is at the level shown in FIG. 2, the period when the output voltage V 2 of the D / A converter 2 is smaller than the output voltage V 1 During,
The output of the comparator 3 is at low level as shown in FIG. 2, and becomes high level when the output voltage V 2 of the D / A converter 2 exceeds the output voltage V 1 .

他方、D/Aコンバータ2の出力電圧V2が零アンペア以上
になると、第2図に示すようにカウンタ7の7ビット目
の値が“0"から“1"に変わる。従って、7ビット目の値
と比較器3の出力とを入力とする排他的論理和回路4の
出力は第2図に示すものとなり、D/Aコンバータ2の出
力電圧V2が充放電電流検出回路1の出力電圧V1を超えた
時点から零Vに達した時点までの期間中ハイレベルとな
るパルスが得られることになる。そしてこの場合、D/A
コンバータ2の出力電圧V2の特性はリニアなので、排他
的論理和回路4から出力されるパルスのパルス幅はバッ
テリ充放電電流の絶対値に応じたものとなる。
On the other hand, when the output voltage V 2 of the D / A converter 2 is equal to or greater than zero amps, the seventh bit value of the counter 7 as shown in FIG. 2 is changed from "0" to "1". Therefore, the output of the exclusive OR circuit 4 which receives the value of the 7th bit and the output of the comparator 3 is as shown in FIG. 2, and the output voltage V 2 of the D / A converter 2 is the charge / discharge current detection. A pulse having a high level is obtained during the period from when the output voltage V 1 of the circuit 1 is exceeded to when it reaches 0V. And in this case D / A
Since the characteristic of the output voltage V 2 of the converter 2 is linear, the pulse width of the pulse output from the exclusive OR circuit 4 depends on the absolute value of the battery charge / discharge current.

第2図はバッテリが放電状態にある場合のものである
が、バッテリが充電状態になって充放電電流検出回路1
の出力電圧V1が零Vより大きくなると、第2図の比較器
3の出力波形の立ち上がりが同図の7ビット目の値の波
形の立ち上がりよりも右方向にシフトした格好となり、
その立ち上がり時点の差に等しいパルス幅のパルスが排
他的論理和回路4で生成され、やはりバッテリ充放電電
流の絶対値に応じたパルス幅のパルスとなるものであ
る。
FIG. 2 shows the case where the battery is in the discharging state. However, when the battery is in the charging state, the charging / discharging current detection circuit 1
When the output voltage V 1 of the above becomes larger than 0 V, the rising edge of the output waveform of the comparator 3 in FIG. 2 is shifted to the right rather than the rising edge of the waveform of the value of the 7th bit in FIG.
A pulse having a pulse width equal to the difference between the rising times is generated by the exclusive OR circuit 4 and also becomes a pulse having a pulse width corresponding to the absolute value of the battery charge / discharge current.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明のバッテリ充放電電流の絶
対値をパルス幅に変換する装置においては、バイポーラ
タイプのD/Aコンバータを使用し、且つそのD/Aコンバー
タの入力ビットの内の零アンペア相当で値が反転するビ
ットの出力と比較器の出力とを入力とする排他的論理和
回路を使用したことにより、バッテリ充放電電流の検出
回路の出力を直接に比較器に入力することができる。こ
れにより、従来要したアナログ絶対値アンプが不要とな
り、それに起因する温度特性の劣化や調整作業の困難化
等を無くすことができ、また構造も単純なものとなる。
As described above, in the device for converting the absolute value of the battery charging / discharging current of the present invention into the pulse width, the bipolar type D / A converter is used, and zero of the input bits of the D / A converter is used. The output of the battery charge / discharge current detection circuit can be directly input to the comparator by using the exclusive OR circuit that inputs the output of the bit whose value is inverted by ampere and the output of the comparator. it can. As a result, the analog absolute value amplifier required in the past becomes unnecessary, the deterioration of temperature characteristics and the difficulty of adjustment work, etc., which are caused by it, can be eliminated, and the structure becomes simple.

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

第1図は本発明の一実施例のブロック図、 第2図は本発明の実施例の動作説明図および、 第3図は従来例のブロック図である。 図において、 1……充放電電流検出回路 2……バイポーラタイプのD/Aコンバータ 2′……ユニポーラタイプのD/Aコンバータ 3……比較器 4……排他的論理和回路 5……論理積回路 6……充放電判定部 7……D/Aコンバータ用のカウンタ 8……容量積算用カウンタ 9……電流検出用抵抗 10……アナログ絶対値アンプ FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is an operation explanatory diagram of an embodiment of the present invention, and FIG. 3 is a block diagram of a conventional example. In the figure, 1 ... Charge / discharge current detection circuit 2 ... Bipolar type D / A converter 2 '... Unipolar type D / A converter 3 ... Comparator 4 ... Exclusive OR circuit 5 ... Logical product Circuit 6 …… Charging / discharging judgment section 7 …… D / A converter counter 8 …… Capacity integrating counter 9 …… Current detection resistor 10 …… Analog absolute value amplifier

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】バッテリ充放電電流の検出回路と、 所定周期毎にクロックの計数を開始するカウンタと、 該カウンタのカウント値をアナログ電圧に変換するバイ
ポーラタイプのD/Aコンバータと、 該D/Aコンバータの出力電圧と前記検出回路の出力電圧
とを比較する比較器と、 前記D/Aコンバータの入力となる前記カウンタの出力ビ
ットの内の零アンペア相当で値が反転するビットの出力
と前記比較器の出力とを入力とする排他的論理和回路と
を含むことを特徴とするバッテリ充放電電流の絶対値を
パルス幅に変換する装置。
1. A battery charging / discharging current detection circuit, a counter that starts counting clocks at predetermined intervals, a bipolar D / A converter that converts the count value of the counter into an analog voltage, and the D / A converter. A comparator that compares the output voltage of the A converter with the output voltage of the detection circuit, and the output of the bit whose value is inverted at zero amperes of the output bits of the counter that becomes the input of the D / A converter, and An apparatus for converting an absolute value of a battery charging / discharging current into a pulse width, including an exclusive OR circuit having an output of a comparator as an input.
JP1086458A 1989-04-05 1989-04-05 Device for converting absolute value of battery charge / discharge current into pulse width Expired - Lifetime JPH0716290B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1086458A JPH0716290B2 (en) 1989-04-05 1989-04-05 Device for converting absolute value of battery charge / discharge current into pulse width

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1086458A JPH0716290B2 (en) 1989-04-05 1989-04-05 Device for converting absolute value of battery charge / discharge current into pulse width

Publications (2)

Publication Number Publication Date
JPH02266832A JPH02266832A (en) 1990-10-31
JPH0716290B2 true JPH0716290B2 (en) 1995-02-22

Family

ID=13887508

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1086458A Expired - Lifetime JPH0716290B2 (en) 1989-04-05 1989-04-05 Device for converting absolute value of battery charge / discharge current into pulse width

Country Status (1)

Country Link
JP (1) JPH0716290B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI497795B (en) * 2013-03-25 2015-08-21 Univ Nat Changhua Education Battery pulse discharge method and device

Also Published As

Publication number Publication date
JPH02266832A (en) 1990-10-31

Similar Documents

Publication Publication Date Title
US6054861A (en) Apparatus for monitoring power of battery to supply electric power to load
US4194146A (en) Device for controlling the charging and discharging of a storage battery
CN101401288B (en) Power conversion device
US11063577B2 (en) Pulse width modulation technique with time-ratio duty cycle computation
JP2001078370A (en) Charger and charging control circuit
US4864163A (en) Method for detecting input AC voltage
JPH05111241A (en) Dc/dc converter
JPH0677035B2 (en) AC-DC conversion circuit
JP3214735B2 (en) Integration type A / D conversion method and integration type A / D converter
JPH0716290B2 (en) Device for converting absolute value of battery charge / discharge current into pulse width
JP3242985B2 (en) Rechargeable battery charging circuit
US6963194B2 (en) Analog signal measuring device and method
JPS60224075A (en) Discharge monitor circuit
KR970000905B1 (en) Phase measuring system
JP3022010B2 (en) Peak value detection device using level shift circuit, and monitor device using level shift circuit
JPS618679A (en) Direct current value detecting circuit
KR920009363B1 (en) Control circuit of battery charge
JP4071444B2 (en) Analog circuit type constant power supply device
JPH05146088A (en) Charger
JPH06174756A (en) Peak hold circuit
JPH01311833A (en) Charging circuit for battery
JPS6347672A (en) Average value detector
JPH01133526A (en) Digital/analog converter circuit
JPS64665B2 (en)
JPH0265526A (en) A/d converter