JP3450227B2 - Continuous matching sampling circuit - Google Patents

Continuous matching sampling circuit

Info

Publication number
JP3450227B2
JP3450227B2 JP16758499A JP16758499A JP3450227B2 JP 3450227 B2 JP3450227 B2 JP 3450227B2 JP 16758499 A JP16758499 A JP 16758499A JP 16758499 A JP16758499 A JP 16758499A JP 3450227 B2 JP3450227 B2 JP 3450227B2
Authority
JP
Japan
Prior art keywords
continuous
input
consecutive
circuit
output
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
Application number
JP16758499A
Other languages
Japanese (ja)
Other versions
JP2000358076A (en
Inventor
宏 本村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Electronics Corp
Original Assignee
NEC Electronics 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 NEC Electronics Corp filed Critical NEC Electronics Corp
Priority to JP16758499A priority Critical patent/JP3450227B2/en
Publication of JP2000358076A publication Critical patent/JP2000358076A/en
Application granted granted Critical
Publication of JP3450227B2 publication Critical patent/JP3450227B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dc Digital Transmission (AREA)
  • Debugging And Monitoring (AREA)
  • Analogue/Digital Conversion (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、入力信号を所定回
数連続してサンプリングし、同じレベルでサンプリング
されたとき、そのレベルをその入力信号の真のレベルで
あると判定するための連続照合サンプリング回路に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to continuous collation sampling for continuously sampling an input signal a predetermined number of times and, when sampled at the same level, determining that level as the true level of the input signal. Ru <br/> relates to a circuitry.

【0002】[0002]

【従来の技術】従来の連続照合サンプリング回路は、図
14に示すように、IN端子が二つのFF(フリップ・
フロップ)からなるシフトレジスタ100の入力に接続
され、第1の論理和回路101の入力にシフトレジスタ
100の各正転出力QとCLK(クロック)端子が接続
され、第2の論理和回路102の入力にシフトレジスタ
100の各反転出力QBとCLK端子が接続され、論理
和回路101と102の出力が論理和回路で構成された
ラッチ回路103の入力にそれぞれ接続され、このラッ
チ回路103の出力が連続照合フラグとなっている。
2. Description of the Related Art In a conventional continuous collation sampling circuit, as shown in FIG.
FF) is connected to the input of the shift register 100, the input of the first OR circuit 101 is connected to each normal output Q of the shift register 100 and the CLK (clock) terminal, and the second OR circuit 102 is connected. The inverting output QB of the shift register 100 and the CLK terminal are connected to the input, the outputs of the OR circuits 101 and 102 are connected to the inputs of the latch circuit 103 configured by the OR circuit, and the output of the latch circuit 103 is It is a continuous collation flag.

【0003】次に動作について説明する。入力信号IN
が2回連続1になった場合は、シフトレジスタ100の
二つのFFのQB出力が共に0になると共に、論理和回
路102の出力が1となり、ラッチ回路103にセット
がかかって連続照合フラグが1となる。INが2回連続
0になった場合は、二つのFFのQ出力が共に0になる
と共に、論理和回路101の出力が1となり、ラッチ回
路103にリセットがかかって連続照合フラグが0とな
る。
Next, the operation will be described. Input signal IN
2 becomes 1 continuously for two times, the QB outputs of the two FFs of the shift register 100 both become 0, the output of the logical sum circuit 102 becomes 1, and the latch circuit 103 is set to set the continuous collation flag. It becomes 1. When IN becomes 0 twice consecutively, the Q outputs of the two FFs both become 0, the output of the OR circuit 101 becomes 1, the latch circuit 103 is reset, and the continuous collation flag becomes 0. .

【0004】尚、本発明に関する他の従来技術として、
例えば、特開昭63−12451号公報及び特開平
8−16751号公報に記載されるものがある。に
は、システム内クロックに対して比較的長い周期を有す
るデータ伝送を行う場合に、雑音その他の外部擾乱から
データを保護する伝送データ保護回路が開示され、に
は、同一形状の物体を光電スイッチを用いて計数する場
合に、ノイズによる計数誤差をなくすための移送物の計
数装置が開示されている。
As another prior art related to the present invention,
For example, there are those described in JP-A-63-12451 and JP-A-8-16751. Discloses a transmission data protection circuit that protects data from noise and other external disturbances when performing data transmission having a relatively long cycle with respect to the clock in the system. There is disclosed a transfer material counting device for eliminating a counting error due to noise when counting is performed by using.

【0005】[0005]

【発明が解決しようとする課題】図14について説明し
た従来の連続照合サンプリング回路の主な欠点は、IN
端子の数が増えると、その数に比例して回路が大きくな
ってしまうということである。また、連続照合回数が固
定値となり、変更することができないという欠点もあ
る。
The main drawback of the conventional continuous collation sampling circuit described with reference to FIG.
This means that as the number of terminals increases, the circuit becomes larger in proportion to the number. In addition, there is a drawback that the number of consecutive collations is a fixed value and cannot be changed.

【0006】このような欠点が生じる理由として、回路
が大きくなってしまう点に関しては、連続照合サンプリ
ングする回路がIN端子1つにそれぞれ必要なため、I
N端子の数が増えると、その数に比例して連続照合サン
プリングする回路数が増えてしまうからである。また、
連続照合回数が固定値になってしまう点に関しては、サ
ンプリング回数がFFの数で決まってしまうため、連続
照合回数を変更することができないためである。また、
前記、の各公報に開示される従来技術においても、
上記と同様の問題を含んでいる。
The reason why such a defect occurs is that, as to the size of the circuit, a circuit for continuous collation sampling is required for each IN terminal.
This is because as the number of N terminals increases, the number of circuits for continuous collation sampling increases in proportion to the number. Also,
The reason why the number of consecutive collations becomes a fixed value is that the number of consecutive collations cannot be changed because the number of samplings is determined by the number of FFs. Also,
In the prior art disclosed in each of the above publications,
It contains the same problems as above.

【0007】本発明は、上記の問題を解決するために成
されたもので、回路を大きくすることなく、連続照合サ
ンプリングできる入力信号数及び回数を変更できるよう
にすることを目的としている。
The present invention has been made to solve the above problems, and an object of the present invention is to make it possible to change the number and the number of input signals that can be continuously collated and sampled without increasing the size of the circuit.

【0008】[0008]

【課題を解決するための手段】上記の目的を達成するた
めに、本発明による連続照合サンプリング回路は、複数
の入力信号と対応するアドレスに、所定の連続照合回数
と、連続して何回同じ信号レベルが続いたかを示す連続
回数と、この連続回数と上記所定の連続照合回数とが一
致したとき変化するフラグとを保持する記憶手段と、上
記アドレスを指定して上記記憶手段の読み出し書き込み
を制御する制御手段と、上記複数の入力信号から上記指
定されたアドレスと対応する一つの入力信号を選択する
選択手段と、上記選択された入力信号と上記記憶手段の
対応するフラグとの排他的論理和をとる論理手段と、上
記排他的論理和の結果に応じて上記記憶手段の対応する
連続回数を更新する更新手段と、比較手段とを備え、上
記比較手段は、上記更新された連続回数と上記所定の連
続照合回数とを比較して一致した場合にはHを出力し、
一致していない場合にはLを出力する一致回路と、上記
一致回路からの出力と上記記憶手段の対応するフラグと
の排他的論理和をとる比較手段内EXOR回路とを備
え、上記連続回数と上記所定の連続照合回数とが一致し
た場合に、上記フラグを変化させると共に上記連続回数
をクリアするものである。
In order to achieve the above-mentioned object, a continuous collation sampling circuit according to the present invention has an address corresponding to a plurality of input signals, which has the same number of consecutive consecutive collations as the predetermined number of consecutive collations. Storage means for holding the number of consecutive times indicating that the signal level has continued, and a flag that changes when the number of consecutive times and the predetermined number of consecutive collations coincide, and the reading and writing of the memory means by designating the address. Exclusive logic of control means for controlling, selection means for selecting one input signal corresponding to the designated address from the plurality of input signals, and exclusive logic of the selected input signal and the corresponding flag of the storage means. A logical means for taking a sum, an updating means for updating a corresponding number of consecutive times in the storage means according to a result of the exclusive OR, and a comparing means,
The comparison means uses the updated number of consecutive times and the predetermined number of times.
If it matches after comparing with the number of consecutive collation, H is output,
If there is no match, a matching circuit that outputs L and the above
The output from the coincidence circuit and the corresponding flag of the storage means
And an EXOR circuit in the comparison means for taking the exclusive OR of
If the number of consecutive times and the predetermined number of consecutive
In case of
Is to clear.

【0009】[0009]

【0010】また、上記連続照合サンプリング回路に
いて、上記所定の連続照合回数、連続回数及びフラグを
それぞれ設定できるようにしてよい。
Further, it had your <br/> to the continuous verification sampling circuits, the predetermined continuous verification number, may be continuously count and flag can be set respectively.

【0011】また、上記更新に際して、上記排他的論理
和の結果が変化したとき上記連続回数に1を加算するよ
うにしてよい。
Further, at the time of the updating, 1 may be added to the consecutive number when the result of the exclusive OR changes.

【0012】[0012]

【発明の実施の形態】以下、本発明の実施の形態を図面
と共に説明する。図1は本発明の第1の実施の形態によ
る連続照合サンプリング回路を示すブロック図である。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a continuous collation sampling circuit according to a first embodiment of the present invention.

【0013】まず、本実施の形態を概略的に説明する。
図1において、内部にEXOR回路2、アダー3、比較
器4、RAM5を備えた連続照合データ保持回路1に、
それぞれ入力信号が入力される外部端子IN0〜INn
の一つを選択するセレクタ6の出力が接続されている。
CLK端子が入力されるカウンタ7のADDRESS出
力信号は、連続照合データ保持回路1内のRAM5のア
ドレスとセレクタ6に入力される。またカウンタ7は、
RAM5の書き込みタイミング信号(以下、/WRIT
Eと示す)を生成する。
First, the present embodiment will be schematically described.
In FIG. 1, a continuous collation data holding circuit 1 including an EXOR circuit 2, an adder 3, a comparator 4 and a RAM 5 inside is
External terminals IN0 to INn to which input signals are respectively input
The output of the selector 6 for selecting one of the above is connected.
The ADDRESS output signal of the counter 7 to which the CLK terminal is input is input to the address of the RAM 5 in the continuous collation data holding circuit 1 and the selector 6. Also, the counter 7
Write timing signal of RAM 5 (hereinafter, / WRIT
(Denoted as E).

【0014】連続照合データ保持回路1において、セレ
クタ6で選択された入力信号と、RAM5の後述する連
続回数データとをEXOR回路(排他的論理和回路)2
に入力し、その出力をアダー3に入力し、アダー3の出
力を比較器4に入力してRAM5の所定の連続照合回数
と比較する。比較器4の出力をRAM5のデータ入力と
し、RAM5から連続照合フラグを得る。
In the continuous collation data holding circuit 1, an EXOR circuit (exclusive OR circuit) 2 is used to input the input signal selected by the selector 6 and continuous count data of the RAM 5 which will be described later.
To the adder 3, and the output of the adder 3 is input to the comparator 4 for comparison with the predetermined number of consecutive collations in the RAM 5. The output of the comparator 4 is used as the data input of the RAM 5, and the continuous collation flag is obtained from the RAM 5.

【0015】上記構成により、RAM5のアドレス分の
個数を有するIN0〜INn端子の連続照合サンプリン
グを行うことができる。即ち、RAM5の1アドレスに
一つのINを割り当てる。RAM5のあるアドレスがア
クセスされると、そのアドレスに対応するIN端子がセ
レクタ6で選ばれる。
With the above configuration, it is possible to carry out continuous collation sampling of the IN0 to INn terminals having the number of addresses of the RAM 5. That is, one IN is assigned to one address in the RAM 5. When a certain address in the RAM 5 is accessed, the IN terminal corresponding to that address is selected by the selector 6.

【0016】その選ばれたIN端子の入力信号のレベル
が、前回サンプリング時のレベルと同じ場合は、RAM
5から読み出されたデータ(以下、連続回数データと称
する)にアダー3により1加算された値が、比較器4を
通過してRAM5の同じアドレスに書き込まれる。この
ようにして同じレベル信号の連続回数データをRAM5
に保持する。RAM5には、図2のように照合回数設定
回路8により同じアドレスのデータとは異なるビットに
所定の連続照合回数が設定されており、上記連続回数デ
ータと連続照合回数とが一致した場合は、比較器4によ
り同じアドレスの連続回数データ、連続照合回数とは異
なるビットに連続照合フラグとしてデータが書き込まれ
る。
If the level of the input signal of the selected IN terminal is the same as the level at the previous sampling, the RAM
A value obtained by adding 1 to the data read from 5 (hereinafter, referred to as continuous number data) by the adder 3 passes through the comparator 4 and is written in the same address of the RAM 5. In this way, the continuous count data of the same level signal is stored in the RAM 5
Hold on. In the RAM 5, as shown in FIG. 2, the collation number setting circuit 8 sets a predetermined consecutive collation number in a bit different from the data of the same address. When the consecutive number data and the consecutive collation number match, The comparator 4 writes data as a continuous collation flag in a bit different from the consecutive count data of the same address and the consecutive collation count.

【0017】RAM5の一つのアドレスに一つのIN端
子が割り当てられるので、同じ回路構成でRAM5のア
ドレスと同じ数のIN端子を設定することができる。R
AM5のアドレスは、アドレスビットをnとすると2n
増加するので、回路をさほど大きくすることなく、連続
照合サンプリング可能なIN端子を指数関数的に増加さ
せることができる。
Since one IN terminal is assigned to one address of the RAM 5, it is possible to set the same number of IN terminals as the address of the RAM 5 with the same circuit configuration. R
The address of AM5 is 2 n when the address bit is n.
The number of IN terminals that can be continuously collated and sampled can be increased exponentially without increasing the size of the circuit.

【0018】次に、本実施の形態の構成及び動作につい
て詳細に説明する。本実施の形態では、連続照合回数の
最大値が127回、外部端子INの数を64個、サンプ
リング間隔を1msとした場合を例として説明する。全
体構成は、図1について前述した通りである。
Next, the configuration and operation of this embodiment will be described in detail. In the present embodiment, a case will be described as an example in which the maximum value of the number of consecutive collations is 127, the number of external terminals IN is 64, and the sampling interval is 1 ms. The overall configuration is as described above with reference to FIG.

【0019】図1の連続照合データ保持回路1の詳細を
図2を用いて説明する。連続回数データであるRAM5
のDATA_OUT[6:0](信号9)がアダー3の
IN[6:0]に接続され、連続照合回数であるRAM
5のDATA_OUT[13:7]が比較器4のCOM
P[6:0]に接続され、連続照合フラグであるDAT
A_OUT[14]が、EXOR回路2の一方の入力と
比較器4のIN_FLGに接続されると共に、外部へ連
続照合フラグとして出力されている。
Details of the continuous collation data holding circuit 1 of FIG. 1 will be described with reference to FIG. RAM5 which is the continuous count data
DATA_OUT [6: 0] (signal 9) is connected to IN [6: 0] of the adder 3 and the RAM is the number of consecutive collations.
DATA_OUT [13: 7] of 5 is COM of the comparator 4.
DAT, which is connected to P [6: 0] and is a continuous matching flag
A_OUT [14] is connected to one input of the EXOR circuit 2 and IN_FLG of the comparator 4 and is output to the outside as a continuous collation flag.

【0020】EXOR回路2の他方の入力には、図1の
セレクタ6の出力である入力データ信号が接続され、E
XOR回路2の出力はアダー3のENに接続されてい
る。アダー3のOUT[6:0]は、信号10により比
較器4のIN[6:0]に接続され、比較器4のOUT
[6:0]は、信号11によりRAM5のDATA_I
N[1:0]に接続され、比較器4のOUT_FLG
は、信号12によりRAM5のDATA_IN[14]
に接続されている。
The other input of the EXOR circuit 2 is connected to the input data signal which is the output of the selector 6 of FIG.
The output of the XOR circuit 2 is connected to the EN of the adder 3. The OUT [6: 0] of the adder 3 is connected to the IN [6: 0] of the comparator 4 by the signal 10, and the OUT [6: 0] of the comparator 4 is connected.
[6: 0] is DATA_I of the RAM 5 by the signal 11.
OUT_FLG of the comparator 4 connected to N [1: 0]
Is sent to the DATA_IN [14] of the RAM 5 by the signal 12.
It is connected to the.

【0021】ADDRESS入力は、RAM5のADD
RESSに接続されると共に、照合回数設定回路8のI
Nに接続され、照合回路設定回路8のOUTは、RAM
5のDATA_IN[13:7]に接続される。/WR
ITE入力はRAM5の/WRITEに接続される。
ADDRESS input is the ADD of RAM5
It is connected to RESS and I of the collation number setting circuit 8 is connected.
OUT of the matching circuit setting circuit 8 connected to N is RAM
5 DATA_IN [13: 7]. / WR
The ITE input is connected to / WRITE of RAM5.

【0022】次に、比較器の詳細を図4を用いて説明す
る。COMP[6:0]入力が一致回路13のAに接続
され、IN[6:0]入力が一致回路13のBに接続さ
れると共に、多ビットAND回路14のB[6:0]に
接続されている。一致回路13のCOMPは、多ビット
AND回路14のAに接続されると共に、EXOR回路
15の一方の入力に接続されている。IN_FLG入力
は、EXOR回路15の他方の入力に接続され、EXO
R回路15の出力はOUT_FLG出力に接続されてい
る。
Next, details of the comparator will be described with reference to FIG. The COMP [6: 0] input is connected to A of the matching circuit 13, the IN [6: 0] input is connected to B of the matching circuit 13, and the B [6: 0] of the multi-bit AND circuit 14 is connected. Has been done. The COMP of the coincidence circuit 13 is connected to A of the multi-bit AND circuit 14 and to one input of the EXOR circuit 15. The IN_FLG input is connected to the other input of the EXOR circuit 15 and
Output of R circuit 15 is connected to OUT_FLG output.

【0023】図4の多ビットAND回路14の詳細を図
6を用いて説明する。B[6:0]入力は、それぞれ独
立に複数のAND回路16の一方の入力端子に接続さ
れ、全てのAND回路16の他方の入力は、全てA入力
がインバータ17を介して接続されている。全てのAN
D回路16の出力は、それぞれOUT[6:0]出力に
接続されている。
Details of the multi-bit AND circuit 14 of FIG. 4 will be described with reference to FIG. The B [6: 0] inputs are independently connected to one input terminals of a plurality of AND circuits 16, and the other inputs of all the AND circuits 16 are all connected to the A inputs via the inverter 17. . All AN
The outputs of the D circuits 16 are connected to the OUT [6: 0] outputs, respectively.

【0024】次に、図1のカウンタ7の詳細を図7を用
いて説明する。CLK入力が、トグルFF18のTクロ
ックに接続されると共に、OR回路19の一方の入力に
接続されている。トグルFF18のQはOR回路19の
他方の入力に接続され、トグルFF18のQB出力は、
6ビットアップカウンタ20のCLKに接続され、6ビ
ットアップカウンタ20の出力は、ADDRESS
[5:0]出力に接続されている。OR回路19の出力
は/WRITE出力に接続されている。
Next, details of the counter 7 shown in FIG. 1 will be described with reference to FIG. The CLK input is connected to the T clock of the toggle FF 18 and is also connected to one input of the OR circuit 19. The Q of the toggle FF 18 is connected to the other input of the OR circuit 19, and the QB output of the toggle FF 18 is
The output of the 6-bit up counter 20 is connected to the CLK of the 6-bit up counter 20, and the output is ADDRESS.
It is connected to the [5: 0] output. The output of the OR circuit 19 is connected to the / WRITE output.

【0025】次に、本実施の形態の動作について説明す
る。最初に図2に示しているRAMのビットマッピング
について説明し、次に1msサンプリングの全体タイミ
ングを説明し、その後、1つのINのサンプリング動作
についてタイミングと回路動作を説明し、さらに、連続
照合回数を4回とした場合の連続照合サンプリング動作
という順に説明する。
Next, the operation of this embodiment will be described. First, the bit mapping of the RAM shown in FIG. 2 will be described, then the overall timing of 1 ms sampling will be described, and then the timing and circuit operation for the sampling operation of one IN will be described. The continuous verification sampling operation when the number of times is four will be described in order.

【0026】図2のRAM5のビットマッピングを図1
2に示す。このRAM5のデータは、16ビット構成で
b[6:0]を連続回数データとし、これは図2の入力
信号が何回連続同じレベルであるかの回数を示すもので
ある。b[14]は、連続照合フラグとし本実施の形態
の連続照合サンプリング回路の出力であり、図2の入力
信号のノイズを除去した後の信号である。b[13:
7]は連続照合回数であり、ここに示された所定値とb
[6:0]の値とが一致したとき、b[14]の連続照
合フラグを変化させるものである。
Bit mapping of the RAM 5 of FIG. 2 is shown in FIG.
2 shows. The data in the RAM 5 has a 16-bit structure and b [6: 0] is continuous count data, which indicates how many times the input signal in FIG. 2 has the same level continuously. b [14] is an output of the continuous matching sampling circuit of the present embodiment as a continuous matching flag, which is a signal after noise of the input signal in FIG. 2 is removed. b [13:
7] is the number of consecutive collations, and the predetermined value shown here and b
When the value of [6: 0] matches, the continuous collation flag of b [14] is changed.

【0027】即ち、連続照合回数とは、図2に示す入力
信号がこの値以上連続して同じレベルで入力された場合
に、そのレベルを真のレベルと判断するものであり、こ
の値以下の場合は、ノイズと判断するものである。
That is, the number of times of continuous collation means that when the input signal shown in FIG. 2 is continuously input at the same level or more at this value, the level is determined to be a true level, and is less than or equal to this value. In the case, it is judged as noise.

【0028】次に1msサンプリングの全体タイミング
を説明する。図1のカウンタ7の動作を図7の回路と図
8のタイミングチャートを用いて説明する。
Next, the overall timing of 1 ms sampling will be described. The operation of the counter 7 of FIG. 1 will be described with reference to the circuit of FIG. 7 and the timing chart of FIG.

【0029】このカウンタ7のCLK入力には128K
Hzの信号が入力され、図7のトグルFF18で2分周
された64KHzの信号が6ビットアップカウンタ20
に入力されているので、6ビットアップカウンタ20の
出力が接続されているADDRESS[5:0]出力
は、15.6μs(=64KHzの周期)ごとに変化す
る。その変化値は0から63までの64通りである。
128K is applied to the CLK input of the counter 7.
7 Hz signal is input, and the 64 KHz signal divided by 2 by the toggle FF 18 of FIG.
, The ADDRESS [5: 0] output to which the output of the 6-bit up counter 20 is connected changes every 15.6 μs (= 64 KHz cycle). There are 64 variations from 0 to 63.

【0030】またカウンタ7は、図8のタイミングチャ
ートに示されている/WRITE信号を出力している。
図1に示すようにカウンタ7のADDRESS[5:
0]出力は、IN0からINn(本実施の形態ではnの
値は63となる)を選択するセレクタ6に接続され、こ
のセレクタ6では、ADDRESS[5:0]に対応し
たINが1つだけ選択される。例えばADDRESS
[5:0]=0の場合はIN0が選択される。
Further, the counter 7 outputs the / WRITE signal shown in the timing chart of FIG.
As shown in FIG. 1, the ADDRESS [5:
0] output is connected to a selector 6 that selects IN0 to INn (in the present embodiment, the value of n is 63). In this selector 6, there is only one IN corresponding to ADDRESS [5: 0]. To be selected. For example, ADDRESS
If [5: 0] = 0, IN0 is selected.

【0031】ADDRESS[5:0]は15.6μs
ごとに0、1、2と変化していくので、それにともない
IN0、IN1、IN2がセレクタ6で選択され、図1
の連続照合データ保持回路1へ入力信号として接続され
る。カウンタ7のADDRESS[5:0]出力は、連
続照合データ保持回路1内のRAM5のADDRESS
にも接続されているので、INと同様にADDRESS
[5:0]が0、1、2と変化するにともない、アクセ
スするRAM5のアドレスも0、1、2と順番に変化し
ていく。
ADDRESS [5: 0] is 15.6 μs
Since it changes from 0, 1 and 2 every time, IN0, IN1 and IN2 are selected by the selector 6 accordingly, and
Is connected as an input signal to the continuous collation data holding circuit 1. The ADDRESS [5: 0] output of the counter 7 is the ADDRESS of the RAM 5 in the continuous collation data holding circuit 1.
Since it is also connected to, ADDRESS as well as IN
As [5: 0] changes to 0, 1, 2, the address of the RAM 5 to be accessed also changes in order of 0, 1, 2.

【0032】図9に1msサンプリングの全体波形を示
す。ADDRES[5:0]は、1つのADDRESS
の時間が15.6μsで0から63までの値を繰り返す
ので、同じADDRESS値が次に現れるまでの時間は
15.6μs×64=1msとなる。従って、ADDR
ESS値ごとにセレクタ6によって選択されたINのレ
ベルを測定することにより、64個全てのINの1ms
のサンプリングを行うことができる。
FIG. 9 shows the entire waveform of 1 ms sampling. ADDRESS [5: 0] is one ADDRESS
Since the value of 0 to 63 is repeated at the time of 15.6 μs, the time until the same ADDRESS value appears next is 15.6 μs × 64 = 1 ms. Therefore, ADDR
By measuring the level of the IN selected by the selector 6 for each ESS value, 1 ms of all 64 INs
Can be sampled.

【0033】次に、一つの入力信号INのサンプリング
動作についてタイミングと回路動作を説明する。図10
に1ADDRESS分の動作のタイミングチャートを示
す。この図10は、図2の入力信号が前回サンプリング
した時と同じレベルの場合を示す。即ち、即ち、連続回
数データがカウントアップする場合である。
Next, the timing and circuit operation of the sampling operation of one input signal IN will be described. Figure 10
Shows a timing chart of the operation for one ADDRESS. This FIG. 10 shows the case where the input signal of FIG. 2 is at the same level as the previous sampling. That is, that is, when the continuous count data is incremented.

【0034】ADDRESSがnに変化すると、RAM
5から連続回数データであるm値がDATA_OUT
[6:0]から読み出される。
When ADDRESS changes to n, RAM
The value m, which is the continuous count data from 5, is DATA_OUT
It is read from [6: 0].

【0035】このm値は図2のアダー3、比較器4を経
由し、前記したように入力信号が前回サンプリングした
時と同じレベルであるので、1加算されてm+1とな
り、RAM5のDATA_IN[6:0]に入力され
る。カウンタ7からの/WRITE信号が書き込みタイ
ミング信号としてRAM5に入力されているので、A点
でm+1値が連続回数データとしてb[6:0]に書き
込まれる。それにともないDATA_OUT[6:0]
もm+1に変化し、同時にDATA_IN[6:0]も
m+2となる。
This m value passes through the adder 3 and the comparator 4 in FIG. 2 and is at the same level as the input signal when it was sampled last time as described above. Therefore, 1 is added to m + 1, and DATA_IN [6 of RAM 5 is used. : 0]. Since the / WRITE signal from the counter 7 is input to the RAM 5 as a write timing signal, the m + 1 value at point A is written to b [6: 0] as continuous count data. Along with that, DATA_OUT [6: 0]
Also changes to m + 1, and DATA_IN [6: 0] also changes to m + 2 at the same time.

【0036】次に、連続照合回数を4回とした場合の連
続照合サンプリング動作について説明すると共に、図2
の入力信号のレベルにより連続回数データが加算する動
作と連続回路データが連続照合回数と一致して、連続照
合フラグが変化する様子を図11、図2〜図6を用いて
説明する。図11は図10のタイミングチャートA点で
の各信号線のレベルを時間経過で示したものである。時
間経過は表の横軸として1から順番に21まで連番とな
っており、横軸の数字の1つは1アドレス分を示す。横
軸は全て同じRAMのアドレスを示しているので1と2
は実時間としては1msの間隔がある。
Next, the continuous collation sampling operation when the number of consecutive collations is set to 4 will be described, and FIG.
The operation of adding the continuous count data according to the level of the input signal and the manner in which the continuous circuit data matches the continuous check count and the continuous check flag changes will be described with reference to FIGS. 11 and 2 to 6. FIG. 11 shows the level of each signal line at point A in the timing chart of FIG. 10 over time. The elapsed time is serially numbered from 1 to 21 on the horizontal axis of the table, and one of the numbers on the horizontal axis indicates one address. The horizontal axis shows the same RAM address, so 1 and 2
Has a real time interval of 1 ms.

【0037】図11の時間の経過の3にて入力信号がH
の場合に連続回数データがカウントアップする動作を説
明する。入力信号がH、連続照合フラグがLなので、E
XOR回路2の出力であるアダー3のENはHになる。
アダー3のENがHになると、図3のアダー3の真理値
表からアダー3の出力である図2の信号10は、アダー
3の入力である信号9に1加算され、2h(HEX表示
は下1桁にhをつける)となる。
At 3 of the passage of time in FIG. 11, the input signal becomes H.
In the case of, the operation of counting up the continuous count data will be described. Since the input signal is H and the continuous matching flag is L, E
The EN of the adder 3, which is the output of the XOR circuit 2, becomes H.
When the EN of the adder 3 becomes H, the signal 10 of FIG. 2 which is the output of the adder 3 is added to the signal 9 which is the input of the adder 3 from the truth table of the adder 3 of FIG. Add h to the last digit).

【0038】信号10は比較器4のIN[6:0]に入
力される。比較器4では、図4に示すようにIN[6:
0]入力に信号10の2hが入力され、COMP[6:
0]入力には、図11のDATA_OUT[13:7]
(連続照合回数)の4hが入力され、IN_FLG入力
には、図11の連続照合フラグのLが入力されている。
比較器4に内蔵している一致回路13の動作は、図5に
示すように入力AとBとが一致していない場合はLを出
力するので、今、COMP[6:0]とIN[6:0]
が一致していないので、比較器4からはLが出力され
る。
The signal 10 is input to IN [6: 0] of the comparator 4. In the comparator 4, as shown in FIG. 4, IN [6:
2h of the signal 10 is input to the [0] input, and COMP [6:
0] input to DATA_OUT [13: 7] of FIG.
(Consecutive collation count) 4h is input, and the continuous collation flag L of FIG. 11 is input to the IN_FLG input.
The operation of the matching circuit 13 incorporated in the comparator 4 outputs L when the inputs A and B do not match as shown in FIG. 5, so that COMP [6: 0] and IN [ 6: 0]
Does not match, L is output from the comparator 4.

【0039】一致回路13の次段の多ビットAND回路
14の動作は、図6に示すようにA入力がLの場合は、
B[6:0]入力と同じ値がOUT[6:0]から出力
され、A入力がHの場合はOUT[6:0]が全てLと
なる。今、一致回路13のCOMPがLなので、多ビッ
トAND回路14はOUT[6:0]=B[6:0]と
なり、比較器4のOUT[6:0]出力からは比較器4
のIN[6:0]入力の値がそのまま出力される。
The operation of the multi-bit AND circuit 14 in the next stage of the coincidence circuit 13 is as follows when the A input is L as shown in FIG.
The same value as the B [6: 0] input is output from OUT [6: 0], and when the A input is H, OUT [6: 0] is all L. Since COMP of the matching circuit 13 is now L, the multi-bit AND circuit 14 has OUT [6: 0] = B [6: 0], and the OUT [6: 0] output of the comparator 4 causes the comparator 4 to output.
The value of the IN [6: 0] input of is output as it is.

【0040】また、一致回路13のCOMP=L、かつ
IN_FLG=Lなので、比較器4のOUT_FLG出
力からはLが出力される。よって図2の信号11は、図
11にも示しているように2hの値になり、その値がR
AM5のb[6:0]に書き込まれ、連続回数データが
カウントアップする。連続照合フラグには、図2の信号
12の値Lが書き込まれるので変化はない。
Since COMP = L and IN_FLG = L of the coincidence circuit 13, L is output from the OUT_FLG output of the comparator 4. Therefore, the signal 11 in FIG. 2 has a value of 2h as shown in FIG.
It is written in b [6: 0] of AM5 and the continuous count data is counted up. Since the value L of the signal 12 of FIG. 2 is written in the continuous collation flag, there is no change.

【0041】次に、図11の時間の経過の5にて前回と
入力信号レベルが異なる場合の動作を説明する。入力信
号がL、連続照合フラグがLなので、EXOR回路2の
出力であるアダー3のENはLとなる。アダー3のEN
がLとなると、図3のアダー3の真理値表からアダー3
の出力である図2の信号10は0hとなる。信号10は
比較器4のIN[6:0]に入力される。
Next, the operation when the input signal level is different from the previous one at 5 of the passage of time in FIG. 11 will be described. Since the input signal is L and the continuous collation flag is L, the EN of the adder 3, which is the output of the EXOR circuit 2, becomes L. Adder 3 EN
Is L, adder 3 from the truth table of adder 3 in FIG.
The signal 10 in FIG. 2 which is the output of the signal is 0h. The signal 10 is input to IN [6: 0] of the comparator 4.

【0042】比較器4では、図4に示すようにIN
[6:0]入力に信号10の0hが入力され、COMP
[6:0]入力には図11のDATA_OUT[13:
7](連続照合回数)の4hが入力され、IN_FLG
入力には図11の連続照合フラグのLが入力されてい
る。比較器4に内蔵している一致回13の動作は、図5
に示すように入力AとBとが一致していない場合はLを
出力するので、今COMP[6:0]とIN[6:0]
が一致していないので、比較器4からはLが出力され
る。
In the comparator 4, as shown in FIG.
0h of signal 10 is input to the [6: 0] input, and COMP
For the [6: 0] input, DATA_OUT [13:
7] (the number of consecutive collations) is input, and IN_FLG
As the input, the continuous collation flag L in FIG. 11 is input. The operation of the coincidence circuit 13 built in the comparator 4 is shown in FIG.
As shown in, when the inputs A and B do not match, L is output, so now COMP [6: 0] and IN [6: 0]
Does not match, L is output from the comparator 4.

【0043】一致回路13の次段の多ビットAND回路
14の動作は前述した通りなので、一致回路13のCO
MP=Lより多ビットAND回路14は、OUT[6:
0]=B[6:0]となり、比較器4のOUT[6:
0]出力からは比較器4のIN[6:0]入力の値がそ
のまま出力される。また、一致回路13のCOMP=
L、かつIN_FLG=Lなので、比較器4のOUT_
FLG出力からはLが出力される。
Since the operation of the multi-bit AND circuit 14 in the next stage of the matching circuit 13 is as described above, the CO of the matching circuit 13 is changed.
Since MP = L, the multi-bit AND circuit 14 outputs OUT [6:
0] = B [6: 0], and OUT [6: of the comparator 4
From the [0] output, the value of the IN [6: 0] input of the comparator 4 is output as it is. Further, COMP = of the matching circuit 13
Since L and IN_FLG = L, OUT_ of the comparator 4
L is output from the FLG output.

【0044】よって図2の信号11は図11にも示して
いるように0hの値になり、その値がRAM5のb
[6:0]に書き込まれ、連続回数データは0hとな
る。このように、入力信号レベルが前回と異なる場合
は、連続回数データはクリアされてしまう。連続照合フ
ラグには、図2の信号12の値Lが書き込まれるので変
化はない。
Therefore, the signal 11 in FIG. 2 has a value of 0h as shown in FIG. 11, and the value is b in the RAM 5.
It is written in [6: 0] and the continuous count data becomes 0h. Thus, when the input signal level is different from the previous one, the continuous count data is cleared. Since the value L of the signal 12 of FIG. 2 is written in the continuous collation flag, there is no change.

【0045】次に、図11の時間の経過の9にて入力信
号がHの場合の連続回数データと連続照合回数(図11
のDATA_OUT[13:7])とが一致した場合の
動作を説明する。
Next, at the passage of time 9 in FIG. 11, the continuous count data and the continuous matching count when the input signal is H (see FIG. 11).
DATA_OUT [13: 7]) of the above will be described.

【0046】入力信号がH、連続照合フラグがLなの
で、EXOR回路2の出力であるアダー3のENはHに
なる。アダー3のENがHになると、図3のアダー3の
真理値表からアダー3の出力である図2の信号10は、
アダー3の入力である信号9に1加算され4hとなる。
信号10は比較器4のIN[6:0]に入力される。
Since the input signal is H and the continuous collation flag is L, the EN of the adder 3 which is the output of the EXOR circuit 2 becomes H. When the EN of the adder 3 becomes H, the signal 10 of FIG. 2 which is the output of the adder 3 from the truth table of the adder 3 of FIG.
One is added to the signal 9 which is the input of the adder 3 to obtain 4h.
The signal 10 is input to IN [6: 0] of the comparator 4.

【0047】比較器では、図4に示すようにIN[6:
0]入力に信号10の4hが入力され、COMP[6:
0]入力には図11のDATA_OUT[13:7]
(連続照合回数)の4hが入力され、IN_FLG入力
には図11の連続照合フラグのLが入力されている。
今、COMP[6:0]とIN[6:0]とが一致して
いるので、一致回路13のCOMPからはHが出力され
る。
In the comparator, as shown in FIG. 4, IN [6:
4h of the signal 10 is input to the [0] input, and COMP [6:
0] input to DATA_OUT [13: 7] of FIG.
4h of (the number of consecutive collations) is input, and the continuous collation flag L of FIG. 11 is input to the IN_FLG input.
Since COMP [6: 0] and IN [6: 0] match now, H is output from COMP of the matching circuit 13.

【0048】一致回路13のCOMPがHなので、多ビ
ットAND回路14はOUT[6:0]=0hとなる。
また、一致回路13のCOMP=H、かつIN_FLG
=Lなので、比較器4のOUT_FLG出力からはHが
出力される。よって図2の信号11は図11にも示して
いるように0hの値になり、その値がRAM5のb
[6:0]に書き込まれ、連続回数データは0hとな
り、かつ連続照合フラグには図2の信号12の値Hが書
き込まれる。このように連続回数データと連続照合回数
とが一致した場合は、連続照合フラグが変化し連続回数
データはクリアされる。
Since COMP of the coincidence circuit 13 is H, the multi-bit AND circuit 14 has OUT [6: 0] = 0h.
In addition, COMP = H of the matching circuit 13 and IN_FLG
= L, H is output from the OUT_FLG output of the comparator 4. Therefore, the signal 11 in FIG. 2 has a value of 0h as shown in FIG. 11, and the value is b in the RAM 5.
It is written at [6: 0], the continuous count data becomes 0h, and the value H of the signal 12 in FIG. 2 is written in the continuous collation flag. In this way, when the consecutive count data and the consecutive collation count match, the consecutive collation flag changes and the consecutive count data is cleared.

【0049】次に、図11の時間の経過の10にて入力
信号がLの場合に連続回数データがカウントアップする
動作を説明する。入力信号がL、連続照合フラグがHな
ので、EXOR回路2の出力であるアダー3のENはH
になる。アダー3のENがHになると、図3のアダー3
の真理値表からアダー3の出力である図2の信号10は
アダー3の入力である信号9に1加算され1hとなる。
信号10は比較器4のIN[6:0]に入力される。
Next, the operation of counting up the continuous count data when the input signal is L at the elapse of time 10 in FIG. 11 will be described. Since the input signal is L and the continuous collation flag is H, the EN of the adder 3 which is the output of the EXOR circuit 2 is H.
become. When EN of adder 3 becomes H, adder 3 of FIG.
From the truth table of the above, the signal 10 of FIG.
The signal 10 is input to IN [6: 0] of the comparator 4.

【0050】比較器4では、図4に示すようにIN
[6:0]入力に信号10の1hが入力され、COMP
[6:0]入力には図11のDATA_OUT[13:
7](連続照合回数)の4hが入力され、IN_FLG
入力には図11の連続照合フラグのHが入力されてい
る。一致回路13の次段の多ビットAND回路14の動
作は前述した通りなので、一致回路13のCOMP=L
より多ビットANDはOUT[6:0]=B[6:0]
となり、比較器4のOUT[6:0]出力からは比較器
4のIN[6:0]入力の値がそのまま出力される。
In the comparator 4, as shown in FIG.
1h of the signal 10 is input to the [6: 0] input, and COMP
For the [6: 0] input, DATA_OUT [13:
7] (the number of consecutive collations) is input, and IN_FLG
As the input, the continuous collation flag H of FIG. 11 is input. Since the operation of the multi-bit AND circuit 14 at the next stage of the matching circuit 13 is as described above, COMP = L of the matching circuit 13
For more bits AND, OUT [6: 0] = B [6: 0]
Therefore, the value of the IN [6: 0] input of the comparator 4 is directly output from the OUT [6: 0] output of the comparator 4.

【0051】また、一致回路13のCOMP=L、かつ
IN_FLG=Hなので、比較器4のOUT_FLG出
力からはHが出力される。よって図2の信号11は図1
1にも示しているように1hの値になり、その値がRA
M5のb[6:0]に書き込まれ、連続回数データがカ
ウントアップする。連続照合フラグには図2の信号12
の値Hが書き込まれるので変化はない。
Further, since COMP = L and IN_FLG = H of the coincidence circuit 13, H is output from the OUT_FLG output of the comparator 4. Therefore, the signal 11 in FIG.
As shown in 1, the value becomes 1h, and that value is RA.
It is written in b [6: 0] of M5, and the continuous count data is counted up. The continuous verification flag includes the signal 12 of FIG.
Since the value H of is written, there is no change.

【0052】次に、図11の時間の経過の13にて連続
照合フラグがHの場合で前回と入力信号レベルが異なる
場合の動作を説明する。入力信号がH、連続照合フラグ
がHなので、EXOR回路2の出力であるアダー3のE
NはLになる。アダー3のENがLになると、図3の真
理値表からアダー3の出力である図2の信号10は0h
となる。信号10は比較器4のIN[6:0]に入力さ
れる。
Next, the operation in the case where the continuous collation flag is H and the input signal level is different from the previous time at 13 of the passage of time in FIG. 11 will be described. Since the input signal is H and the continuous collation flag is H, the E of the adder 3 which is the output of the EXOR circuit 2
N becomes L. When the EN of the adder 3 becomes L, the signal 10 of FIG. 2 which is the output of the adder 3 is 0h from the truth table of FIG.
Becomes The signal 10 is input to IN [6: 0] of the comparator 4.

【0053】比較器4では、図4に示すようにIN
[6:0]入力に信号10の0hが入力され、COMP
[6:0]入力には図11のDATA_OUT[13:
7](連続照合回数)の4hが入力され、IN_FLG
入力には図11の連続照合フラグのHが入力されてい
る。
In the comparator 4, as shown in FIG.
0h of signal 10 is input to the [6: 0] input, and COMP
For the [6: 0] input, DATA_OUT [13:
7] (the number of consecutive collations) is input, and IN_FLG
As the input, the continuous collation flag H of FIG. 11 is input.

【0054】比較器4に内蔵している一致回路13の動
作は、図5に示すように入力AとBとが一致していない
場合はLを出力するので、今COMP[6:0]とIN
[6:0]が一致していないので、比較器4からはLが
出力される。一致回路13の次段の多ビットAND回路
14の動作は前述した通りなので、一致回路13のCO
MP=Lより多ビットAND回路14はOUT[6:
0]=B[6:0]となり、比較器4のOUT[6:
0]出力からは比較器4のIN[6:0]入力の値がそ
のまま出力される。
The operation of the matching circuit 13 built in the comparator 4 outputs L when the inputs A and B do not match as shown in FIG. 5, so that COMP [6: 0] is now set. IN
Since [6: 0] does not match, L is output from the comparator 4. Since the operation of the multi-bit AND circuit 14 in the next stage of the matching circuit 13 is as described above, the CO
Since MP = L, the multi-bit AND circuit 14 outputs OUT [6:
0] = B [6: 0], and OUT [6: of the comparator 4
From the [0] output, the value of the IN [6: 0] input of the comparator 4 is output as it is.

【0055】また、一致回路13のCOMP=LかつI
N_FLG=Hなので、比較器4のOUT_FLG出力
からはHが出力される。よって図2の信号11は図11
にも示しているように0hの値になり、その値がRAM
5のb[6:0]に書き込まれ連続回数データは0hと
なる。このように入力信号レベルが前回と異なる場合
は、連続回数データはクリアされてしまう。連続照合フ
ラグには図2の信号12の値Hが書き込まれるので変化
はない。
Further, COMP = L and I of the coincidence circuit 13
Since N_FLG = H, H is output from the OUT_FLG output of the comparator 4. Therefore, the signal 11 in FIG.
As shown in, the value becomes 0h, and the value is RAM.
It is written in b [6: 0] of 5 and the continuous count data becomes 0h. In this way, when the input signal level is different from the previous one, the continuous count data is cleared. Since the value H of the signal 12 in FIG. 2 is written in the continuous collation flag, there is no change.

【0056】次に、図11の時間の経過の17にて連続
照合フラグがHの場合で入力信号がLの場合の連続回数
データと連続照合回数(図11のDATA_OUT[1
3:7])とが一致した場合の動作を説明する。
Next, at the lapse of time 17 in FIG. 11, when the continuous collation flag is H and the input signal is L, the continuous count data and the continuous collation count (DATA_OUT [1 in FIG. 11 are obtained.
3: 7]) are matched with each other.

【0057】入力信号がL、連続照合フラグがHなの
で、EXOR回路2の出力であるアダー3のENはHに
なる。アダー3のENがHになると、図3の真理値表か
らアダー3の出力である図2の信号10はアダー3の入
力である信号9に1加算され4hとなる。信号10は比
較器4のIN[6:0]に入力される。
Since the input signal is L and the continuous collation flag is H, the EN of the adder 3 which is the output of the EXOR circuit 2 becomes H. When EN of the adder 3 becomes H, the signal 10 of FIG. 2 which is the output of the adder 3 is added to the signal 9 which is the input of the adder 1 from the truth table of FIG. The signal 10 is input to IN [6: 0] of the comparator 4.

【0058】比較器4では、図4に示すようにIN
[6:0]入力に信号10の4hが入力され、COMP
[6:0]入力には図11のDATA_OUT[13:
7](連続照合回数)の4hが入力され、IN_FLG
入力には図11の連続照合フラグのHが入力されてい
る。今、COMP[6:0]とIN[6:0]とが一致
しているので、一致回路13のCOMPからはHが出力
される。一致回路13のCOMPがHなので、多ビット
AND回路14OUT[6:0]=0hとなる。
In the comparator 4, as shown in FIG.
4h of signal 10 is input to the [6: 0] input, and COMP
For the [6: 0] input, DATA_OUT [13:
7] (the number of consecutive collations) is input, and IN_FLG
As the input, the continuous collation flag H of FIG. 11 is input. Since COMP [6: 0] and IN [6: 0] match now, H is output from COMP of the matching circuit 13. Since COMP of the coincidence circuit 13 is H, the multi-bit AND circuit 14OUT [6: 0] = 0h.

【0059】また、一致回路13のCOMP=H、かつ
IN_FLG=Hなので、比較器4のOUT_FLG出
力からはLが出力される。よって図2の信号11は図1
1にも示しているように0hの値になり、その値がRA
M5のb[6:0]に書き込まれ、連続回数データは0
hとなり、かつ連続照合フラグには図2の信号12の値
が書き込まれる。このように連続回数データと連続照
合回数とが一致した場合は、連続照合フラグが変化し連
続回数データはクリアされる。
Further, since COMP = H and IN_FLG = H of the coincidence circuit 13, L is output from the OUT_FLG output of the comparator 4. Therefore, the signal 11 in FIG.
As shown in 1, the value becomes 0h, and that value is RA.
It is written in b [6: 0] of M5 and the continuous count data is 0.
h, and the and the continuous comparison flag value L of the signal 12 in FIG. 2 is written can write. In this way, when the consecutive count data and the consecutive collation count match, the consecutive collation flag changes and the consecutive count data is cleared.

【0060】以上に説明したように、図11を見ると、
入力信号に4回連続同じレベルが入力された場合に、出
力される連続照合フラグが入力信号レベルと同じレベル
に変化していることが分かる。また、入力信号の同じレ
ベル連続回数が3回以下の場合の場合は、連続照合フラ
グが変化しないことが分かる。
As described above, looking at FIG. 11,
It can be seen that when the same level is continuously input to the input signal four times, the continuous collation flag output changes to the same level as the input signal level. Further, it can be seen that the continuous collation flag does not change in the case where the number of consecutive same levels of the input signal is three or less.

【0061】図11において、☆印で示す部分は上述し
た動作を説明した部分であり、以下に各部の動作の要約
を示す。 時間の経過3列……入力信号が前回と同一レベルで、連
続回数データが加算される場合。 条件:連続照合フラ
グ=L、入力信号=H 時間の経過5列……入力信号が前回と異なるレベルで、
連続回数データがクリアされる場合。 条件:連続照合
フラグ=L、入力信号=L 時間の経過9列……連続回数データが連続照合回数と一
致し、連続照合フラグが次にHに変化する場合。 条
件:入力信号=H 時間の経過10列……入力信号が前回と同一レベルで、
連続回数データが加算される場合。 条件:連続照合フ
ラグ=H、入力信号=L 時間の経過13列……入力信号が前回と異なるレベル
で、連続回数データがクリアされる場合。 条件:連続
照合フラグ=H、入力信号=H 時間の経過17列……連続回数データが連続照合回数と
一致し、連続照合フラグが次にLに変化する場合。 条
件:入力信号=L
In FIG. 11, the part marked with a star is a part for explaining the above-mentioned operation, and the operation of each part is summarized below. Elapsed time 3 columns: When the input signal is at the same level as the previous time and continuous count data is added. Condition: Continuous collation flag = L, input signal = H elapsed time 5 columns .....
When continuous count data is cleared. Condition: continuous collation flag = L, input signal = L elapsed time 9 columns ... When the continuous count data matches the continuous collation count and the continuous collation flag changes to H next time. Condition: Input signal = H time has passed 10 columns ........ The input signal is at the same level as the previous time,
When continuous count data is added. Condition: Continuous collation flag = H, input signal = L Elapsed time 13 columns ... When the input signal is at a different level from the previous time and the continuous count data is cleared. Condition: continuous collation flag = H, input signal = H elapsed time 17 columns ... When the continuous count data matches the continuous collation count and the continuous collation flag changes to L next time. Condition: Input signal = L

【0062】尚、図2の照合回路設定回路8は、RAM
5の1つのアドレスごとに連続照合回数を決めている回
路であり、ADDRESSが入力されるとそのADDR
ESSに対応した連続照合回数をRAM5に入力する回
路である。
The matching circuit setting circuit 8 shown in FIG.
5 is a circuit that determines the number of consecutive collations for each address, and when ADDRESS is input, the ADDR
This is a circuit for inputting the number of consecutive collations corresponding to ESS to the RAM 5.

【0063】本実施の形態の説明では、連続照合回数が
4の場合を説明したが、図12のRAM5のビットマッ
ピングに示すように、連続照合回数と連続回路データが
それぞれ7ビットなので、連続照合回数は最大127
(=27 −1)回まで設定することができる。また、R
AM5のビットマッピングの構成を変えることにより、
連続照合回数と連続回数データの少ない方のビットをn
とした場合、連続照合回数は最大2n −1回まで設定す
ることができ、INの数を最大2n 回まで増やすことが
できる。
In the description of this embodiment, the case where the number of continuous collations is 4 has been described. However, as shown in the bit mapping of the RAM 5 in FIG. Up to 127 times
It can be set up to (= 2 7 -1) times. Also, R
By changing the configuration of bit mapping of AM5,
The bit with the smaller number of consecutive collation counts and consecutive count data is n
In this case, the number of continuous collations can be set up to 2 n -1 times, and the number of INs can be increased up to 2 n times.

【0064】次に、本発明の第2の実施の形態を説明す
る。本実施の形態は、図13に示すように連続照合デー
タ保持回路1内のRAM5として2ポートタイプのRA
Mを使用し、そのポートを連続照合回数カウント用に、
2ndポートをCPU21とCPUデータバスを介して
接続することにより、CPU21から自由に連続照合回
数等を設定できることを特徴とする。
Next, a second embodiment of the present invention will be described. In the present embodiment, as shown in FIG. 13, as the RAM 5 in the continuous collation data holding circuit 1, a 2-port type RA is used.
Use M, and use that port for continuous matching count
By connecting the second port to the CPU 21 via the CPU data bus, the CPU 21 can freely set the number of times of continuous collation and the like.

【0065】上記構成によれば、例えば、連続照合回数
をCPU21によりソフトで任意に変更することが可能
になる。本実施の形態による連続照合サンプリング回路
を使用したシステムにおいて、例えば、システム全体の
ノイズが増加した場合は、連続照合回数を多くし、ノイ
ズが低下している場合は、照合回数を少なくするなど、
各IN端子ごとにシステムの動作状況に最適な連続照合
回数に設定することができる。
According to the above configuration, for example, the number of continuous collations can be arbitrarily changed by the CPU 21 by software. In a system using the continuous collation sampling circuit according to the present embodiment, for example, when the noise of the entire system increases, the number of consecutive collations is increased, and when the noise is reduced, the number of collations is reduced.
It is possible to set the number of continuous collations that is most suitable for the operating condition of the system for each IN terminal.

【0066】また、システムの仕様変更などで連続照合
回数が変更になった場合でも、回路変更することなく対
応できるので、システムを設計する上での費用、設計期
間の短縮に効果がある。
Further, even if the number of times of continuous collation is changed due to the change of the system specifications, it can be dealt with without changing the circuit, which is effective in reducing the cost and the design period in designing the system.

【0067】また、連続照合回数だけでなく、連続照合
フラグや連続回数データもCPU21から任意の値を任
意のタイミングで設定することができる。このようにす
ることにより、連続照合フラグをリセットしたり、連続
回数データのスタート値を変更したりできる。
Further, not only the number of times of continuous matching but also the value of continuous matching flag and the number of times of continuous matching can be set by the CPU 21 at any timing. By doing so, the continuous collation flag can be reset and the start value of the continuous count data can be changed.

【0068】また、前記の公報では、入力伝送データ
のサンプリング値がn回連続して同一値をとるときのみ
出力レベルを遷移させているので、出力レベルが変化す
るときの連続回数は全ての伝送データがn回と固定して
いる。これに対して本発明においては、出力レベル(連
続照合フラグ)の連続回数は、図12のRAM5のビッ
トマッピングにより連続照合回数をアドレスごと(IN
端子ごと)に設定できる構成となっている。
Further, in the above publication, the output level is transitioned only when the sampling value of the input transmission data has the same value n times consecutively. Therefore, the number of consecutive times when the output level changes is the same for all transmissions. The data is fixed as n times. On the other hand, in the present invention, the number of consecutive output levels (continuous collation flag) is determined by the bit mapping of the RAM 5 in FIG.
Each terminal) can be set.

【0069】また、前記の公報では、基本的にCPU
によるソフトウェア制御により実現しており、本発明と
は基本構成が異なっている。特に、RAM5に所定の連
続照合回数と連続照合回数と連続照合フラグとをアドレ
スごとに記憶する構成はない。
In the above publication, the CPU is basically used.
It is realized by software control according to, and has a basic configuration different from that of the present invention. In particular, there is no configuration in which the RAM 5 stores the predetermined number of consecutive collations, the number of consecutive collations, and the consecutive collation flag for each address.

【0070】尚、上記第1、第2の実施の形態をコンピ
ュータシステムで構成する場合、このコンピュータシス
テムで用いるROM等のメモリは本発明による記憶媒体
を構成することになる。この記憶媒体には、各実施の形
態で説明した動作を行うための手順を実行するプログラ
ムが記憶される。
When the first and second embodiments are constructed by a computer system, a memory such as a ROM used in this computer system constitutes a storage medium according to the present invention. This storage medium stores a program that executes the procedure for performing the operation described in each embodiment.

【0071】このような記憶媒体としては、半導体記憶
装置、光ディスク、光磁気ディスク、磁気記録媒体等が
用いられる。
As such a storage medium, a semiconductor storage device, an optical disk, a magneto-optical disk, a magnetic recording medium or the like is used.

【0072】[0072]

【発明の効果】以上説明したように、本発明によれば、
RAMの一つのアドレスに一つの入力信号が割り当てら
れるので、同じ回路構成でRAMのアドレスと同じ数の
入力信号について連続照合サンプリングを行うことがで
きる。
As described above, according to the present invention,
Since one input signal is assigned to one address of the RAM, continuous verification sampling can be performed for the same number of input signals as the addresses of the RAM with the same circuit configuration.

【0073】また、RAMのアドレスはアドレスビット
をnとすると、2n 増加するので、回路をさほど大きく
することなく、連続照合サンプリングできる入力信号数
を指数関数的に増加させることができる。
Since the address of the RAM increases by 2 n when the address bit is n, the number of input signals that can be continuously collated and sampled can be exponentially increased without increasing the size of the circuit.

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

【図1】本発明の第1の実施の形態による連続照合サン
プリング回路を示すブロック図である。
FIG. 1 is a block diagram showing a continuous matching sampling circuit according to a first embodiment of the present invention.

【図2】連続照合データ保持回路の構成を示すブロック
図である。
FIG. 2 is a block diagram showing a configuration of a continuous collation data holding circuit.

【図3】アダーの真理値表を示す構成図である。FIG. 3 is a configuration diagram showing a truth table of an adder.

【図4】比較器の構成を示すブロック図である。FIG. 4 is a block diagram showing a configuration of a comparator.

【図5】一致回路の真理値表を示す構成図である。FIG. 5 is a configuration diagram showing a truth table of a matching circuit.

【図6】多ビットAND回路の構成図である。FIG. 6 is a configuration diagram of a multi-bit AND circuit.

【図7】カウンタの構成を示すブロック図である。FIG. 7 is a block diagram showing a configuration of a counter.

【図8】カウンタの動作を示すタイミングチャートであ
る。
FIG. 8 is a timing chart showing the operation of the counter.

【図9】1msサンプリングの場合の全体の波形図であ
る。
FIG. 9 is an overall waveform diagram in the case of 1 ms sampling.

【図10】1アドレス分のRAMの動作を示すタイミン
グチャートである。
FIG. 10 is a timing chart showing the operation of the RAM for one address.

【図11】図2の各信号と図5のCOMP出力のレベル
変化を示すタイミングチャートである。
11 is a timing chart showing level changes of each signal of FIG. 2 and the COMP output of FIG.

【図12】RAMのビットマッピングを示す構成図であ
る。
FIG. 12 is a configuration diagram showing a bit mapping of a RAM.

【図13】本発明の第2の実施の形態による連続照合サ
ンプリング回路を示すブロック図である。
FIG. 13 is a block diagram showing a continuous matching sampling circuit according to a second embodiment of the present invention.

【図14】従来の連続照合サンプリング回路を示すブロ
ック図である。
FIG. 14 is a block diagram showing a conventional continuous matching sampling circuit.

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

1 連続照合データ保持回路 2 EXOR回路 3 アダー 4 比較器 5 RAM 6 セレクタ 7 カウンタ 8 照合回数設定回路 9、10、11、12 信号 13 一致回路 14 多ビットAND回路 15 EXOR回路 18 トグルFF 19 OR回路 20 6ビットアップカウンタ 21 CPU 1 Continuous collation data holding circuit 2 EXOR circuit 3 adders 4 comparator 5 RAM 6 selector 7 counter 8 Collation count setting circuit 9, 10, 11, 12 signals 13 Matching circuit 14 Multi-bit AND circuit 15 EXOR circuit 18 Toggle FF 19 OR circuit 20 6-bit up counter 21 CPU

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04L 25/08 G06F 11/34 H03M 1/12 Front page continuation (58) Fields surveyed (Int.Cl. 7 , DB name) H04L 25/08 G06F 11/34 H03M 1/12

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数の入力信号と対応するアドレスに、
所定の連続照合回数と、連続して何回同じ信号レベルが
続いたかを示す連続回数と、この連続回数と前記所定の
連続照合回数とが一致したとき変化するフラグとを保持
する記憶手段と、 前記アドレスを指定して前記記憶手段の読み出し書き込
みを制御する制御手段と、 前記複数の入力信号から前記指定されたアドレスと対応
する一つの入力信号を選択する選択手段と、 前記選択された入力信号と前記記憶手段の対応するフラ
グとの排他的論理和をとる論理手段と、 前記排他的論理和の結果に応じて前記記憶手段の対応す
る連続回数を更新する更新手段と、比較手段とを備え、 前記比較手段は、 前記更新された連続回数と前記所定の連続照合回数とを
比較して一致した場合にはHを出力し、一致していない
場合にはLを出力する一致回路と、 前記一致回路からの出力と前記記憶手段の対応するフラ
グとの排他的論理和をとる比較手段内EXOR回路とを
備え、 前記連続回数と前記所定の連続照合回数とが一致した場
合に、前記フラグを変化させると共に前記連続回数をク
リアする ことを特徴とする連続照合サンプリング回路。
1. An address corresponding to a plurality of input signals,
Storage means for holding a predetermined number of consecutive collations, a number of consecutive times indicating how many times the same signal level has continued, and a flag that changes when the number of consecutive times and the predetermined number of consecutive collations match, Control means for designating the address to control reading / writing of the storage means; selection means for selecting one input signal corresponding to the designated address from the plurality of input signals; and the selected input signal And a corresponding flag of the storage means, a logical means for obtaining an exclusive OR of the storage means, an updating means for updating the corresponding continuous number of the storage means according to the result of the exclusive OR, and a comparing means. , The comparing means compares the updated number of consecutive times and the predetermined number of consecutive collations.
If they are compared and match, H is output and they do not match
In this case, a matching circuit that outputs L, an output from the matching circuit, and a corresponding flag of the storage means.
And an EXOR circuit in the comparison means that takes an exclusive OR with
When the number of consecutive times and the predetermined number of consecutive matching times match,
In this case, change the flag and click the
Sequential matching sampling circuit characterized by rear .
【請求項2】 前記所定の連続照合回数を設定する設定
手段を設けたことを特徴とする請求項1記載の連続照合
サンプリング回路。
2. The continuous collation sampling circuit according to claim 1, further comprising setting means for setting the predetermined number of consecutive collations.
【請求項3】 前記連続回数を設定する設定手段を設け
たことを特徴とする請求項1記載の連続照合サンプリン
グ回路。
3. The continuous collation sampling circuit according to claim 1, further comprising setting means for setting the number of continuous times.
【請求項4】 前記フラグを設定する設定手段を設けた
ことを特徴とする請求項1記載の連続照合サンプリング
回路。
4. The continuous matching sampling circuit according to claim 1, further comprising setting means for setting the flag.
【請求項5】 前記更新手段は、前記排他的論理和の結
果が変化したとき前記連続回数に1を加算することを特
徴とする請求項1記載の連続照合サンプリング回路。
5. The continuous collation sampling circuit according to claim 1, wherein the updating means adds 1 to the continuous number when the result of the exclusive OR changes.
JP16758499A 1999-06-15 1999-06-15 Continuous matching sampling circuit Expired - Fee Related JP3450227B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16758499A JP3450227B2 (en) 1999-06-15 1999-06-15 Continuous matching sampling circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16758499A JP3450227B2 (en) 1999-06-15 1999-06-15 Continuous matching sampling circuit

Publications (2)

Publication Number Publication Date
JP2000358076A JP2000358076A (en) 2000-12-26
JP3450227B2 true JP3450227B2 (en) 2003-09-22

Family

ID=15852473

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16758499A Expired - Fee Related JP3450227B2 (en) 1999-06-15 1999-06-15 Continuous matching sampling circuit

Country Status (1)

Country Link
JP (1) JP3450227B2 (en)

Also Published As

Publication number Publication date
JP2000358076A (en) 2000-12-26

Similar Documents

Publication Publication Date Title
US7925808B2 (en) Memory system and device with serialized data transfer
CA1080366A (en) First in - first out memory array containing special bits for replacement addressing
US7171528B2 (en) Method and apparatus for generating a write mask key
JP3186359B2 (en) Physical address translation circuit
JPH02234242A (en) Partial write control system
JP3450227B2 (en) Continuous matching sampling circuit
US5355113A (en) Serialized difference flag circuit
EP0057096A2 (en) Information processing unit
US6681314B1 (en) FIFO memory device suitable for data transfer apparatuses with different data bus widths and method for controlling the same
JP3350005B2 (en) Counter reading control device and control method thereof
US5708842A (en) Apparatus for changing coefficients utilized to perform a convolution operation having address generator which uses initial count number and up/down count inputs received from external
JP2820016B2 (en) Electronic circuit
JPH04350731A (en) Development backup system
US5937403A (en) Integer permutation method and integer permutation system
JPH09305444A (en) Coverage memory
SU1008738A1 (en) Random number generator
JP3514771B2 (en) Data transfer method
SU942141A2 (en) Storage device
SU1095191A1 (en) Device for analyzing distribution of random process
JP3335821B2 (en) Area designation circuit
SU746488A1 (en) Interface
JPS63129436A (en) Processor integrated circuit
JPS5815808B2 (en) Digital Bibun Kaisekiki
JPH0562500A (en) Eeprom circuit with self-diagnostic function
JPH04243086A (en) Storage device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030624

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

Free format text: PAYMENT UNTIL: 20070711

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080711

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090711

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees