JPH0138244B2 - - Google Patents

Info

Publication number
JPH0138244B2
JPH0138244B2 JP21149582A JP21149582A JPH0138244B2 JP H0138244 B2 JPH0138244 B2 JP H0138244B2 JP 21149582 A JP21149582 A JP 21149582A JP 21149582 A JP21149582 A JP 21149582A JP H0138244 B2 JPH0138244 B2 JP H0138244B2
Authority
JP
Japan
Prior art keywords
average value
data
stage
shift register
count signal
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
Application number
JP21149582A
Other languages
Japanese (ja)
Other versions
JPS59102167A (en
Inventor
Seizo Nakamura
Toshio Oohashi
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP21149582A priority Critical patent/JPS59102167A/en
Publication of JPS59102167A publication Critical patent/JPS59102167A/en
Publication of JPH0138244B2 publication Critical patent/JPH0138244B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Measurement Of Current Or Voltage (AREA)
  • Complex Calculations (AREA)

Description

【発明の詳細な説明】 (技術分野) 本発明は、ある一定時間の間の値の平均値を順
次に求め、その値があらかじめ設定した値を超え
たかどうかを検出する回路をデイジタル回路で実
現するためのものである。
[Detailed Description of the Invention] (Technical Field) The present invention implements a circuit using a digital circuit that sequentially calculates the average value of values over a certain period of time and detects whether the average value exceeds a preset value. It is for the purpose of

(従来技術) 第1図は、一部をデイジタル化した従来の遅延
検波回路の例を示す。1は入力端子で、MSK
(Minimum Shift Keying)等のデイジタル位相
変調された信号が加えられる。2は遅延回路であ
り、デイジタル信号のたとえば1ビツトの時間に
当る遅延を与える。3は排他的論理和回路、4は
低域波器であり、排他的論理和回路3の出力
を、デイジタル信号のほぼ1ビツトの間の平均値
を与えるためのものであり、その近似値を与える
最も簡単な例として第2図に示す。5はアナログ
コンパレータであり、低域波器4の出力がデイ
ジタル的な「1」の電圧のたとえば1/2を超えた
かどうかを判定するもので、1/2を超えたときは
例えば「1」を出力し、超えないときは「0」を
出力する。アナログコンパレータ5の一例として
第3図のような演算増幅器がある。
(Prior Art) FIG. 1 shows an example of a conventional delay detection circuit partially digitized. 1 is the input terminal, MSK
A digital phase modulated signal such as (Minimum Shift Keying) is added. A delay circuit 2 provides a delay corresponding to, for example, the time of one bit of the digital signal. 3 is an exclusive OR circuit, and 4 is a low-frequency amplifier, which is used to give the output of the exclusive OR circuit 3 an average value for approximately 1 bit of the digital signal, and its approximate value. The simplest example is shown in Figure 2. 5 is an analog comparator, which judges whether the output of the low frequency converter 4 exceeds, for example, 1/2 of the voltage of digital "1"; if it exceeds 1/2, the output is "1", for example is output, and if it does not exceed it, outputs "0". An example of the analog comparator 5 is an operational amplifier as shown in FIG.

第4図は第1図の各部の出力波形の一例を示す
もので、横軸は時間軸である。第4図のEXOR
は排他的論理和回路3の出力で、入力端子1から
のデイジタル信号入力によつて、「1」「0」の幅
が変化する。第4図のLPFは低域波器4の出
力でデイジタル信号のほぼ1ビツト分の時間平均
が行なわれる。横軸に平行な点線は、「1」、「0」
出力の1/2を示し、このレベルを境にして、アナ
ログコンパレータ5の出力は第4図のCOMPに
示すように変化する。
FIG. 4 shows an example of the output waveform of each part in FIG. 1, and the horizontal axis is the time axis. EXOR in Figure 4
is the output of the exclusive OR circuit 3, and the width of "1" and "0" changes depending on the digital signal input from the input terminal 1. In the LPF shown in FIG. 4, the output of the low frequency filter 4 is time-averaged for approximately one bit of the digital signal. Dotted lines parallel to the horizontal axis indicate "1" and "0"
It shows 1/2 of the output, and after this level, the output of the analog comparator 5 changes as shown by COMP in FIG. 4.

ところで、第1図の低域波器4及びアナログ
コンパレータ5はアナログ回路であるので、LSI
化が極めてむずかしいという欠点があつた。
By the way, the low frequency converter 4 and the analog comparator 5 in Fig. 1 are analog circuits, so they are LSI
The drawback was that it was extremely difficult to convert.

(発明の目的) 本発明は、LSI化に適した移動平均値検出装置
を提供することを目的とする。
(Objective of the Invention) An object of the present invention is to provide a moving average value detection device suitable for LSI implementation.

(発明の構成) 本発明の構成は、サンプリング用クロツク発振
器と前記クロツク発振器に同期して書き込まれる
2N(Nは正の整数)段シフトレジスタ及びNビツ
トアツプダウンカウンタならびにデイジタルコン
パレータをそなえ、前記シフトレジスタの1段目
と最後にデータが書き込まれる2N段目とのデータ
が同じ値のときはカウントせず、シフトレジスタ
の1段目と2N段目とのデータが異なるときは当該
異なる状態に応じて前記クロツク発振器と同期し
てアツプカウント又はダウンカウントすること、
さらに加えてはアツプダウンカウンタの各ビツト
がすべて「1」のときはアツプカウントの条件が
成立してもアツプカウントせず、またアツプダウ
ンカウンタの各ビツトがすべて「0」となつたと
きはダウンカウントの条件が成立してもダウンカ
ウントしないことを特徴とする移動平均値検出装
置である。以下実施例について詳細に説明する。
(Configuration of the Invention) In the configuration of the present invention, data is written in synchronization with a sampling clock oscillator and the clock oscillator.
Equipped with a 2N (N is a positive integer) stage shift register, an N-bit up-down counter, and a digital comparator, when the data in the first stage of the shift register and the 2Nth stage where data is written last have the same value. does not count, and when the data in the first stage and the 2Nth stage of the shift register are different, up-counting or down-counting in synchronization with the clock oscillator according to the different states;
In addition, when all the bits of the up-down counter are "1", no up-count is performed even if the up-counting conditions are met, and when all the bits of the up-down counter are "0", the up-count is down. This moving average value detection device is characterized in that it does not count down even if a counting condition is met. Examples will be described in detail below.

(実施例) 第5図は、本発明の第1の実施例を説明するた
めの回路であり、1,2,3及び6は第1図と同
様のものであり、7は2N段のシフトレジスタ(N
は正の整数とする。)、8はサンプリングクロツク
用発振器、9は論理回路であり、シフトレジスタ
7の最初にデータが書き込まれる第1段目と最後
にデータが書き込まれる第2N段目とを入力する。
10はNビツトのアツプダウンカウンタ、11は
デイジタルコンパレータである。
(Embodiment) FIG. 5 is a circuit for explaining the first embodiment of the present invention, in which 1, 2, 3 and 6 are the same as those in FIG. 1, and 7 is a 2 N stage circuit. Shift register (N
is a positive integer. ), 8 is a sampling clock oscillator, and 9 is a logic circuit, which inputs the first stage of the shift register 7 into which data is written first, and the second Nth stage into which data is written last.
10 is an N-bit up-down counter, and 11 is a digital comparator.

排他的論理和回路3の出力データは、サンプリ
ングクロツク用発振器8のクロツクに従つてサン
プリングされ、2N段シフトレジスタ7の第1段目
Aに読み込まれる。この読み込まれたデータはサ
ンプリング用クロツク発振器8のクロツクが1サ
イクル進む毎に、右側にシフトされ、第1段目A
に読み込まれたサンプリングデータは、2N−1個
のサンプリングクロツクによつて2N段シフトレジ
スタ7の2N段目Bまでシフトされる。
The output data of the exclusive OR circuit 3 is sampled according to the clock of the sampling clock oscillator 8, and read into the first stage A of the 2N stage shift register 7. This read data is shifted to the right every time the clock of the sampling clock oscillator 8 advances one cycle, and the data is shifted to the right side.
The sampling data read in is shifted to the 2N stage B of the 2N stage shift register 7 by 2N -1 sampling clocks.

論理回路9は、第6図に示すように論理動作を
するもので、2N段シフトレジスタ7の1段目Aの
内容と、2N段目Bの内容によつて、アツプダウン
カウンタ10のアツプカウント、ダウンカウント
を決定する。
The logic circuit 9 performs a logical operation as shown in FIG . Determine up count and down count.

サンプリング用発振器8の周波数cは排他的論
理和回路3からの出力をできるだけ忠実にサンプ
リングするような高い周波数であり、一般的には
シヤノンの定理から、再現が必要な最高周波数の
2倍以上という、一つの条件がある。さらに、次
の計算式で決定される周波数が選ばれる。
The frequency c of the sampling oscillator 8 is a high frequency that samples the output from the exclusive OR circuit 3 as faithfully as possible, and is generally more than twice the highest frequency that needs to be reproduced according to Shannon's theorem. , there is one condition. Furthermore, a frequency determined by the following calculation formula is selected.

c=2N−1/T 但し、Tは平均値を得ようとする時間長であ
る。
c=2 N -1/T where T is the time length over which the average value is to be obtained.

次にこのように構成した回路の動作を説明す
る。
Next, the operation of the circuit configured as described above will be explained.

まず、シフトレジスタ7の各段の内容及びアツ
プダウンカウンタの各ビツトの内容はすべて
「0」であるとする。サンプリングクロツク8が
1サイクル進むと、サンプリングデータは、まず
シフトレジスタ7の1段目Aに取り込まれる。こ
の値が「1」であつたとすると、次のサンプリン
グクロツクでシフトレジスタ7の2段目にAの値
が移るとともに、第6図の論理動作からアツプダ
ウンカウンタ10は1ビツトアツプカウントす
る。以下、サンプリングクロツクに従つてサンプ
リングデータがシフトレジスタ7内を順次移動
し、サンプリングデータの「1」の数だけアツプ
ダウンカウンタ10の内容が増加する。サンプリ
ングクロツク数が2Nになると最初のサンプリング
データはシフトレジスタ7の2N段目Bに現れ、2
段目〜2N段目の各段の内容が「1」である数は、
アツプダウンカウンタ10の内容と一致する。次
にシフトレジスタ7の1段目Aと2N段目Bの値が
一致したときは2段目〜2N段目の「1」の数は、
次のサンプリングクロツクでシフトレジスタの内
容が1段ずつ移つても変化しない。このときは、
アツプダウンカウンタ10の内容も変化しない。
また、シフトレジスタ7の1段目Aの内容が
「1」で2N段目Bの内容が「0」のときは次のサ
ンプリングクロツクで2段目〜2N段目の「1」の
数は1つ増加し、アツプダウンカウンタ10の内
容も1つ増加する。逆にシフトレジスタ7の1段
目Aの内容が「0」で2N段目Bの内容が「1」の
ときは、シフトレジスタ7の2段目〜2N段目の
「1」の数は1つ減少し、アツプダウンカウンタ
10の内容も1つ減少する。
First, it is assumed that the contents of each stage of the shift register 7 and the contents of each bit of the up-down counter are all "0". When the sampling clock 8 advances by one cycle, the sampling data is first taken into the first stage A of the shift register 7. If this value is "1", the value of A is transferred to the second stage of the shift register 7 at the next sampling clock, and the up-down counter 10 counts up by 1 bit according to the logic operation shown in FIG. Thereafter, the sampling data is sequentially moved within the shift register 7 in accordance with the sampling clock, and the contents of the up-down counter 10 are increased by the number of "1"s in the sampling data. When the number of sampling clocks reaches 2N , the first sampling data appears in the 2Nth stage B of the shift register 7,
Rows 2 to 2 The numbers where the content of each row of the Nth row is "1" are:
It matches the contents of the up-down counter 10. Next, when the values in the 1st stage A and the 2Nth stage B of the shift register 7 match, the number of "1"s in the 2nd to 2Nth stages is
Even if the contents of the shift register are shifted one step at a time at the next sampling clock, they do not change. At this time,
The contents of the up-down counter 10 also remain unchanged.
Also, when the content of the 1st stage A of the shift register 7 is "1" and the content of the 2Nth stage B is "0", the next sampling clock will change the "1" of the 2nd to 2Nth stages. The number increases by one, and the contents of the up-down counter 10 also increases by one. Conversely, when the content of the 1st stage A of the shift register 7 is "0" and the content of the 2Nth stage B is "1", the number of "1"s in the 2nd to 2N stages of the shift register 7 is decreased by one, and the contents of the up-down counter 10 are also decreased by one.

以上の説明から理解できるように、シフトレジ
スタ7の2段目〜2N段目の「1」の数とアツプダ
ウンカウンタ10の内容とは、常に一致すること
となる。従つて、デイジタルコンパレータ11で
あらかじめ設定した値と比較すれば、その値を超
えたかどうかの出力を出力端子6に得ることがで
きる。また、シフトレジスタ7の2段目〜2N段目
の内容の「1」の数は、その時刻からTだけさか
のぼつた時間までの間でどれだけの割合で「1」
の数があつたかを示すもの、この数と2N−1を比
較すれば、上記時間内の時間平均を求めているこ
とになる。シフトレジスタ7の内容はサンプリン
グ用発振器8の周期に従つて順次変化して行くの
でT時間内の移動平均値が求められる。
As can be understood from the above explanation, the number of "1"s in the second to 2N stages of the shift register 7 always matches the contents of the up-down counter 10. Therefore, by comparing the value with a preset value using the digital comparator 11, an output indicating whether or not the value has been exceeded can be obtained at the output terminal 6. Also, the number of "1"s in the contents of the 2nd to 2Nth stages of the shift register 7 is determined at what rate from that time to the time T back.
If we compare this number with 2 N -1, we are finding the time average within the above time period. Since the contents of the shift register 7 change sequentially in accordance with the cycle of the sampling oscillator 8, a moving average value within time T is obtained.

次に、サンプリングデータがT時間すべて
「1」であつたとすると、シフトレジスタ7の2
段目〜2N段目はすべて「1」となり、同様にアツ
プダウンカウンタ10の内容もNビツトすべて
「1」となる。すなわち「1」の数は2N−1であ
る。
Next, if the sampling data is "1" for all time T, then the shift register 7's 2
All the bits in the 2nd to 2nd rows are "1", and similarly, all N bits of the up-down counter 10 are "1". In other words, the number of "1"s is 2 N -1.

また、平均値が1/2であるときは、「1」の数
は、2N-1+1と、2N-1−1の中間であり、「1」
の数が2N-1+1であるとき、すなわちアツプダウ
ンカウンタ10のMSBのみが「1」で残りのN
−1ビツトが「0」であるときは、平均値は1/2
より大きい。また、「1」の数が2N-1−1である
とき、すなわちアツプダウンカウンタ10の
MSBのみが「0」で残りのN−1ビツトが「1」
であるときは、平均値は1/2より小さい。従つて
平均値が1/2より大きいか小さいかを判定すれば
よいような場合(ほとんどの場合がこれに当る)
は、デイジタルコンパレータ11としてはアツプ
ダウンカウンタ10のMSBが「1」であるか
「0」であるかを検出するだけの簡単なものでよ
い。
Also, when the average value is 1/2, the number of "1" is between 2 N-1 + 1 and 2 N-1 -1, and "1"
When the number of up-down counters is 2 N-1 + 1, that is, only the MSB of up-down counter 10 is "1" and the remaining N
- When one bit is “0”, the average value is 1/2
bigger. Also, when the number of “1” is 2 N-1 −1, that is, the up-down counter 10
Only the MSB is “0” and the remaining N-1 bits are “1”
, the average value is less than 1/2. Therefore, in cases where it is only necessary to determine whether the average value is larger or smaller than 1/2 (this is the case in most cases)
The digital comparator 11 may be a simple one that detects whether the MSB of the up-down counter 10 is "1" or "0".

平均値が0〜1の任意の値を超えたかどうかを
検出するときには、0〜1の任意の値に2N-1を乗
じた数をデイジタルコンパレータ11に設定すれ
ばよい。
When detecting whether the average value exceeds an arbitrary value between 0 and 1, a number obtained by multiplying an arbitrary value between 0 and 1 by 2 N-1 may be set in the digital comparator 11.

ところで第5図に示した第1の実施例では、シ
フトレジスタ7の2段目〜2N段目の「1」の数と
アツプダウンカウンタ10の内容とが、何らかの
原因(雑音等のじよう乱)で一致しなくなると、
正しい平均値を検出しなくなるという不都合を生
じる。
By the way, in the first embodiment shown in FIG. 5, the number of "1"s in the 2nd to 2N stages of the shift register 7 and the contents of the up-down counter 10 may be affected by some reason (such as noise, etc.). When they no longer match due to
This causes the inconvenience that the correct average value is no longer detected.

これを防ぐために改良したものが第2の実施例
であり、第7図に示す。第7図において、12,
13は論理回路であり、他の符号は第5図と同様
のものである。論理回路12は、アツプダウンカ
ウンタ10のNビツトの値がすべて「1」のとき
論理回路9の出力を入力する論理回路13のゲー
トを閉じて、論理回路9からアツプカウントの指
示が出ても、カウントさせず、逆にアツプダウン
カウンタ10のNビツトの値がすべて「0」のと
きは、論理回路9からダウンカウントの指示が出
ても論理回路13のゲートを閉じてカウントさせ
ないようにする。
The second embodiment is improved to prevent this, and is shown in FIG. In FIG. 7, 12,
13 is a logic circuit, and other symbols are the same as in FIG. The logic circuit 12 closes the gate of the logic circuit 13 to which the output of the logic circuit 9 is input when the values of the N bits of the up-down counter 10 are all "1", and even if an up-count instruction is issued from the logic circuit 9, , does not count, and conversely, when the values of the N bits of the up-down counter 10 are all "0", the gate of the logic circuit 13 is closed to prevent counting even if a down-count instruction is issued from the logic circuit 9. .

次に第7図の動作を説明すると、何らかの原因
で、アツプダウンカウンタ10の値がシフトレジ
スタ7の内容より大になつたとすると、サンプリ
ングデータが「1」の連続になつてきたときに、
シフトレジスタ7の内容がすべて「1」となる前
にアツプダウンカウンタ10のNビツトがすべて
「1」となつてしまう。しかし、論理回路12及
び13の働きで、それ以上はアツプカウントしな
いから、シフトレジスタ7の値がすべて「1」と
なつてから「1」の数が減少しはじめると、シフ
トレジスタ7の2段目〜2N段目の「1」の数とア
ツプダウンカウンタ10の値は一致するようにな
る。
Next, to explain the operation of FIG. 7, if for some reason the value of the up-down counter 10 becomes larger than the contents of the shift register 7, when the sampling data becomes a series of "1",
All N bits of the up-down counter 10 become "1" before the contents of the shift register 7 become "1". However, because the logic circuits 12 and 13 do not count up any more, if the number of "1"s starts to decrease after all the values in the shift register 7 become "1", the second stage of the shift register 7 The number of "1"s in the 2nd to 2nd Nth rows and the value of the up-down counter 10 come to match.

以下同様にしてアツプダウンカウンタ10の値
がシフトレジスタ7の内容より小となつたとき
は、シフトレジスタ7の2段目〜2N段目の値がす
べて「0」となつたときに補正され、以後、シフ
トレジスタ7の内容とアツプダウンカウンタ10
の内容は一致するようになる。
Similarly, when the value of the up-down counter 10 becomes smaller than the contents of the shift register 7, it is corrected when the values of the 2nd to 2N stages of the shift register 7 all become "0". , hereafter, the contents of the shift register 7 and the up-down counter 10
The contents of will match.

サンプリングデータが、T時間すべて「1」と
なる場合やすべて「0」となる場合は、きわめて
高い確率で起るので、まれにシフトレジスタ7の
内容とアツプダウンカウンタ10の内容が一致し
なくなつたときでも、ただちに補正され、常に正
しい平均値が検出できる。
There is an extremely high probability that the sampling data will be all "1" or all "0" for T time, so in rare cases the contents of the shift register 7 and the contents of the up-down counter 10 will not match. Even when the average value is correct, it is corrected immediately and the correct average value can always be detected.

なお、第8図の第3の実施例として例示したよ
うにデイジタルコンパレータ11に論理回路14
を付加し、デイジタルコンパレータ11の検出動
作にヒステリシス特性を持たせると、動作をより
安定にすることができる。すなわち、たとえばデ
イジタルコンパレータ11の出力が「0」のとき
は、次に「1」になるときの検出点レベルを一定
値だけ上げ(例えば2だけ上げる。)、逆にデイジ
タルコンパレータ11の出力が「0」のときは次
に「1」になるときにデイジタルコンパレータ1
1の検出点レベルを一定値だけ下げ(例えば2だ
け下げる)ようにすると、入力信号の細かい変動
で出力が短時間に上げ下げすることがなくなるの
で、安定な動作ができる。これは、第5図に示し
た第1の実施例及び第7図に示した第2の実施例
のいずれにも適用できる。雑音の多い信号を扱う
場合に有効である。
Note that, as illustrated as the third embodiment in FIG.
By adding hysteresis characteristics to the detection operation of the digital comparator 11, the operation can be made more stable. That is, for example, when the output of the digital comparator 11 is "0", the detection point level when it becomes "1" next time is raised by a certain value (for example, raised by 2), and conversely, the output of the digital comparator 11 is "0". 0”, the next time it becomes 1, digital comparator 1
If the detection point level of 1 is lowered by a certain value (for example, lowered by 2), the output will not rise or fall in a short time due to small fluctuations in the input signal, so stable operation can be achieved. This can be applied to both the first embodiment shown in FIG. 5 and the second embodiment shown in FIG. This is effective when handling signals with a lot of noise.

以上、第1、第2、第3の実施例は、シフトレ
ジスタ7の1段目のデータが「1」が2N段目のデ
ータが「0」であるときアツプカウントするよう
にしたものであつた。第9図のようにインバータ
15をコンパレータ11の後段に接続すること
で、簡単にシフトレジスタ7の1段目のデータが
「1」で2N段目のデータが「0」であるときダウ
ンカウントし、シフトレジスタ7の1段目のデー
タが「0」で2N段目のデータが「1」であるとき
アツプカウントして移動平均値検出装置が実現で
きる。
As described above, in the first, second, and third embodiments, when the data in the first stage of the shift register 7 is "1" and the data in the 2N stage is "0", up-counting is performed. It was hot. By connecting the inverter 15 after the comparator 11 as shown in Fig. 9, it is possible to easily down-count when the data in the first stage of the shift register 7 is "1" and the data in the 2Nth stage is "0". However, when the data in the first stage of the shift register 7 is "0" and the data in the 2Nth stage is "1", a moving average value detection device can be implemented by up-counting.

(発明の効果) 以上説明したように簡単なデイジタル回路を構
成することにより移動平均値を検出できるので、
LSI化が可能である。
(Effect of the invention) As explained above, the moving average value can be detected by configuring a simple digital circuit.
Can be converted into LSI.

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

第1図は従来の構成を示す回路図、第2図は従
来の低域波器の回路図の一例、第3図は従来の
アナログコンパレータの回路図の一例、第4図は
第1図の各部の波形図、第5図は本発明の一実施
例を示す回路図、第6図は論理回路9の動作を示
す図、第7図は本発明の第2の実施例を示す回路
図、第8図、第9図は本発明の第3及び第4の実
施例を説明するための回路図である。 1……入力端子、2……遅延回路、3……排他
的論理和回路、6……出力端子、7……シフトレ
ジスタ、8……サンプリング用クロツク発振器、
9……論理回路、10……アツプダウンカウン
タ、11……コンパレータ、12,13,14…
…論理回路、15……インバータ。
Figure 1 is a circuit diagram showing a conventional configuration, Figure 2 is an example of a circuit diagram of a conventional low frequency converter, Figure 3 is an example of a circuit diagram of a conventional analog comparator, and Figure 4 is an example of the circuit diagram of a conventional analog comparator. Waveform diagrams of various parts, FIG. 5 is a circuit diagram showing one embodiment of the present invention, FIG. 6 is a diagram showing the operation of the logic circuit 9, FIG. 7 is a circuit diagram showing a second embodiment of the present invention, FIGS. 8 and 9 are circuit diagrams for explaining third and fourth embodiments of the present invention. 1... Input terminal, 2... Delay circuit, 3... Exclusive OR circuit, 6... Output terminal, 7... Shift register, 8... Sampling clock oscillator,
9...Logic circuit, 10...Up-down counter, 11...Comparator, 12, 13, 14...
...Logic circuit, 15...Inverter.

Claims (1)

【特許請求の範囲】 1 ある一定時間の値の平均値を順次に求め、そ
の値があらかじめ設定した値を越えたか否かを検
出する移動平均値検出装置において、 サンプリング用クロツク発振器と、 該クロツク発振器に同期して書き込まれるシフ
トレジスタと、 該シフトレジスタの1段目のデータと最終段目
とのデータとが異なつた値の時はアツプカウント
信号又はダウンカウント信号を出力し、該各々の
データが同じ値の時は該何れの信号も出力しない
論理回路と、 該アツプカウント信号又はダウンカウント信号
に基づきカウント動作を行なうアツプダウンカウ
ンターと、 該カウンター内でカウントされている値とあら
かじめ決められた値とを比較するコンパレータと
から構成されたことを特徴とする移動平均値検出
装置。 2 シフトレジスタの1段目のデータが「1」で
最終段目のデータが「0」である異なる状態のと
きはアツプカウントまたはダウンカウントし、シ
フトレジスタの1段目のデータが「0」で最終段
目のデータが「1」である異なる状態のときはダ
ウンカウント又はアツプカウントすることを特徴
とする特許請求の範囲第1項記載の移動平均値検
出装置。 3 ある一定時間の値の平均値を順次に求め、そ
の値があらかじめ設定した値を越えたか否かを検
出する移動平均値検出装置において、 サンプリング用クロツク発振器と、 該クロツク発振器に同期して書き込まれるシフ
トレジスタと、 該シフトレジスタの1段目のデータと最終段目
とのデータとが異なつた値の時はアツプカウント
信号又はダウンカウント信号を出力し、該各々の
データが同じ値の時は該何れの信号も出力しない
第1の論理回路と、 該アツプカウント信号又はダウンカウント信号
に基ずきカウント動作を行なうアツプダウンカウ
ンターと、 該アツプダウンカウンタの各ビツトがすべて
「1」のときはアツプカウントの条件が成立して
もアツプカウントせず、またアツプダウンカウン
トの各ビツトがすべて「0」となつたときはダウ
ンカウントの条件が成立してもダウンカウントし
ない第2の論理回路と、 該カウンター内でカウントされている値とあら
かじめ決められた値とを比較するコンパレータと
から構成されたことを特徴とする移動平均値検出
装置。
[Claims] 1. A moving average value detection device that sequentially calculates the average value of values over a certain period of time and detects whether the average value exceeds a preset value, comprising: a sampling clock oscillator; When the shift register is written in synchronization with the oscillator, and the data in the first stage and the data in the last stage of the shift register have different values, an up-count signal or a down-count signal is output, and each data is a logic circuit that outputs neither signal when the values are the same; an up-down counter that performs a counting operation based on the up-count signal or the down-count signal; and a predetermined value that is counted in the counter. 1. A moving average value detection device comprising: a comparator for comparing the moving average value. 2 If the data in the first stage of the shift register is "1" and the data in the last stage is "0", it counts up or down, and when the data in the first stage of the shift register is "0", it counts up or down. 2. The moving average value detection device according to claim 1, wherein the moving average value detection device performs down-counting or up-counting in a different state where the data in the final stage is "1". 3. In a moving average value detection device that sequentially calculates the average value of values over a certain period of time and detects whether the average value exceeds a preset value, a sampling clock oscillator and a When the data in the first stage and the data in the last stage of the shift register have different values, an up-count signal or a down-count signal is output, and when the respective data have the same value, an up-count signal or a down-count signal is output. a first logic circuit that does not output any of the signals; an up-down counter that performs counting operations based on the up-count signal or the down-count signal; and when each bit of the up-down counter is all "1"; a second logic circuit that does not perform an up-count even if an up-counting condition is satisfied, and does not perform a down-counting even if a down-counting condition is satisfied when all bits of the up-down count become "0"; A moving average value detection device comprising a comparator that compares the value counted in the counter with a predetermined value.
JP21149582A 1982-12-03 1982-12-03 Running mean value detection system Granted JPS59102167A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21149582A JPS59102167A (en) 1982-12-03 1982-12-03 Running mean value detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21149582A JPS59102167A (en) 1982-12-03 1982-12-03 Running mean value detection system

Publications (2)

Publication Number Publication Date
JPS59102167A JPS59102167A (en) 1984-06-13
JPH0138244B2 true JPH0138244B2 (en) 1989-08-11

Family

ID=16606889

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21149582A Granted JPS59102167A (en) 1982-12-03 1982-12-03 Running mean value detection system

Country Status (1)

Country Link
JP (1) JPS59102167A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009250807A (en) * 2008-04-07 2009-10-29 Seiko Epson Corp Frequency measurement device and measurement method
JP5517033B2 (en) * 2009-05-22 2014-06-11 セイコーエプソン株式会社 Frequency measuring device
JP5440999B2 (en) * 2009-05-22 2014-03-12 セイコーエプソン株式会社 Frequency measuring device

Also Published As

Publication number Publication date
JPS59102167A (en) 1984-06-13

Similar Documents

Publication Publication Date Title
US5006851A (en) Analog-to-digital converting system
JPS63153920A (en) Clock regeneration circuit
JPH0138244B2 (en)
JP3081957B2 (en) Transmission data shaping device
JPH0410776B2 (en)
JP3665512B2 (en) Binary signal comparison device and PLL circuit using the same
JPS62276925A (en) Digital counter circuit
KR100196477B1 (en) A/d converter having a variable integrator whose time constant can be changed
JP2000077990A (en) Digital phase comparator
JPH08138324A (en) Phase difference detection circuit for epr4 signal
JP3257065B2 (en) Digital PLL device
US5210709A (en) Digital filter for removing dc components
JP2553680B2 (en) Digital signal processing circuit
JPH0145097B2 (en)
JP2512205B2 (en) A / D converter
JP2876952B2 (en) Successive approximation A / D converter
JPH0724833Y2 (en) Clock signal regeneration circuit
JP2790460B2 (en) DC suppression device
JPS6079826A (en) Serial output type analog-digital converter
JP2606458Y2 (en) Signal level monitoring circuit
JPS6014534B2 (en) Offset compensation method and circuit
JP3984746B2 (en) Alarm detection circuit
JPH07202706A (en) Demodulation circuit of pulse width modulated signal into digital signal
JP2836316B2 (en) Tone signal detection circuit
JPS60164965A (en) Information reproducing device