JPH05167450A - A/d converter circuit - Google Patents

A/d converter circuit

Info

Publication number
JPH05167450A
JPH05167450A JP3350169A JP35016991A JPH05167450A JP H05167450 A JPH05167450 A JP H05167450A JP 3350169 A JP3350169 A JP 3350169A JP 35016991 A JP35016991 A JP 35016991A JP H05167450 A JPH05167450 A JP H05167450A
Authority
JP
Japan
Prior art keywords
signal
analog
digital
pulse width
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3350169A
Other languages
Japanese (ja)
Inventor
Takashi Katagiri
崇 片桐
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.)
Nidec Sankyo Corp
Original Assignee
Nidec Sankyo 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 Nidec Sankyo Corp filed Critical Nidec Sankyo Corp
Priority to JP3350169A priority Critical patent/JPH05167450A/en
Priority to US07/965,187 priority patent/US5355136A/en
Priority to DE4241702A priority patent/DE4241702A1/en
Publication of JPH05167450A publication Critical patent/JPH05167450A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P27/00Arrangements or methods for the control of AC motors characterised by the kind of supply voltage
    • H02P27/04Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage
    • H02P27/06Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage using dc to ac converters or inverters
    • H02P27/08Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage using dc to ac converters or inverters with pulse width modulation
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/50Analogue/digital converters with intermediate conversion to time interval
    • H03M1/504Analogue/digital converters with intermediate conversion to time interval using pulse width modulation

Abstract

PURPOSE:To improve the resolution and to allow the A/D converter circuit to hardly receive the effect of noise in the A/D converter circuit comprising a comparator comparing an analog signal with a triangle wave with a prescribed frequency and a prescribed amplitude to convert the signal into a PWM signal and a counter measuring a positive or negative period of the PWM signal and converting it into a digital signal. CONSTITUTION:A current measured value of a PWM signal 9 by a counter 31 and a measured value at least at one preceding time are added and the result is used for a digital output. Or the PWM signal 9 is measured for a positive period/(entire period) or a negative period/(entire period) or a period being a prescribed multiple of the period and converted into a digital signal. The current measured value of the PWM signal 9 and the measured value at least at one preceding time may be obtained by subtracting data corresponding to a rectangular wave duty obtained through the comparison between a prescribed voltage and a triangle wave from the data corresponding to the duty of the PWM signal 9.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えばモータ制御回路
等に用いるのに適したアナログ・デジタル変換回路に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an analog / digital conversion circuit suitable for use in, for example, a motor control circuit.

【0002】[0002]

【従来の技術】例えば、モータ制御回路等では、マイク
ロプロセッサを用いてソフトウエアによる制御を行うよ
うにしたものがある。このようなソフトウエアによるモ
ータ制御回路によれば、アナログ・デジタルコンバータ
ICを用いているため、コスト高になるという難点があ
り、また、アナログ・デジタルコンバータICとマイク
ロプロセッサ間はそのビット数に応じて多数の線で接続
する必要があるため、マイクロプロセッサの入出力ポー
トがアナログ・デジタルコンバータICからの線で占有
されてしまい、マイクロプロセッサを有効に利用するこ
とができないという問題もある。
2. Description of the Related Art For example, in a motor control circuit or the like, there is one in which control is performed by software using a microprocessor. According to such a motor control circuit using software, since the analog / digital converter IC is used, there is a drawback that the cost becomes high. Further, between the analog / digital converter IC and the microprocessor, the number of bits is changed. Since it is necessary to connect with a large number of lines, the input / output port of the microprocessor is occupied by the lines from the analog-digital converter IC, and there is also a problem that the microprocessor cannot be effectively used.

【0003】そこで本出願人は、アナログ信号である指
令信号を一定周波数で一定振幅の三角波と比較してパル
ス幅変調信号に変換するコンパレータと、上記パルス幅
変調信号の正又は負の区間だけクロックパルスをカウン
トしてデジタル信号に変換するカウンタとを用いること
により、アナログ・デジタルコンバータICを不要にし
たアナログ・デジタル変換回路に関して先に特許出願し
た。特願平3−109799号にかかる発明がそれであ
る。
Therefore, the applicant of the present invention compares a command signal, which is an analog signal, with a triangular wave having a constant frequency and a constant amplitude, and converts it into a pulse width modulation signal, and a clock for a positive or negative section of the pulse width modulation signal. We have previously filed a patent application for an analog-digital conversion circuit that does not require an analog-digital converter IC by using a counter that counts pulses and converts them into digital signals. The invention according to Japanese Patent Application No. 3-109799 is that.

【0004】本出願人はまた、上記出願にかかる発明を
基礎にして、パルス幅変調信号の(正の区間)/(全周
期)あるいはその定数倍又は(負の区間)/(全周期)
あるいはその定数倍によってデジタルデータを求めるよ
うにし、これによって温度変化や経年変化等による変換
精度の低下を防止することができるアナログ・デジタル
変換回路に関して先に特許出願した。特願平3−109
800号にかかる発明がそれである。
Based on the invention according to the above-mentioned application, the applicant of the present invention is also based on (positive section) / (entire period) of pulse width modulation signal or a constant multiple thereof or (negative section) / (full period).
Alternatively, a patent application was previously filed for an analog-digital conversion circuit that can obtain digital data by multiplying it by a constant, thereby preventing a decrease in conversion accuracy due to temperature changes, aging changes, and the like. Japanese Patent Application No. 3-109
That is the invention of No. 800.

【0005】本出願人はさらに、三角波の直流分が温度
により変化しても、また、コンパレータのオフセット電
圧が温度により変化しても、デジタル出力データが変化
することのないようにするために、パルス幅変調信号の
デューティに対応するデータから、一定電圧と三角波を
比較して得られる矩形波のデューティに対応するデータ
を引くようにしたアナログ・デジタル変換回路に関して
先に特許出願した。特願平3−137219号にかかる
発明がそれである。
Further, the applicant of the present invention ensures that the digital output data does not change even if the DC component of the triangular wave changes with temperature and the offset voltage of the comparator changes with temperature. We have previously filed a patent application for an analog / digital conversion circuit that subtracts data corresponding to the duty of a rectangular wave obtained by comparing a constant voltage and a triangular wave from data corresponding to the duty of a pulse width modulation signal. That is the invention of Japanese Patent Application No. 3-137219.

【0006】[0006]

【発明が解決しようとする課題】本発明は、上記各出願
にかかる発明をさらに改良したものである。すなわち、
上記各出願にかかる発明によれば、分解能が必ずしも充
分でない場合がある。特にパルス幅変調信号の正又は負
の区間において計測されるクロックパルスの数が少ない
と、分解能が悪くなる。例えば、パルス幅変調のキャリ
ア周波数に対して、マイクロプロセッサの内部周波数を
上げられない場合、所望の分解能が得られないという問
題があった。また、上記各出願にかかる発明によれば、
三角波発生回路やコンパレータのプラスおよびマイナス
直流電源および接地端子にノイズが乗ると、コンパレー
タの参照電圧および入力電圧が変動してパルス幅変調信
号のデューティが変動し、デジタル変換出力が変動する
という問題があった。特に、電源として低コストのスイ
ッチング電源を用いている場合はノイズの影響を受けや
すかった。
The present invention is a further improvement of the invention according to each of the above applications. That is,
According to the inventions according to the above applications, the resolution may not always be sufficient. In particular, when the number of clock pulses measured in the positive or negative section of the pulse width modulation signal is small, the resolution becomes poor. For example, if the internal frequency of the microprocessor cannot be increased with respect to the carrier frequency of pulse width modulation, there is a problem that a desired resolution cannot be obtained. According to the inventions of the above applications,
When noise is added to the plus and minus DC power supplies and the ground terminal of the triangular wave generation circuit and the comparator, the reference voltage and input voltage of the comparator fluctuate, the duty of the pulse width modulation signal fluctuates, and the digital conversion output fluctuates. there were. In particular, when a low-cost switching power supply was used as the power supply, it was easily affected by noise.

【0007】本発明は、このような問題点を解消するた
めになされたもので、アナログ信号を一定周波数で一定
振幅の三角波と比較してパルス幅変調信号に変換するコ
ンパレータと、パルス幅変調信号の正又は負の区間を計
測してデジタル信号に変換するカウンタとを有してなる
アナログ・デジタル変換回路において、分解能を高くす
ることができると共に、ノイズの影響を受けにくいアナ
ログ・デジタル変換回路を提供することを目的とする。
The present invention has been made in order to solve such a problem, and a comparator for converting an analog signal into a pulse width modulation signal by comparing it with a triangular wave having a constant frequency and a constant amplitude, and a pulse width modulation signal. In an analog-digital conversion circuit that has a counter that measures the positive or negative section of and converts it into a digital signal, an analog-digital conversion circuit that can increase the resolution and is not easily affected by noise The purpose is to provide.

【0008】[0008]

【課題を解決するための手段】本発明は、アナログ信号
を一定周波数で一定振幅の三角波と比較してパルス幅変
調信号に変換するコンパレータと、パルス幅変調信号の
正又は負の区間を計測してデジタル信号に変換するカウ
ンタとを有し、カウンタによるパルス幅変調信号の現在
の計測値と少なくとも一つ前の計測値とを加算した値を
デジタル出力とすることを特徴とする。
According to the present invention, a comparator for comparing an analog signal with a triangular wave having a constant frequency and a constant amplitude to convert the analog signal into a pulse width modulated signal, and measuring a positive or negative section of the pulse width modulated signal. And a counter for converting the pulse width modulated signal by the counter to a digital signal, and a value obtained by adding a current measured value of the pulse width modulated signal by the counter and at least one previous measured value is digitally output.

【0009】パルス幅変調信号の現在の計測値と複数個
前までの計測値とを加算した値をデジタル出力としても
よく、デジタル出力を、パルス幅変調信号に同期させて
得るようにしてもよい。デジタル出力は一定期間毎計算
し、出力してもよい。また、パルス幅変調信号の(正の
区間)/(全周期)あるいはその定数倍をデジタル出力
としてもよく、また、パルス幅変調信号の(負の区間)
/(全周期)あるいはその定数倍をデジタル信号出力と
してもよい。さらに、パルス幅変調信号のデューティに
対応するデータから、一定電圧と三角波を比較して得ら
れる矩形波のデューティに対応するデータを引くことに
よってデジタル出力を得るようにしてもよい。
A value obtained by adding the current measured value of the pulse width modulated signal and the measured values up to a plurality of times before may be used as the digital output, or the digital output may be obtained in synchronization with the pulse width modulated signal. .. The digital output may be calculated and output at fixed intervals. Further, the (positive section) / (entire period) of the pulse width modulation signal or a constant multiple thereof may be used as the digital output, and the (negative section) of the pulse width modulation signal may be used.
The digital signal output may be / (all cycles) or a constant multiple thereof. Further, the digital output may be obtained by subtracting the data corresponding to the duty of the rectangular wave obtained by comparing the constant voltage and the triangular wave from the data corresponding to the duty of the pulse width modulation signal.

【0010】[0010]

【作用】コンパレータでアナログ信号と三角波とを比較
することにより指令信号レベルに応じたパルス幅変調信
号に変換し、このパルス幅変調信号の正又は負の区間だ
けカウンタで計測することによってデジタル信号を得
る。このデジタル信号は、アナログ信号レベルに対応し
ている。カウンタによるパルス幅変調信号の現在の計測
値と少なくとも一つ前の計測値とを加算することによ
り、カウント値が少なくとも約2倍になり、分解能が約
2倍に向上する。カウンタによるパルス幅変調信号の現
在の計測値と少なくとも一つ前の計測値とを加算するこ
とによってローパスフィルタとしての機能をもたせるこ
とになり、耐ノイズ性が向上する。
The digital signal is converted into a pulse width modulation signal corresponding to the command signal level by comparing the analog signal and the triangular wave with the comparator, and the digital signal is obtained by measuring only the positive or negative section of the pulse width modulation signal with the counter. obtain. This digital signal corresponds to the analog signal level. By adding the current measured value of the pulse width modulated signal by the counter and the measured value of at least one before, the count value is at least approximately doubled, and the resolution is approximately doubled. By adding the current measured value of the pulse width modulated signal by the counter and the measured value of at least one before, the function as a low-pass filter is provided, and the noise resistance is improved.

【0011】[0011]

【実施例】以下、図面を参照しながら本発明にかかるア
ナログ・デジタル変換回路の実施例について説明する。
図1において、アナログ信号である速度指令電圧7はロ
ーパスフィルタ1に入力され、ローパスフィルタ1の出
力と三角波8がコンパレータ2に入力される。コンパレ
ータ2の出力は、タイマ31を内蔵するマイクロプロセ
ッサ3に入力される。マイクロプロセッサ3は、タイマ
31が有するカウンタにて内部クロックパルスを利用し
て速度指令電圧に対応したデジタル信号を得ると共に、
エンコーダ6からのモータ5の回転速度信号と上記デジ
タル信号の偏差がゼロとなるようにインバータ4を制御
するようになっている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of an analog / digital conversion circuit according to the present invention will be described below with reference to the drawings.
In FIG. 1, the speed command voltage 7 that is an analog signal is input to the low-pass filter 1, and the output of the low-pass filter 1 and the triangular wave 8 are input to the comparator 2. The output of the comparator 2 is input to the microprocessor 3 including the timer 31. The microprocessor 3 obtains a digital signal corresponding to the speed command voltage by using an internal clock pulse in the counter included in the timer 31, and
The inverter 4 is controlled so that the deviation between the rotation speed signal of the motor 5 from the encoder 6 and the digital signal becomes zero.

【0012】次に、図2を併せて参照しながら上記実施
例の動作を詳細に説明する。速度指令電圧7は図2
(a)に示すようにノイズその他の高調波成分を含んで
いる。この速度指令電圧7はローパスフィルタ1に通す
ことによって高調波成分が除去されたローパスフィルタ
出力となる(図2(b)の符号71参照)。
Next, the operation of the above embodiment will be described in detail with reference to FIG. The speed command voltage 7 is shown in FIG.
As shown in (a), it contains noise and other harmonic components. The speed command voltage 7 is passed through the low-pass filter 1 to become a low-pass filter output from which harmonic components are removed (see reference numeral 71 in FIG. 2B).

【0013】指令電圧7のローパスフィルタ出力71
は、コンパレータ2によって一定周波数で一定振幅の三
角波8と比較される。図2(b)に示すように、指令電
圧7のローパスフィルタ出力71はそのレベルに応じて
三角波8を横切るレベル位置が異なる。そのため、コン
パレータ2の出力は、指令電圧7のローパスフィルタ出
力71のレベルに応じた図2(c)に示すようなパルス
幅変調(以下「PWM」という)信号9となる。言い替
えれば、PWM信号9の「H」(以下「正」という)区
間の幅が指令電圧7の大小を表すことになる。
Low-pass filter output 71 of command voltage 7
Is compared with a triangular wave 8 having a constant frequency and a constant amplitude by a comparator 2. As shown in FIG. 2B, the low-pass filter output 71 of the command voltage 7 has a different level position across the triangular wave 8 depending on its level. Therefore, the output of the comparator 2 becomes a pulse width modulation (hereinafter referred to as “PWM”) signal 9 as shown in FIG. 2C according to the level of the low-pass filter output 71 of the command voltage 7. In other words, the width of the “H” (hereinafter “positive”) section of the PWM signal 9 represents the magnitude of the command voltage 7.

【0014】マイクロプロセッサ3の内蔵タイマ31が
有するカウンタは、図2(d)に示すような一定周波数
の内部クロックパルスをカウントする。上記内蔵カウン
タは、図2(e)に示すようにPWM信号9の正区間の
上記内部クロックパルスをカウントし、図2(f)に示
すようにPWM信号9の立下りエッジで「TIMER」
というバッファにそのカウント値を格納し、割込み要求
を発生してカウント値をクリアするように初期設定され
ている。上記カウンタのカウント値はデジタル信号であ
る。カウンタバッファには図2(g)に示すようにPW
M信号9の立下りでのカウント値が記憶される。
The counter of the built-in timer 31 of the microprocessor 3 counts the internal clock pulse having a constant frequency as shown in FIG. 2 (d). The built-in counter counts the internal clock pulse in the positive section of the PWM signal 9 as shown in FIG. 2 (e), and "TIMER" at the falling edge of the PWM signal 9 as shown in FIG. 2 (f).
It is initialized to store the count value in a buffer called, generate an interrupt request, and clear the count value. The count value of the counter is a digital signal. In the counter buffer, as shown in FIG.
The count value at the falling edge of the M signal 9 is stored.

【0015】上記割込み要求が受け付けられた場合の処
理は、図3に示すような手続を経て行われる。すなわ
ち、Th(n)という名前のRAMのデータをTh
(n−1)という名前のRAMへコピー、TIMER
というバッファのカウント値をTh(n)という名前の
RAMへコピーし、Th(n)という名前のRAMの
データとTh(n−1)という名前のRAMのデータを
足してREFという名前のRAMへコピーする。割込み
から戻った時点では、Th(n)には現在のPWM信号
の正区間の計測データが、Th(n−1)にはPWM信
号の直前の正区間の計測データが、REFには両者の和
が格納されている。この実施例では、REFの値をアナ
ログ・デジタル変換回路出力として使用することを特徴
とする。これに対して前記各出願にかかる発明では、T
IMERの値をアナログ・デジタル変換回路出力として
使用していた。
The process when the interrupt request is accepted is performed through the procedure shown in FIG. That is, the data of the RAM named Th (n) is changed to Th
Copy to RAM named (n-1), TIMER
Copy the count value of the buffer to the RAM named Th (n), add the data in the RAM named Th (n) and the data in the RAM named Th (n-1) to the RAM named REF. make a copy. At the time of returning from the interrupt, Th (n) is the measurement data of the current positive section of the PWM signal, Th (n-1) is the measurement data of the immediately preceding section of the PWM signal, and REF is both of them. The sum is stored. This embodiment is characterized in that the value of REF is used as the output of the analog / digital conversion circuit. On the other hand, in the invention according to each of the above applications, T
The value of IMER was used as the analog / digital conversion circuit output.

【0016】このように、図2(a)に示すアナログ信
号である速度指令電圧7は図2の(b)から(g)に至
る一連の動作を経てデジタル信号に変換され、このデジ
タル信号であるカウンタバッファREFの値を速度指令
値としてソフトウエアによる速度制御に供する。すなわ
ち、マイクロプロセッサ3は、デジタル変換された上記
速度指令値とエンコーダ6からのモータ5の回転速度と
の偏差を演算し、偏差がゼロとなるようにインバータ4
を制御する。
As described above, the speed command voltage 7 which is an analog signal shown in FIG. 2A is converted into a digital signal through a series of operations from FIG. 2B to FIG. 2G, and this digital signal is used. The value of a certain counter buffer REF is used as a speed command value for speed control by software. That is, the microprocessor 3 calculates the deviation between the digitally converted speed command value and the rotation speed of the motor 5 from the encoder 6, and the inverter 4 is set so that the deviation becomes zero.
To control.

【0017】上記実施例のように、タイマ31が有する
カウンタの現在の計測値と前回の計測値とを加算した値
をデジタル出力とすることにより、アナログ・デジタル
変換回路出力の分解能が向上する。以下、図4、図5を
参照しながらその理由を詳細に説明する。説明を判り易
くするために、図4に示すように、内部クロックは1H
z、三角波の周波数は2.5Hzとする。また、内部ク
ロックと三角波は非同期なので必ずしも図4のようには
ならないが、説明しやすい場合を選んで図示している。
図4の(a)はマイクロプロセッサの内部クロック、
(b)〜(g)はPWM信号で、それぞれデューティが
90%、80%、50%、30%、10%、5%の場合
を示す。(b)〜(g)の波形上の丸印は、内部クロッ
クによりサンプリングされたデータを示す。また、
(b)〜(g)の各1段目に示す数字は正区間のカウン
ト値を、2段目の数字は前回のカウント値(図3のTh
(n−1)に相当)と今回のカウント値(図3のTh
(n)に相当)を足した値(図3のREFに相当)を示
す。
As in the above embodiment, the resolution of the analog-to-digital conversion circuit output is improved by using the digital output of the value obtained by adding the current measurement value of the counter of the timer 31 and the previous measurement value. Hereinafter, the reason will be described in detail with reference to FIGS. 4 and 5. To make the explanation easier to understand, the internal clock is 1H as shown in FIG.
The frequency of z and the triangular wave is 2.5 Hz. Further, since the internal clock and the triangular wave are asynchronous, they do not necessarily look like FIG. 4, but the case where it is easy to explain is selected and shown.
FIG. 4A shows an internal clock of the microprocessor,
(B) to (g) are PWM signals, and show the cases where the duty is 90%, 80%, 50%, 30%, 10%, and 5%, respectively. Circles on the waveforms (b) to (g) indicate data sampled by the internal clock. Also,
The numbers shown in the first row of (b) to (g) are the count values of the positive section, and the numbers of the second row are the previous count values (Th in FIG. 3).
(Corresponding to (n-1)) and the current count value (Th in FIG. 3)
The value (corresponding to (n)) (corresponding to REF in FIG. 3) is shown.

【0018】ここで、図4の(b)を例にとって説明す
ると、PWM信号のデューティが90%のとき正区間の
カウント値は2又は3となる。また、前回のカウント値
と今回のカウント値を足した値は5である。以下、
(c)から(g)へとデューティが小さくなるに従って
正区間のカウント値は次第に小さくなり、ついには0と
なり、前回のカウント値と今回のカウント値を足した値
も0となる。従って、PWM信号のデューティに対応し
て正区間のカウント値は3から0までの4個の値をとり
うる。これに対して正区間を前後2回足した値は5から
0までの6個の値をとりうる。つまり、2回足した場合
は、足さない場合よりもより多くの値をとりうるので、
デジタル出力として分解能が1.5倍向上していること
がわかる。
Here, taking FIG. 4 (b) as an example, when the duty of the PWM signal is 90%, the count value in the positive section is 2 or 3. The value obtained by adding the previous count value and the present count value is 5. Less than,
As the duty decreases from (c) to (g), the count value in the positive section gradually decreases and finally becomes 0, and the value obtained by adding the previous count value and the current count value also becomes 0. Therefore, the count value in the positive section can take four values from 3 to 0 corresponding to the duty of the PWM signal. On the other hand, the value obtained by adding the positive interval twice before and after can take six values from 5 to 0. In other words, if you add it twice, it can take more values than if you do not add it.
It can be seen that the resolution as digital output is improved by a factor of 1.5.

【0019】図5は、内部クロックを1Hz、三角波を
11Hzとして、両者の周波数が離れた場合を示す。P
WM信号の正区間のカウント値は11から0までの12
個の値を、前後2回足した値は21から0までの22個
の値をとりうる。従って、足した値を用いることによ
り、分解能は22/12≒1.83倍向上している。こ
のようにして、内部クロックと三角波の周波数の差が広
がるほど、正区間1回のみの値のとりうる範囲と、正区
間を前後2回足した値のとりうる範囲との比は2に近づ
いていく。すなわち、前後を足した値を用いることによ
り、分解能は約2倍となる。実用上は、内部クロックは
数MHz、三角波の周波数は数百Hzから数KHzが選
ばれる。
FIG. 5 shows a case where the internal clock is 1 Hz and the triangular wave is 11 Hz, and the frequencies of both are separated. P
The count value of the positive section of the WM signal is 12 from 11 to 0.
The value obtained by adding these values twice before and after can take 22 values from 21 to 0. Therefore, the resolution is improved by 22 / 12≈1.83 times by using the added value. In this way, the wider the difference between the frequencies of the internal clock and the triangular wave, the closer the ratio between the range of values that can be obtained only once in the positive interval and the range of values that can be obtained by adding the positive interval two times before and after the interval becomes closer to 2. To go. That is, the resolution is approximately doubled by using the value obtained by adding the front and back. Practically, an internal clock of several MHz and a triangular wave frequency of several hundred Hz to several KHz are selected.

【0020】前記実施例のように、タイマ31が有する
カウンタの現在の計測値と前回の計測値とを加算した値
をデジタル出力とすることにより、ローパスフィルタと
して動作することになり、耐ノイズ性を向上させること
ができる。以下、その理由を説明する。デジタル信号処
理の技術分野では、ある一定周期ごとに入力される数値
の前回の値と今回の値を足して出力する操作を「1次の
FIRフィルタ」と呼んでおり、ローパスフィルタとし
て機能することが知られている。FIRとは、ファイナ
イト・インパルス・レスポンス(finite impulse respon
se)のことである。FIRフィルタは図6に示すブロッ
ク図で表現される。図6のZ ̄1は、前回の値を記憶し
ておく機能を示す。
As in the above-described embodiment, by adding a value obtained by adding the current measured value of the counter of the timer 31 and the previous measured value to the digital output, it operates as a low-pass filter, and the noise resistance is improved. Can be improved. The reason will be described below. In the technical field of digital signal processing, the operation of adding the previous value and the current value of the numerical value input at a certain fixed cycle and outputting the result is called a "first-order FIR filter" and functions as a low-pass filter. It has been known. FIR is a finite impulse response.
se). The FIR filter is represented by the block diagram shown in FIG. Z- 1 in FIG. 6 indicates the function of storing the previous value.

【0021】さて、前記実施例では、前後2回の計測値
を加算する操作がPWM信号の立ち下がり毎の割込み処
理で行われ、必ずしも一定間隔で行われるものではない
から、ある一定周期ごとにデータを加算する上記FIR
フィルタと完全に一致するものではない。しかし、PW
M信号のデューティ変化が小さい場合(アナログ・デジ
タル変換回路への入力信号の振幅が小さい場合)は、ほ
ぼ一定周期ごとに前回データと今回データを足すことに
なり、FIRフィルタと同じ機能を果たすといえる。よ
って、足算操作することにより、高い周波数のノイズを
低減する効果がある。
In the above embodiment, the operation of adding the measured values two times before and after is performed by the interrupt process at each falling edge of the PWM signal, and is not necessarily performed at a constant interval. The above FIR that adds data
It does not match the filter exactly. But PW
When the duty change of the M signal is small (when the amplitude of the input signal to the analog-digital conversion circuit is small), the previous data and the current data are added almost every fixed period, and the same function as the FIR filter is achieved. I can say. Therefore, the addition operation has an effect of reducing high-frequency noise.

【0022】前記実施例では、図2(c)(d)(e)
に示すようにPWM信号の正の区間でクロックパルスを
カウントしていたが、PWM信号の「L」(以下「負」
という)の区間でクロックパルスをカウントするように
してもよい。この場合は指令電圧が高いときはカウント
値が小さくなる。
In the above-mentioned embodiment, FIG. 2 (c) (d) (e)
As shown in, the clock pulse was counted in the positive section of the PWM signal, but the PWM signal is "L" (hereinafter "negative").
The clock pulse may be counted in the section of (). In this case, the count value decreases when the command voltage is high.

【0023】前記実施例では、PWM信号の立下り信号
ごとの割込み処理によって前回のデータと今回のデータ
の足算を行っていたが、アナログ・デジタル変換回路の
出力をPWM信号の立下り信号ごとに使用しない場合に
は、PWM信号の立下りの割込み処理で足算を行う必要
はない。例えば、アナログ・デジタル変換回路の出力を
1msec毎に使用したい場合は、1msec毎の処理
で足算を行えばよい。この1msec毎の処理は割込み
処理としてもよいし、時間管理が厳しくない場合は割込
みではなく一定周期のルーチンで処理してもよい。図7
は1msec毎の処理で足算を行う場合の例を示す。図
7(a)に示すように、Th(n−1)への前回のデー
タの格納とTh(n)への今回のデータの格納はPWM
信号立下り割込みで行い、図7(b)に示すように、P
WM信号立下り割込み内からREFを求める処理が1m
sec毎に行われ、全体システムを動かす割り込み処理
へ移動している。足した値であるREFの値はPWM信
号の立下り毎に更新されないので、デジタル出力信号の
リアルタイム性は劣ることになるが、アナログ・デジタ
ル変換回路を使用して1msec毎にシステムを動かす
出力を得たい場合は、図7に示すソフトウエアで充分で
ある。
In the above-described embodiment, the previous data and the present data are added by the interrupt processing for each falling signal of the PWM signal. However, the output of the analog-digital conversion circuit is calculated for each falling signal of the PWM signal. If not used, it is not necessary to perform addition in the interrupt processing at the falling edge of the PWM signal. For example, when it is desired to use the output of the analog / digital conversion circuit every 1 msec, the addition may be performed by the process every 1 msec. The processing for every 1 msec may be interrupt processing, or when the time management is not strict, processing may be performed by a routine of a fixed cycle instead of interrupt. Figure 7
Shows an example in which the addition is performed in the processing every 1 msec. As shown in FIG. 7A, the previous data is stored in Th (n−1) and the current data is stored in Th (n) by PWM.
This is done by a signal falling interrupt, and as shown in FIG.
The processing to obtain REF from within the WM signal falling interrupt is 1m
It is performed every sec, and the process moves to the interrupt process that moves the entire system. The value of REF, which is the added value, is not updated at each fall of the PWM signal, so the real-time property of the digital output signal is inferior, but the output that moves the system every 1 msec is used by using the analog-digital conversion circuit. If you want to get it, the software shown in FIG. 7 is sufficient.

【0024】図7の例では1msec毎に前回のデータ
と今回のデータの足算をするようになっていたが、図3
の場合と同じ効果を得るために、三角波の周期とほぼ同
じ期間毎に足算するのが望ましい。実用的には、両者の
比が1/4〜4程度になるように設計する。また、PW
M信号の正区間を正確に計測するために、図7の(b)
に示す処理の割込み優先度は(a)に示す処理の割込み
優先度よりも低い方がよい。すなわち、PWM信号の立
下りで必ず割込みが入るように条件設定する。また、同
じ理由から、(b)の処理は多重割込みを許可するよう
に設定した方がよい。
In the example of FIG. 7, the previous data and the present data are added every 1 msec.
In order to obtain the same effect as in the case (3), it is desirable to add the values in almost the same period as the period of the triangular wave. Practically, it is designed so that the ratio of the two is about 1/4 to 4. Also, PW
In order to accurately measure the positive section of the M signal, (b) of FIG.
The interrupt priority of the process shown in (a) is preferably lower than the interrupt priority of the process shown in (a). That is, the condition is set so that an interrupt is always generated at the falling edge of the PWM signal. Further, for the same reason, it is preferable that the processing of (b) is set to allow multiple interrupts.

【0025】これまで説明した実施例では、カウンタに
よるPWM信号の正又は負の区間の前後2回の計測デー
タを足していたが、前後3回の計測データを足してもよ
い。この例を図8、図9に示す。図9に示すように、内
部クロックが1Hz、三角波が3/10Hzとする。1
回のみの計測データは0から4の5個の値を取りうる
が、3回足した値は0から10の11個の値を取ること
になり、分解能が2.2倍に向上している。前述のよう
に、内部クロックと三角波の周波数の差が大きくなれば
なるほど、分解能が向上し、分解能が3倍に近づいてい
く。このとき、PWM信号立下り割込み処理は図8に示
すようになる。この場合も図7に示すようにREFを求
める処理を別の処理ルーチンにもっていってもよい。
In the above-described embodiments, the measurement data of two times before and after the positive or negative section of the PWM signal by the counter is added, but the measurement data of three times before and after may be added. This example is shown in FIGS. As shown in FIG. 9, the internal clock is 1 Hz and the triangular wave is 3/10 Hz. 1
The measurement data of only one time can take 5 values from 0 to 4, but the value obtained by adding 3 times will take 11 values from 0 to 10, and the resolution is improved by 2.2 times. .. As described above, the greater the difference between the frequency of the internal clock and the frequency of the triangular wave, the higher the resolution, and the resolution approaches 3 times. At this time, the PWM signal falling interrupt processing is as shown in FIG. Also in this case, as shown in FIG. 7, the process of obtaining REF may be performed by another process routine.

【0026】また、前後の計測データを4回足し、さら
に5回足すことも可能であるが、足す回数を多くする
と、割込み処理の時間が長くなるし、アナログ・デジタ
ル変換回路としての応答時間が長くなる、というような
理由から、2回から4回足すのが実用的である。
It is also possible to add the measured data before and after 4 times and further 5 times. However, if the number of times of addition is increased, the interrupt processing time becomes longer and the response time as an analog-digital conversion circuit becomes longer. It is practical to add 2 to 4 times because it becomes longer.

【0027】これまでの実施例では、PWM信号の正区
間又は負区間のみの計測データを足してデジタル出力と
していたが、特願平3−109800号にかかる発明の
ように、三角波の周波数の変化を補償することを目的と
して、PWM信号の(正区間)/(全周期)あるいは
(負区間)/(全周期)又はこれらの定数倍の区間を計
測するようにしたものを本願発明に応用してもよい。図
10(a)(b)(c)はこの各種実施例を示してお
り、図11は図10(a)の例の動作を示す。
In the above-described embodiments, the measurement data of only the positive section or the negative section of the PWM signal is added to obtain a digital output. However, as in the invention of Japanese Patent Application No. 3-109800, the frequency of the triangular wave changes. For the purpose of compensating for the above, the present invention is applied to the one in which the (positive section) / (entire cycle) or (negative cycle) / (entire cycle) of the PWM signal or a section which is a constant multiple of these is measured. May be. 10 (a), (b) and (c) show these various embodiments, and FIG. 11 shows the operation of the example of FIG. 10 (a).

【0028】まず、図10(a)の例について説明す
る。PWM信号はマイクロプロセッサ3に内蔵されてい
るタイマ1とタイマ2に入力される。符号31aはタイ
マ1を、符号31bはタイマ2を示す。タイマ1ではP
WM信号の正の区間を、タイマ2では負の区間を内部ク
ロックにより計測する。タイマ1のカウンタ1は、PW
M信号が正のときだけ内部クロックをカウントし、PW
M信号の立下りでそのカウント値をTIMER1という
名前のバッファへ格納し、タイマ1割込み要求を発生
し、カウント値をクリアする操作を行うよう初期設定さ
れている。タイマ2のカウンタ2は、PWM信号が負の
ときだけ内部クロックをカウントし、PWM信号の立上
りでそのカウント値をTIMER2という名前のバッフ
ァへ格納し、タイマ2割込み要求を発生し、カウント値
をクリアする操作を行うよう初期設定されている。従っ
て、常に最新の正区間の計測値がTIMER1に格納さ
れており、負区間の計測値がTIMER2に格納されて
いる。
First, the example of FIG. 10A will be described. The PWM signal is input to the timer 1 and the timer 2 built in the microprocessor 3. Reference numeral 31a indicates a timer 1 and reference numeral 31b indicates a timer 2. P for timer 1
The positive section of the WM signal and the negative section of the timer 2 are measured by the internal clock. Counter 1 of timer 1 is PW
The internal clock is counted only when the M signal is positive, and PW
It is initialized to store the count value in the buffer named TIMER1 at the falling edge of the M signal, generate a timer 1 interrupt request, and perform the operation of clearing the count value. The counter 2 of the timer 2 counts the internal clock only when the PWM signal is negative, stores the count value in the buffer named TIMER2 at the rising edge of the PWM signal, issues a timer 2 interrupt request, and clears the count value. The default setting is to perform the operation. Therefore, the latest measured value of the positive section is always stored in TIMER1 and the latest measured value of the negative section is stored in TIMER2.

【0029】次に、上記タイマ2のPWM信号立上りで
の割込み処理について図12(b)を参照しながら説明
する。ます、Tl(n)という名前のRAMデータをT
l(n−1)という名前のRAMへコピーする。次に、
TIMER2の値をTl(n)へコピーする。そしてT
l(n)とTl(n−1)の値を足してTLという名前
のRAMへ格納する。従って、TLは、PWM信号の負
区間の今回のカウント値Tl(n)と前回のカウント値
Tl(n−1)を加えた値が立上りエッジ毎に更新され
て格納されている。図11(g)はこの様子を示す。
Next, the interrupt processing at the rising edge of the PWM signal of the timer 2 will be described with reference to FIG. First, the RAM data named Tl (n)
Copy to RAM named l (n-1). next,
Copy the value of TIMER2 to Tl (n). And T
The values of l (n) and Tl (n-1) are added and stored in the RAM named TL. Therefore, in TL, a value obtained by adding the current count value Tl (n) and the previous count value Tl (n-1) in the negative section of the PWM signal is updated and stored for each rising edge. FIG. 11 (g) shows this state.

【0030】次に、PWM信号立下りでのタイマ1の割
込み処理について説明する。図12(a)の上から3行
目までの処理は図12(b)の処理と同等であり、PW
M信号の正の区間について同じ処理を行っているだけで
ある。図12(b)の4行目は、今求めたTH、すなわ
ち今回の正区間のカウント値Th(n)と前回のカウン
ト値Th(n−1)を加えた値と、タイマ2割込み処理
でえられたTLを用いて、(正の区間)×(定数K)/
(全周期)の計算を行い、REFという名前のRAMへ
格納している。なお、定数Kは、マイクロプロセッサの
構成上、処理が簡単な28=256又は216=6553
6を使用することが実用的である。ここで、正の区間も
全周期も2回足したデータを使用しており、正の区間の
みでなく全周期に対してもノイズ低減効果が得られる。
なお、TH,TL,REFを求める行は、タイマ1、タ
イマ2の割込み処理ではなく、図7のように別の処理ル
ーチンへもっていってもよい。
Next, the interrupt processing of the timer 1 at the fall of the PWM signal will be described. The process from the top to the third line in FIG. 12A is equivalent to the process in FIG.
The same processing is only performed for the positive section of the M signal. The fourth line in FIG. 12B shows TH obtained immediately, that is, a value obtained by adding the count value Th (n) of the current positive section and the count value Th (n−1) of the previous time, and the timer 2 interrupt processing. Using the obtained TL, (positive section) × (constant K) /
(All cycles) is calculated and stored in the RAM named REF. Note that the constant K is 2 8 = 256 or 2 16 = 6553, which is easy to process due to the microprocessor configuration.
It is practical to use 6. Here, the data obtained by adding twice the positive section and the entire cycle is used, and the noise reduction effect is obtained not only for the positive section but also for the entire cycle.
The line for TH, TL, and REF may be sent to another processing routine as shown in FIG. 7, instead of the interrupt processing of the timer 1 and the timer 2.

【0031】なお、上記全周期は必ずしも2回足した値
を使用しなくてもよい。このとき、正区間のみ2回足し
た値を用いるが、これによっても分解能向上とノイズ低
減の効果は得られる。具体的には、図12(a)でRE
Fを求めるとき、 REF←(TH×K)/〔{TH(n)+Tl(n)}
×2〕 とすればよい。Th(n−1)、Tl(n−1)を分母
に使っていないので、全周期データは1回のみの値とな
っている。
It is not always necessary to use a value obtained by adding twice as the total period. At this time, a value obtained by adding twice only in the positive section is used, but the effect of resolution improvement and noise reduction can also be obtained by this. Specifically, in FIG.
When obtaining F, REF ← (TH × K) / [{TH (n) + Tl (n)}
X2]. Since Th (n-1) and Tl (n-1) are not used as denominators, the total period data has a value of only once.

【0032】次に、図10(b)の実施例を図13、図
14と併せて説明する。タイマ1ではPWM信号の正区
間を計測し、タイマ2ではPWM信号の全周期を計測す
る。従って、タイマ1のカウンタ1は図13(d)の動
作を、タイマ2のカウンタ2は図13(e)の動作を行
うよう初期設定されている。図13(e)ではPWM信
号の立上りで全周期の計測が完了するように設定されて
いるが、立下りで完了するように設定してもよい。タイ
マ1はPWM信号立下り毎に正区間のカウント値を「T
IMER1」というバッファに格納する。タイマ2はP
WM信号立上り毎に全周期のカウント値を「TIMER
2」というバッファに格納する。
Next, the embodiment of FIG. 10B will be described with reference to FIGS. 13 and 14. The timer 1 measures the positive section of the PWM signal, and the timer 2 measures the entire period of the PWM signal. Therefore, the counter 1 of the timer 1 is initially set to perform the operation of FIG. 13D, and the counter 2 of the timer 2 is initially set to perform the operation of FIG. 13E. In FIG. 13E, the measurement of the entire period is set to be completed at the rising edge of the PWM signal, but it may be set to be completed at the falling edge. The timer 1 sets the count value in the positive section to "T" every time the PWM signal falls.
It is stored in a buffer called “IMER1”. Timer 2 is P
Every time the WM signal rises, the count value of all cycles is set to "TIMER
2 ”is stored in the buffer.

【0033】図14(b)は上記タイマ2の割込み処理
を示す。PWM信号の立上り毎に図14(b)の割込み
要求がなされ、Tall(n−1)へTall(n)の
値をコピーし、バッファ「TIMER2」の値をTal
l(n)にコピーし、Tall(n)とTall(n−
1)を足したものをTALLとする。TALLには今回
の全周期のカウント値と前回のカウント値を足したもの
が格納されることになる。
FIG. 14B shows the interrupt processing of the timer 2. An interrupt request shown in FIG. 14B is made at each rising edge of the PWM signal, the value of Tall (n) is copied to Tall (n−1), and the value of the buffer “TIMER2” is Tal.
1 (n) and Tall (n) and Tall (n-
TALL is obtained by adding 1). TALL stores the sum of the count value of the current cycle and the count value of the previous cycle.

【0034】図14(a)は前記タイマ1の割込み処理
を示す。PWM信号の立下り毎に図14(a)の割込み
要求がなされ、Th(n−1)へTh(n)の値をコピ
ーし、バッファ「TIMER1」の値をTh(n)へコ
ピーし、Th(n)とTh(n−1)を足したものをT
Hとする。これらの処理により、THには今回の正区間
のカウント値と前回の正区間のカウント値を足したもの
が格納されることになる。図14(a)の第4行目で
は、THと定数K(一般的にこの定数Kは図10(a)
の場合と同様に256や65536を使用する)を掛
け、掛けた値をTALLで割り、その結果をREFに代
入し、アナログ・デジタル変換回路出力とする。なお、
図14でTH,TALL,REFを求める行は、タイマ
1やタイマ2の割込みの処理ではなく、図7のように別
の処理ルーチンへもっていってもよい。
FIG. 14A shows the interrupt processing of the timer 1. At each falling edge of the PWM signal, the interrupt request of FIG. 14A is made, the value of Th (n) is copied to Th (n−1), the value of the buffer “TIMER1” is copied to Th (n), The sum of Th (n) and Th (n-1) is T
Let H. Through these processes, TH is stored with the sum of the count value of the current positive section and the count value of the previous positive section. In the fourth line of FIG. 14A, TH and a constant K (in general, this constant K is shown in FIG.
(256 or 65536 is used as in the case of 1), the multiplied value is divided by TALL, and the result is substituted into REF to obtain an analog-digital conversion circuit output. In addition,
The line for calculating TH, TALL, and REF in FIG. 14 may be taken to another processing routine as shown in FIG. 7 instead of the interrupt processing of the timer 1 and the timer 2.

【0035】以上説明した図10(b)、図12ないし
図14に示す実施例においても、PWM信号の正区間、
全周期共に前回と今回のデータを足した値を使用してお
り、分解能向上、ノイズ低減の効果を得ている。
In the embodiment shown in FIG. 10B and FIGS. 12 to 14 described above, the positive section of the PWM signal,
The value obtained by adding the data of the previous time and the data of this time is used for all cycles, and the effect of improving the resolution and reducing the noise is obtained.

【0036】次に、図10(c)に示す実施例について
図15、図16を併せて参照しながら説明する。この実
施例では、図10(c)に符号31で示すように、マイ
クロプロセッサ3は1個のタイマ1のみを内蔵してお
り、このタイマ1でPWM信号の正区間と負区間の両方
を計測する。タイマ1は、PWM信号の立上りおよび立
下りでバッファ「TIMER1」にカウントした値を格
納し、タイマ1割込み要求を発生し、カウンタ値をクリ
アするように初期設定されている。
Next, the embodiment shown in FIG. 10C will be described with reference to FIGS. In this embodiment, as shown by reference numeral 31 in FIG. 10C, the microprocessor 3 has only one timer 1 built therein, and this timer 1 measures both the positive section and the negative section of the PWM signal. To do. The timer 1 is initially set to store the value counted in the buffer "TIMER1" at the rising and falling edges of the PWM signal, generate a timer 1 interrupt request, and clear the counter value.

【0037】図15、図16は、上記タイマ1の割込み
処理を示す。図15、図16に示すように、割込み処理
に入った直後にPWM信号レベルを判断する。PWM信
号が正であれば図15(a)のAに相当し、今PWM信
号立上りで割込み処理に入ってきたことがわかり、バッ
ファ「TIMER1」には負区間の計測値が入っている
ことになる。このときTl(n−1)へTl(n)をコ
ピーし、Tl(n)へバッファ「TIMER1」の値を
コピーする。そして、Tl(n)とTl(n−1)を加
えてTLへ格納する。TLには前回の負区間のデータと
今回の負区間のデータを加えたものが常に更新されて代
入されていることになる。
15 and 16 show the interrupt processing of the timer 1. As shown in FIGS. 15 and 16, the PWM signal level is judged immediately after the interruption processing is started. If the PWM signal is positive, it corresponds to A in FIG. 15 (a), and it can be seen that the interrupt processing has started at the rising edge of the PWM signal, and the buffer "TIMER1" contains the measured value in the negative section. Become. At this time, Tl (n) is copied to Tl (n-1), and the value of the buffer "TIMER1" is copied to Tl (n). Then, Tl (n) and Tl (n-1) are added and stored in TL. It means that the data obtained by adding the data of the previous negative section and the data of the present negative section is constantly updated and substituted in TL.

【0038】また、PWM信号のレベルが負であれば図
15(a)のBに相当し、今PWM信号立下がりで割込
み処理に入ってきたことがわかり、バッファ「TIME
R1」には正区間の計測値が入っていることになる。こ
のときTh(n−1)へTh(n)をコピーし、Th
(n)へバッファ「TIMER1」の値をコピーする。
THには前回の正区間のデータと今回のデータを加えた
ものが常に更新されて代入されていることになる。さら
に、THとTLを足してTALL(周期を2回足したデ
ータ)とし、(TH×K)/TALLを実行し、アナロ
グ・デジタル変換回路出力としてREFを得る。Kは、
前述のとおり256や65536が選ばれる。なお、T
H,TL,TALL,REFを求める作業は、図7のよ
うに別の処理ルーチンへもっていってもよい。
If the level of the PWM signal is negative, it corresponds to B in FIG. 15 (a), and it is understood that the interrupt processing has started at the fall of the PWM signal, and the buffer "TIME" is entered.
R1 ”contains the measured value of the positive section. At this time, Th (n) is copied to Th (n-1),
Copy the value of the buffer "TIMER1" to (n).
This means that TH, which is obtained by adding the data of the previous positive section and the data of this time, is constantly updated and substituted. Further, TH and TL are added to obtain TALL (data obtained by adding the cycle twice), (TH × K) / TALL is executed, and REF is obtained as an analog-digital conversion circuit output. K is
As mentioned above, 256 and 65536 are selected. In addition, T
The work for obtaining H, TL, TALL, and REF may be carried out to another processing routine as shown in FIG.

【0039】この実施例においても、PWM信号の正の
区間、全周期ともに前回のデータと今回のデータを足し
た値を使用しており、分解能向上およびノイズ低減の効
果を得ている。
Also in this embodiment, the value obtained by adding the previous data and the current data is used for the positive section and the entire cycle of the PWM signal, and the effect of improving the resolution and reducing the noise is obtained.

【0040】次に、特願平3−137219号にかかる
発明、すなわち、三角波の直流分が温度により変化して
も、また、コンパレータのオフセット電圧が温度により
変化しても、デジタル出力データが変化することのない
ように、PWM信号のデューティに対応するデータか
ら、一定電圧と三角波を比較して得られる矩形波のデュ
ーティに対応するデータを引くようにしたものに本発明
を適用した実施例について説明する。この場合も、これ
まで説明してきた各種のバリエーションに対応して、次
のような選択枝がある。 全周期データをタイマ1から得るのか、タイマ2から
得るのか。 TH,TL,TALL,REFをどの処理ルーチンで
求めるのか。 デジタル信号としてPWM信号の正区間の計測値を使
用するのか、負区間の計測値を使用するのか。 全周期データとして1回のみの値を使用するのか、2
回分の値を足した値を使用するのか。 矩形波のデューティを基準として使用するわけである
が、正区間のデューティを基準とするのか、負区間のデ
ューティを基準とするのか。
Next, the invention according to Japanese Patent Application No. 3-137219, that is, the digital output data changes even if the DC component of the triangular wave changes with temperature and the offset voltage of the comparator changes with temperature. In order to prevent this, an embodiment in which the present invention is applied to data obtained by subtracting data corresponding to the duty of a rectangular wave obtained by comparing a constant voltage and a triangular wave from data corresponding to the duty of a PWM signal explain. In this case as well, there are the following selection branches corresponding to the various variations described so far. Whether all cycle data is obtained from timer 1 or timer 2. Which processing routine is used to obtain TH, TL, TALL, and REF? Whether the measured value of the positive section of the PWM signal is used as the digital signal or the measured value of the negative section is used. Whether to use the value only once for all cycle data, 2
Do you want to use the sum of batch values? The duty of the rectangular wave is used as the reference. Whether the duty of the positive section or the negative section is used as the reference.

【0041】ここでは、以下の条件をもつ例について説
明する。 タイマ2から全周期を得る。しかも、2回足した値を
得る。 TH1,TH2,TL2,TALL,REFはタイマ
1、タイマ2割込み以外のルーチンで計算する。 デジタル信号としてPWM信号の正の区間を計測す
る。 全周期データは2回足した値を使用する。 矩形波の正区間のデューティを基準として使用する。 なお、THi,TLiの添字iは、コンパレータ1によ
りデータなのか、もしくはコンパレータ2によるデータ
なのかを示している。図17におけるThi(),Tl
i( )の添字iも同じ意味である。
Here, an example having the following conditions will be described. Get all cycles from timer 2. Moreover, the value added twice is obtained. TH 1, TH 2, TL 2, TALL, REF timer 1 is calculated by the routine other than the timer 2 interrupt. The positive section of the PWM signal is measured as a digital signal. The value added twice is used for all cycle data. The duty of the positive section of the rectangular wave is used as a reference. The subscript i of THi and TLi indicates whether the data is from the comparator 1 or the data from the comparator 2. Thi () and Tl in FIG.
The subscript i of i () has the same meaning.

【0042】図17ないし図21を参照しながら、上記
の条件をもつ具体例について説明する。図17に示すよ
うに、符号21,22で示す二つのコンパレータ1,2
を有している。一方のコンパレータ1は、ローパスフィ
ルタ1を通った指令信号7と三角波8とを比較してPW
M信号を得、他方のコンパレータ2は、+端子が接地さ
れ、−端子に三角波8が入力されることとにより、接地
電圧である0Vと三角波8とを比較してデューティが5
0%の矩形波を得る。マイクロプロセッサ3は符号31
a,31bで示す二つのタイマ1,2を内蔵し、一方の
タイマ1は、コンパレータ1の正区間を計測し、他方の
タイマ2はコンパレータ2の正区間および負区間を計測
するようになっている。タイマ1はPWM信号の立ち下
がりでバッファ「TIMER1」へカウント値を格納
し、タイマ1割込みを要求し、かつ、カウンタ1をクリ
アするように設定されている。タイマ2は矩形波の立上
り、立下がり毎にカウント値をバッファ「TIMER
2」へ格納し、タイマ2割込みを要求し、かつ、カウン
タ2をクリアするように設定されている。
A specific example having the above conditions will be described with reference to FIGS. As shown in FIG. 17, two comparators 1 and 2 denoted by reference numerals 21 and 22 are used.
have. One of the comparators 1 compares the command signal 7 that has passed through the low-pass filter 1 and the triangular wave 8 to PW.
The M signal is obtained, and the other comparator 2 has the + terminal grounded and the triangular wave 8 input to the − terminal, so that the ground voltage of 0 V and the triangular wave 8 are compared, and the duty is 5%.
We get a 0% square wave. Microprocessor 3 has a reference numeral 31
Two timers 1 and 2 shown by a and 31b are built in, one timer 1 measures the positive section of the comparator 1, and the other timer 2 measures the positive section and the negative section of the comparator 2. There is. The timer 1 is set to store the count value in the buffer "TIMER1" at the falling edge of the PWM signal, request the timer 1 interrupt, and clear the counter 1. The timer 2 buffers the count value at each rising and falling of the rectangular wave with the buffer "TIMER".
2 ”, request a timer 2 interrupt, and clear the counter 2.

【0043】次に、上記割込み処理について図19を参
照しながら説明する。タイマ1の割込み処理では、図1
9(a)のようにTh1(n−1)へTh1(n)をコピ
ーし、Th1(n)へTIMER1の値をコピーして処
理を終了する。Th1(n)にはPWM信号の今回の正
区間のデータが、Th1(n−1)にはPWM信号の前
回の正区間のデータが格納されることになる。タイマ2
の割込み処理は、図19(b)のように、まず、矩形波
のレベルを判断し二つに別れる。矩形波のレベルが
「H」のときは図18(a)のAで示すように矩形波の
立上りでの割込みであったことがわかる。従って、TI
MER2には矩形波の負区間のカウント値が格納されて
いる。従って、Tl2(n−1)へTl2(n)をコピー
し、Tl2(n)へTIMER2をコピーすることによ
り、Tl2(n)、Tl2(n−1)には今回の矩形波の
負区間のデータと前回のそれが記憶されることになる。
矩形波のレベルが「L」のときも同様で、Th
2(n)、Th2(n−1)には今回の矩形波の正区間の
データと前回のそれが記憶されることになる。
Next, the interrupt processing will be described with reference to FIG. In the interrupt processing of timer 1,
9 (a), Th 1 (n) is copied to Th 1 (n−1), the value of TIMER1 is copied to Th 1 (n), and the process is ended. Data of this positive period of the PWM signal to the Th 1 (n) is, the data of the previous positive period of the PWM signal is stored in the Th 1 (n-1). Timer 2
As shown in FIG. 19 (b), the interruption process of No. 1 is first divided into two by judging the level of the rectangular wave. When the level of the rectangular wave is “H”, it can be seen that the interruption was at the rising edge of the rectangular wave, as indicated by A in FIG. Therefore, TI
The count value of the negative section of the rectangular wave is stored in MER2. Therefore, copy the Tl 2 (n) Tl 2 to (n-1), by copying the Tl 2 (n) to TIMER2, Tl 2 (n), Tl 2 (n-1) in this time of the rectangular The data of the negative section of the wave and the previous one will be stored.
The same applies when the level of the rectangular wave is “L”, and Th
2 (n), the Th 2 (n-1) so that its data and the previous positive sections of this square wave is stored.

【0044】図19(c)は、アナログ・デジタル変換
回路出力を利用してシステムを動かす割込み処理を示
す。この割込み処理では、PWM信号の正区間のデータ
を2回足した値TH1、矩形波の正区間のデータを2回
足した値TH2、PWM信号の負区間のデータを2回足
した値TL2、矩形波の周期を2回足した値TALLを
求め、これらを利用してデジタル出力REF、すなわ
ち、(K×TH1)/(TALL)−(K×TH2)/
(TALL)+K/2−(オフセット補正量)を求め
る。この式は、前記特願平3−137219号の明細書
に記載した(7)式に対応している。
FIG. 19C shows an interrupt process for operating the system by utilizing the output of the analog / digital conversion circuit. In this interrupt processing, a value TH 1 obtained by adding twice the data of the positive section of the PWM signal, a value TH 2 obtained by adding twice the data of the positive section of the rectangular wave, and a value obtained by adding twice the data of the negative section of the PWM signal TL 2 , the value TALL obtained by adding the period of the rectangular wave twice is obtained, and by using these, the digital output REF, that is, (K × TH 1 ) / (TALL) − (K × TH 2 ) /
(TALL) + K / 2− (offset correction amount) is calculated. This equation corresponds to the equation (7) described in the specification of Japanese Patent Application No. 3-137219.

【0045】このように、この実施例では、PWM信号
の正区間、矩形波の正区間、矩形波の負区間の全てに対
して前後2回足した値を使用しており、これによって、
分解能向上効果とノイズ低減効果を得ることができる。
また、PWM信号のデューティに対応する計測値を前後
2回足した値から、矩形波のデューティに対応する矩形
波の正区間および負区間を共に前後2回足した値を引く
ことによって、三角波の直流分の温度変化およびコンパ
レータのオフセットと電圧の温度変化によるデジタル出
力の変動を防止することができる。
As described above, in this embodiment, the values obtained by adding twice before and after to the positive section of the PWM signal, the positive section of the rectangular wave, and the negative section of the rectangular wave are used.
The resolution improving effect and the noise reducing effect can be obtained.
Further, by subtracting the value obtained by adding both the positive and negative sections of the rectangular wave corresponding to the duty of the rectangular wave twice before and after from the value obtained by adding the measured value corresponding to the duty of the PWM signal twice before and after, the triangular wave It is possible to prevent the fluctuation of the digital output due to the temperature change of the DC component, the offset of the comparator and the temperature change of the voltage.

【0046】なお、図20に示すように、コンパレータ
2の二つの入力端子への入力信号は図17に示す実施例
とは逆にしてもよい。すなわち、コンパレータ2の+入
力端子に三角波8を入力し、−入力端子には接地電圧す
なわち0Vを入力する。この実施例の動作を図21に示
す。この例では、矩形波の正負が図17の実施例とは反
転している点が異なっており、基本的には図17の例と
同じである。この実施例では、PWM信号の正区間のデ
ータを2回足した値TH1、矩形波の正区間のデータを
2回足した値TH2、PWM信号の負区間のデータを2
回足した値TL2、矩形波の周期を2回足した値TAL
Lを求め、これらを利用してデジタル出力REF、すな
わち、(K×TH1)/(TALL)−(K×TL2)/
(TALL)+K/2−(オフセット補正量)を求め
る。このように、矩形波のデューティをPWM信号の負
区間のデータを2回足した値TL2に基づいて求め、こ
れをPWM変調信号のデューティから引く点が図17に
示す実施例と異なっている。
As shown in FIG. 20, the input signals to the two input terminals of the comparator 2 may be reversed from those in the embodiment shown in FIG. That is, the triangular wave 8 is input to the + input terminal of the comparator 2, and the ground voltage, that is, 0 V is input to the-input terminal. The operation of this embodiment is shown in FIG. This example is different from the embodiment of FIG. 17 in that the positive and negative of the rectangular wave are inverted, and is basically the same as the example of FIG. In this embodiment, the value TH 1 obtained by adding twice the data of the positive section of the PWM signal, the value TH 2 obtained by adding twice the data of the positive section of the rectangular wave, and the value TH 2 of the data of the negative section of the PWM signal are given.
The added value TL 2 , the added value of the rectangular wave period twice TAL
L is obtained, and using these, the digital output REF, that is, (K × TH 1 ) / (TALL) − (K × TL 2 ) /
(TALL) + K / 2− (offset correction amount) is calculated. Thus, the point that the duty of the rectangular wave is obtained based on the value TL 2 obtained by adding twice the data of the negative section of the PWM signal and subtracted from the duty of the PWM modulation signal is different from the embodiment shown in FIG. ..

【0047】以上説明した各実施例は、モータ制御回路
用のアナログ・デジタル変換回路となっていたが、本発
明にかかるアナログ・デジタル変換回路は、モータ制御
回路だけでなく、各種回路に適用可能である。
Although the respective embodiments described above are the analog / digital conversion circuits for the motor control circuit, the analog / digital conversion circuit according to the present invention can be applied not only to the motor control circuit but also to various circuits. Is.

【0048】[0048]

【発明の効果】本発明によれば、アナログ信号を一定周
波数で一定振幅の三角波と比較してPWM信号に変換す
るコンパレータと、上記PWM信号の正又は負の区間を
計測してデジタル信号に変換するカウンタとを設けるこ
とによって、アナログ・デジタル変換用ICを不要にし
たアナログ・デジタル変換回路において、カウンタによ
る上記PWM信号の現在の計測値と少なくとも一つ前の
計測値とを加算した値をデジタル出力とするようにした
ため、アナログ・デジタル変換出力の分解能を向上させ
ることができる。アナログ・デジタル変換出力の分解能
は、PWM信号の現在の計測値と複数個前までの計測値
とを加算した値をデジタル出力とすることにより、一層
向上する。また、カウンタによる上記PWM信号の現在
の計測値と少なくとも一つ前の計測値とを加算した値を
デジタル出力とすることにより、ローパスフィルタとし
ての機能をもつことになり、ノイズによるデジタル出力
の精度の低下を防止することができる。
According to the present invention, a comparator for comparing an analog signal with a triangular wave having a constant frequency and a constant amplitude and converting it into a PWM signal, and a positive or negative section of the PWM signal are measured and converted into a digital signal. In the analog-to-digital conversion circuit which does not require the IC for analog-to-digital conversion by providing the counter, a digital value obtained by adding the current measurement value of the PWM signal by the counter and at least the previous measurement value is obtained. Since the output is used, the resolution of the analog / digital conversion output can be improved. The resolution of the analog-to-digital conversion output is further improved by providing a digital output of a value obtained by adding the current measured value of the PWM signal and the measured values up to a plurality of times before. Further, by adding a value obtained by adding the current measured value of the PWM signal by the counter and the measured value at least one before to the digital output, the digital output has a function as a low-pass filter, and the accuracy of the digital output due to noise is increased. Can be prevented.

【0049】また、PWM信号の(正区間)/(全周
期)、又は(負区間)/(全周期)あるいはこれらの定
数倍の区間を計測してデジタルし信号に変換するように
すれば、デジタル出力データはPWM信号を得るための
三角波の周波数に依存せず、安定で精度の高いデジタル
変換が可能となる。さらに、PWM信号の現在の計測値
と少なくとも一つ前の計測値を足した値を用いて、PW
M信号のデューティに対応するデータから、一定電圧と
三角波を比較して得られる矩形波のデューティに対応す
るデータを引くことによって得たデジタル出力は、三角
波の直流分が温度により変化し、また、コンパレータの
オフセット電圧が温度により変化して、PWM信号のデ
ューティおよび矩形波のデューティが変化しても、これ
らの変化分がキャンセルされ、温度変化による誤差のな
い高精度のアナログ・デジタル変換回路出力を与えるこ
とができる。
If the (positive section) / (entire cycle) or (negative section) / (entire cycle) of the PWM signal or a section of a constant multiple of these is measured and digitized, it is converted into a signal. The digital output data does not depend on the frequency of the triangular wave for obtaining the PWM signal, and stable and highly accurate digital conversion can be performed. Furthermore, using the value obtained by adding the current measurement value of the PWM signal and at least the previous measurement value, the PW
The digital output obtained by subtracting the data corresponding to the duty of the rectangular wave obtained by comparing the constant voltage and the triangular wave from the data corresponding to the duty of the M signal shows that the DC component of the triangular wave changes with temperature, and Even if the offset voltage of the comparator changes with temperature and the duty of the PWM signal and the duty of the rectangular wave change, these changes are canceled and a highly accurate analog-digital conversion circuit output with no error due to temperature change is output. Can be given.

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

【図1】本発明にかかるアナログ・デジタル変換回路の
一実施例を示すブロック図。
FIG. 1 is a block diagram showing an embodiment of an analog / digital conversion circuit according to the present invention.

【図2】同上実施例の動作を示すタイミングチャート。FIG. 2 is a timing chart showing the operation of the above embodiment.

【図3】同上実施例における割込み動作を示すフローチ
ャート。
FIG. 3 is a flowchart showing an interrupt operation in the above embodiment.

【図4】上記実施例の分解能向上効果を一定の条件のも
とで示す波形図。
FIG. 4 is a waveform diagram showing the resolution improving effect of the above-described embodiment under a fixed condition.

【図5】上記実施例の分解能向上効果を別の条件のもと
で示す波形図。
FIG. 5 is a waveform diagram showing the resolution improving effect of the above embodiment under another condition.

【図6】上記実施例がローパスフィルタとして機能する
ことを示す等価回路図。
FIG. 6 is an equivalent circuit diagram showing that the above embodiment functions as a low-pass filter.

【図7】本発明にかかるアナログ・デジタル変換回路の
別の実施例の割込み動作を示すフローチャート。
FIG. 7 is a flowchart showing an interrupt operation of another embodiment of the analog / digital conversion circuit according to the present invention.

【図8】本発明にかかるアナログ・デジタル変換回路の
さらに別の実施例の割込み動作を示すフローチャート。
FIG. 8 is a flowchart showing an interrupt operation of still another embodiment of the analog / digital conversion circuit according to the present invention.

【図9】同上実施例の分解能向上効果を一定の条件のも
とで示す波形図。
FIG. 9 is a waveform diagram showing the resolution improving effect of the above-mentioned embodiment under a certain condition.

【図10】本発明にかかるアナログ・デジタル変換回路
のさらに別の各種実施例を示すブロック図。
FIG. 10 is a block diagram showing various other embodiments of the analog-digital conversion circuit according to the present invention.

【図11】図10(a)の実施例の動作を示すタイミン
グチャート。
FIG. 11 is a timing chart showing the operation of the embodiment shown in FIG.

【図12】同上実施例の割込み動作を示すフローチャー
ト。
FIG. 12 is a flowchart showing an interrupt operation of the above embodiment.

【図13】図10(b)の実施例の動作を示すタイミン
グチャート。
13 is a timing chart showing the operation of the embodiment of FIG. 10 (b).

【図14】同上実施例の割込み動作を示すフローチャー
ト。
FIG. 14 is a flowchart showing an interrupt operation of the above embodiment.

【図15】図10(c)の実施例の動作を示すタイミン
グチャート。
FIG. 15 is a timing chart showing the operation of the embodiment shown in FIG.

【図16】同上実施例の割込み動作を示すフローチャー
ト。
FIG. 16 is a flowchart showing an interrupt operation of the above embodiment.

【図17】本発明にかかるアナログ・デジタル変換回路
のさらに別の実施例を示すブロック図。
FIG. 17 is a block diagram showing still another embodiment of the analog-digital conversion circuit according to the present invention.

【図18】同上実施例の動作を示すタイミングチャー
ト。
FIG. 18 is a timing chart showing the operation of the embodiment.

【図19】同上実施例の各種割込み動作を示すフローチ
ャート。
FIG. 19 is a flowchart showing various interrupt operations according to the embodiment.

【図20】本発明にかかるアナログ・デジタル変換回路
のさらに別の実施例を示すブロック図。
FIG. 20 is a block diagram showing still another embodiment of the analog-digital conversion circuit according to the present invention.

【図21】同上実施例の動作を示すタイミングチャー
ト。
FIG. 21 is a timing chart showing the operation of the above embodiment.

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

2 コンパレータ 7 アナログ信号 8 三角波 9 パルス幅変調信号 31 カウンタ 31a カウンタ 31b カウンタ 2 comparator 7 analog signal 8 triangular wave 9 pulse width modulation signal 31 counter 31a counter 31b counter

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 アナログ信号を一定周波数で一定振幅の
三角波と比較してパルス幅変調信号に変換するコンパレ
ータと、上記パルス幅変調信号の正又は負の区間を計測
してデジタル信号に変換するカウンタとを有してなるア
ナログ・デジタル変換回路であって、上記カウンタによ
る上記パルス幅変調信号の現在の計測値と少なくとも一
つ前の計測値とを加算した値をデジタル出力とすること
を特徴とするアナログ・デジタル変換回路。
1. A comparator for comparing an analog signal with a triangular wave having a constant frequency and a constant amplitude to convert it into a pulse width modulation signal, and a counter for measuring a positive or negative section of the pulse width modulation signal and converting it into a digital signal. An analog-to-digital conversion circuit comprising: and a digital output of a value obtained by adding a current measurement value of the pulse width modulation signal by the counter and at least one previous measurement value. Analog-to-digital converter circuit.
【請求項2】 パルス幅変調信号の現在の計測値と複数
個前までの計測値とを加算した値をデジタル出力とした
請求項1記載のアナログ・デジタル変換回路。
2. The analog-digital conversion circuit according to claim 1, wherein a value obtained by adding a current measured value of the pulse width modulated signal and a measured value up to a plurality of previous measured values is used as a digital output.
【請求項3】 デジタル出力を、パルス幅変調信号に同
期させて得る請求項1記載のアナログ・デジタル変換回
路。
3. The analog-digital conversion circuit according to claim 1, wherein the digital output is obtained in synchronization with the pulse width modulation signal.
【請求項4】 パルス幅変調信号を一定期間毎計測する
請求項1記載のアナログ・デジタル変換回路。
4. The analog-digital conversion circuit according to claim 1, wherein the pulse width modulation signal is measured at regular intervals.
【請求項5】 パルス幅変調信号の(正の区間)/(全
周期)あるいはその定数倍をデジタル出力として得るア
ナログ・デジタル変換回路であって、正の区間のデータ
として請求項1記載のデジタル出力を使用するアナログ
・デジタル変換回路。
5. An analog-to-digital conversion circuit for obtaining (positive section) / (entire period) of the pulse width modulation signal or a constant multiple thereof as a digital output, wherein the digital signal according to claim 1 is used as positive section data. An analog / digital conversion circuit that uses the output.
【請求項6】 パルス幅変調信号の(負の区間)/(全
周期)あるいはその定数倍をデジタル出力として得るア
ナログ・デジタル変換回路であって、負の区間のデータ
として請求項1記載のデジタル出力を使用するアナログ
・デジタル変換回路。
6. An analog-to-digital conversion circuit for obtaining (negative interval) / (entire period) of the pulse width modulation signal or a constant multiple thereof as a digital output, wherein the digital signal according to claim 1 is used as data in the negative interval. An analog / digital conversion circuit that uses the output.
【請求項7】 カウンタによるパルス幅変調信号の現在
の計測値と少なくとも一つ前の計測値は、パルス幅変調
信号のデューティに対応するデータから、一定電圧と三
角波を比較して得られる矩形波のデューティに対応する
データを引くことによってデジタル出力を得るアナログ
・デジタル変換回路であって、少なくともパルス幅変調
信号デューティの分子は、請求項1記載のデジタル出力
を使用して得るアナログ・デジタル変換回路。
7. A rectangular wave obtained by comparing a constant voltage and a triangular wave from data corresponding to the duty of the pulse width modulated signal, the present measured value and at least one previous measured value of the pulse width modulated signal by the counter. An analog-digital conversion circuit for obtaining a digital output by subtracting data corresponding to the duty of the pulse width modulation signal, wherein the numerator of at least the pulse width modulation signal duty is obtained by using the digital output according to claim 1. ..
JP3350169A 1991-10-24 1991-12-10 A/d converter circuit Pending JPH05167450A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP3350169A JPH05167450A (en) 1991-12-10 1991-12-10 A/d converter circuit
US07/965,187 US5355136A (en) 1991-10-24 1992-10-23 Analog-to-digital converter circuit
DE4241702A DE4241702A1 (en) 1991-12-10 1992-12-10 Analogue=to=digital converter for electric motor speed control - counts clock pulses produced during period of PWM signal obtd. from error comparison with triangular wave

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3350169A JPH05167450A (en) 1991-12-10 1991-12-10 A/d converter circuit

Publications (1)

Publication Number Publication Date
JPH05167450A true JPH05167450A (en) 1993-07-02

Family

ID=18408691

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3350169A Pending JPH05167450A (en) 1991-10-24 1991-12-10 A/d converter circuit

Country Status (2)

Country Link
JP (1) JPH05167450A (en)
DE (1) DE4241702A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7782241B2 (en) 2006-02-17 2010-08-24 Fujitsu Limited Signal processing method and device, and analog/digital converting device
JP2016054445A (en) * 2014-09-04 2016-04-14 横河電機株式会社 Feedback pulse width modulator
CN116754831A (en) * 2023-08-16 2023-09-15 北京智芯微电子科技有限公司 Harmonic interference resistant frequency measurement method and device applied to intelligent circuit breaker

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR0170259B1 (en) * 1993-07-26 1999-03-30 김광호 Signal processing method and apparatus
DE4429701C2 (en) * 1993-10-05 2003-06-12 Christoph Braun Analog / digital conversion process
DE4333908C2 (en) * 1993-10-05 1995-09-07 Christoph Braun Analog-digital conversion method
DE19734248B4 (en) * 1997-08-07 2004-04-22 Litef Gmbh Method and device for converting and transmitting sensor output signals between asynchronously operating sensors and their respective data processing devices
DE19936039A1 (en) * 1999-07-30 2001-02-01 Christoph Braun Automatic offset correction for an AD converter according to the patent specification
DE50212540D1 (en) * 2001-08-01 2008-09-04 Ebm Papst St Georgen Gmbh & Co FOR THE TIMELY DURATION OF A PERIODICALLY REPEATED IMPULSE SIGNAL, AND DEVICE FOR IMPLEMENTING SUCH A METHOD

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53114652A (en) * 1977-03-16 1978-10-06 Yokogawa Hokushin Electric Corp Analog operation unit

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0367522A3 (en) * 1988-11-02 1992-08-05 Hewlett-Packard Company Closed loop pulse width analog-to-digital converter

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53114652A (en) * 1977-03-16 1978-10-06 Yokogawa Hokushin Electric Corp Analog operation unit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7782241B2 (en) 2006-02-17 2010-08-24 Fujitsu Limited Signal processing method and device, and analog/digital converting device
JP2016054445A (en) * 2014-09-04 2016-04-14 横河電機株式会社 Feedback pulse width modulator
CN116754831A (en) * 2023-08-16 2023-09-15 北京智芯微电子科技有限公司 Harmonic interference resistant frequency measurement method and device applied to intelligent circuit breaker
CN116754831B (en) * 2023-08-16 2023-11-07 北京智芯微电子科技有限公司 Harmonic interference resistant frequency measurement method and device applied to intelligent circuit breaker

Also Published As

Publication number Publication date
DE4241702A1 (en) 1993-07-01

Similar Documents

Publication Publication Date Title
JPS5931897B2 (en) frequency synthesizer
JPS6025745B2 (en) Power measurement method
JPH05167450A (en) A/d converter circuit
US6307494B2 (en) Device and method for the rapid digital/analog conversion of pulse width modulated signals
JPS5821921A (en) Analog-to-digital converter
EP0104999B1 (en) Gain switching device with reduced error for watt meter
Mertens et al. Voltage and current sensing in power electronic converters using sigma-delta A/D conversion
JPS5946343B2 (en) Measuring device
JPH0758892B2 (en) Digital pulse width modulation circuit
JP3665512B2 (en) Binary signal comparison device and PLL circuit using the same
JPH06244639A (en) Frequency synthesizer
JP3142033B2 (en) D / A conversion circuit
JP2807581B2 (en) Analog / digital conversion circuit
JP3284145B2 (en) PLL synchronous measuring device
JPH11326428A (en) Parameter measuring device for inverter circuit
JP2690410B2 (en) Analog / digital conversion circuit
JPS6022681Y2 (en) Digital to analog converter
SU1383399A1 (en) Device for determining average power of random signals
JPS6352808B2 (en)
JPS6022679Y2 (en) D/A converter
SU1728857A2 (en) Multichannel measuring device
JP3119149B2 (en) Feedback type pulse width modulation A / D converter
KR900005763B1 (en) Control system with improved robustness to disturbances
SU1383474A1 (en) Frequency-pulse device for converting signal from bridge-type transducer
RU1830524C (en) Reactive power compensator control device