JPH06149310A - Digital input device - Google Patents

Digital input device

Info

Publication number
JPH06149310A
JPH06149310A JP30147492A JP30147492A JPH06149310A JP H06149310 A JPH06149310 A JP H06149310A JP 30147492 A JP30147492 A JP 30147492A JP 30147492 A JP30147492 A JP 30147492A JP H06149310 A JPH06149310 A JP H06149310A
Authority
JP
Japan
Prior art keywords
input signal
signal
digital input
state
change
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP30147492A
Other languages
Japanese (ja)
Inventor
Toshikatsu Watabe
利克 渡部
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP30147492A priority Critical patent/JPH06149310A/en
Publication of JPH06149310A publication Critical patent/JPH06149310A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To improve the over all throughput of a digital input device by setting the detecting functions independently of the bit unit of an input signal for the state changes of the input signal into a low level from a high level and vice versa and for the no change of the input signal. CONSTITUTION:The state changes of the external digital input signals D10-31 are detected to carry out the prescribed logical decision after a signal C7 of a logical cyclic scan counter 1 is set at a high level. Thus the change is decided for the checked external digital input signal. Then the counter 1 produces a write signal through a WE pin and updates the state of the corresponding external digital input signal DIn of a state holding memory 3. In such a way, the signals D10-31 are successively scanned and the old data stored in the memory 3 are compared with the present data. The result of this comparison is sent to a CPU. These operations are repeated so that the state change of the input signal is carried out at a high speed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えばメカトロニク
ス、FAまたは物流等における物の動きや移動検知、位
置制御、個数計測等を行ってシーケンス制御を行うため
に入力信号の状態変化を検出するディジタル入力装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital device for detecting a state change of an input signal in order to perform sequence control by detecting movement and movement of an object in mechatronics, FA or physical distribution, position control, number measurement and the like. Regarding the input device.

【0002】[0002]

【従来の技術】上述した物の動きや移動はセンサ等によ
って検知され、この検知信号を接点のオン/オフ信号や
電気信号のレベル信号等として外部の制御用計算機やシ
ーケンスコントローラ等に供給する。そして、制御用計
算機やシーケンスコントローラにおいて外部信号変化を
感知し、シーケンス制御を行っている。
2. Description of the Related Art The movement or movement of the above-mentioned object is detected by a sensor or the like, and this detection signal is supplied as an on / off signal of a contact or a level signal of an electric signal to an external control computer, a sequence controller or the like. Then, a control computer or a sequence controller senses a change in an external signal to perform sequence control.

【0003】従来、信号の変化検出は、外部信号をディ
ジタル入力信号として任意に入力し、一定時間経過後に
再度入力し、前回と今回の入力信号の状態の相違をプロ
グラムでビット処理するというソフトによって行ってい
る。
Conventionally, signal change detection is performed by software in which an external signal is arbitrarily input as a digital input signal, is input again after a lapse of a certain time, and bit differences are processed by a program for the difference between the states of the previous input signal and the current input signal. Is going.

【0004】また、ハード的に行う方法としては、図2
(a)に示すように、外部信号Dn,Dn+1 ,Dn+2
・・をシフトレジスタ51,52,53・・・で遅延さ
せた後に排他的論理和回路61,62,63・・・に供
給して、図2(b)に示すように変化エッジを検出する
方法がある。
As a hardware method, FIG.
As shown in (a), the external signals D n , D n + 1 , D n + 2.
.. are delayed by the shift registers 51, 52, 53, ... And then supplied to the exclusive OR circuits 61, 62, 63 .., and the changing edges are detected as shown in FIG. 2B. There is a way.

【0005】[0005]

【発明が解決しようとする課題】上述した従来の方法に
おいて、ソフト的に検出する方法では、物が高速に流れ
るようなラインの産業分野においては制御用計算機やシ
ーケンスコントローラのソフト処理がラインの変化速度
に追従できないために使用することができないという問
題がある。これは一般のCPUがビット処理を苦手とし
ており、外部入力点数が多い場合に変化検出に多大の時
間を費やすことに原因がある。
In the conventional method described above, in the soft detection method, in the industrial field of a line in which an object flows at high speed, the soft processing of the control computer or the sequence controller causes the line change. There is a problem that it cannot be used because it cannot follow the speed. This is because a general CPU is not good at bit processing and spends a great deal of time on change detection when the number of external input points is large.

【0006】また、図2に示したようにハード的に行う
方法は、排他的論理和回路によって外部入力信号の状態
変化点を検出し、この変化エッジをCPUに割り込み等
で知らせるものであるが、複数のビットが同時に変化す
る場合を想定して、CPUへの割り込み優先判定回路を
設けることが必要となる。
Further, as shown in FIG. 2, the hardware method is to detect the state change point of the external input signal by the exclusive OR circuit and notify the CPU of the change edge by an interrupt or the like. Assuming that a plurality of bits change simultaneously, it is necessary to provide an interrupt priority determination circuit for the CPU.

【0007】更に、システムが大きくなり、外部入力点
数が増加すると、希望する検出エッジが各ビット毎にば
らばらとなり、統一できなくなる。すなわち、入力信号
のオフからオン、オンからオフ、オン/オフの両方、変
化エッジ検出無しの4項目をビット単位独立に割り振る
ことが困難となり、結果的にこの判定をCPUのソフト
処理に委ねることになり、CPUの処理能力を逼迫し、
装置全体の処理機能を低下させるという問題がある。
Further, as the system becomes larger and the number of external input points increases, the desired detection edge becomes different for each bit and it becomes impossible to unify. That is, it is difficult to independently assign the four items of the input signal from off to on, from on to off, both on / off, and without change edge detection, and as a result, this determination is left to the CPU software processing. And the CPU's processing capacity is tightened,
There is a problem that the processing function of the entire device is degraded.

【0008】本発明は、上記に鑑みてなされたもので、
その目的とするところは、入力信号の変化を検出し、ビ
ットの割り出し、変化エッジの判定、CPUへの伝達を
確実かつ柔軟に行い得るディジタル入力装置を提供する
ことにある。
The present invention has been made in view of the above,
It is an object of the present invention to provide a digital input device capable of surely and flexibly detecting a change in an input signal, determining a bit, determining a change edge, and transmitting to a CPU.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するた
め、本発明のディジタル入力装置は、入力信号の状態変
化を検出するディジタル入力装置であって、入力信号の
高レベルから低レベルへの状態変化検出機能、入力信号
の低レベルから高レベルへの状態変化検出機能、入力信
号の低レベルと高レベルのいずれかへの状態変化検出機
能、入力信号の無変化検出機能を入力信号のビット単位
独立に設定するように構成された論理型巡回走査カウン
タ、セレクタ、状態保持メモリを有することを要旨とす
る。
In order to achieve the above object, a digital input device of the present invention is a digital input device for detecting a change in the state of an input signal, the state of the input signal from a high level to a low level. Change detection function, state change detection function from low level to high level of input signal, state change detection function of input signal to low level or high level, no change detection function of input signal bit unit of input signal It is a gist to have a logical cyclic scan counter, a selector, and a state holding memory configured to be set independently.

【0010】[0010]

【作用】本発明のディジタル入力装置では、入力信号の
高レベルから低レベルへの状態変化検出機能、入力信号
の低レベルから高レベルへの状態変化検出機能、入力信
号の低レベルと高レベルのいずれかへの状態変化検出機
能、入力信号の無変化検出機能を入力信号のビット単位
独立に設定することができる。
In the digital input device of the present invention, the function of detecting the change of the input signal from the high level to the low level, the function of detecting the change of the input signal from the low level to the high level, and the function of detecting the low and high levels of the input signal The state change detection function and the input signal non-change detection function can be set independently for each bit of the input signal.

【0011】[0011]

【実施例】以下、図面を用いて本発明の実施例を説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0012】図1は、本発明の一実施例に係わるディジ
タル入力装置の回路構成を示すブロック図である。同図
に示すディジタル入力装置は、論理型巡回走査カウンタ
1、状態保持メモリ3、検出方式選択メモリ4、割込み
出力部5、セレクタ7、データバッファ9およびアンド
回路11から構成される32ビット型ディジタル入力装
置である。また、該ディジタル入力装置には、図示しな
いCPUからデータ信号XD0 〜15、アドレス信号XA
0,1 、リセット信号RST、クロック信号CLK、割り
込み応答信号ACK、コードリード信号CDRD,DI
リード信号DTRDが供給されるとともに、CPUに対
して割り込み出力信号IRPを供給するようになってい
る。また、同図に示すディジタル入力装置には32ビッ
トの外部ディジタル入力信号DI0 〜31が供給されてい
る。
FIG. 1 is a block diagram showing a circuit configuration of a digital input device according to an embodiment of the present invention. The digital input device shown in FIG. 1 is a 32-bit digital type composed of a logical cyclic scan counter 1, a state holding memory 3, a detection method selection memory 4, an interrupt output section 5, a selector 7, a data buffer 9 and an AND circuit 11. It is an input device. Further, the digital input device is provided with a data signal XD0 to 15 and an address signal XA from a CPU (not shown).
0, 1, reset signal RST, clock signal CLK, interrupt response signal ACK, code read signals CDRD, DI
The read signal DTRD is supplied and the interrupt output signal IRP is supplied to the CPU. The digital input device shown in the figure is supplied with 32-bit external digital input signals DI0-31.

【0013】論理型巡回走査カウンタ1は、CPUから
供給されるリセット信号RSTによってすべて低レベル
にリセットされるカウンタC出力信号C0 〜7 の8ビッ
トからなるカウンタであり、入力としてFUL,OD
I,R0 〜R3 ,D0 〜D3 ,RST,CLKを有し、
出力としてNDI,WE,C0 〜C7 を有し、次に示す
論理式で構成されるステートマインを構成している。
The logic type cyclic scanning counter 1 is a counter composed of 8 bits of counter C output signals C0 to C7 which are all reset to a low level by a reset signal RST supplied from the CPU, and inputs FUL and OD.
I, R0 to R3, D0 to D3, RST, CLK,
It has NDI, WE, and C0 to C7 as outputs and constitutes a state mine composed of the following logical expressions.

【0014】[0014]

【数1】 [Equation 1]

【0015】[0015]

【数2】 [Equation 2]

【0016】[0016]

【数3】 [Equation 3]

【0017】また、検出方式選択メモリ4は、次の表1
および2に示す真理値表1および2で示すように動作
し、セレクタ7は、次の表3で示す真理値表3で示す動
作を行う。更に、次に示す表4は論理型巡回走査カウン
タ1によって実行される関係部分の動作を示している。
The detection method selection memory 4 is shown in Table 1 below.
The truth value tables 1 and 2 shown in Tables 1 and 2 operate, and the selector 7 performs the operation shown in truth table 3 shown in Table 3 below. Further, Table 4 shown below shows the operation of the relevant part executed by the logical cyclic scanning counter 1.

【0018】[0018]

【表1】 [Table 1]

【0019】[0019]

【表2】 [Table 2]

【0020】[0020]

【表3】 [Table 3]

【0021】[0021]

【表4】 [Table 4]

【0022】図1において、論理型巡回走査カウンタ1
は、リセット信号RSTによってリセットされ、リセッ
ト信号RSTが解除された後、クロック信号CLKによ
ってカウント動作を行いながら、表4に示すように状態
保持メモリ3へ初期値データを書き込み、状態保持メモ
リ3を初期化する。
In FIG. 1, a logical cyclic scanning counter 1
Is reset by the reset signal RST, and after the reset signal RST is released, the initial value data is written in the state holding memory 3 as shown in Table 4 while performing the counting operation by the clock signal CLK, initialize.

【0023】このデータはその時点での外部ディジタル
入力信号DI0 〜31である。状態保持メモリ3への書き
込みのために論理型巡回走査カウンタ1のNDIピンか
らはD0 〜3 信号のいずれかを選択して出力する。これ
は論理型巡回走査カウンタ1の内部においてC2 〜3 信
号で選択される。D0 〜3 信号はC4 〜6 信号とセレク
タ7によって選択済みの外部ディジタル入力信号DI0
〜31の中の4点であり、真理値表3によって選ばれるも
のが提示されている。また、C2 〜6 は状態保持メモリ
3のアドレス信号として使用され、外部ディジタル入力
信号DI0 〜31の状態を格納するアドレスを指定してい
る。更に、論理型巡回走査カウンタ1のWEピンからは
ライト信号が出力され、状態保持メモリ3への書き込み
動作が実行される。なお、WEピンは割込み出力部5へ
も接続しているが、この時点でC7 信号がまだ低レベル
であり、これが割込み出力部5のリセット信号になって
いるため、割込み出力部5に対しては何等影響を与える
ことはない。
This data is the external digital input signals DI0 to 31 at that time. Any one of the D0 to 3 signals is selected and output from the NDI pin of the logic type cyclic scanning counter 1 for writing to the state holding memory 3. This is selected by the C2 to 3 signals inside the logic type cyclic scanning counter 1. The D0 to 3 signals are the C4 to 6 signals and the external digital input signal DI0 selected by the selector 7.
4 points out of 31 and the ones selected by the truth table 3 are presented. Further, C2 to 6 are used as address signals of the state holding memory 3 and specify addresses for storing the states of the external digital input signals DI0 to 31. Further, a write signal is output from the WE pin of the logical cyclic scan counter 1 and the write operation to the state holding memory 3 is executed. Although the WE pin is also connected to the interrupt output unit 5, the C7 signal is still at a low level at this point and this is the reset signal for the interrupt output unit 5, so Has no effect.

【0024】このようにして状態保持メモリ3の初期化
が終了すると、状態保持メモリ3は32ビットのデータ
で満たされ、以降ここに格納されたデータがオールド外
部ディジタル入力信号DIn として扱われる。
When the initialization of the state-holding memory 3 is completed in this manner, the state-holding memory 3 is filled with 32-bit data, and the data stored here is treated as the old external digital input signal DI n .

【0025】状態保持メモリ3の初期化が終了すると、
論理型巡回走査カウンタ1のC7 信号は高レベルとな
り、以降この信号はリセットされない限り、低レベルに
はならない。
When the initialization of the state holding memory 3 is completed,
The C7 signal of the logical cyclic scanning counter 1 becomes high level, and thereafter, this signal does not become low level unless it is reset.

【0026】次に、論理型巡回走査カウンタ1のC7 信
号が高レベルになった後、外部ディジタル入力信号DI
0 〜31の状態変化検出が実施されて、表4に示すように
C1,C0 =L,Lの時に(NDIn &/ODIn &+
n )の論理判定を行うとともに、同様にC1 ,C0 =
L,Hの時点で(/NDIn &DIn &−En )の判定
を行う。
Next, after the C7 signal of the logic type cyclic scanning counter 1 becomes high level, the external digital input signal DI
When the state change detection of 0 to 31 is performed and C1, C0 = L, L as shown in Table 4, (NDI n & / ODI n & +
E n ) is logically determined, and C1 and C0 =
At the time of L and H, the determination of (/ NDI n & DI n & −E n ) is performed.

【0027】ここで、NDIn はD0 〜3 ピンから入力
する現在の新たな外部ディジタル入力信号DIn (ニュ
ーDIn )であり、ODIn はODIn ピンから入力す
る過去の外部ディジタル入力信号DIn (オールドDI
n )を表している。En はR0 〜3 ピンから入力する検
出エッジ指定条件である。
Here, NDI n is the current new external digital input signal DI n (new DI n ) input from the D0 to 3 pins, and ODI n is the past external digital input signal DI input from the ODI n pin. n (old DI
n ). E n is the detected edge designated condition input from R0 to 3 pins.

【0028】上述した(NDIn &/ODIn &+
n )=1または(/NDIn &DIn&−En )=1
の論理式が成立すると、チェックした外部ディジタル入
力信号に変化があったと判定され、論理型巡回走査カウ
ンタ1はWEピンからライト信号を発行し、状態保持メ
モリ3の該当する外部ディジタル入力信号DIn の状態
を更新する。この該当アドレスは上述したようにC2 〜
C6 信号で指定される。
The above-mentioned (NDI n & / ODI n & +
E n ) = 1 or (/ NDI n & DI n & -E n ) = 1
If it is determined that the checked external digital input signal has changed, the logical cyclic scanning counter 1 issues a write signal from the WE pin, and the corresponding external digital input signal DI n of the state holding memory 3 is output. Update the status of. This corresponding address is C2 ...
Specified by C6 signal.

【0029】更に、この時点においてライト信号は割込
み出力部5へC6 〜2 信号の状態を書き込む。割込み出
力部5は6+1ビットからなるレジスタであり、書き込
まれるC6 〜2 が変化ビットのコード情報を表してい
る。例えば、C6 〜2 =L,L,L,Lの場合には、D
I0 に変化があったと判定される。同様に、C6 〜2 =
H,L,H,Hの場合には、DI11信号に変化があった
ことになる。割込み出力部5への書き込み直後、割込み
出力部5からは割り込み出力信号IRPが発行され、こ
の信号がCPUの割り込み入力として伝達される。
Further, at this time, the write signal writes the state of the C6-2 signal to the interrupt output unit 5. The interrupt output unit 5 is a register composed of 6 + 1 bits, and the written C6 to 2 represent code information of change bits. For example, in the case of C6-2 = L, L, L, L, D
It is determined that I0 has changed. Similarly, C6-2 =
In the case of H, L, H, H, it means that the DI11 signal has changed. Immediately after writing to the interrupt output unit 5, the interrupt output unit 5 issues an interrupt output signal IRP, and this signal is transmitted as an interrupt input of the CPU.

【0030】割り込み出力信号IRPの発行後、論理型
巡回走査カウンタ1はこの割り込み出力信号IRPをF
ULピンに入力し、カウンタ動作を停止する。この割り
込み入力に応答してCPUが割込み出力部5の出力であ
るコード情報を読み取り後、割り込み応答信号ACKを
出力すると、割り込み出力信号IRPはリセットされ、
以後論理型巡回走査カウンタ1のカウンタ動作が再開す
る。
After issuing the interrupt output signal IRP, the logical cyclic scanning counter 1 outputs the interrupt output signal IRP to F
Input to the UL pin to stop the counter operation. When the CPU reads the code information output from the interrupt output unit 5 in response to the interrupt input and then outputs the interrupt response signal ACK, the interrupt output signal IRP is reset,
After that, the counter operation of the logical cyclic scanning counter 1 is restarted.

【0031】なお、割込み出力部5をFIFOのような
多段のレジスタ構成とした場合には、レジスタのデータ
書き込みがフル(満杯)になるまでカウンタ動作を停止
しない。この場合、開示されていないが、割込み出力部
5からのバッファフル信号がFULピンに入力される。
When the interrupt output unit 5 has a multi-stage register structure such as a FIFO, the counter operation is not stopped until the data writing in the register becomes full. In this case, although not disclosed, the buffer full signal from the interrupt output unit 5 is input to the FUL pin.

【0032】また、上述した論理式が(NDIn &/O
DIn &+En )=0または(/NDIn &DIn &−
n )=0で不成立の場合には、論理型巡回走査カウン
タ1はWEピンからライト信号を発行せず、状態保持メ
モリ3と割込み出力部5の書き込み動作をスキップ(飛
び越す)する。
Further, the above logical expression is (NDI n & / O
DI n & + E n ) = 0 or (/ NDI n & DI n & −
If E n ) = 0 is not satisfied, the logical cyclic scanning counter 1 does not issue a write signal from the WE pin, and skips (jumps) the write operation of the state holding memory 3 and the interrupt output unit 5.

【0033】次に、検出方式選択メモリ4はCPUによ
り真理値表1に示すフォーマットで、エッジ選択データ
が書き込まれる。ここで、+E23〜+E0 と−E23〜−
E0の番号は外部ディジタル入力信号DI31〜0 に対応
している。そして、+E23〜+E0 のデータが「1」で
あれば、「+エッジ検出」を許可し、同様に−E23〜−
E0 が「1」であれば、「−エッジ検出」を許可する
が、「0」であれば、変化エッジの検出は実施しない。
また、論理型巡回走査カウンタ1がこの検出方式選択メ
モリ4を読み出す際のエッジ選択データの出力順序は真
理値表2によって示される。
Next, edge detection data is written in the detection method selection memory 4 by the CPU in the format shown in the truth table 1. Here, + E23- + E0 and -E23--
The number E0 corresponds to the external digital input signals DI31-0. If the data of + E23 to + E0 is "1", "+ edge detection" is permitted, and similarly -E23 to -E.
If E0 is "1", "-edge detection" is permitted, but if it is "0", the changing edge is not detected.
The truth table 2 shows the output order of the edge selection data when the logical cyclic scan counter 1 reads the detection method selection memory 4.

【0034】例えば、+E0 ,+E1 ,+E2 ,+E3
=1,0,1,0で、−E0 ,−E1 ,−E2 ,−E3
=0,1,1,0であれば、外部ディジタル入力信号D
I0が+エッジ検出、外部ディジタル入力信号DI1 が
−エッジ検出、外部ディジタル入力信号DI2 が±エッ
ジ検出、外部ディジタル入力信号DI3 がエッジ検出無
しとなる。従って、外部ディジタル入力信号DI0 〜31
のビット単位独立に検出方式が指定できることになる。
For example, + E0, + E1, + E2, + E3
= 1,0,1,0, -E0, -E1, -E2, -E3
= 0,1,1,0, external digital input signal D
I0 is + edge detection, external digital input signal DI1 is −edge detection, external digital input signal DI2 is ± edge detection, and external digital input signal DI3 is no edge detection. Therefore, the external digital input signals DI0 to 31
The detection method can be specified independently for each bit unit.

【0035】論理型巡回走査カウンタ1が単なるカウン
タと異なる点は、論理機能を有する巡回走査カウンタで
あること、更に条件判定の結果によりスキップ(飛び越
す)する機能、およびループするホールト機能を有する
シーケンサであることである。条件判定とは、表4に示
すように外部ディジタル入力信号DI0 〜31が各々にお
いて実施される番号1,2の部分である。
The logical type cyclic scan counter 1 is different from a simple counter in that it is a cyclic scan counter having a logical function, and a sequencer having a function of skipping (jumping) depending on the result of the condition judgment and a halt function of looping. There is. The condition judgment is a part of the numbers 1 and 2 in which the external digital input signals DI0 to 31 are respectively executed as shown in Table 4.

【0036】スキップ先は番号1→番号3、番号2→次
に番号1(n+1の部分の番号1)、最後の番号3(n
=31)→最初の番号1(n=0)であり、ループは各
々番号3で実施する。スキップとループは条件が成立/
不成立の結果によって実行され、これらの動作と上述し
た機能が論理型巡回走査カウンタ1によって実行され
る。
The skip destination is number 1 → number 3, number 2 → number 1 (number 1 in the n + 1 portion), and last number 3 (n
= 31) → the first number 1 (n = 0), and the loop is executed with the number 3 respectively. Conditions are satisfied for skip and loop /
These operations and the functions described above are executed by the logical cyclic scan counter 1 according to the result of failure.

【0037】上述したように、本ディジタル入力装置は
外部ディジタル入力信号DI0 〜31までを順次走査し、
状態保持メモリ3に格納された旧データと現在のデータ
を比較し、その判定を実施してCPUに伝達し、これを
繰り返し行う。なお、データバッファ9は変化検出とは
無関係にCPUに自由に外部ディジタル入力信号DI0
〜31をリードするI/Oポート用のバッファである。ま
た、C6 信号を無視し非接続とすれば、本装置は16ビ
ットのディジタル入力装置となり、同様にC6とC5 を
非接続とすれば、8ビットのディジタル入力装置として
使用可能である。
As described above, the present digital input device sequentially scans the external digital input signals DI0 to DI31,
The old data and the current data stored in the state-holding memory 3 are compared, the judgment is made and the result is transmitted to the CPU, and this is repeated. The data buffer 9 is free to the external digital input signal DI0 to the CPU regardless of the change detection.
It is a buffer for I / O port that reads ~ 31. If the C6 signal is ignored and the signal is disconnected, the device becomes a 16-bit digital input device. Similarly, if C6 and C5 are disconnected, the device can be used as an 8-bit digital input device.

【0038】[0038]

【発明の効果】以上説明したように、本発明によれば、
外部入力信号の走査、変化判定、CPUへの伝達を実施
し、CPUは割り込み処理ルーチンにおいてセレクタ7
のコード情報を読むだけで、変化したビットを知ること
ができ、ソフト処理に多大の時間を費やす必要がなくな
り、機器全体のスループットを向上することができる。
おた、変化判定は高速に実施されるので、物が高速に流
れるようなラインと、メカトロニクスやFA等の高速シ
ーケンス制御に追従できる。また、検出方式選択メモリ
のデータを書き換えるだけで、ビット単位独立に検出方
式を設定できるので、大型システムに適用可能であり、
変更や改造に柔軟に対応できる。
As described above, according to the present invention,
The external input signal is scanned, the change is determined, and it is transmitted to the CPU. The CPU executes the selector 7 in the interrupt processing routine.
It is possible to know the changed bit only by reading the code information of, and it is not necessary to spend a lot of time for software processing, and the throughput of the entire device can be improved.
Further, since the change determination is performed at high speed, it is possible to follow a line in which an object flows at high speed and high-speed sequence control such as mechatronics or FA. In addition, the detection method can be set independently for each bit simply by rewriting the data in the detection method selection memory, which is applicable to large systems.
Can flexibly respond to changes and modifications.

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

【図1】本発明の一実施例に係わるディジタル入力装置
の回路構成を示すブロック図である。
FIG. 1 is a block diagram showing a circuit configuration of a digital input device according to an embodiment of the present invention.

【図2】従来のディジタル入力装置に使用される回路の
一部および動作波形を示す図である。
FIG. 2 is a diagram showing a part of a circuit used in a conventional digital input device and an operation waveform.

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

1 論理型巡回走査カウンタ 3 状態保持メモリ 4 検出方式選択メモリ 5 割込み出力部 7 セレクタ 9 データバッファ 1 logic type cyclic scanning counter 3 state holding memory 4 detection method selection memory 5 interrupt output section 7 selector 9 data buffer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入力信号の状態変化を検出するディジタ
ル入力装置であって、入力信号の高レベルから低レベル
への状態変化検出機能、入力信号の低レベルから高レベ
ルへの状態変化検出機能、入力信号の低レベルと高レベ
ルのいずれかへの状態変化検出機能、入力信号の無変化
検出機能を入力信号のビット単位独立に設定するように
構成された論理型巡回走査カウンタ、セレクタ、状態保
持メモリを有することを特徴とするディジタル入力装
置。
1. A digital input device for detecting a state change of an input signal, the function of detecting a state change of an input signal from a high level to a low level, the function of detecting a state change of an input signal from a low level to a high level, Logic type cyclic scan counter, selector, and state holding function configured to set the state change detection function to the low level and the high level of the input signal and the no-change detection function of the input signal independently for each bit of the input signal A digital input device having a memory.
JP30147492A 1992-11-12 1992-11-12 Digital input device Pending JPH06149310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30147492A JPH06149310A (en) 1992-11-12 1992-11-12 Digital input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30147492A JPH06149310A (en) 1992-11-12 1992-11-12 Digital input device

Publications (1)

Publication Number Publication Date
JPH06149310A true JPH06149310A (en) 1994-05-27

Family

ID=17897337

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30147492A Pending JPH06149310A (en) 1992-11-12 1992-11-12 Digital input device

Country Status (1)

Country Link
JP (1) JPH06149310A (en)

Similar Documents

Publication Publication Date Title
US5038348A (en) Apparatus for debugging a data flow program
EP0155211B1 (en) System for by-pass control in pipeline operation of computer
US4748588A (en) Fast data synchronizer
JPS63156236A (en) Register device
US5029224A (en) Marked region recognition apparatus
EP0318699B1 (en) Operation apparatus processing data of arbitrary length
JPH06149310A (en) Digital input device
US5122688A (en) Trinary check trit generator, latch, comparator and multiplexer
JPH0284812A (en) Duty factor discrimination circuit
US5732252A (en) Program counter system capable of incrementing or decrementing after a conditional jump instruction
KR880001195B1 (en) Image processing system
EP0278528A2 (en) Area searching system
KR0114239Y1 (en) Interrupt handler circuit
JPH01121931A (en) Inspection instrument for matching of version number
JP3103081B2 (en) Pulse input device
JPS6052449B2 (en) Interrupt processing method
JP2725680B2 (en) Bus error detection circuit
JPH0276040A (en) Error deciding system
KR100195199B1 (en) Graphic controller using meta align mode destination addressing circuit
JPS6011904A (en) Binary signal processing system
JPS6113301A (en) Interlocking condition discriminating circuit
JPS6125167B2 (en)
JP2001337704A (en) Status detecting system
JPH01130231A (en) Interruption generation control system
JPH0236423A (en) Saving/restoring register address generation circuit