JP4623521B2 - Current consumption measuring device - Google Patents

Current consumption measuring device Download PDF

Info

Publication number
JP4623521B2
JP4623521B2 JP2006108172A JP2006108172A JP4623521B2 JP 4623521 B2 JP4623521 B2 JP 4623521B2 JP 2006108172 A JP2006108172 A JP 2006108172A JP 2006108172 A JP2006108172 A JP 2006108172A JP 4623521 B2 JP4623521 B2 JP 4623521B2
Authority
JP
Japan
Prior art keywords
sampling
digital signal
sampling data
current
consumption
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.)
Active
Application number
JP2006108172A
Other languages
Japanese (ja)
Other versions
JP2007278954A (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.)
Alpine Electronics Inc
Original Assignee
Alpine Electronics Inc
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 Alpine Electronics Inc filed Critical Alpine Electronics Inc
Priority to JP2006108172A priority Critical patent/JP4623521B2/en
Publication of JP2007278954A publication Critical patent/JP2007278954A/en
Application granted granted Critical
Publication of JP4623521B2 publication Critical patent/JP4623521B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Description

本発明は、回路内のアナログ素子における消費電流を計測する消費電流計測装置に関する。   The present invention relates to a current consumption measuring device that measures current consumption in an analog element in a circuit.

従来より、様々な場面において、アナログ素子における消費電流の計測が行われている(例えば、特許文献1参照)。特に、車両に搭載されるオーディオ装置等においては、いわゆるバッテリ上がりを防止するために、スピーカ等の消費電流を計測することは重要である。
特開昭58−200170号公報
Conventionally, measurement of current consumption in analog elements has been performed in various scenes (see, for example, Patent Document 1). In particular, in an audio device or the like mounted on a vehicle, it is important to measure current consumption of a speaker or the like in order to prevent so-called battery exhaustion.
JP 58-200170 A

しかしながら、従来のアナログ素子における消費電流の計測においては、別途、電流検出用ICを用いたり、OPアンプ及びA/Dコンバータを用いる必要があり、これらを回路に接続するため、装置構成の大型化やコストの増加を招くという問題があった。また、消費電流の計測に用いられるOPアンプ及びA/Dコンバータ等の部品の精度によって計測誤差が生じてしまうという問題もあった。   However, in the measurement of current consumption in the conventional analog element, it is necessary to separately use a current detection IC, an OP amplifier and an A / D converter. Since these are connected to the circuit, the apparatus configuration is increased in size. There was a problem of incurring an increase in costs. In addition, there is a problem that a measurement error occurs due to the accuracy of components such as an OP amplifier and an A / D converter used for current consumption measurement.

本発明の目的は、上述した問題を解決するものであり、簡易且つ正確に回路内のアナログ素子における消費電流を計測することが可能な消費電流計測装置を提供するものである。   An object of the present invention is to solve the above-described problems, and to provide a consumption current measuring device capable of measuring consumption current in an analog element in a circuit easily and accurately.

本発明の消費電流計測装置は、回路に内蔵されるデジタルシグナルプロセッサとマイクロコンピュータとにより構成され、前記回路内のアナログ素子における消費電流を計測する消費電流計測装置であって、前記デジタルシグナルプロセッサは、前記回路を流れるアナログ信号の電圧レベルを表すデジタル信号を所定の周期でサンプリングするサンプリング手段と、所定の期間内における前記サンプリングにより得られた前記デジタル信号のサンプリングデータの平均値を算出する平均値算出手段とを有し、前記マイクロコンピュータは、前記デジタル信号のサンプリングデータの平均値に基づいて、前記回路を流れる前記アナログ信号の電圧レベルの実効値を算出する実効値算出手段と、前記アナログ信号の電圧レベルの実効値に基づいて、前記アナログ素子における消費電流値を推定する消費電流推定手段とを有することを特徴とする。
The consumption current measuring device of the present invention is a consumption current measuring device configured by a digital signal processor and a microcomputer built in a circuit and measuring consumption current in an analog element in the circuit, wherein the digital signal processor is Sampling means for sampling a digital signal representing the voltage level of the analog signal flowing through the circuit at a predetermined period; and an average value for calculating an average value of sampling data of the digital signal obtained by the sampling within a predetermined period Calculating means, and the microcomputer calculates an effective value of a voltage level of the analog signal flowing through the circuit based on an average value of sampling data of the digital signal, and the analog signal. Based on the effective value of the voltage level And having a current consumption estimating means for estimating a current consumption value in the analog device.

この構成によれば、オーディオ装置等において信号のデジタル処理のために予め内蔵されているデジタルシグナルプロセッサ及びマイクロコンピュータを用いて、アナログ素子における消費電流を計測することが可能となる。また、一般にオーディオ装置等において用いられるデジタルシグナルプロセッサは、高速処理が可能であるのに対して、マイクロプロセッサは、デジタルシグナルプロセッサほどの高速処理ができない場合が多いが、デジタルシグナルプロセッサがアナログ信号の電圧レベルを表すデジタル信号を所定の周期でサンプリングし、所定の期間内におけるサンプリングにより得られたアナログ信号の電圧レベル表すデジタル信号のサンプリングデータの平均値を算出して、マイクロコンピュータがこのアナログ信号の電圧レベル表すデジタル信号のサンプリングデータの平均値に基づいて、前記アナログ信号の電圧レベルの実効値を算出し、更に、アナログ素子における消費電流を推定するようにすることで、処理速度の差を解消し、正確な消費電流の計測が可能となる。更には、従来のように、消費電流の計測に用いられるOPアンプ及びA/Dコンバータ等の部品の精度によって計測誤差が生じることもない。
According to this configuration, the current consumption in the analog element can be measured using a digital signal processor and a microcomputer that are built in in advance for digital processing of signals in an audio device or the like. In general, digital signal processors used in audio devices and the like can perform high-speed processing, whereas microprocessors often cannot perform high-speed processing as much as digital signal processors. The digital signal representing the voltage level is sampled at a predetermined cycle, the average value of the sampling data of the digital signal representing the voltage level of the analog signal obtained by sampling within the predetermined period is calculated, and the microcomputer calculates the analog signal. Calculates the effective value of the analog signal voltage level based on the average value of the sampling data of the digital signal representing the voltage level , and further estimates the current consumption in the analog element, eliminating the difference in processing speed. And accurate consumption It is possible to measure the flow. Furthermore, unlike the prior art, measurement errors do not occur due to the accuracy of components such as an OP amplifier and an A / D converter used for current consumption measurement.

また、本発明の消費電流計測装置は、前記デジタルシグナルプロセッサが、前記所定の期間内におけるサンプリングにより得られた前記デジタル信号のサンプリングデータの数に相当する数の記憶領域によって構成される記憶手段を有し、前記サンプリング手段は、前記サンプリングにより得られた前記デジタル信号のサンプリングデータを前記領域のそれぞれに順次記憶させ、前記平均値算出手段は、前記所定の期間に対応する周期で、前記記憶手段を構成する全ての記憶領域から前記サンプリングにより得られた前記デジタル信号のサンプリングデータを読み出すようにしてもよい。
Further, the current consumption measuring device of the present invention is characterized in that the digital signal processor includes storage means constituted by a number of storage areas corresponding to the number of sampling data of the digital signal obtained by sampling within the predetermined period. And the sampling means sequentially stores the sampling data of the digital signal obtained by the sampling in each of the areas, and the average value calculating means has the storage means in a cycle corresponding to the predetermined period. The sampling data of the digital signal obtained by the sampling may be read from all the storage areas that constitute.

この構成により、デジタルシグナルプロセッサにおけるアナログ信号の電圧レベルを表すデジタル信号のサンプリングと、その平均値の算出を簡易に行うことが可能となる。
With this configuration, it is possible to easily perform sampling of a digital signal representing the voltage level of an analog signal and calculation of an average value thereof in the digital signal processor.

また、本発明の消費電流計測装置は、前記平均値算出手段が、前記所定の期間内におけるサンプリングにより得られた前記デジタル信号のサンプリングデータに対して、当該デジタル信号が表すアナログ信号を全波整流し、更に積分する処理に相当する処理を行って、前記デジタル信号のサンプリングデータの平均値を算出するようにしてもよい。
Further, in the current consumption measuring device according to the present invention, the average value calculating means performs full-wave rectification on the analog signal represented by the digital signal with respect to the sampling data of the digital signal obtained by sampling within the predetermined period. Further, an average value of the sampling data of the digital signal may be calculated by performing a process corresponding to the process of integrating.

また、本発明の消費電流計測装置は、前記マイクロコンピュータが、前記回路における、前記サンプリング手段によるサンプリングの位置と前記アナログ素子との間に、他の素子が存在する場合に、該他の素子による電圧の変化に応じて、前記消費電流推定手段により推定された前記アナログ素子における消費電流値を補正する補正手段を有するようにしてもよい。   Further, the current consumption measuring device according to the present invention is configured such that when the microcomputer has another element between the analog element and the sampling position of the sampling means in the circuit, You may have a correction | amendment means which correct | amends the consumption current value in the said analog element estimated by the said consumption current estimation means according to the change of a voltage.

この構成によれば、サンプリングの位置と前記アナログ素子との間に、他の素子が存在する場合には、当該他の素子による電圧の変化を考慮して、より正確な消費電流を計測することができる。   According to this configuration, when there is another element between the sampling position and the analog element, more accurate current consumption can be measured in consideration of a change in voltage due to the other element. Can do.

また、本発明の消費電流計測装置は、前記マイクロコンピュータが、前記消費電流推定手段により推定された前記アナログ素子における消費電流値に、所定のアイドル電流値を加算する加算手段を有するようにしてもよい。   In the consumption current measuring apparatus according to the present invention, the microcomputer may include addition means for adding a predetermined idle current value to the consumption current value in the analog element estimated by the consumption current estimation means. Good.

この構成によれば、アイドル電流が存在する場合には、消費電流値にそのアイドル電流値を加算することで、より正確な消費電流を計測することができる。   According to this configuration, when there is an idle current, the current consumption can be measured more accurately by adding the idle current value to the current consumption value.

本発明によれば、オーディオ装置等において予め内蔵されているデジタルシグナルプロセッサ及びマイクロコンピュータを用いて、正確にアナログ素子における消費電流を計測することが可能となる。   According to the present invention, current consumption in an analog element can be accurately measured using a digital signal processor and a microcomputer built in an audio apparatus or the like in advance.

以下、本発明の実施の形態について、図面を参照して具体的に説明する。   Hereinafter, embodiments of the present invention will be specifically described with reference to the drawings.

図1は、本発明の実施形態にかかる車載用オーディオ装置の構成を示す図である。図1に示す車載用オーディオ装置10−1は、車両に設置されているネットワーク200からのデジタルオーディオ信号を受けてオーディオ再生を行うものである。この車載用オーディオ装置10−1は、レシーバ12、デジタルシグナルプロセッサ(DSP)14、D/Aコンバータ(DAC)16、アンプ(AMP)18、スピーカ20及びマイクロコンピュータ22により構成される。   FIG. 1 is a diagram showing a configuration of an in-vehicle audio apparatus according to an embodiment of the present invention. An in-vehicle audio apparatus 10-1 shown in FIG. 1 receives a digital audio signal from a network 200 installed in a vehicle and performs audio reproduction. The in-vehicle audio apparatus 10-1 includes a receiver 12, a digital signal processor (DSP) 14, a D / A converter (DAC) 16, an amplifier (AMP) 18, a speaker 20, and a microcomputer 22.

レシーバ12は、ネットワーク200上を伝送されるデジタルオーディオ信号を受け、DSP14へ出力する。DSP14は、入力したデジタルオーディオ信号に対して、様々な処理を行い、DAC16へ出力するとともに、スピーカ20における消費電流を計測するための処理を行う。DAC16は、DSP14によって処理されたデジタルオーディオ信号をアナログオーディオ信号に変換して、AMP18へ出力する。AMP18は、入力したアナログオーディオ信号を所定の増幅度で増幅し、スピーカ20へ出力する。スピーカ20は、増幅後のアナログオーディオ信号に応じた音を出力する。マイクロコンピュータ22は、DSP14とともに、スピーカ20における消費電流を計測するための処理を行う。   The receiver 12 receives a digital audio signal transmitted over the network 200 and outputs it to the DSP 14. The DSP 14 performs various processes on the input digital audio signal, outputs it to the DAC 16, and performs a process for measuring current consumption in the speaker 20. The DAC 16 converts the digital audio signal processed by the DSP 14 into an analog audio signal and outputs the analog audio signal to the AMP 18. The AMP 18 amplifies the input analog audio signal with a predetermined amplification degree and outputs the amplified signal to the speaker 20. The speaker 20 outputs a sound corresponding to the amplified analog audio signal. The microcomputer 22 performs processing for measuring current consumption in the speaker 20 together with the DSP 14.

以下、DSP14及びマイクロコンピュータ22によるスピーカ20における消費電流の計測処理について説明する。   Hereinafter, the current consumption measurement process in the speaker 20 by the DSP 14 and the microcomputer 22 will be described.

図2は、DSP14の構成を示す図である。図2に示すDSP14は、アッテネータ(ATT)52、イコライザ54、ボリューム調整部56、フィルタ58、レベル補正部60、サンプリング処理部62、記憶部64及び平均値算出部66により構成される。   FIG. 2 is a diagram illustrating the configuration of the DSP 14. 2 includes an attenuator (ATT) 52, an equalizer 54, a volume adjustment unit 56, a filter 58, a level correction unit 60, a sampling processing unit 62, a storage unit 64, and an average value calculation unit 66.

ATT52は、入力したデジタルオーディオ信号に対応する音量を所定の減衰度で減衰させる処理を行い、その減衰後の音量に対応するデジタルオーディオ信号をイコライザ54へ出力する。イコライザ54は、入力したデジタルオーディオ信号に対応する音の周波数特性を調整し、ボリューム調整部56へ出力する。   The ATT 52 performs a process of attenuating the volume corresponding to the input digital audio signal with a predetermined attenuation, and outputs the digital audio signal corresponding to the attenuated volume to the equalizer 54. The equalizer 54 adjusts the frequency characteristic of the sound corresponding to the input digital audio signal and outputs the sound to the volume adjustment unit 56.

ボリューム調整部56は、入力したデジタルオーディオ信号に対応する音量を、利用者による図示しない操作部の操作に応じて、調整する。更に、ボリューム調整部56は、調整後の音量に対応するデジタルオーディオ信号をフィルタ58へ出力する。フィルタ58は、デジタルフィルタであり、入力したデジタルオーディオ信号に対するフィルタリング処理を行って、レベル補正部60へ出力する。レベル補正部60は、入力したデジタルオーディオ信号に対して、波形整形等の補正を行い、DAC16及びサンプリング処理部62へ出力する。   The volume adjustment unit 56 adjusts the volume corresponding to the input digital audio signal according to the operation of the operation unit (not shown) by the user. Further, the volume adjustment unit 56 outputs a digital audio signal corresponding to the adjusted volume to the filter 58. The filter 58 is a digital filter, performs a filtering process on the input digital audio signal, and outputs it to the level correction unit 60. The level correction unit 60 corrects waveform shaping or the like for the input digital audio signal, and outputs it to the DAC 16 and the sampling processing unit 62.

サンプリング処理部62は、随時入力したデジタルオーディオ信号に対して、所定の周期で、当該デジタルオーディオ信号に対応するアナログオーディオ信号の電圧レベルのサンプリングを行い、当該電圧レベルのデータ(サンプリングデータ)を記憶部64へ記憶させる。平均値算出部66は、所定の期間内におけるサンプリングデータを記憶部64から読み出し、その平均値(電圧平均値)を算出して、記憶部64へ記憶させる。   The sampling processing unit 62 samples the voltage level of the analog audio signal corresponding to the digital audio signal in a predetermined cycle with respect to the digital audio signal input as needed, and stores the voltage level data (sampling data). The data is stored in the unit 64. The average value calculation unit 66 reads sampling data within a predetermined period from the storage unit 64, calculates the average value (voltage average value), and stores the average value in the storage unit 64.

再び、図1に戻って説明する。マイクロコンピュータ22は、上述したDSP14内の記憶部64に記憶された電圧平均値を読み出し、その実効値(電圧実効値)を算出する。更に、マイクロコンピュータ22は、電圧実効値に基づいて、スピーカ20における消費電流値を推定する。   Again, returning to FIG. The microcomputer 22 reads the voltage average value stored in the storage unit 64 in the DSP 14 and calculates the effective value (voltage effective value). Further, the microcomputer 22 estimates the current consumption value in the speaker 20 based on the voltage effective value.

図3は、DSP14及びマイクロコンピュータ22によるスピーカ20における消費電流の計測処理の概要を示す図である。DSP14は、入力したデジタルオーディオ信号を所定の周期でラッチ(保持)し、所定の期間におけるデジタルオーディオ信号に対応するアナログオーディオ信号を全波整流し、更に積分する処理に相当する処理を行うことによって、当該所定の期間におけるアナログオーディオ信号の電圧平均値を算出する。一方、マイクロコンピュータ22は、電圧平均値から電圧実効値を算出し、当該電圧実効値に基づいて、スピーカ20における消費電流値を推定する。   FIG. 3 is a diagram showing an outline of current consumption measurement processing in the speaker 20 by the DSP 14 and the microcomputer 22. The DSP 14 latches (holds) the input digital audio signal at a predetermined cycle, performs full-wave rectification on the analog audio signal corresponding to the digital audio signal in a predetermined period, and further performs processing corresponding to the integration processing. Then, the voltage average value of the analog audio signal in the predetermined period is calculated. On the other hand, the microcomputer 22 calculates a voltage effective value from the voltage average value, and estimates a current consumption value in the speaker 20 based on the voltage effective value.

図4は、消費電流計測時のDSP14の動作を示すフローチャートである。予め記憶部64には、図5に示すように、1つの電圧平均値を求めるために用いられるサンプリングデータの数(サンプリングデータ最大数)、サンプリングデータの書込先となる記憶部64の記憶領域(サンプリングデータ用記憶領域)のアドレス(書込アドレス)、サンプリングデータの読出元となる記憶部64のサンプリングデータ用記憶領域のアドレス(読出アドレス)、及び、電圧平均値の格納先となる記憶部64の記憶領域(電圧平均値用記憶領域)のアドレス(電圧平均値格納アドレス)の各情報が記憶されている。   FIG. 4 is a flowchart showing the operation of the DSP 14 during current consumption measurement. As shown in FIG. 5, the storage unit 64 stores the number of sampling data (maximum number of sampling data) used for obtaining one voltage average value and the storage area of the storage unit 64 to which the sampling data is written. (Sampling Data Storage Area) Address (Write Address), Sampling Data Storage Area Address (Reading Address) of Storage Part 64 as Sampling Data Reading Source, and Storage Part as Voltage Average Value Storage Destination Information of addresses (voltage average value storage addresses) of 64 storage areas (voltage average value storage areas) is stored.

サンプリングデータ最大数は、ここでは固定値「15」が設定されている。すなわち、15個のサンプリングデータによって1つの電圧平均値が算出されることになる。書込アドレスは、初期値が記憶部64のサンプリングデータ用記憶領域のうち、最大のアドレスとなっており、サンプリングデータがサンプリングデータ用記憶領域に書き込まれる毎にデクリメントされ、次にサンプリングデータが書き込まれるべきサンプリングデータ用記憶領域のアドレスを示す。読出アドレスは、初期値が記憶部64のサンプリングデータ用記憶領域のうち、最小のアドレスとなっており、サンプリングデータがサンプリングデータ用記憶領域に書き込まれる毎にインクリメントされ、次にサンプリングデータが読み出されるべきサンプリングデータ用記憶領域のアドレスを示す。電圧平均値格納アドレスは、固定値が設定されている。   Here, the maximum number of sampling data is set to a fixed value “15”. That is, one voltage average value is calculated from 15 sampling data. The write address has an initial value that is the maximum address in the sampling data storage area of the storage unit 64, and is decremented each time the sampling data is written to the sampling data storage area, and then the sampling data is written. Indicates the address of the sampling data storage area to be processed. The read address is the minimum address in the sampling data storage area of the storage unit 64, and is incremented every time the sampling data is written to the sampling data storage area, and then the sampling data is read out. Indicates the address of the storage area for the sampling data to be stored. A fixed value is set for the voltage average value storage address.

図5に示すような情報が記憶部64に記憶されている状態で、図4に示すDSP14の動作が行われる。DSP14内のサンプリング処理部62は、記憶部64に記憶された書込アドレスを取得する(S101)。次に、サンプリング処理部62は、レベル補正部60から出力されるデジタルオーディオ信号に対して、所定の周期で、当該デジタルオーディオ信号に対応するアナログオーディオ信号の電圧レベルのサンプリングを行い、当該電圧レベルのデータであるサンプリングデータを取得する(S102)。   The operation of the DSP 14 shown in FIG. 4 is performed in a state where the information as shown in FIG. 5 is stored in the storage unit 64. The sampling processing unit 62 in the DSP 14 acquires the write address stored in the storage unit 64 (S101). Next, the sampling processing unit 62 samples the voltage level of the analog audio signal corresponding to the digital audio signal in a predetermined cycle with respect to the digital audio signal output from the level correction unit 60, and the voltage level Sampling data which is the data of (2) is acquired (S102).

更に、サンプリング処理部62は、取得した1つのサンプリングデータを、書込アドレスで特定される記憶部64のサンプリングデータ用記憶領域に記憶させる(S103)。なお、アナログオーディオ信号の電圧レベルがマイナスの値である場合には、サンプリング処理部62は、その絶対値をサンプリングデータとしてサンプリングデータ用記憶領域に記憶させる。   Further, the sampling processing unit 62 stores the acquired one sampling data in the sampling data storage area of the storage unit 64 specified by the write address (S103). When the voltage level of the analog audio signal is a negative value, the sampling processing unit 62 stores the absolute value as sampling data in the sampling data storage area.

次に、サンプリング処理部62は、サンプリングデータ用記憶領域に記憶された書込アドレスをデクリメントし、次にサンプリングデータを書き込むべきサンプリングデータ用記憶領域のアドレスとする(S104)。   Next, the sampling processing unit 62 decrements the write address stored in the sampling data storage area, and sets it as the address of the sampling data storage area where the sampling data is to be written next (S104).

更に、サンプリング処理部62は、記憶部64に記憶されたサンプリング最大数を取得し、S103におけるサンプリングデータの記憶処理が、サンプリング最大数に相当する15回繰り返されたか否かを判定する(S105)。   Further, the sampling processing unit 62 acquires the maximum number of samplings stored in the storage unit 64, and determines whether or not the sampling data storage process in S103 has been repeated 15 times corresponding to the maximum number of samplings (S105). .

図6は、記憶部64のサンプリングデータ用記憶領域におけるサンプリングデータの格納状態の遷移を示す図である。記憶部64には、サンプリングデータの格納用にサンプリング最大数に相当する15個のサンプリングデータ用記憶領域が用意されている。サンプリングデータは、最大のアドレスのサンプリングデータ用記憶領域から順次格納され、15回目の記憶処理によって、15個のサンプリングデータが記憶された時点で、全てのサンプリングデータ用記憶領域にサンプリングデータが記憶されることになる。そして、16回目以降の記憶処理では、既にサンプリングデータが記憶されている最大のアドレスのサンプリングデータ用記憶領域から順次新たなサンプリングデータが上書きされる。   FIG. 6 is a diagram illustrating transition of the storage state of the sampling data in the sampling data storage area of the storage unit 64. The storage unit 64 is provided with 15 sampling data storage areas corresponding to the maximum number of samplings for storing sampling data. Sampling data is sequentially stored from the sampling data storage area of the maximum address, and when 15 sampling data are stored by the 15th storage process, the sampling data is stored in all the sampling data storage areas. Will be. In the 16th and subsequent storage processes, new sampling data is sequentially overwritten from the sampling data storage area of the maximum address where the sampling data is already stored.

S103におけるサンプリングデータの記憶処理が15回繰り返されていない場合には、書込アドレスの取得(S101)以降の動作が繰り返される。一方、S103におけるサンプリングデータの記憶処理が15回繰り返された場合には、平均値算出部66による処理に移行する。   If the sampling data storage process in S103 has not been repeated 15 times, the operation after the acquisition of the write address (S101) is repeated. On the other hand, when the sampling data storage process in S103 is repeated 15 times, the process proceeds to the process by the average value calculation unit 66.

すなわち、平均値算出部66は、記憶部64に記憶された読出アドレスを取得する(S107)。次に、平均値算出部66は、その読出アドレスで特定される記憶部64のサンプリングデータ用記憶領域から1つのサンプリングデータを読み出す(S108)。   That is, the average value calculation unit 66 acquires the read address stored in the storage unit 64 (S107). Next, the average value calculation unit 66 reads one sampling data from the sampling data storage area of the storage unit 64 specified by the read address (S108).

次に、平均値算出部66は、読み出したサンプリングデータを演算結果に加算する(S109)。演算結果は初期値が0であり、サンプリングデータが順次加算されて増加する値である。更に、平均値算出部66は、サンプリングデータ用記憶領域に記憶された読出アドレスをインクリメントし、次にサンプリングデータを読み出すべきサンプリングデータ用記憶領域のアドレスとする(S110)。   Next, the average value calculation unit 66 adds the read sampling data to the calculation result (S109). The calculation result has an initial value of 0, and is a value that increases as sampling data is sequentially added. Furthermore, the average value calculation unit 66 increments the read address stored in the sampling data storage area, and sets it as the address of the sampling data storage area from which the sampling data is to be read next (S110).

更に、サンプリング処理部62は、記憶部64に記憶されたサンプリング最大数を取得し、S109におけるサンプリングデータの加算処理が、サンプリング最大数に相当する15回繰り返されたか否かを判定する(S111)。ここで、S109におけるサンプリングデータの加算処理が15回繰り返されることは、演算処理の結果が15個のサンプリングデータを加算したものであることを意味する。   Further, the sampling processing unit 62 acquires the maximum number of samplings stored in the storage unit 64, and determines whether or not the sampling data addition processing in S109 has been repeated 15 times corresponding to the maximum number of samplings (S111). . Here, the addition of the sampling data in S109 being repeated 15 times means that the result of the arithmetic processing is the sum of 15 sampling data.

S109におけるサンプリングデータの演算処理が15回繰り返されていない場合には、読出アドレスの取得(S107)以降の動作が繰り返される。一方、S109におけるサンプリングデータの演算処理が15回繰り返された場合、換言すれば、演算処理の結果が15個のサンプリングデータを加算したものである場合には、平均値算出部66は、その演算処理の結果に1/15を乗算し、電圧平均値を算出する(S112)。例えば、S102におけるサンプリング周期が1/15秒である場合には、15個のサンプリングデータを加算した演算処理の結果に1/15を乗算して得られる電圧平均値は、1秒間におけるアナログオーディオ信号の平均値を表すことになる。   If the sampling data calculation process in S109 has not been repeated 15 times, the operation after the acquisition of the read address (S107) is repeated. On the other hand, if the sampling data calculation process in S109 is repeated 15 times, in other words, if the result of the calculation process is a sum of 15 sampling data, the average value calculation unit 66 performs the calculation. The process result is multiplied by 1/15 to calculate a voltage average value (S112). For example, when the sampling period in S102 is 1/15 seconds, the voltage average value obtained by multiplying the result of the arithmetic processing obtained by adding 15 sampling data by 1/15 is the analog audio signal for 1 second. It represents the average value of.

更に、平均値算出部66は、記憶部64から電圧平均値格納アドレスを取得し、算出した電圧平均値を、当該電圧平均値格納アドレスで特定される記憶部64の記憶領域へ記憶させる(S113)。その後は、書込アドレスの取得(S101)以降の動作が繰り返される。   Further, the average value calculation unit 66 acquires the voltage average value storage address from the storage unit 64, and stores the calculated voltage average value in the storage area of the storage unit 64 specified by the voltage average value storage address (S113). ). Thereafter, the operations after the acquisition of the write address (S101) are repeated.

図7は、消費電流計測時のマイクロコンピュータ22の動作を示すフローチャートである。図7に示す動作は、DSP14によって、電圧平均値が電圧平均値格納アドレスで特定される記憶部64の記憶領域へ記憶される毎に行われる。   FIG. 7 is a flowchart showing the operation of the microcomputer 22 during current consumption measurement. The operation shown in FIG. 7 is performed every time the DSP 14 stores the voltage average value in the storage area of the storage unit 64 specified by the voltage average value storage address.

マイクロコンピュータ22は、SPI通信やI2C通信により、DSP14の記憶部64に記憶された電圧平均値格納アドレスを取得し、当該電圧平均値格納アドレスで特定される記憶部64の記憶領域から読み出す(S201)。   The microcomputer 22 acquires the voltage average value storage address stored in the storage unit 64 of the DSP 14 through SPI communication or I2C communication, and reads it from the storage area of the storage unit 64 specified by the voltage average value storage address (S201). ).

次に、マイクロコンピュータ22は、読み出した電圧平均値を電圧実効値に換算する処理を行う(S202)。ここでは、マイクロコンピュータ22は、アナログ信号を正弦波と仮定し、電圧平均値に1.11を乗算して、電圧実効値とする。なお、マイクロコンピュータ22は、算出した電圧実効値がスピーカ20へ電力供給を行う図示しないバッテリの電圧に0.707を乗じた値(最大実効値)よりも大きい場合には、電圧実効値をその最大実効値とする。   Next, the microcomputer 22 performs a process of converting the read voltage average value into a voltage effective value (S202). Here, the microcomputer 22 assumes that the analog signal is a sine wave, and multiplies the voltage average value by 1.11 to obtain a voltage effective value. If the calculated voltage effective value is larger than the value (maximum effective value) obtained by multiplying the voltage of a battery (not shown) that supplies power to the speaker 20 by 0.707, the microcomputer 22 sets the effective voltage value to that value. Maximum effective value.

次に、マイクロコンピュータ22は、算出した電圧実効値をスピーカ20のインピーダンスの値で除算することによって、スピーカ20における消費電流の推定値を算出する(S203)。   Next, the microcomputer 22 calculates an estimated value of current consumption in the speaker 20 by dividing the calculated effective voltage value by the impedance value of the speaker 20 (S203).

更に、マイクロコンピュータ22は、DSP14とスピーカ20との間に存在するDAC16及びAMP18による電圧の変化に応じて、消費電流の推定値に所定の補正係数を乗算する(S204)。ここで、補正係数は、DAC16及びAMP18の実測評価によって予め得られる値である。   Further, the microcomputer 22 multiplies the estimated value of current consumption by a predetermined correction coefficient in accordance with the change in voltage by the DAC 16 and the AMP 18 existing between the DSP 14 and the speaker 20 (S204). Here, the correction coefficient is a value obtained in advance by actual measurement evaluation of the DAC 16 and the AMP 18.

次に、マイクロコンピュータ22は、予め定められている、デジタルオーディオ信号が存在しない場合におけるスピーカ20の電流(アイドル電流)を、S204における乗算値に加算し、スピーカ20における最終的な消費電流値とする(S205)。   Next, the microcomputer 22 adds a predetermined current (idle current) of the speaker 20 when there is no digital audio signal to the multiplication value in S204, and determines the final current consumption value in the speaker 20. (S205).

このように、本実施形態の車載用オーディオ装置10−1は、信号のデジタル処理のために予め内蔵されているDSP14及びマイクロコンピュータ22を用いて、スピーカ20における消費電流を計測することが可能となる。また、マイクロコンピュータ22は、DSP14に比較して処理速度が遅いものの、DSP14が所定の期間内におけるサンプリングにより得られたアナログ信号の電圧レベルの平均値を算出して、マイクロコンピュータ22がこのアナログ信号の電圧レベルの平均値に基づいて、実効値を算出し、更に、スピーカ20における消費電流を推定するようにすることで、処理速度の差を解消し、正確な消費電流の計測が可能となる。更には、従来のように、消費電流の計測に用いられるOPアンプ及びA/Dコンバータ等の部品の精度によって計測誤差が生じることもない。   As described above, the in-vehicle audio apparatus 10-1 of the present embodiment can measure the current consumption in the speaker 20 by using the DSP 14 and the microcomputer 22 that are built in in advance for digital processing of signals. Become. Although the microcomputer 22 is slower in processing speed than the DSP 14, the DSP 14 calculates an average value of voltage levels of analog signals obtained by sampling within a predetermined period, and the microcomputer 22 calculates the analog signals. By calculating the effective value based on the average value of the voltage level and estimating the current consumption in the speaker 20, the difference in processing speed can be eliminated and the accurate measurement of the current consumption becomes possible. . Furthermore, unlike the prior art, measurement errors do not occur due to the accuracy of components such as an OP amplifier and an A / D converter used for current consumption measurement.

また、車載用オーディオ装置10−1では、DSP14とスピーカ20との間に存在するDAC16及びAMP18による電圧の変化に応じて、消費電流の推定値に所定の補正係数を乗算し、更に、スピーカ20のアイドル電流を、その乗算値に加算して、スピーカ20における最終的な消費電流値としており、より正確な消費電流を計測することができる。   Further, in the in-vehicle audio apparatus 10-1, the estimated value of the current consumption is multiplied by a predetermined correction coefficient according to a change in voltage by the DAC 16 and the AMP 18 existing between the DSP 14 and the speaker 20, and the speaker 20 Is added to the multiplication value to obtain a final current consumption value in the speaker 20, and a more accurate current consumption can be measured.

なお、上述した実施形態では、1つのスピーカ20を有する車載用オーディオ装置10−1について説明したが、図8に示すように複数のスピーカ20を有する車載用オーディオ装置10−2についても、同様に本発明を適用することができる。この場合、DSP14及びマイクロコンピュータ22が、各スピーカ20について消費電流値を算出し、それらを足し合わせることで、全体の消費電流を計測することができる。また、各スピーカ20のインピーダンスが同一である場合には、DSP14及びマイクロコンピュータ22が、1つのスピーカ20について消費電流値を算出し、その値にスピーカ20の個数を乗算することで、全体の消費電流を計測することができる。   In the above-described embodiment, the in-vehicle audio device 10-1 having one speaker 20 has been described, but the same applies to the in-vehicle audio device 10-2 having a plurality of speakers 20 as shown in FIG. The present invention can be applied. In this case, the DSP 14 and the microcomputer 22 can calculate the current consumption value for each speaker 20 and add them to measure the total current consumption. Further, when the impedance of each speaker 20 is the same, the DSP 14 and the microcomputer 22 calculate the current consumption value for one speaker 20 and multiply the value by the number of speakers 20 to obtain the overall consumption. Current can be measured.

また、上述した実施形態では、スピーカ20の消費電流を計測する場合について説明したが、他のアナログ素子の消費電流を計測する場合にも、同様に本発明を適用することができる。   In the above-described embodiment, the case where the current consumption of the speaker 20 is measured has been described. However, the present invention can be similarly applied to the case where the current consumption of other analog elements is measured.

以上、説明したように、本発明に係る消費電流計測装置は、簡易且つ正確に回路内のアナログ素子における消費電流を計測することが可能であり、消費電流計測装置として有用である。   As described above, the consumption current measuring apparatus according to the present invention can easily and accurately measure the consumption current in the analog elements in the circuit, and is useful as a consumption current measuring apparatus.

本発明の実施形態に係る車載用オーディオ装置の構成を示す図である。It is a figure which shows the structure of the vehicle-mounted audio apparatus which concerns on embodiment of this invention. DSPの構成を示す図である。It is a figure which shows the structure of DSP. DSP及びマイクロコンピュータによるスピーカにおける消費電流の計測処理の概要を示す図である。It is a figure which shows the outline | summary of the measurement process of the consumption current in the speaker by DSP and a microcomputer. DSPの消費電流計測時の動作を示すフローチャートである。It is a flowchart which shows the operation | movement at the time of the consumption current measurement of DSP. 消費電流計測に必要な情報の一例を示す図である。It is a figure which shows an example of information required for consumption current measurement. サンプリングデータの格納状態の遷移を示す図である。It is a figure which shows the transition of the storage state of sampling data. マイクロコンピュータの消費電流計測時の動作を示すフローチャートである。It is a flowchart which shows the operation | movement at the time of the consumption current measurement of a microcomputer. 本発明の実施形態に係る車載用オーディオ装置の他の構成を示す図である。It is a figure which shows the other structure of the vehicle-mounted audio apparatus which concerns on embodiment of this invention.

符号の説明Explanation of symbols

10−1、10−2 車載用オーディオ装置
12 レシーバ
14 DSP
16 DAC
18 AMP
20 スピーカ
22 マイクロコンピュータ
52 ATT
54 イコライザ
56 ボリューム調整部
58 フィルタ
60 レベル補正部
62 サンプリング処理部
64 記憶部
66 平均値算出部
200 ネットワーク
10-1, 10-2 On-vehicle audio system 12 Receiver 14 DSP
16 DAC
18 AMP
20 Speaker 22 Microcomputer 52 ATT
54 Equalizer 56 Volume Adjustment Unit 58 Filter 60 Level Correction Unit 62 Sampling Processing Unit 64 Storage Unit 66 Average Value Calculation Unit 200 Network

Claims (5)

回路に内蔵されるデジタルシグナルプロセッサとマイクロコンピュータとにより構成され、前記回路内のアナログ素子における消費電流を計測する消費電流計測装置であって、
前記デジタルシグナルプロセッサは、
前記回路を流れるアナログ信号の電圧レベルを表すデジタル信号を所定の周期でサンプリングするサンプリング手段と、
所定の期間内における前記サンプリングにより得られた前記デジタル信号のサンプリングデータの平均値を算出する平均値算出手段とを有し、
前記マイクロコンピュータは、前記デジタル信号のサンプリングデータの平均値に基づいて、前記回路を流れる前記アナログ信号の電圧レベルの実効値を算出する実効値算出手段と、
前記アナログ信号の電圧レベルの実効値に基づいて、前記アナログ素子における消費電流値を推定する消費電流推定手段とを有することを特徴とする消費電流計測装置。
A current consumption measuring device configured by a digital signal processor and a microcomputer built in a circuit and measuring current consumption in an analog element in the circuit,
The digital signal processor is:
Sampling means for sampling a digital signal representing a voltage level of an analog signal flowing through the circuit at a predetermined period;
Average value calculating means for calculating an average value of sampling data of the digital signal obtained by the sampling within a predetermined period;
The microcomputer has an effective value calculating means for calculating an effective value of a voltage level of the analog signal flowing through the circuit based on an average value of sampling data of the digital signal ;
A consumption current measuring device comprising: consumption current estimation means for estimating a consumption current value in the analog element based on an effective value of the voltage level of the analog signal.
前記デジタルシグナルプロセッサは、
前記所定の期間内におけるサンプリングにより得られた前記デジタル信号のサンプリングデータの数に相当する数の記憶領域によって構成される記憶手段を有し、
前記サンプリング手段は、前記サンプリングにより得られた前記デジタル信号のサンプリングデータを前記領域のそれぞれに順次記憶させ、
前記平均値算出手段は、前記所定の期間に対応する周期で、前記記憶手段を構成する全ての記憶領域から前記サンプリングにより得られた前記デジタル信号のサンプリングデータを読み出すことを特徴とする請求項1に記載の消費電流計測装置。
The digital signal processor is:
Storage means constituted by a number of storage areas corresponding to the number of sampling data of the digital signal obtained by sampling within the predetermined period;
The sampling means sequentially stores the sampling data of the digital signal obtained by the sampling in each of the areas,
2. The average value calculating unit reads sampling data of the digital signal obtained by the sampling from all storage areas constituting the storage unit at a cycle corresponding to the predetermined period. The current consumption measuring device described in 1.
前記平均値算出手段は、前記所定の期間内におけるサンプリングにより得られた前記デジタル信号のサンプリングデータに対して、当該デジタル信号が表すアナログ信号を全波整流し、更に積分する処理に相当する処理を行って、前記デジタル信号のサンプリングデータの平均値を算出することを特徴とする請求項1又は2に記載の消費電流計測装置。 The average value calculating means performs a process corresponding to a process of full-wave rectifying and further integrating an analog signal represented by the digital signal with respect to sampling data of the digital signal obtained by sampling within the predetermined period. The consumption current measuring device according to claim 1, wherein the average value of the sampling data of the digital signal is calculated. 前記マイクロコンピュータは、前記回路における、前記サンプリング手段によるサンプリングの位置と前記アナログ素子との間に、他の素子が存在する場合に、該他の素子による電圧の変化に応じて、前記消費電流推定手段により推定された前記アナログ素子における消費電流値を補正する補正手段を有することを特徴とする請求項1乃至3のいずれかに記載の消費電流計測装置。   When there is another element between the sampling position of the sampling means and the analog element in the circuit, the microcomputer estimates the current consumption according to a change in voltage by the other element. 4. The consumption current measuring device according to claim 1, further comprising a correction unit that corrects a consumption current value of the analog element estimated by the unit. 前記マイクロコンピュータは、前記消費電流推定手段により推定された前記アナログ素子における消費電流値に、所定のアイドル電流値を加算する加算手段を有することを特徴とする請求項1乃至4のいずれかに記載の消費電流計測装置。   5. The microcomputer according to claim 1, further comprising adding means for adding a predetermined idle current value to a current consumption value in the analog element estimated by the current consumption estimating means. Current consumption measuring device.
JP2006108172A 2006-04-11 2006-04-11 Current consumption measuring device Active JP4623521B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006108172A JP4623521B2 (en) 2006-04-11 2006-04-11 Current consumption measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006108172A JP4623521B2 (en) 2006-04-11 2006-04-11 Current consumption measuring device

Publications (2)

Publication Number Publication Date
JP2007278954A JP2007278954A (en) 2007-10-25
JP4623521B2 true JP4623521B2 (en) 2011-02-02

Family

ID=38680536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006108172A Active JP4623521B2 (en) 2006-04-11 2006-04-11 Current consumption measuring device

Country Status (1)

Country Link
JP (1) JP4623521B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS646152U (en) * 1987-06-27 1989-01-13
JPH0366216U (en) * 1989-10-24 1991-06-27
JPH04105073A (en) * 1990-08-24 1992-04-07 Yokogawa Electric Corp Measuring device for effective value
JP2001083217A (en) * 1999-09-16 2001-03-30 Oki Micro Design Co Ltd Integrated circuit
JP2004151908A (en) * 2002-10-30 2004-05-27 Sony Corp Power circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS646152U (en) * 1987-06-27 1989-01-13
JPH0366216U (en) * 1989-10-24 1991-06-27
JPH04105073A (en) * 1990-08-24 1992-04-07 Yokogawa Electric Corp Measuring device for effective value
JP2001083217A (en) * 1999-09-16 2001-03-30 Oki Micro Design Co Ltd Integrated circuit
JP2004151908A (en) * 2002-10-30 2004-05-27 Sony Corp Power circuit

Also Published As

Publication number Publication date
JP2007278954A (en) 2007-10-25

Similar Documents

Publication Publication Date Title
US8259953B2 (en) Thermal protection of electro dynamic transducers used in loudspeaker systems
CN101924526B (en) Audio signal controller
CN101339769B (en) Echo suppressor and echo suppressing method
EP3919899A1 (en) Formaldehyde concentration measurement method and apparatus, and air purifier
JP5598552B2 (en) Voice control device, voice control method, voice control program, and portable terminal device
JP4927957B2 (en) Method for evaluating noise level in a communication system
US8319507B2 (en) System and method for sensing an amplifier load current
EP2726835A1 (en) Vibration monitoring system
US7373266B2 (en) Sensor calibration using selectively disconnected temperature
US20120014537A1 (en) System and Method for Automatic Microphone Volume Setting
WO2014015746A1 (en) Rssi measurement method, rssi measurement device, and receiver
JP4623521B2 (en) Current consumption measuring device
JP5772591B2 (en) Audio signal processing device
EP3709299A1 (en) Digital audio processing device, method for processing digital audio, and digital audio processing program
US20120027220A1 (en) Acoustic device, noise control method, noise control program, and recording medium
JP2015172598A (en) Precise noise meter
US6782335B1 (en) Method and system for estimating input power in a cable modem network
JP3908598B2 (en) Wave signal processing system and method
US20100278354A1 (en) Voice recording method, digital processor and microphone array system
JP2006500854A5 (en)
JP4892229B2 (en) Precision sound level meter
CN117198320A (en) Method for measuring amplitude of sound signal, related device and readable storage medium
JP2008193719A (en) Radio transmitter
JP2004356874A (en) Sensor input unit
CN116743168A (en) DC voltage compensation information processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090220

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100811

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100818

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101005

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20101027

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101027

R150 Certificate of patent or registration of utility model

Ref document number: 4623521

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20131112

Year of fee payment: 3