JPS5977716A - Digital filter - Google Patents

Digital filter

Info

Publication number
JPS5977716A
JPS5977716A JP18840682A JP18840682A JPS5977716A JP S5977716 A JPS5977716 A JP S5977716A JP 18840682 A JP18840682 A JP 18840682A JP 18840682 A JP18840682 A JP 18840682A JP S5977716 A JPS5977716 A JP S5977716A
Authority
JP
Japan
Prior art keywords
output
digital signal
counter
count
down counter
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.)
Granted
Application number
JP18840682A
Other languages
Japanese (ja)
Other versions
JPH0446005B2 (en
Inventor
Masaru Hashirano
柱野 勝
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP18840682A priority Critical patent/JPS5977716A/en
Publication of JPS5977716A publication Critical patent/JPS5977716A/en
Publication of JPH0446005B2 publication Critical patent/JPH0446005B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/60Methods or arrangements for performing computations using a digital non-denominational number representation, i.e. number representation without radix; Computing devices using combinations of denominational and non-denominational quantity representations, e.g. using difunction pulse trains, STEELE computers, phase computers
    • G06F7/62Performing operations exclusively by counting total number of pulses ; Multiplication, division or derived operations using combined denominational and incremental processing by counters, i.e. without column shift

Abstract

PURPOSE:To realize the function of integrating element by discriminating whether or not an input signal is larger than a reference value and counting the result. CONSTITUTION:A binary input signal D1 and a binary reference signal D2 are inputted to a level discriminating circuit 5, and when D1>D2, count-up is commanded to a counter 7 of the next stage. When D2>D1, down-count is commanded to the counter 7 of the next stage. The command of up/down count is performed via a gate means 6 located at the pre-stage of the counter 7. When the command is inquired, the gate means 6 passes a clock pulse. When the counter 7 counts a maximum or a minimum value, the count is stopped unit the relation between the D1 and D2 is changed. The function of integrating element is realized with the simple constitution in this way.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は2進数のディジタル信号入力に周波数特性を付
加した出力を得るディジタルフィルタに関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a digital filter that obtains an output with frequency characteristics added to a binary digital signal input.

従来例の構成とその問題点 第1図はアナログ式積分回路の従来例、第2図はその動
作説明に供する波形図である。
Structure of a conventional example and its problems FIG. 1 shows a conventional example of an analog type integrating circuit, and FIG. 2 is a waveform diagram for explaining its operation.

アナログ式積分回路の構成要素はオペアンプ1、入力抵
抗2、帰環コンデンサ3である。入力電圧& 、 12
に電位差が生じると入力抵抗2に電流が流れ、コンデン
サ3に電荷が充電されて出力電圧g。
The components of the analog integration circuit are an operational amplifier 1, an input resistor 2, and a return capacitor 3. Input voltage & , 12
When a potential difference occurs between the two, a current flows through the input resistor 2, charging the capacitor 3 and increasing the output voltage g.

が変化する。出力電圧Eoは に1>1!:2のとき電位が下降(〜t+ 、 t4〜
t5)シ、E1=・式のとき電位が停止(11〜t2.
t5〜)し、E+ (Ezのとき電位が上昇(t2〜t
s)する特性を持っている。この回路の伝達関数G (
s)は、但し、T1 = C+ R+ 、 G1は帰環
コンデンサ3の容量、R1は入力抵抗2の抵抗値である
。即ち、積分要素としての機能を持っている。
changes. Output voltage Eo is 1>1! : When 2, the potential decreases (~t+, t4~
t5) When E1 = Equation, the potential stops (11 to t2.
t5~), and the potential rises when E+ (Ez) (t2~t
s). The transfer function G (
s), where T1 = C+ R+, G1 is the capacitance of the return capacitor 3, and R1 is the resistance value of the input resistor 2. That is, it has a function as an integral element.

この積分回路を集積回路(ic )化する場合には、入
出力用のピン3個と外付けのOR部品2個を必要とし、
ic化による外付は部品の削減及びピン数削減の妨げと
なっていた。
When converting this integration circuit into an integrated circuit (IC), three input/output pins and two external OR components are required.
External attachment due to IC has been an impediment to reducing the number of parts and the number of pins.

発明の目的 本発明は前記従来の問題点を解消するもので、全ての構
成要素をディジタル化したディジタルフィルタを提供す
ることを目的とするものである。
OBJECTS OF THE INVENTION The present invention solves the above-mentioned conventional problems, and aims to provide a digital filter in which all the constituent elements are digitalized.

発明の構成 本発明は、基準となる2進数のディジタル信号を発生さ
せる基準信号発生手段と、前記基準信号発生手段の出力
と2進数の入力ディジタル信号とを大小判別し、その大
小に応じて第1 、第2の信号を出力する大小判別手段
と、前記第1 、第2の信号をゲートして出力するゲー
ト手段と、前記ゲート手段の出力とクロックパルスとを
入力とするアップダウンカウンタと、前記アップカウン
タウンタの最大値、最小値を検出し、前記ゲート手段を
制御する第1 、第2検出手段とを具備し、前記アップ
ダウンカウンタより2進数のディジタル信号出力を得る
ディジタルフィルタであり、全面的にディジタル化する
ことにより外付部品を全く不要とすることができると共
に、icの内蔵回路とすることにより入出力ピンも削減
できるものである。
Structure of the Invention The present invention includes a reference signal generation means for generating a binary digital signal as a reference, a magnitude determination between the output of the reference signal generation means and a binary input digital signal, and a 1. A magnitude determining means for outputting a second signal, a gate means for gating and outputting the first and second signals, and an up/down counter receiving the output of the gate means and a clock pulse as input; A digital filter comprising first and second detection means for detecting the maximum value and minimum value of the up-counter and controlling the gate means, and obtaining a binary digital signal output from the up-down counter, By completely digitizing the system, external parts can be completely eliminated, and by incorporating the IC into a built-in circuit, the number of input/output pins can also be reduced.

実施例の説明 第3図は本発明の第1実施例であり、第6図はその動作
波形図である。
DESCRIPTION OF THE EMBODIMENTS FIG. 3 shows a first embodiment of the present invention, and FIG. 6 is an operational waveform diagram thereof.

第3図において、4は基準信号発生手段、5は大小判別
手段、6はゲート手段、7はアップダウンカウンタ、8
は第1検出手段、9は第2検出手段であり、Dlは2進
数のディジタル信号入力、D2は基準信号発生手段4で
発生した基準ディジタル信号、 D5はアップダウンカ
ウンタ7の出力で2進数のディジタル信号出力、81 
、 S2は大小判別手段5の出力で第1.第2の信号、
S3はクロックパルス、84 、 ssはゲート手段6
の出力、S6 、 S7は第1゜第2検出手段8,9の
出力である。2進数のディジタル信号入力D1と基準デ
ィジタル信号D2とを大小判別手段60入力として大小
判別を行なう。大小判別手段5の大、小を表わす第1.
第2の信号s、 l S2は、グー1一手段6を介して
クロックパルスS3と共にアップダウンカウンタ7の入
力とする。
In FIG. 3, 4 is a reference signal generation means, 5 is a magnitude discrimination means, 6 is a gate means, 7 is an up/down counter, and 8
9 is a first detection means, 9 is a second detection means, Dl is a binary digital signal input, D2 is a reference digital signal generated by the reference signal generating means 4, and D5 is an output of the up/down counter 7, which is a binary number. Digital signal output, 81
, S2 is the output of the size discriminating means 5 and the first . second signal,
S3 is a clock pulse, 84, ss is gate means 6
The outputs S6 and S7 are the outputs of the first and second detection means 8 and 9. A binary digital signal input D1 and a reference digital signal D2 are input to a size determining means 60 to perform size determination. The first digit indicates large or small of the size determining means 5.
The second signal s, l S2 is input to the up/down counter 7 via the clock 1 means 6 together with the clock pulse S3.

アップダウンカウンタ7のオーツく−フロー、アンダー
70−を防止するために第1検出手段8、第2検出手段
9により最大値、最小値の検出を行ない、第1.第2検
出手段8,9の出力により第1゜第2の信号のゲート出
力84 # S5を禁止するようにゲート手段6を制御
する構成にしている。
In order to prevent the up/down counter 7 from overflowing or under 70, the first detection means 8 and the second detection means 9 detect the maximum value and the minimum value. The configuration is such that the gate means 6 is controlled by the outputs of the second detection means 8 and 9 so as to inhibit the gate output 84 #S5 of the first and second signals.

第4図により第3図の動作を説明すれば、大小判別手段
5においてディジタル信号入力D1と基準ディジタル信
号D2との大小判別で、D2に比べてDlの値が大か小
かによりアップダウンカウンタγの動作をアンプかダウ
ン(またはダウンかアップ)に切換えている。即ち、D
l、D2の関係が、Ih>D2 (またはり、(D2)
ならアップカウント(t2〜t3 、 t6〜t7)。
To explain the operation of FIG. 3 with reference to FIG. 4, when the magnitude determining means 5 determines the magnitude of the digital signal input D1 and the reference digital signal D2, an up/down counter is activated depending on whether the value of Dl is larger or smaller than D2. The operation of γ is switched to amplifier or down (or down or up). That is, D
The relationship between l and D2 is Ih>D2 (or, (D2)
Then count up (t2-t3, t6-t7).

I)、:D2ならカウント停止(11〜t2.t3〜t
4)。
I), : If D2, stop counting (11~t2.t3~t
4).

Dl〈D2(またはり、)D2)ならダウンカウント(
〜t1. t4〜t5.t8〜) する構成にしており、かつカウンタの計数値が最大値に
達したら(ty〜t8)アップカウントを停止させ、最
小値に達したら(t5〜t6)ダウンカウントを停止さ
せる構成にしている。これにより積分要素の機能を付加
することができる。(1)式の時定数T1は、 T、 = −(2) 2πfayc 但し、fa xはクロックパルスS5の周波数として求
めることができる。
If Dl〈D2 (or)D2), count down (
~t1. t4-t5. t8~), and when the count value of the counter reaches the maximum value (ty~t8), the up count is stopped, and when the count value reaches the minimum value (t5~t6), the down count is stopped. . This makes it possible to add the function of an integral element. The time constant T1 in equation (1) is: T, = -(2) 2πfayc However, fax can be determined as the frequency of the clock pulse S5.

第5図は第3図のアップダウンカウンタ7の具体回路例
である。10はクロックパルス入力端子、11はアップ
信号入力端子、12はダウン信号入力端子、13〜16
はディジクル信号出力端子である。ANDゲート17.
18及びORゲート19で成る複合ゲートとフリツプフ
ロツプ2oとでアップダウンカウンタの単位ビットを形
成し、これを必要なピッF数だけ接続すればアップカウ
ンタ7を構成できる。
FIG. 5 shows a specific circuit example of the up/down counter 7 shown in FIG. 10 is a clock pulse input terminal, 11 is an up signal input terminal, 12 is a down signal input terminal, 13 to 16
is a digital signal output terminal. AND gate 17.
The unit bit of the up/down counter is formed by a composite gate consisting of 18 and OR gate 19 and the flip-flop 2o, and the up counter 7 can be constructed by connecting the unit bits of the required number of pins.

第6図は第3図の動作説明に供する波形図である。今、
ディジタル信号入力D1が、時刻もにおいて最小値であ
り、時刻t1から増加し、時刻t2で基準ディジタル信
号D2と等しくなり、時刻t3から再び増加し、時刻t
4で最大値になり、時刻t6から減少し、時刻t7でD
2と等しくなり、時刻t8から再び減少し、時刻too
で最小値となり、時刻も2から増加し、時刻t15でD
2と等しくなるもなお増加し、時刻t’sで一定値とな
り、時刻t16から減少し、時刻t17でD2 と等し
くなるもなお減少し、時刻t18で一定値となり、時刻
t19から増加し、時刻t20でD2と等しくなるもな
お増加し、時刻t21で一定値となり、時刻t22から
減少し、時刻t25でD2と等しくなるもなお減少し、
時刻t24 で一定値となる場合を例に説明する。まだ
、基準ディジタル信号D2はディジタル信号入力D1の
中心値である場合を示している。
FIG. 6 is a waveform diagram for explaining the operation of FIG. 3. now,
Digital signal input D1 has a minimum value at time t1, increases from time t1, becomes equal to reference digital signal D2 at time t2, increases again from time t3, and increases from time t1.
It reaches the maximum value at 4, decreases from time t6, and reaches D at time t7.
2, decreases again from time t8, and reaches time too
becomes the minimum value, and the time also increases from 2, and at time t15 D
2, it still increases, becomes a constant value at time t's, decreases from time t16, becomes equal to D2 at time t17, still decreases, becomes a constant value at time t18, increases from time t19, and It becomes equal to D2 at t20, but still increases, becomes a constant value at time t21, decreases from time t22, becomes equal to D2 at time t25, but still decreases,
The case where the value becomes constant at time t24 will be explained as an example. Still, a case is shown in which the reference digital signal D2 is the center value of the digital signal input D1.

ディジタル信号出力D5は、ディジタル信号入力D1と
基準ディジタル信号D2との関係が、Dl)D2のとき
アンプカウントし、D+(D2のときダウンカウントす
る動作例を示しており、Dl−D2のときカウント停止
する構成になっている。なお、I>、D2゜D3は夫々
アナログ表示している。
The digital signal output D5 shows an operation example in which the amplifier counts when the relationship between the digital signal input D1 and the reference digital signal D2 is Dl)D2, and counts down when the relationship is D+(D2), and counts when the relationship between the digital signal input D1 and the reference digital signal D2 is Dl-D2. It is configured to stop. Note that I>, D2 and D3 are each shown in analog form.

ここで、ディジタル信号入力D1が前記の状態変化をす
るときの各手段の出力は、夫々次のように変化する。大
小判別手段6の第1の信号S1は、t5〜t7.t+x
〜t+7. tzo〜t23の期間が“Hi+で他の期
間が“I、 IIとなり、第2の信号S2はtO〜t2
.t8〜t+5. t+z〜t2o 、 tz5〜の期
間が“l H11で他の期間がL tiとなる。一方、
アップダウンカウンタ7のディジタル信号出力D5の最
大値を検出する第1検出手段8の出力S6は、t5〜t
9の期間が′L゛で他の期間が“H11となり、最小値
を検出する第2検出手段9の出力S7は、ti1〜t1
4 、 t25〜の期期が“l、 11で他の期間がI
I H11となる。しかるにゲート手段6の出力S4は
、t!r−15,t13〜t17.t20〜t25゜期
間が”H・・で他の期間が17,11となり、出力S5
は、tO〜t2 t t8〜t++ 、 t1y〜t2
Q 、 t25〜t25の期間がH゛で他の期間がL”
となる。
Here, when the digital signal input D1 undergoes the above-mentioned state change, the output of each means changes as follows. The first signal S1 of the size determining means 6 is output from t5 to t7. t+x
~t+7. The period from tzo to t23 is “Hi+” and the other periods are “I” and “II”, and the second signal S2 is from tO to t2.
.. t8~t+5. The period from t+z to t2o and tz5 is "lH11" and the other period is "Lti".On the other hand,
The output S6 of the first detection means 8 which detects the maximum value of the digital signal output D5 of the up/down counter 7 is from t5 to t.
9 is 'L' and the other periods are 'H11', and the output S7 of the second detection means 9 which detects the minimum value is ti1 to t1.
4, the period from t25 is "l, 11 and the other periods are I
IH11. However, the output S4 of the gate means 6 is t! r-15, t13-t17. The period from t20 to t25° is "H..." and the other periods are 17 and 11, and the output S5
are tO~t2 t t8~t++ , t1y~t2
Q, the period from t25 to t25 is H and the other periods are L”
becomes.

以上により、アップダウンカウンタ7は、ゲート手段6
の出力S4 p 35が“H” ・“′L°”のときア
うにしている。
As described above, the up/down counter 7 is controlled by the gate means 6.
This is done when the output S4p35 is "H" and "'L°".

なお、出力Sb 、 37を入替えると共に出力S4.
Ssを入替えるとアップダウンカウンタ7の動作を逆に
することができる。これは単に極性だけの問題であり、
何れをも採用し得る。また、基準信号発生手段4は特に
ゲート回路等を必要とせず、単に“H゛か“L”かの固
定した2進数のディジタル信号を発生させるだけで済ま
せることができる。
Note that while outputs Sb and 37 are replaced, outputs S4.
By replacing Ss, the operation of the up/down counter 7 can be reversed. This is simply a matter of polarity;
Either can be adopted. Further, the reference signal generating means 4 does not particularly require a gate circuit or the like, and can simply generate a fixed binary digital signal of "H" or "L".

発明の効果 本発明のディジタルフィルタは基準信号発生手段4、大
小判別手段5、ゲート手段6、アップダウンカウンタ7
、第1.第2検出手段8,9を設けるだけの簡単な構成
により、積分要素の機能を持ったディジタルフィルタを
提供することができ、ic化したときの外付部品を不要
にできると共にicの内蔵回路とすることにより入出力
ビンも不要にできるなど、その実用的効果は大である。
Effects of the Invention The digital filter of the present invention includes a reference signal generation means 4, a magnitude determination means 5, a gate means 6, and an up/down counter 7.
, 1st. With a simple configuration that only requires the second detection means 8 and 9, it is possible to provide a digital filter with the function of an integral element, which eliminates the need for external components when integrated into an IC, and also allows integration with the built-in circuit of the IC. This has great practical effects, such as eliminating the need for input/output bins.

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

第1図は積分回路の従来構成を示すブロック図、第2図
はその動作波形図、第3図は本発明の1実施例のディジ
タルフィルタのブロック図、第4図はその動作波形図、
第5図はアップダウンカウンタの具体回路図、第6図は
第3図の動作波形図である。 4・・・・・・基準信号発生手段、5・・・・・・大小
判別手段、6・・・・・・ゲート手段、7・・・・・・
アップダウンカウンタ、8・・・・・・第1の検出手段
、9・・・・・・第2の検出手段。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第 
1 図 第2図 第3図 第5図
FIG. 1 is a block diagram showing the conventional configuration of an integrating circuit, FIG. 2 is its operating waveform diagram, FIG. 3 is a block diagram of a digital filter according to an embodiment of the present invention, and FIG. 4 is its operating waveform diagram.
FIG. 5 is a specific circuit diagram of the up/down counter, and FIG. 6 is an operational waveform diagram of FIG. 3. 4... Reference signal generation means, 5... Size discrimination means, 6... Gate means, 7...
Up/down counter, 8...first detection means, 9...second detection means. Name of agent: Patent attorney Toshio Nakao and 1 other person
1 Figure 2 Figure 3 Figure 5

Claims (1)

【特許請求の範囲】[Claims] 基準となる2進数のディジタル信号を発生させる基準信
号発生手段と、前記基準信号発生手段の出力と2進数の
ディジタル信号入力とを大小判別し、その大小に応じて
第1.第2の信号を出力する大小判別手段と、前記第1
.第2の信号をゲートして出力するゲート手段と、前記
ゲート手段の出力とクロックパルスとを入力とするアッ
プダウンカウンタと、前記アップダウンカウンタの最大
値、最小値を検出し、前記ゲート手段を制御する第1.
第2検出手段とを具備し、前記アップダウンカウンタよ
り2進数のディジタル信号出力を得ることを特徴とする
ディジタルフィルタ。
A reference signal generating means generates a binary digital signal serving as a reference, and the output of the reference signal generating means and the binary digital signal input are determined in magnitude, and the first . a size determining means for outputting a second signal;
.. a gate means for gating and outputting a second signal; an up-down counter receiving the output of the gate means and a clock pulse as input; detecting the maximum value and minimum value of the up-down counter; The first thing to control.
a second detection means, and obtains a binary digital signal output from the up/down counter.
JP18840682A 1982-10-27 1982-10-27 Digital filter Granted JPS5977716A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18840682A JPS5977716A (en) 1982-10-27 1982-10-27 Digital filter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18840682A JPS5977716A (en) 1982-10-27 1982-10-27 Digital filter

Publications (2)

Publication Number Publication Date
JPS5977716A true JPS5977716A (en) 1984-05-04
JPH0446005B2 JPH0446005B2 (en) 1992-07-28

Family

ID=16223085

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18840682A Granted JPS5977716A (en) 1982-10-27 1982-10-27 Digital filter

Country Status (1)

Country Link
JP (1) JPS5977716A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS524143A (en) * 1975-06-27 1977-01-13 Mitsubishi Electric Corp Digital filter
JPS55124317A (en) * 1979-03-20 1980-09-25 Mitsubishi Electric Corp Digital filter circuit
JPS57121317A (en) * 1981-01-20 1982-07-28 Ricoh Elemex Corp Digital band pass filter

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS524143A (en) * 1975-06-27 1977-01-13 Mitsubishi Electric Corp Digital filter
JPS55124317A (en) * 1979-03-20 1980-09-25 Mitsubishi Electric Corp Digital filter circuit
JPS57121317A (en) * 1981-01-20 1982-07-28 Ricoh Elemex Corp Digital band pass filter

Also Published As

Publication number Publication date
JPH0446005B2 (en) 1992-07-28

Similar Documents

Publication Publication Date Title
US4066919A (en) Sample and hold circuit
JPS58164318A (en) Analog/digital converter
JPS5977716A (en) Digital filter
US4661803A (en) Analog/digital converter
JPS5977717A (en) Digital filter
JPH02151126A (en) Integration type d/a converter
JPH0530084B2 (en)
JPH0583007B2 (en)
JPH04158632A (en) Semiconductor integrated circuit
JPH05328253A (en) Signal conditioning device
JP2746081B2 (en) AD converter circuit
JPH0358614A (en) Semiconductor device
JPS6014534B2 (en) Offset compensation method and circuit
JP2591210B2 (en) Signal detection circuit
JPH0327425A (en) Input discrimination system by micro computer
JPS6240827A (en) Phase synchronizing oscillation circuit
JPS59100610A (en) Digital filter
JPH0530085B2 (en)
JPH0220175B2 (en)
KR950003438Y1 (en) Digital signal processing apparatus
JP2578990B2 (en) Pulse width modulation circuit
JP2613903B2 (en) Integral type analog-digital converter
JPH0591148A (en) Signal interruption detection circuit
JPH03102265A (en) Maximum value detecting circuit
JP2000252822A (en) Interrupt circuit