JP2809655B2 - Digital arithmetic circuit - Google Patents
Digital arithmetic circuitInfo
- Publication number
- JP2809655B2 JP2809655B2 JP30579488A JP30579488A JP2809655B2 JP 2809655 B2 JP2809655 B2 JP 2809655B2 JP 30579488 A JP30579488 A JP 30579488A JP 30579488 A JP30579488 A JP 30579488A JP 2809655 B2 JP2809655 B2 JP 2809655B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- circuit
- output
- addition
- digital
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Complex Calculations (AREA)
Description
【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は外部から順次供給されるディジタルデータ
の平均値を算出するディジタル演算回路に関し、特にア
ナログ指示メータの指針駆動用に使用されるディジタル
演算回路に関する。Description: Object of the Invention (Field of Industrial Application) The present invention relates to a digital arithmetic circuit for calculating an average value of digital data sequentially supplied from the outside, and in particular, for driving a pointer of an analog indicating meter. The present invention relates to a digital arithmetic circuit used.
(従来の技術) 一般に、アナログ指示メータの指針駆動装置には、そ
のメータの指針を円滑に駆動させるためにディジタル演
算回路が設けられている。このディジタル演算回路は外
部から供給される入力データを平滑化して出力するため
にその入力データの平均値を算出するものであり、その
算出結果によってメータの指針制御を行なう。このよう
に平均データを利用して指針を制御すれば、メータの指
針が急激に応答動作する現象を防止して指針を円滑に駆
動できるので、メータの視認性を向上させることができ
る。(Prior Art) In general, a pointer driving device for an analog indicating meter is provided with a digital operation circuit in order to smoothly drive the pointer of the meter. This digital arithmetic circuit calculates an average value of input data supplied from the outside in order to smooth and output the input data, and controls the pointer of the meter based on the calculation result. If the pointer is controlled using the average data in this manner, the phenomenon in which the pointer of the meter responds rapidly can be prevented and the pointer can be driven smoothly, so that the visibility of the meter can be improved.
従来のディジタル演算回路は、平滑化された出力デー
タを得るための入力データの平均化処理でその平均化の
対象となる入力データの数だけデータをラッチし、その
ラッチしたデータの総和を求める加算、およびその平均
値を求める除算を繰返し行なう構成である。すなわち、
例えば4個のディジタルデータの平均値を算出する4平
均化処理の場合は、まずデータD1〜D4がラッチされてそ
れらの総和を求める加算処理、およびその総和を4で除
算する処理が実行される。次いで、データD2〜D5、デー
タD3〜D6、データD4〜D7が順次ラッチされて同様の平均
化処理が順次行なわれる。A conventional digital arithmetic circuit latches data by the number of input data to be averaged in an averaging process of input data to obtain smoothed output data, and performs addition to obtain a sum of the latched data. , And division for obtaining the average value thereof are repeatedly performed. That is,
For example, in the case of a four-averaging process for calculating an average value of four digital data, first, data D1 to D4 are latched, an addition process for obtaining a sum thereof, and a process for dividing the sum by four are executed. . Next, data D2 to D5, data D3 to D6, and data D4 to D7 are sequentially latched, and similar averaging processing is sequentially performed.
このような構成では、平均化処理を行なうデータ数
(例えば4個)分のラッチ回路が必要になるので、平均
処理を行なうデータ数が増加するとそれに伴って回路規
模が大きくなる欠点がある。In such a configuration, a latch circuit for the number of data to be averaged (for example, four) is required, so that there is a disadvantage that as the number of data to be averaged increases, the circuit scale increases accordingly.
(発明が解決しようとする課題) この発明は前述の事情に鑑みなされたもので、従来で
は平均化処理を行なうデータ数分のラッチ回路が必要と
なり回路規模の増大を招いた点を改善し、少ないラッチ
回路で出力データ値を平滑化するための入力データの平
均処理演算を実行できるディジタル演算回路を提供する
ことを目的とする。(Problems to be Solved by the Invention) The present invention has been made in view of the above-described circumstances, and has been improved in that a latch circuit for the number of data to be averaged is conventionally required and the circuit scale is increased. It is an object of the present invention to provide a digital operation circuit capable of executing an average processing operation of input data for smoothing an output data value with a small number of latch circuits.
[発明の構成] (課題を解決するための手段) この発明のディジタル演算回路は、入力データを平滑
化して出力するための平均化処理を実行するものであ
る。ここで、この平均化処理とは、入力データ値が急激
に変化しても“平滑化された出力データ”が得られるよ
うにするための演算である。すなわち、この発明は、外
部から順次供給されるディジタルデータを受信し、その
受信データに応じて平滑化された出力データを算出する
ディジタル演算回路において、演算処理中または演算結
果データを一時保持する一時保持手段と、データの加減
算を行う加減算手段とを具備し、以前に算出され前記一
時保持手段に保持されているデータから、そのデータの
所定数分の1としたデータを前記加減算手段によって減
算し、外部から供給されるディジタルデータに前記減算
結果を前記加減算手段によって加算し、この加算によっ
て算出されたデータを前記一時保持手段に保持し、且つ
その所定数分の1のデータを前記出力データとして出力
する演算処理を、繰り返し実行するように構成されてい
ることを特徴とする。[Structure of the Invention] (Means for Solving the Problems) A digital operation circuit according to the present invention executes an averaging process for smoothing and outputting input data. Here, the averaging process is an operation for obtaining “smoothed output data” even if the input data value changes abruptly. That is, the present invention provides a digital arithmetic circuit which receives digital data sequentially supplied from the outside and calculates smoothed output data in accordance with the received data. Holding means, and adding / subtracting means for performing addition / subtraction of data, and subtracting, from the data previously calculated and held in the temporary holding means, data which is a predetermined number of the data by the adding / subtracting means. Adding the subtraction result to digital data supplied from the outside by the addition / subtraction means, holding the data calculated by the addition in the temporary holding means, and using a predetermined number of data as the output data The arithmetic processing to be output is configured to be repeatedly executed.
(作用) このディジタル演算回路にあっては、まず外部からの
第1番目のデータがラッチ手段にラッチされ、そのデー
タからそのデータの所定数分の1のデータを減算した値
のデータがデータ算出手段によって算出される。次い
で、外部から供給される次のデータに対してそのデータ
算出手段による算出結果が加算される。そして、ラッチ
手段の内容はその加算結果に更新される。この一連の動
作が繰返し実行されることによって、平滑化された出力
データを得るためのデータの平均化処理が実行される。(Operation) In this digital arithmetic circuit, first, external first data is latched by the latch means, and data of a value obtained by subtracting a predetermined number of data from the data is calculated. It is calculated by means. Next, the calculation result by the data calculation means is added to the next data supplied from the outside. Then, the content of the latch means is updated to the addition result. By repeating this series of operations, data averaging processing for obtaining smoothed output data is performed.
このディジタル演算回路では、各データを順次演算処
理する構成であるため、従来のように平均化処理を行な
うデータ数だけデータをラッチする必要がなく、ラッチ
手段の規模を小さくすることができる。Since this digital arithmetic circuit has a configuration in which each data is sequentially processed, it is not necessary to latch data by the number of data to be averaged as in the related art, and the scale of the latch means can be reduced.
(実施例) 以下、図面を参照してこの発明の実施例を説明する。(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.
第1図にこの発明の一実施例に係るディジタル演算回
路を示す。このディジタル演算回路10においては、外部
から順次供給されるデータはそれぞれD1〜D4の4ビット
であり、平均処理後のデータをそれぞれ∫B1〜∫B4の4
ビットとして出力する構成である。また、その平均化処
理で得られる平均値は、4個のデータ毎に行なう前述の
4平均化処理に対応している。ここで、平均化処理と
は、前述したように、入力データを平滑化して出力する
ための平均化処理を意味し、入力データ値が急激に変化
しても“平滑化された出力データ”が得られるようにす
るための演算である。FIG. 1 shows a digital operation circuit according to an embodiment of the present invention. In the digital arithmetic circuit 10, the data sequentially supplied from the outside is four bits D1 to D4, and the data after the averaging process is divided into four bits of ∫B1 to ∫B4, respectively.
It is configured to output as bits. The average value obtained by the averaging process corresponds to the above-described four averaging process performed for every four data. Here, as described above, the averaging process means an averaging process for smoothing and outputting the input data. Even if the input data value changes rapidly, the “smoothed output data” is not changed. This is an operation to be obtained.
図において、11はB1〜B4の4ビットからなるディジタ
ルデータを外部から順次入力する入力回路であり、この
入力回路11の出力は加減算回路12の第2の入力部b1〜b4
に接続されている。In the figure, reference numeral 11 denotes an input circuit for sequentially inputting digital data consisting of 4 bits B1 to B4 from the outside. The output of the input circuit 11 is used as the second input sections b1 to b4 of the addition / subtraction circuit 12.
It is connected to the.
加減算回路12は加算モードと減算モードの2つの演算
モードを有しており、これら演算モードはインバータI1
によって反転された制御信号GAによって切替え制御され
る。すなわち、加減算回路12は、加算モードの時、第1
の入力部a1〜a6に供給されるデータと第2の入力部b1〜
b6に供給されるデータの加算処理を行ない、その加算結
果を出力部F1〜F6から出力する。一方、減算モードの場
合は、第1の入力部a1〜a6に供給されるデータから第2
の入力部b1〜b6に供給されるデータを減算し、その減算
結果を出力部F1〜F6から出力する。この加減算回路12の
出力部F1〜F6は、ラッチ回路13およびラッチ回路14の各
入力部に接続されている。The addition / subtraction circuit 12 has two operation modes, an addition mode and a subtraction mode.
The switching is controlled by the control signal GA inverted by. That is, the adder / subtractor circuit 12 operates in the first
Data supplied to the input units a1 to a6 of the second input unit b1 to
The addition processing of the data supplied to b6 is performed, and the addition result is output from the output units F1 to F6. On the other hand, in the case of the subtraction mode, the data supplied to the first input units a1 to a6
, Subtracts the data supplied to the input units b1 to b6, and outputs the subtraction result from the output units F1 to F6. Output units F1 to F6 of the addition / subtraction circuit 12 are connected to respective input units of the latch circuit 13 and the latch circuit 14.
ラッチ回路13は6ビット分のデータラッチ能力を有す
るものであって、制御信号L1によってデータのラッチタ
イミングが制御され、またそのラッチしたデータの出力
タイミングは制御信号▲▼によって制御される。こ
のラッチ回路13の出力は、加減算回路12の第1の入力部
a1〜a6に接続されている。The latch circuit 13 has a data latching capability for 6 bits. The latch timing of data is controlled by a control signal L1, and the output timing of the latched data is controlled by a control signal ▼. The output of the latch circuit 13 is connected to the first input
connected to a1 to a6.
ラッチ回路14は6ビット分のデータラッチ能力を有し
ており、制御信号L2によってそのラッチタイミングが制
御され、その出力はゲート回路15およびゲート回路16の
各入力に接続されている。この場合、ゲート回路15に対
してはラッチ回路14の6ビットのラッチ出力がそのまま
供給されるが、ゲート回路16に対しては6ビットのラッ
チ出力のうちの上位4ビットだけが供給される。すなわ
ち、ゲート回路16は、ラッチ回路14のラッチ出力のLSB
側から2桁上位のビットをLSBとして入力する。したが
って、ゲート回路16に入力されるデータは、ラッチ回路
14から出力されるデータの1/4になる。The latch circuit 14 has a data latch capability of 6 bits, its latch timing is controlled by a control signal L2, and its output is connected to each input of the gate circuits 15 and 16. In this case, the 6-bit latch output of the latch circuit 14 is supplied to the gate circuit 15 as it is, but only the upper 4 bits of the 6-bit latch output are supplied to the gate circuit 16. That is, the gate circuit 16 outputs the LSB of the latch output of the latch circuit 14.
The upper two bits from the side are input as LSB. Therefore, the data input to the gate circuit 16
It becomes 1/4 of the data output from 14.
これらゲート回路15および16は、制御信号GAによって
その出力タイミングがそれぞれ制御され、ゲート回路15
の出力は加減算回路12の第1の入力部a1〜a6に、またゲ
ート回路16の出力は加減算回路12の第2の入力部b1〜b4
に接続されている。The output timings of these gate circuits 15 and 16 are controlled by a control signal GA, respectively.
Are output to first input portions a1 to a6 of the addition / subtraction circuit 12, and the output of the gate circuit 16 is output to second input portions b1 to b4 of the addition / subtraction circuit 12.
It is connected to the.
出力回路17は、ゲート回路16と同様にラッチ回路14の
ラッチ出力の1/4のデータを入力し、そのデータを平均
データ∫B1〜∫B4として出力する。The output circuit 17 inputs 1/4 data of the latch output of the latch circuit 14 similarly to the gate circuit 16, and outputs the data as average data # B1 to # B4.
次に第2図のタイミングチャートを参照して第1図の
ディジタル演算回路10の演算処理動作を説明する。前述
したように、加減算回路12は制御信号▲▼によって
その演算モードが切替えられ、制御信号▲▼が“L"
レベルすなわちGAが“H"レベルの時に減算モード、また
制御信号▲▼が“H"レベルすなわちGAが“L"レベル
の時に加算モードに設定される。制御信号GAが“L"レベ
ルの時は、入力回路11およびラッチ回路13の出力が開状
態でゲート回路15および16の出力が開状態である。反対
に、制御信号GAが“H"レベルの時は、、ゲート回路15お
よび16の出力が閉状態で、入力回路11およびラッチ回路
13の出力が閉状態である。したがって、加減算回路12で
は、入力回路11の出力とラッチ回路13の出力との加算処
理、またはゲート回路15の出力からゲート回路16の出力
を演算する減算処理が行なわれる。Next, the arithmetic processing operation of the digital arithmetic circuit 10 of FIG. 1 will be described with reference to the timing chart of FIG. As described above, the operation mode of the addition / subtraction circuit 12 is switched by the control signal ▼, and the control signal ▼ is set to “L”.
The level is set to the subtraction mode when GA is at "H" level, and the addition mode is set when the control signal ▲ is at "H" level, that is, when GA is at "L" level. When the control signal GA is at "L" level, the outputs of the input circuit 11 and the latch circuit 13 are open and the outputs of the gate circuits 15 and 16 are open. Conversely, when the control signal GA is at “H” level, the outputs of the gate circuits 15 and 16 are closed and the input circuit 11 and the latch circuit
The output of 13 is closed. Therefore, the addition / subtraction circuit 12 performs an addition process of the output of the input circuit 11 and the output of the latch circuit 13, or a subtraction process of calculating the output of the gate circuit 16 from the output of the gate circuit 15.
外部から供給される第1番目のデータD1は、制御信号
GAが“L"レベルの時に加減算回路12に入力される。この
時、ラッチ回路13の出力は零であるため、加算モードの
加減算回路12からは第1番目の入力データD1がそのまま
出力される。そして、“H"レベルの制御信号L2が発生さ
れた時、その第1番目の入力データD1はラッチ回路14に
ラッチされる。この状態を初期状態として次のような演
算処理が実行される。The first data D1 supplied from outside is a control signal
When GA is at “L” level, it is input to the addition / subtraction circuit 12. At this time, since the output of the latch circuit 13 is zero, the first input data D1 is output as it is from the addition / subtraction circuit 12 in the addition mode. When the “H” level control signal L2 is generated, the first input data D1 is latched by the latch circuit. With this state as an initial state, the following arithmetic processing is executed.
まず、制御信号GAが“L"から“H"レベルに立上がる
と、ラッチ回路14にラッチされていた第1番目のデータ
D1がゲート回路15を介して加減算回路12の第1の入力部
a1〜a4に供給される。また、加減算回路12の第2の入力
部b1〜b4には、ゲート回路16を介してデータD1の1/4の
データが供給される。この時、加減算回路12は減算モー
ドであるので、第1番目のデータD1からそのデータD1の
1/4のデータを減算する処理が実行される。そして、そ
の減算結果すなわちD1−(D1/4)は、“H"レベルの制御
信号L1が発生された時にラッチ回路13にラッチされる。First, when the control signal GA rises from “L” to “H” level, the first data latched by the latch circuit 14 is output.
D1 is a first input section of the addition / subtraction circuit 12 via the gate circuit 15.
supplied to a1 to a4. Further, data of 部 of the data D1 is supplied to the second input units b1 to b4 of the addition / subtraction circuit 12 via the gate circuit 16. At this time, since the addition / subtraction circuit 12 is in the subtraction mode, the first data D1 is
A process of subtracting 1/4 data is executed. Then, the subtraction result, that is, D1− (D1 / 4) is latched by the latch circuit 13 when the “H” level control signal L1 is generated.
次いで、制御信号GAが“H"から“L"レベルに切替わる
と、ラッチ回路13にラッチされていたデータすなわちD1
−(A1/4)が加減算回路12の第1入力部a1〜a4に供給さ
れ、その第2の入力部b1〜b4には第2番目のデータD2が
供給される。そして、これらデータの加算が実行され、
その加算結果D1−(D1/4)+D2は“H"レベルの制御信号
L2が発生された時にラッチ回路14にラッチされる。この
ラッチ回路14にラッチされているデータの1/4は、出力
回路17によって平均データとして出力される。Next, when the control signal GA switches from “H” to “L” level, the data latched by the latch circuit 13, ie, D1
-(A1 / 4) is supplied to the first inputs a1 to a4 of the addition / subtraction circuit 12, and the second data D2 is supplied to the second inputs b1 to b4. Then, the addition of these data is executed,
The addition result D1-(D1 / 4) + D2 is the "H" level control signal.
L2 is latched by the latch circuit 14 when it is generated. One fourth of the data latched by the latch circuit 14 is output by the output circuit 17 as average data.
そして、今度はラッチ回路14にラッチされているデー
タ、すなわちD1−(D1/4)+D2を初期値として、前述の
演算処理が再び実行される。Then, the above-described arithmetic processing is executed again with the data latched by the latch circuit 14, that is, D1- (D1 / 4) + D2 as an initial value.
このような処理を順次繰返し実行することによって、
入力データの平均値を出力回路17から出力することがで
きる。By repeatedly performing such processing sequentially,
The average value of the input data can be output from the output circuit 17.
このディジタル演算回路10の演算処理特性すなわち入
力データと出力データとの関係は第3図および第4図の
ようになる。The arithmetic processing characteristics of the digital arithmetic circuit 10, that is, the relationship between input data and output data are as shown in FIGS.
第3図には入力データの値が「0」から「F」(16
進)に急峻に上昇し、以後その「F」値を維持する場合
が示されている。この図から分るように、入力データの
急峻な変化に対し、出力回路17から出力される出力デー
タの値は演算サイクルの増加と共に時定数的に緩かに上
昇して「F」に達する。FIG. 3 shows that the value of the input data changes from "0" to "F" (16
(F), and then steeply increases and thereafter maintains the “F” value. As can be seen from this figure, the value of the output data output from the output circuit 17 gradually rises in a time constant and reaches "F" with an increase in the operation cycle in response to a sharp change in the input data.
また、第4図には入力データの値が「F」から「0」
に急峻に下降し、以後その「0」値を維持する場合が示
されている。この場合にも、出力回路17から出力される
出力データの値は演算サイクルの増加と共に時定数的に
緩かに減少して「0」に達する。FIG. 4 shows that the value of the input data changes from “F” to “0”.
, And then steeply decreases and thereafter maintains the “0” value. Also in this case, the value of the output data output from the output circuit 17 gradually decreases in a time constant to reach “0” as the operation cycle increases.
このような演算処理特性を有するディジタル演算回路
10は、アナログ指示メータの指針制御に好適である。な
ぜなら、入力データの値が急峻に変化しても指針を円滑
に駆動できるからである。Digital arithmetic circuit having such arithmetic processing characteristics
Numeral 10 is suitable for controlling the pointer of an analog indicating meter. This is because the pointer can be driven smoothly even if the value of the input data changes sharply.
また、このディジタル演算回路10においては、入力デ
ータを順次演算処理する構成であるため、従来のように
平均化処理するデータ数分のラッチ回路を設ける必要が
ない。したがって、平均化処理を行なうデータ数が増加
しても必要なラッチ回路の数はラッチ回路13と14の2個
で済む。Further, since the digital arithmetic circuit 10 has a configuration in which input data is sequentially arithmetically processed, it is not necessary to provide latch circuits for the number of data to be averaged as in the related art. Therefore, even if the number of data to be subjected to the averaging process increases, the number of necessary latch circuits is only two, that is, the latch circuits 13 and 14.
尚、ラッチ回路13は、ラッチ回路14にラッチされたデ
ータとその1/4のデータとの減算結果をラッチするため
だけのものであるから、ラッチ回路13を設けずにラッチ
回路14にその減算結果をラッチすることも可能である。
この場合には、ラッチ回路14は、ラッチ回路14にラッチ
されたデータとその1/4のデータとの減算結果、および
その減算結果と次の入力データとの加算結果とを交互に
ラッチすることになる。したがって、ラッチ回路13を設
けない場合は、ラッチ回路14が加算結果をラッチしてい
る場合のみ、出力回路17から出力データを取出すように
することが必要である。このようにすれば、1個のラッ
チ回路でデータの平均処理を実行することが可能にな
る。Note that the latch circuit 13 is only for latching the result of subtraction between the data latched by the latch circuit 14 and 1/4 of the data. It is also possible to latch the result.
In this case, the latch circuit 14 alternately latches the result of subtraction between the data latched by the latch circuit 14 and 1/4 of the data, and the result of addition of the subtraction result and the next input data. become. Therefore, when the latch circuit 13 is not provided, it is necessary to take out the output data from the output circuit 17 only when the latch circuit 14 is latching the addition result. This makes it possible to execute data averaging processing with one latch circuit.
第5図は、自動車のスピードメータ等の指針制御に適
したディジタル演算回路の構成例である。一般に、自動
車等のスピードメータにおいては、車速に対応して周期
が変化するパルス信号がその入力データとして与えられ
る。このように周期が変化するパルス信号を入力とする
場合には、そのパルス信号をF/Vコンバータ、およびA/D
コンバータを用いてディジタルデータに変換する方式も
一例としてあるが、この実施例では、これらコンバータ
を用いずに、第1図に示したディジタル演算回路10の入
力回路11の前段に前置処理回路21を設けている。この前
置処理回路21は、外部からパルス入力信号を受信する毎
に所定値のディジタルデータを一定期間発生するもので
ある。FIG. 5 shows a configuration example of a digital arithmetic circuit suitable for controlling hands such as a speedometer of an automobile. Generally, in a speedometer of an automobile or the like, a pulse signal whose cycle changes in accordance with the vehicle speed is given as input data. When a pulse signal whose cycle changes in this way is input, the pulse signal is converted to an F / V converter and A / D
There is also an example of a method of converting the data into digital data by using a converter. In this embodiment, the preprocessing circuit 21 is provided before the input circuit 11 of the digital arithmetic circuit 10 shown in FIG. Is provided. The preprocessing circuit 21 generates digital data of a predetermined value for a certain period each time a pulse input signal is received from the outside.
例えば、第6図(a)に示すような入力パルス信号が
供給されると、前置処理回路21は、第6図(B)に示す
ように、そのパルス信号の立上がりタイミングに同期し
て値が「F」のデータを一定期間(期間t)発生する。
したがって、ディジタル演算回路10の入力回路11には、
「F」から「0」に急峻に変化する入力データが前置処
理回路21から順次供給される。For example, when an input pulse signal as shown in FIG. 6A is supplied, the preprocessing circuit 21 synchronizes the value with the rising timing of the pulse signal as shown in FIG. 6B. Generates data of “F” for a certain period (period t).
Therefore, the input circuit 11 of the digital arithmetic circuit 10
Input data that changes rapidly from “F” to “0” is sequentially supplied from the preprocessing circuit 21.
この場合のディジタル演算回路10の出力データは、第
4図に示したディジタル演算回路10の入出力特性からも
明らかなように、第6図(C)のように増減を繰返しな
がら徐々に上昇する。したがって、この出力データを用
いれば、前述のF/V,A/D方式と同様にメータの指針を円
滑に駆動でき、しかも、F/Vコンバータや、A/Dコンバー
タを用いる必要がないため、CRフィルタ等の外付け部品
が削除でき低コストの演算回路を提供できる。In this case, the output data of the digital arithmetic circuit 10 gradually rises while repeatedly increasing and decreasing as shown in FIG. 6C, as is clear from the input / output characteristics of the digital arithmetic circuit 10 shown in FIG. . Therefore, if this output data is used, the pointer of the meter can be driven smoothly as in the case of the F / V, A / D method described above, and further, it is not necessary to use an F / V converter or an A / D converter. External components such as a CR filter can be eliminated, and a low-cost arithmetic circuit can be provided.
尚、第1図のディジタル演算回路においては、ラッチ
回路14にラッチされているデータからその1/4のデータ
を減算した値、すなわちD1−(D1/4)を減算処理によっ
て算出したが、これを(D1/4)+(D1/4)+(D1/4)、
あるいは(D1/2)+(D1/4)と変形することによって加
算処理のみで算出することも可能である。In the digital arithmetic circuit shown in FIG. 1, a value obtained by subtracting 1/4 data from the data latched in the latch circuit 14, that is, D1- (D1 / 4) is calculated by a subtraction process. To (D1 / 4) + (D1 / 4) + (D1 / 4),
Alternatively, it is also possible to calculate by only adding processing by transforming (D1 / 2) + (D1 / 4).
[発明の効果] 以上のようにこの発明によれば、従来のように平均化
処理を行なうデータ数分のラッチ回路を設ける必要がな
くなり、少ないラッチ回路でディジタルデータの平均化
処理を実行することができる。[Effects of the Invention] As described above, according to the present invention, it is not necessary to provide latch circuits for the number of data to be averaged as in the related art. Can be.
第1図はこの発明の一実施例に係るディジタル演算処理
回路を示す回路図、第2図は第1図に示したディジタル
演算回路の動作を説明するタイミングチャート、第3図
および第4図はそれぞれ第1図に示したディジタル演算
回路の演算処理特性を示す図、第5図はこの発明の他の
実施例に係るディジタル演算回路を示すブロック図、第
6図は第5図に示したディジタル演算回路の動作を説明
するタイミングチャートである。 10……ディジタル演算回路、11……入力回路、12……加
減算回路、13,14……ラッチ回路、15,16……ゲート回
路、17……出力回路、21……前置処理回路。FIG. 1 is a circuit diagram showing a digital arithmetic processing circuit according to one embodiment of the present invention, FIG. 2 is a timing chart for explaining the operation of the digital arithmetic circuit shown in FIG. 1, and FIGS. FIG. 5 is a diagram showing the arithmetic processing characteristics of the digital arithmetic circuit shown in FIG. 1, FIG. 5 is a block diagram showing a digital arithmetic circuit according to another embodiment of the present invention, and FIG. 6 is a timing chart illustrating an operation of the arithmetic circuit. 10 ... Digital operation circuit, 11 ... Input circuit, 12 ... Addition / subtraction circuit, 13,14 ... Latch circuit, 15,16 ... Gate circuit, 17 ... Output circuit, 21 ... Preprocessing circuit.
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 17/18──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 6 , DB name) G06F 17/18
Claims (2)
を受信し、その受信データに応じて平滑化された出力デ
ータを演算するディジタル演算回路において、 演算処理中または演算結果データを一時保持する一時保
持手段と、データの加減算を行う加減算手段とを具備
し、 以前に算出され前記一時保持手段に保持されているデー
タから、そのデータの所定数分の1としたデータを前記
加減算手段によって減算し、外部から供給されるディジ
タルデータに前記減算結果を前記加減算手段によって加
算し、この加算によって算出されたデータを前記一時保
持手段に保持し、且つその所定数分の1のデータを前記
出力データとして出力する演算処理を、繰り返し実行す
るように構成されていることを特徴とするディジタル演
算回路。1. A digital arithmetic circuit for receiving digital data sequentially supplied from the outside and calculating smoothed output data in accordance with the received data. Means, and addition and subtraction means for performing addition and subtraction of data, from the data previously calculated and held in the temporary holding means, subtracted by the addition and subtraction means data that is a predetermined number of the data, The subtraction result is added to digital data supplied from the outside by the addition / subtraction means, the data calculated by the addition is held in the temporary holding means, and a predetermined number of data is output as the output data. A digital arithmetic circuit configured to repeatedly execute the arithmetic processing.
が外部から供給され、そのパルス信号の発生毎に所定値
のディジタルデータを一定期間発生する前置データ処理
回路を前段に具備し、この前置データ処理回路から発生
されるディジタルデータを外部データとして受信して演
算処理することを特徴とする請求項1記載のディジタル
演算回路。A pulse signal having a cycle corresponding to the data value is supplied from the outside, and a preceding data processing circuit for generating digital data of a predetermined value for a predetermined period every time the pulse signal is generated is provided at a preceding stage. 2. The digital arithmetic circuit according to claim 1, wherein digital data generated from the pre-data processing circuit is received as external data and arithmetic processing is performed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP30579488A JP2809655B2 (en) | 1988-12-02 | 1988-12-02 | Digital arithmetic circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP30579488A JP2809655B2 (en) | 1988-12-02 | 1988-12-02 | Digital arithmetic circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02151970A JPH02151970A (en) | 1990-06-11 |
| JP2809655B2 true JP2809655B2 (en) | 1998-10-15 |
Family
ID=17949438
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP30579488A Expired - Fee Related JP2809655B2 (en) | 1988-12-02 | 1988-12-02 | Digital arithmetic circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2809655B2 (en) |
-
1988
- 1988-12-02 JP JP30579488A patent/JP2809655B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH02151970A (en) | 1990-06-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2809655B2 (en) | Digital arithmetic circuit | |
| JPH07234778A (en) | Arithmetic circuit | |
| JP3166446B2 (en) | Speed estimation observer | |
| JP2002116058A (en) | Encoder data conversion circuit | |
| JPH08220197A (en) | Motor load characteristic identification device | |
| JP3599127B2 (en) | Observer control arithmetic unit | |
| KR900006007B1 (en) | Digital signal processing circuit | |
| SU826282A1 (en) | Programme-control device | |
| JPS6121681Y2 (en) | ||
| JP2625705B2 (en) | Digital current control servo driver | |
| JP2551111B2 (en) | Square arithmetic circuit | |
| JPS6395535A (en) | Arithmetic processing system | |
| SU746536A1 (en) | Device for computing trigonometric functions | |
| JPS61145090A (en) | Method of controlling speed of elevator | |
| JP2585739Y2 (en) | High-speed setting control device | |
| SU954934A2 (en) | Object of second order optimal control system | |
| JPS62271111A (en) | Velocity controller | |
| JP3134334B2 (en) | Distortion circuit | |
| JPH0264786A (en) | High speed system for continuous multiplication with d-a converter | |
| JPS608934A (en) | Digital arithmetic system | |
| JPH01107687A (en) | Control method of motor | |
| KR960027358A (en) | Self-diagnosis circuit of analog / digital converter | |
| JPH0533245U (en) | Division arithmetic circuit | |
| JPH089514A (en) | Motor control method | |
| JPH0734379U (en) | Drive device for cross coil type instrument |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |