JPH03121638A - Monitoring timer circuit - Google Patents

Monitoring timer circuit

Info

Publication number
JPH03121638A
JPH03121638A JP1258665A JP25866589A JPH03121638A JP H03121638 A JPH03121638 A JP H03121638A JP 1258665 A JP1258665 A JP 1258665A JP 25866589 A JP25866589 A JP 25866589A JP H03121638 A JPH03121638 A JP H03121638A
Authority
JP
Japan
Prior art keywords
counter
signal
monitoring
output
time
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
JP1258665A
Other languages
Japanese (ja)
Inventor
Tadayoshi Komachiya
小町谷 忠芳
Katsuyuki Okada
勝行 岡田
Hiroshi Shintani
新谷 広
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP1258665A priority Critical patent/JPH03121638A/en
Publication of JPH03121638A publication Critical patent/JPH03121638A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To decrease number of required gates by preparing an LSI terminal input number only for a code bit number equal to number of discrete monitoring time of a monitoring timer when monitor timer exclusive terminals are prepared for the LSI. CONSTITUTION:The circuit consists of a monitoring counter 6 starting and counting a clock pulse from the start point of time, stopping the count when a signal being a monitor object comes and reset thereby, a code register 5 set with a predetermined set time in a form of a code and latching the time, a decode circuit 11 receiving a code output from the code register 6, decoding it and outputting the result as an individual signal, and a comparator circuit comparing a count output of the counter 6 with an individual signal from the decode circuit 11 and outputting an overflow signal when they are coincident. Then the counter output is extracted from bit locations of the counter 6 corresponding to the 4 discrete monitor time desired to be set. Thus, the required gate number is less and the cost is reduced.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、交換機や情報処理装置などが共通バスを介し
てデータの送受信(バス通信)を行う場合に、該バス上
で送受信されるデータが所定の一定時間内に到達したか
否かを監視することにより、バスプロトコルの正常性の
確認に資する監視タイマ回路に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention is applicable to data transmission and reception on a common bus when switching equipment, information processing equipment, etc. transmit and receive data (bus communication) via a common bus. The present invention relates to a monitoring timer circuit that contributes to confirming the normality of a bus protocol by monitoring whether the timer has arrived within a predetermined period of time.

〔従来の技術〕[Conventional technology]

第2図はバス通信の概念図である。 FIG. 2 is a conceptual diagram of bus communication.

同図において、共通バスBUSにつながる各装置A−N
の中の任意の1対の間で共通バスBUSを介して通信が
行われる。各装置は送信側として送信動作モードを採る
こともできるし、受信側として受信動作モードを採るこ
ともできる。共通バスBUSは、同時には1&lの装置
ペア(図の例ではAからDへの通信の例)のみ通信し、
他の異なる時間には、他の任意の装置ペアの間(例えば
DからCへ)で通信が可能である。これがバス通信であ
る。
In the same figure, each device A-N connected to the common bus BUS
Communication is performed between any pair of the two via the common bus BUS. Each device can adopt a transmitting operation mode as a transmitting side, and can also adopt a receiving operation mode as a receiving side. The common bus BUS communicates only with the device pair 1&l (in the example of the figure, communication from A to D) at the same time,
At other different times, communication is possible between any other pair of devices (eg, from D to C). This is bus communication.

かかる共通バス(単にバスと呼んでもよい)の装置間通
信は、一連のバス制御信号を送信側と受信側の間でやり
とりしながら行われる。例えば、バス上の信号転送開始
を指示する「バススタート信号」が送信側から送られ、
バス上でデータ転送が実際に行われ、受信側がそのデー
タを受は取ると、受信側は受は取ったことを送信側に対
して「アクノリッジ(またはデータトランスファコンプ
リートとも云う)信号」で知らせる。
Communication between devices on such a common bus (which may also be simply called a bus) is performed by exchanging a series of bus control signals between the transmitting side and the receiving side. For example, a "bus start signal" that instructs the start of signal transfer on the bus is sent from the transmitting side,
When data transfer is actually performed on the bus and the receiving side receives or accepts the data, the receiving side notifies the transmitting side that the data has been received by using an ``acknowledge (or also referred to as data transfer complete) signal.''

このようなバスの制御信号、データの転送手順(使い方
)を、一般にバスプロトコルと呼ぶ。
Such a bus control signal and data transfer procedure (how to use) is generally called a bus protocol.

第3図は、かかるバスプロトコルにおける送信側と受信
側の間の信号のやりとりの関係の一例を示したタイムチ
ャートである。
FIG. 3 is a time chart showing an example of the relationship of signal exchange between the transmitting side and the receiving side in such a bus protocol.

同図において、データ転送に先立ち、送信側がバススタ
ート信号を送出した後、データを送出する。受信側では
、バススタート信号の受信に引き続きデータを受信する
と、そのことを意味するアクノリッジ信号を送信側へ送
信する。送信側では、バススタート信号を送出した後、
図示せざる監視タイマ回路を起動し、該タイマに設定さ
れている予め定められた設定時間以内に、受信側がらア
クノリッジ信号が送信されてくるかを監視しており、送
信されてこないとき、プロトコル異常と判断して対策を
講じるようになっている。
In the figure, prior to data transfer, the sending side sends out a bus start signal and then sends out the data. When the receiving side receives data subsequent to receiving the bus start signal, it transmits an acknowledge signal indicating this to the transmitting side. On the transmitting side, after sending the bus start signal,
A monitoring timer circuit (not shown) is activated, and the receiving side monitors whether or not an acknowledge signal is sent within a predetermined time set in the timer, and if an acknowledge signal is not sent, the protocol It is determined that this is an abnormality and countermeasures are taken.

本発明は、このような理由で、バス通信などにおいて用
いられる監視タイマ回路に関するものであるが、かかる
監視タイマ回路は、一般に初期設定によりその監視時間
値を可変に設定できるようになっており、バス制御LS
Iの内部回路として実現されている。
For this reason, the present invention relates to a monitoring timer circuit used in bus communication, etc., and such a monitoring timer circuit generally has a monitoring time value that can be variably set by initial setting. Bus control LS
It is realized as an internal circuit of I.

第4図は従来の監視タイマ回路の構成例を示す回路図で
ある。本例は、LSI内で32ビツトを使って実現する
監視タイマ回路の構成例である。
FIG. 4 is a circuit diagram showing an example of the configuration of a conventional monitoring timer circuit. This example is a configuration example of a monitoring timer circuit implemented using 32 bits within an LSI.

なお、LSIにおける監視タイマ回路の監視時間値を入
力するLSI端子はシリアル化されているが、説明を簡
単にするため並列端子から入力するものとして説明する
Although the LSI terminal to which the monitoring time value of the monitoring timer circuit in the LSI is input is serialized, for the sake of simplicity, the explanation will be made assuming that the input is from a parallel terminal.

第4図におイテ、■はLSI、(2−0) 〜(2〜3
1)は監視タイマの監視時間値入力端子、■0〜131
はその入力信号、3は第1のアンドゲート、(3−0)
〜(3−31)は該アンドゲートの出力、4は第1のア
ンドゲートのセット入力、5は監視時間入力値を保持す
るための32b(bはビットを意味する)の保持レジス
タ、(5−1)は保持レジスタ5の出力、6は32bの
加算カウンタ、(6−1)はカウンタ6の32bの出力
、7は32bの比較回路、(7−1)は比較結果出力、
8は第2のアンドゲート、(8−1)は監視開始入力、
(8−2)は第2のアンドゲート8の出力、9はリセッ
ト入力、である。
It is shown in Figure 4, ■ is LSI, (2-0) ~ (2-3
1) is the monitoring time value input terminal of the monitoring timer, ■0 to 131
is its input signal, 3 is the first AND gate, (3-0)
~(3-31) is the output of the AND gate, 4 is the set input of the first AND gate, 5 is the holding register 32b (b means bit) for holding the monitoring time input value, (5 -1) is the output of the holding register 5, 6 is the addition counter of 32b, (6-1) is the output of 32b of counter 6, 7 is the comparison circuit of 32b, (7-1) is the comparison result output,
8 is the second AND gate, (8-1) is the monitoring start input,
(8-2) is the output of the second AND gate 8, and 9 is the reset input.

監視時間値の設定は、監視タイマのビット製分の監視時
間値設定用のLSI入力端子(2−0)〜(2−31)
から2進値の形で取り込むことにより実現される。該端
子へは、各端子入力が所要の2進値になるようプルアッ
プ(ハイレベル)あるいは接地(ローレベル)を選択で
きるような2選択形スイッチを接続して実現してもよい
し、あるいはバス信号線と接続してバスデータ信号の形
式で入力するよう実現してもよい。
The monitoring time value is set using the LSI input terminals (2-0) to (2-31) for setting the monitoring time value in bits of the monitoring timer.
This is achieved by importing in binary value from . A two-selection type switch may be connected to the terminal to select pull-up (high level) or ground (low level) so that each terminal input has the required binary value, or It may also be realized so that it is connected to a bus signal line and input in the form of a bus data signal.

これらの入力は第1のアンドゲート3のセット入力4が
“1′になると保持レジスタ5にセットされる。なお、
本図では保持レジスタ5、カウンタ6、比較回路7の動
作クロックは図示を省略しているが、実際にはクロック
に同期してそれぞれセット、カウントアンプ、比較が行
われる。
These inputs are set in the holding register 5 when the set input 4 of the first AND gate 3 becomes "1".
Although the operating clocks of the holding register 5, counter 6, and comparison circuit 7 are not shown in this figure, in reality, setting, count amplifier, and comparison are performed respectively in synchronization with the clocks.

一方、カウンタ6は、監視開始入力(8−1)が“Io
になり、比較結果出力(7−1)が“0° (つまり不
一致)になると、第2のアンドゲートの出力(8−2)
が1゛となって、カウントアツプを開始する。監視開始
入力(8−1)は実際に監視対象となる信号(例えばバ
スの制御信号“パススタートなど、)が条件を満たした
時(例えば“0゛→“Ioに変化して送信された場合)
に“1“となり、それ以外では“0゛になっているもの
とする。比較結果出力(7−1)は保持レジスタ5の出
力とカウンタ6の出力(6−1)が一致した時“1°に
なり、不一致の時は“0“になるものとする。
On the other hand, the counter 6 indicates that the monitoring start input (8-1) is “Io
When the comparison result output (7-1) becomes "0° (that is, no match), the output of the second AND gate (8-2)
becomes 1 and starts counting up. The monitoring start input (8-1) is input when the signal to be actually monitored (e.g., bus control signal "pass start, etc.") satisfies the conditions (e.g., when the signal changes from "0" to "Io" and is sent. )
The comparison result output (7-1) becomes "1" when the output of the holding register 5 and the output (6-1) of the counter 6 match. °, and when there is a mismatch, it is assumed to be “0”.

カウンタ6のカウントアンプ動作(クロック毎に+1す
る)が行われている間、保持レジスタ出力(5−1)と
カウンタ出力(6−1)がクロ・ンク周期で比較回路7
で比較され、その結果は比較結果出力(7−1)として
出力される。
While the count amplifier operation of the counter 6 (increase by 1 every clock) is performed, the holding register output (5-1) and the counter output (6-1) are output to the comparison circuit 7 at the clock cycle.
The comparison result is output as a comparison result output (7-1).

従って、該比較結果が“1゛になるとアンドゲート出力
(8−2)が0′となり、カウンタ6はカウントアツプ
動作を停止する。即ち、保持レジスタ5に保持された設
定時間値をカウンタ6がカウントし終わる前に、監視対
象信号が到来すれば、その時点でカウンタ6はカウント
動作を止めるようになっている筈なので、カウンタ6が
設定時間値をカウントし終えて比較回路7の出力(7−
1)が“l゛になったということは、監視対象信号が到
来しなかつことを意味し、監視時間オーバフローとなる
Therefore, when the comparison result becomes "1", the AND gate output (8-2) becomes 0', and the counter 6 stops counting up. That is, the counter 6 inputs the set time value held in the holding register 5. If the monitoring target signal arrives before the count ends, the counter 6 should stop counting at that point, so after the counter 6 finishes counting the set time value, the output (7 −
The fact that 1) becomes "l" means that the signal to be monitored has not arrived, resulting in a monitoring time overflow.

なお、該比較結果出力(7−1)はLSI内の他の制御
にも利用することができる 監視対象信号が到来した場合、カウンタ6は、監視対象
信号が終了条件を満たしたものとして、監視開始人力が
0°となるようになっているので第2のアンドゲート出
力(8−2)が“0”となり、カウントは停止するもの
である。カウンタ6は、監視動作が終了し、新たな監視
を開始する前にリセット人力9により “O”クリアさ
れる。
Note that the comparison result output (7-1) can also be used for other controls within the LSI. When a monitored signal arrives, the counter 6 assumes that the monitored signal satisfies the termination condition and starts monitoring. Since the starting force is set to 0°, the second AND gate output (8-2) becomes "0" and the counting stops. The counter 6 is cleared to "O" by a reset manual 9 after the monitoring operation is completed and before new monitoring is started.

以上説明したように、このような監視タイマでは、保持
レジスタに設定された入力値に応じて任意の監視時間を
実現できるが、監視タイマの監視時間値を可変化するに
は、それに応じてタイマのビット長に等しい監視時間値
データを設定する必要がある。実際のシステムに組み込
む場合は、設定値入力用のLSI端子の先にDIPスイ
ッチ等を接続し、スイッチ操作で各端子の入力値[プル
アップ(ハイレベル)、接地(ローレベル)]ヲ選択で
きるようにすれば、簡単に監視時間値を変更できるし、
又、電源投入時にハードウェアで自律的に保持レジスタ
の内容を設定することもできる。
As explained above, such a monitoring timer can realize any monitoring time according to the input value set in the holding register, but in order to make the monitoring time value of the monitoring timer variable, It is necessary to set the monitoring time value data equal to the bit length of . When incorporating into an actual system, connect a DIP switch, etc. to the end of the LSI terminal for setting value input, and select the input value for each terminal [pull-up (high level), ground (low level)] by operating the switch. If you do this, you can easily change the monitoring time value,
Furthermore, the contents of the holding register can be set autonomously by hardware when the power is turned on.

第5図に上記説明の動作タイムチャートを示したので参
照されたい。
Please refer to FIG. 5, which shows an operation time chart for the above explanation.

なお、本例では、LSI端子入力により保持レジスタの
内容を設定しているが、これを本来のハスインタフェー
ス経由で書き込めるようにしてもよい。但し、後者の場
合は、電源投入後同じバスにつながるCPU等から他律
的に保持レジスタの内容を設定する必要がある。
In this example, the contents of the holding register are set by LSI terminal input, but the contents may be written via the original Hassle interface. However, in the latter case, it is necessary to heteronomously set the contents of the holding register from a CPU or the like connected to the same bus after the power is turned on.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した如き従来の監視タイマ回路は、監視時間の設定
用ビット数を32ビツトというように多くしているので
、監視時間として任意に可変な値を設定できるという利
点はあるが、回路を構成するに要するゲート数が多くな
りコストも高くなるという問題があった。
The conventional monitoring timer circuit as described above has a large number of bits for setting the monitoring time, such as 32 bits, so it has the advantage of being able to set an arbitrarily variable value as the monitoring time, but it is difficult to configure the circuit. The problem is that the number of gates required increases and the cost also increases.

本発明の目的は、かかる従来技術における問題点を克服
し、所要のゲート数が少なくてコストも低廉な監視タイ
マ回路を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to overcome the problems in the prior art and to provide a monitoring timer circuit that requires fewer gates and is inexpensive.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的達成のため、本発明では、スタート時点から予
め定めた設定時間以内に監視対象とする信号が到来する
か否かを監視していて到来しなかったらその旨のオーバ
フロー信号を出力する監視タイマ回路として、スタート
時点からクロックパルスのカウントを開始して監視対象
とする信号が到来したらカウントを停止してリセットさ
れるカウンタと、前記予め定めた設定時間をコード形式
で設定されて保持するコードレジスタと、該コードレジ
スタからのコード出力を入力されデコードして個別信号
として出方するデコード回路と、前記カウンタのカウン
ト出力と前記デコード回路からの個別信号とを比較し一
致したら前記オーバフロー信号を出力する比較回路と、
がら成る監視タイマ回路を実現した。
In order to achieve the above object, the present invention provides a monitoring timer that monitors whether a signal to be monitored arrives within a predetermined time from the start time and outputs an overflow signal to that effect if the signal does not arrive. The circuit includes a counter that starts counting clock pulses from the start point and stops counting and is reset when a signal to be monitored arrives, and a code register that sets and holds the predetermined set time in code format. and a decoding circuit that receives and decodes the code output from the code register and outputs it as an individual signal, and compares the count output of the counter with the individual signal from the decoding circuit, and if they match, outputs the overflow signal. a comparison circuit,
We have realized a monitoring timer circuit consisting of:

〔作用〕[Effect]

従来の技術では、LSI人力端子から監視タイマのビッ
ト長に等しいビット数をもつ監視時間値を設定している
が、この場合、そのビット数の範囲で任意の2進値を設
定できる。しかし、一般に監視時間は完全に連続的に可
変である必要性はない。ある範囲で離散的な値を設定で
きれば、大部分の要求に応えられる。
In the conventional technology, a monitoring time value having a number of bits equal to the bit length of the monitoring timer is set from an LSI manual terminal, but in this case, any binary value can be set within the range of the number of bits. However, there is generally no need for the monitoring time to be completely continuously variable. If you can set discrete values within a certain range, most requests can be met.

そこで本発明では、この点に着目し、n端子入力(n<
監視タイマのビット長)を2進値ではなくコード入力と
し、これをLSI内でデコードして2nの状態に展開し
てその内の一つの出力ビットが“1゛で他の出力ビット
が“O゛となるようにし、このデコード出力のそれぞれ
は、監視タイマを構成するカウンタの2n個の任意のビ
ット位置の出力に対応付けて比較されるように該カウン
タを構成し、カウンタ(加算形を想定する)が監視対象
信号の監視開始時点に同期して起動され、カウントアツ
プされる毎に比較を行い、前記デコード出力ビット “
1゛と対応する監視タイマのビット出力がIl+になる
のを検出した時点で監視時間オーバフローとし、カウン
タを停止する。なお、カウンタは、監視時間オーバフロ
ーになる前に、監視対象信号が到来するなどして監視条
件が解除されれば、任意の時点でカウントを停止する。
Therefore, in the present invention, we focused on this point and focused on n terminal input (n<
The bit length of the watchdog timer) is input as a code instead of a binary value, and this is decoded within the LSI and developed into 2n states, where one output bit is "1" and the other output bits are "O". Each of these decoded outputs is configured to be compared with the output of 2n arbitrary bit positions of the counter constituting the monitoring timer, and the counter (assuming an additive type ) is activated in synchronization with the start of monitoring of the monitored signal, performs a comparison every time it is counted up, and outputs the decoded output bit “
When it is detected that the bit output of the monitoring timer corresponding to 1' becomes Il+, it is determined that the monitoring time has overflowed, and the counter is stopped. Note that the counter stops counting at any time if the monitoring condition is canceled due to the arrival of a monitoring target signal or the like before the monitoring time overflows.

通常、n=2〜3(4〜8状態)で十分と考えられる。Normally, n=2 to 3 (4 to 8 states) is considered to be sufficient.

その結果、本発明では、LSIに監視タイマ専用端子を
用意する場合、LSI端子入力数は監視タイマの離散的
な監視時間値の数に等しいコードビット分だけで済むの
で、入力値の保持レジスタ、デコード回路、カウンタ出
力との比較回路も小規模のもので済み、監視タイマのビ
ット数に等しいビット数の入力値保持レジスタ及びそれ
と同じサイズの比較回路を必要とする従来の方法に較べ
、所要ゲート数を削減できる。
As a result, in the present invention, when an LSI is provided with a terminal dedicated to the watchdog timer, the number of inputs to the LSI terminal is only the number of code bits equal to the number of discrete watchdog time values of the watchdog timer. The decoding circuit and the comparison circuit with the counter output can also be small-scale, and the gate required is much smaller than the conventional method, which requires an input value holding register with the number of bits equal to the number of bits of the monitoring timer and a comparison circuit of the same size. The number can be reduced.

一方、本発明を、LSIのバスインタフェース経由で設
定値を入力するようにして実現する場合にも、同様に所
要ゲート数を削減できる。
On the other hand, when the present invention is implemented by inputting setting values via an LSI bus interface, the number of required gates can be similarly reduced.

〔実施例〕〔Example〕

本発明により4つの監視時間値を選択可能な実施例を第
1図を用いて説明する。
An embodiment in which four monitoring time values can be selected according to the present invention will be described with reference to FIG.

第1図において、1はLSI、(2−0)〜(2−1)
は監視タイマの監視時間コードを入力するLSI端子入
力、10,11はその入力信号、3は第1のアンドゲー
ト、(3−0)、(3−1)は該アンドゲートの出力、
4は第1のアンドゲート3のセット入力、5は2bの保
持レジスタ、(5−0)、(5−1)は保持レジスタ5
の出力、6はカウンタ、(6−1)〜(6−4)はカウ
ンタ6の予め定められた任意の異なるビット位置の出力
、9はリセット入力、11はデコード回路、(11−0
)〜(11−3)はデコード出力、工2は第3のアンド
ゲート、(12−0)〜(12−3)は第3のアンドゲ
ート12の各出力、13はオアゲート、(13−1)は
オアゲートの出力、である。
In Figure 1, 1 is an LSI, (2-0) to (2-1)
is the LSI terminal input for inputting the monitoring time code of the monitoring timer, 10 and 11 are the input signals thereof, 3 is the first AND gate, (3-0) and (3-1) are the outputs of the AND gate,
4 is the set input of the first AND gate 3, 5 is the holding register of 2b, (5-0), (5-1) is the holding register 5
, 6 is a counter, (6-1) to (6-4) are outputs of predetermined different bit positions of counter 6, 9 is a reset input, 11 is a decoding circuit, (11-0
) to (11-3) are decode outputs, 2 is the third AND gate, (12-0) to (12-3) are each output of the third AND gate 12, 13 is an OR gate, (13-1 ) is the output of the OR gate.

入力信号IO,TIは2bitのコード信号であり、第
1のアンドゲート3を介し、セット人力4が“1°の状
態で該ゲートの出力(3−0)。
The input signals IO and TI are 2-bit code signals, which are passed through the first AND gate 3 and output (3-0) from the gate when the set force 4 is at "1 degree."

(3−1)となって保持レジスタ5にセットされる。保
持レジスタ5の出力(5−0)、(5−1)は、デコー
ト回路11に供給され、4つのデコート回路出力(11
−0)〜(11−3)に展開される。該出力はカウンタ
6の各出力(6−1)〜(6−4)とそれぞれ1対1対
応で第3の各アンドゲート12に入力される。それらの
アンドゲート出力はオアゲート13に入力され、オアゲ
ート出力(13−1)は第2のアンドゲート8の入力と
なり、又、該出力はLSI内の他の制御にも利用するこ
とができる。
(3-1) and is set in the holding register 5. The outputs (5-0) and (5-1) of the holding register 5 are supplied to the decoding circuit 11, and the four decoding circuit outputs (11
-0) to (11-3). The outputs are input to the third AND gates 12 in one-to-one correspondence with the outputs (6-1) to (6-4) of the counter 6, respectively. These AND gate outputs are input to the OR gate 13, and the OR gate output (13-1) becomes the input to the second AND gate 8, and the output can also be used for other controls within the LSI.

保持レジスタ5、カウンタ6、第2のアンドゲート8の
作用は、既に第4図の従来回路例で説明した通りである
The functions of the holding register 5, counter 6, and second AND gate 8 are as already explained in the conventional circuit example shown in FIG.

デコード出力(11−0)〜(11−3)は、コード入
力のパターンと対応付けられ、何れか1つの出力が°1
°となり、他の出力は“0°となるようデコードされる
。カウンタ出力は設定したい4つの離散的監視時間に相
当するカウンタ6のビット位置から引き出すようにする
。例えば、30秒、1秒、100ミリ秒、1ミリ秒に相
当するビット位置とする。これらの時間はカウンタ6の
動作クロック周期とカウンタ6の2進ビツト値の積から
容易に計算される。但し、その時間値は必ずしも今述べ
た時間値と厳密に一致するものではなく、又、一致させ
る必要性も薄い。
The decode outputs (11-0) to (11-3) are associated with the code input pattern, and any one output is
°, and the other outputs are decoded to be 0°.The counter output should be drawn from the bit position of the counter 6 corresponding to the four discrete monitoring times you want to set.For example, 30 seconds, 1 second, 100 milliseconds, the bit positions corresponding to 1 millisecond. These times are easily calculated from the product of the operating clock period of counter 6 and the binary bit value of counter 6. However, the time values are not necessarily current. It does not exactly match the time value mentioned above, and there is little need for it to match.

例えば、デコート出力(11−0)が“l゛で、カウン
タ出力(6−1)がカウンタ6のビット28の出力と対
応している場合、カウンタクロンク周期を100ナノ秒
とすると、28ビツトがカウントアップして°1°にな
った時、監視時間オーバフローとなるが、その時間は、
2”X100ナノ秒ns’;2.68X10”ナノ秒−
26,8秒、となる。この時、第3のアンドゲート出力
(121)〜(12−3)はデコート出力が“0°なの
で“0′となるが、第3のアンドゲートの出力(12−
0)は“1°となり、オアゲートの出力(13−1)も
“1′となって、カウンタ6を停止する働きをする。
For example, if the decode output (11-0) is "l" and the counter output (6-1) corresponds to the output of bit 28 of counter 6, then if the counter clock cycle is 100 nanoseconds, 28 bits are When the count-up reaches 1°, the monitoring time overflows, but the time is
2"X100 nanoseconds ns';2.68X10" nanoseconds-
26.8 seconds. At this time, the third AND gate outputs (121) to (12-3) become "0" because the decoding output is "0°," but the third AND gate output (12-3) becomes "0".
0) becomes "1°," and the output (13-1) of the OR gate also becomes "1", which serves to stop the counter 6.

第4図の従来技術の説明でも述べたように、カウンタ6
は監視対象信号の監視終了条件が成立すれば監視開始時
間が′0゛となるよう別途制御され、カウンタ6はクロ
ック周期でカウントアツプされる。又、動作タイムチャ
ートは保持レジスタ5のデコード信号が比較対象である
ことを除き第5図に示したものと同様である。
As mentioned in the explanation of the prior art in FIG.
is separately controlled so that the monitoring start time becomes '0' when the monitoring end condition of the monitored signal is satisfied, and the counter 6 is counted up at the clock cycle. Further, the operation time chart is the same as that shown in FIG. 5 except that the decoded signal of the holding register 5 is the object of comparison.

以上の説明からIO,11の2人カコード信号により、
カウンタの任意の固定されたビット位置から決まる4つ
の時間監視値を選択指定できることは明らかである。
From the above explanation, with the two-person code signal of IO, 11,
It is clear that four time monitoring values can be selected and determined from any fixed bit position of the counter.

本実施例で、バスインタフェースからも設定可能なこと
は、第4図との比較から明らかである(入力手段のみが
異なる)。
It is clear from a comparison with FIG. 4 that this embodiment can also be set from the bus interface (only the input means is different).

本発明の実施例では、バスインタフェース制御LSIに
ついて説明したが、本発明にかかる監視タイマ回路は、
監視対象信号を特に限定せず、監視開始条件が任意の時
点で発生し、ある時間をおいて任意の時点で監視終了条
件が発生するような如何なる監視にも適用可能である。
In the embodiments of the present invention, the bus interface control LSI has been described, but the monitoring timer circuit according to the present invention
The signals to be monitored are not particularly limited, and the present invention can be applied to any kind of monitoring in which a monitoring start condition occurs at an arbitrary time and a monitoring end condition occurs at an arbitrary time after a certain period of time.

又、入力手段はコード入力化され条件さえ満たせば、ど
のような方法を採っても差し支えない。
Further, as long as the input means is a code input and the conditions are satisfied, any method may be used.

〔発明の効果〕〔Effect of the invention〕

以上説明した通り、本発明の監視タイマ回路によれば、
従来の監視時間可変形の監視タイマに較べ、監視タイマ
に不可欠な保持レジスタおよび比較回路を含む初期設定
手段の構成に必要な所要ゲート数を115以下に削減可
能である。
As explained above, according to the monitoring timer circuit of the present invention,
Compared to the conventional variable monitoring time type monitoring timer, the number of gates necessary for configuring the initial setting means including the holding register and comparison circuit essential to the monitoring timer can be reduced to 115 or less.

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

第1図は本発明の一実施例を示す回路図、第2図はバス
通信の概念図、第3図はバスプロトコルにおける送信側
と受信側の間の信号のやりとりの関係の一例を示したタ
イムチャート、第4図は従来の監視タイマ回路の構成例
を示す回路図、第5図は第4図の監視タイマ回路の動作
を示すタイムチャート、である。 符号の説明 1・・・LSI、(2−0)〜(2−31)・・・監視
タイマの監視時間値入力端子、3・・・アンドゲート、
5・・・保持レジスタ、6・・・加算カウンタ、7・・
・比較回路、(8−1)・・・監視開始入力、10・・
・デコード回路、12・・・オアゲート
Fig. 1 is a circuit diagram showing an embodiment of the present invention, Fig. 2 is a conceptual diagram of bus communication, and Fig. 3 is an example of the relationship of signal exchange between the sending side and the receiving side in the bus protocol. FIG. 4 is a circuit diagram showing a configuration example of a conventional monitoring timer circuit, and FIG. 5 is a time chart showing the operation of the monitoring timer circuit of FIG. 4. Explanation of symbols 1... LSI, (2-0) to (2-31)... Monitoring time value input terminal of monitoring timer, 3... AND gate,
5... Holding register, 6... Addition counter, 7...
・Comparison circuit, (8-1)...Monitoring start input, 10...
・Decode circuit, 12...OR gate

Claims (1)

【特許請求の範囲】 1)スタート時点から予め定めた設定時間以内に監視対
象とする信号が到来するか否かを監視していて到来しな
かったらその旨のオーバフロー信号を出力する監視タイ
マ回路において、 スタート時点からクロックパルスのカウントを開始して
監視対象とする信号が到来したらカウントを停止してリ
セットされるカウンタと、前記予め定めた設定時間をコ
ード形式で設定されて保持するコードレジスタと、該コ
ードレジスタからのコード出力を入力されデコードして
個別信号として出力するデコード回路と、前記カウンタ
のカウント出力と前記デコード回路からの個別信号とを
比較し一致したら前記オーバフロー信号を出力する比較
回路と、を具備して成ることを特徴とする監視タイマ回
路。
[Claims] 1) In a monitoring timer circuit that monitors whether a signal to be monitored arrives within a predetermined time from a start point and outputs an overflow signal to that effect if the signal does not arrive. a counter that starts counting clock pulses from the start point and stops counting and is reset when a signal to be monitored arrives, and a code register that holds the predetermined set time set in a code format; a decoding circuit that receives and decodes the code output from the code register and outputs it as an individual signal; and a comparison circuit that compares the count output of the counter and the individual signal from the decoding circuit and outputs the overflow signal if they match. A monitoring timer circuit comprising:
JP1258665A 1989-10-05 1989-10-05 Monitoring timer circuit Pending JPH03121638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1258665A JPH03121638A (en) 1989-10-05 1989-10-05 Monitoring timer circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1258665A JPH03121638A (en) 1989-10-05 1989-10-05 Monitoring timer circuit

Publications (1)

Publication Number Publication Date
JPH03121638A true JPH03121638A (en) 1991-05-23

Family

ID=17323401

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1258665A Pending JPH03121638A (en) 1989-10-05 1989-10-05 Monitoring timer circuit

Country Status (1)

Country Link
JP (1) JPH03121638A (en)

Similar Documents

Publication Publication Date Title
US4471481A (en) Autonomous terminal data communications system
US4799052A (en) Method for communicating data on a communication network by token passing
US4390969A (en) Asynchronous data transmission system with state variable memory and handshaking protocol circuits
US4551721A (en) Method for initializing a token-passing local-area network
US4556974A (en) Method for passing a token in a local-area network
US4665518A (en) Synchronous/asynchronous communication system
CN107748509B (en) ASI communication slave machine implementation method based on single chip microcomputer transceiving control
JPS63175549A (en) Poling
US4755990A (en) Collision avoidance in a multinode data communication network
JPH03121638A (en) Monitoring timer circuit
EP0070828B1 (en) Improved autonomous terminal data communications system
US6571345B1 (en) Dual-timer process control system
JPS61287356A (en) Slow polling transmission system
JPH0221743A (en) Single wire serial communication method and serial data communication equipment
JPH03121639A (en) Monitoring timer control system
JPH0414339A (en) Terminal equipment
JP3716562B2 (en) Bus bridge circuit and information processing system using bus bridge circuit
JPS6294035A (en) Cai data line control system
JPS6142985B2 (en)
JPH09106385A (en) Data transfer control circuit
JPH01307859A (en) Data transfer controller
JPH0588792A (en) Data transfer control system
JPH085379B2 (en) Electronic interlocking device
JPS62152248A (en) Timer control system
JPH087609B2 (en) Data transfer method of programmable controller system