JPH022164B2 - - Google Patents

Info

Publication number
JPH022164B2
JPH022164B2 JP58110653A JP11065383A JPH022164B2 JP H022164 B2 JPH022164 B2 JP H022164B2 JP 58110653 A JP58110653 A JP 58110653A JP 11065383 A JP11065383 A JP 11065383A JP H022164 B2 JPH022164 B2 JP H022164B2
Authority
JP
Japan
Prior art keywords
timer
control word
timer control
section
update
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 - Lifetime
Application number
JP58110653A
Other languages
Japanese (ja)
Other versions
JPS603034A (en
Inventor
Masato Maruyama
Masahide Yamashita
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.)
NTT Inc
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 JP58110653A priority Critical patent/JPS603034A/en
Publication of JPS603034A publication Critical patent/JPS603034A/en
Publication of JPH022164B2 publication Critical patent/JPH022164B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 この発明は多数のプログラム可能な時間監視回
路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention is directed to multiple programmable time monitoring circuits.

〈背景〉 従来、この種のプログラム可能な時間監視(以
後「時間監視」を「タイマ」と略す)回路として
は、個々の回路がそれぞれフリツプフロツプによ
り構成されたバイナリカウンタにより実現されて
いた。そのため、多数のタイマ回路をハードウエ
アで実現する必要がある場合、ハードウエア量が
膨大になるという欠点があつた。
<Background> Conventionally, this type of programmable time monitoring (hereinafter "time monitoring" will be abbreviated as "timer") circuit has been realized by a binary counter in which each circuit is constituted by a flip-flop. Therefore, when it is necessary to implement a large number of timer circuits in hardware, there is a drawback that the amount of hardware becomes enormous.

また従来のタイマ回路は、各カウンタの更新間
隔が外部からの基準クロツク(一定値)に依存す
るため、広範囲の監視時間値を設定可能なタイマ
回路を実現するためには、カウンタのビツト数を
増加する必要があつた。
In addition, in conventional timer circuits, the update interval of each counter depends on an external reference clock (constant value), so in order to realize a timer circuit that can set a wide range of monitoring time values, it is necessary to increase the number of bits of the counter. It was necessary to increase.

〈発明の概要〉 この発明はこれらの欠点を解決するため、タイ
マ制御回路を共通化し、タイマカウンタのダイナ
ミツクな割当てを可能として少ないハードウエア
量で設定可能なタイマ回路数の増大を図ると共に
タイマ要求時、基準タイマ値を設定することによ
り、少ないカウンタビツト数で広範囲のタイマ設
定が可能なタイマ回路を実現するものである。
<Summary of the Invention> In order to solve these drawbacks, the present invention unifies the timer control circuit, enables dynamic allocation of timer counters, and increases the number of timer circuits that can be set with a small amount of hardware. By setting a reference timer value at the time, a timer circuit is realized that allows a wide range of timer settings with a small number of counter bits.

〈実施例〉 第1図はこの発明の実施例に用いられ、外部回
路から出力されるタイマ制御語(TMCWと記す
場合がある)の形式例であり、第0〜第7ビツト
の8ビツトの監視時間値フイールド、第8、第9
ビツトの2ビツトの基準タイマ値フイールド、第
10、第11ビツトの2ビツトのタイマ種別フイール
ド、第12〜第15ビツトの4ビツトのパス番号グル
ープ識別子フイールド及び第16〜第23ビツトの8
ビツトのパス番号フイールドから成る前記監視時
間値フイールドは、0〜255の値を設定でき、そ
の設定値に次に述べる基準タイマ値を乗ずると、
所要の監視時間になる。前記基準タイマ値フイー
ルドは、基準タイマ値として10ミリ秒、1秒及び
1分の指定ができる。基準タイマ値フイールドで
例えば1ミリ秒を指定すると、0〜2560ミリ秒の
時間を1分の指定では0〜256分の時間をそれぞ
れ監視指示可能となる。前記タイマ種別フイール
ドはT0〜T3の指定ができ、同一回線で4個ま
での異なるタイマが設定できる。前記パス番号グ
ループ識別子フイールドはタイマの依頼元を示
し、例えば通信制御プログラム内の処理ルーチン
に対応させることができる。前記パス番号フイー
ルドは、タイマを要求する回線番号を示す。
<Embodiment> Figure 1 is an example of the format of a timer control word (sometimes written as TMCW) used in an embodiment of the present invention and output from an external circuit. Monitoring time value field, 8th and 9th
2-bit reference timer value field,
10, 2-bit timer type field of the 11th bit, 4-bit pass number group identifier field of the 12th to 15th bits, and 8 of the 16th to 23rd bits.
The monitoring time value field, which consists of a bit pass number field, can be set to a value between 0 and 255, and when the set value is multiplied by the reference timer value described below,
The required monitoring time is reached. In the reference timer value field, 10 milliseconds, 1 second, and 1 minute can be specified as the reference timer value. For example, if 1 millisecond is specified in the reference timer value field, if 1 minute is specified for 0 to 2560 milliseconds, it becomes possible to instruct monitoring of 0 to 256 minutes. The timer type field allows designation of T0 to T3, and up to four different timers can be set on the same line. The path number group identifier field indicates the timer request source, and can correspond to, for example, a processing routine within a communication control program. The path number field indicates the line number for which a timer is requested.

第2図はこの発明の実施例のブロツク図を示
す。1は外部回路から出力されたタイマ制御語を
保持するタイマ登録レジスタ部、2はタイマの登
録更新制御部、3は複数のタイマ制御語を保持す
るタイマ制御語記憶部、4はタイマ登録用のタイ
マ制御語記憶部アドレスを保持する登録アドレス
ポインタ部であり、インクリメンタ/デクリメン
タを有する。5はタイマ制御語の基準タイマ値フ
イールドで指定した3種類の基準値タイマ回路を
もつ内部インターバルタイマ部、6はタイマ更新
用のタイマ制御語記憶部アドレスを保持する更新
アドレスポインタ部であり、インクリメンタを有
する。7はタイマ更新時、タイマ制御語記憶部3
の読出し出力を保持するタイマ更新レジスタであ
り、その監視時間値フイールドにデクリメンタを
有する。8は登録アドレスポインタ部4と更新ア
ドレスポインタ部6の内容を比較する比較器であ
る。
FIG. 2 shows a block diagram of an embodiment of the invention. 1 is a timer registration register unit that holds a timer control word output from an external circuit, 2 is a timer registration update control unit, 3 is a timer control word storage unit that holds a plurality of timer control words, and 4 is a timer registration register unit. This is a registered address pointer section that holds a timer control word storage section address, and has an incrementer/decrementer. 5 is an internal interval timer section having three types of reference value timer circuits specified by the reference timer value field of the timer control word; 6 is an update address pointer section that holds the timer control word storage address for timer update; It has data. 7 is the timer control word storage unit 3 when updating the timer.
This is a timer update register that holds the readout output of , and has a decrementer in its monitoring time value field. A comparator 8 compares the contents of the registered address pointer section 4 and the updated address pointer section 6.

次に動作例を示す。タイマ登録レジスタ部1に
タイマ制御語が出力されると、登録更新制御部2
はその制御部2内に保持している。タイマ制御語
記憶部3がオーバフローしていることを示すタイ
マスタツクオーバフローフラグをチエツクし、そ
のフラグが“0”であれば登録アドレスポインタ
部4をインクリメント(+1)した値をアドレス
としてタイマ制御語記憶部3へ登録レジスタ部1
のタイマ制御語を格納する。
An example of operation is shown next. When the timer control word is output to the timer registration register section 1, the registration update control section 2
is held within its control unit 2. The timer stack overflow flag indicating that the timer control word storage unit 3 has overflowed is checked, and if the flag is “0”, the value obtained by incrementing (+1) the registered address pointer unit 4 is used as the address to store the timer control word. Register to storage unit 3 Register unit 1
Stores the timer control word.

なお登録アドレスポインタ部4をインクリメン
トした結果、オーバフローが発生した場合、即ち
タイマ制御語記憶部3が満杯であることを示す場
合は、その登録アドレスポインタ部4の更新、及
びタイマ制御語記憶部3への格納は行わず、タイ
マスタツクオーバフローフラグを“1”にし、外
部回路に対しタイマスタツクオーバフローの割込
みを発生する。外部回路はそのオーバフローした
タイマ制御語をタイマ登録レジスタ部1から回収
することができる。
If an overflow occurs as a result of incrementing the registered address pointer section 4, that is, if the timer control word storage section 3 is full, the registered address pointer section 4 is updated and the timer control word storage section 3 is incremented. The timer stack overflow flag is set to "1" without being stored, and a timer stack overflow interrupt is generated to the external circuit. The external circuit can recover the overflowed timer control word from the timer registration register section 1.

内部インターバルタイマ部5の1つのタイマか
らタイムアウトが発生すると、登録更新制御部2
は更新アドレスポインタ部6の内容をアドレスと
してタイマ制御語記憶部3からタイマ制御語を読
出し、タイマ更新レジスタ7に保持する。次に割
込みを発生した基準タイマ回路の基準タイマ値
と、更新レジスタ7のタイマ制御語内の基準タイ
マ値フイールドで指定される基準タイマ値と比較
し、一致すればそのタイマ制御語の監視時間値フ
イールドの内容をデクリメントする。そのデクリ
メントの結果が“0”になつた場合は、外部回路
に対し、タイムアウト発生の割込みを行う。その
外部回路はタイムアウトしたタイマ制御語をタイ
マ更新レジスタ7から回収することができる。前
記監視時間値フイールドのデクリメントの結果が
“0”でない場合は、そのタイマ制御語を更新ア
ドレスポインタ部6の示すタイマ制御語記憶部3
へ格納する。基準タイマ値が不一致の場合は、更
新アドレスポインタ部6をインクリメントして次
のタイマ制御語の更新処理に移行する。
When a timeout occurs from one of the timers in the internal interval timer section 5, the registration update control section 2
reads the timer control word from the timer control word storage section 3 using the contents of the update address pointer section 6 as an address, and stores it in the timer update register 7. Next, the reference timer value of the reference timer circuit that generated the interrupt is compared with the reference timer value specified in the reference timer value field in the timer control word of update register 7, and if they match, the monitoring time value of that timer control word is compared. Decrements the contents of the field. If the result of the decrement becomes "0", an interrupt is issued to the external circuit to generate a timeout. The external circuitry can retrieve the timed-out timer control word from the timer update register 7. If the result of decrementing the monitoring time value field is not "0", the timer control word is updated to the timer control word storage section 3 indicated by the update address pointer section 6.
Store it in If the reference timer values do not match, the update address pointer section 6 is incremented and the process moves to update the next timer control word.

タイマ制御語の更新により、そのタイマ制御
語、例えばTMCW(2)(第3図)でタイムアウト
が発生すると、当該タイマ制御語をタイマ制御語
記憶部3内から削除するため、タイマ制御語記憶
部3の読出しアドレスを更新アドレスポインタ部
6側から、登録アドレスポインタ部4側に切替え
て、その時のタイマ制御語記憶部3の内容、即ち
タイマ制御語TMCW(j+1)を読出し、これを
タイマ更新レジスタ7に一旦保持したのち、登録
アドレスポインタ部4の内容をFEからFDにデク
リメントし、タイマ制御語記憶部3の読出しアド
レスを更新アドレスポインタ部6側に移し、その
ポインタ部6の内容02にタイマ更新レジスタ7内
のタイマ制御語TMCW(j+1)の更新処理を行
う、つまりTMCW(j+1)をアドレス02に書込
む。第3図でTMCW(j+1)は最新のタイマ制
御語であり「―」は空領域を示す。
When a timeout occurs in the timer control word, for example, TMCW(2) (FIG. 3) due to updating of the timer control word, the timer control word is deleted from the timer control word storage section 3. 3 is switched from the update address pointer section 6 side to the registered address pointer section 4 side, the contents of the timer control word storage section 3 at that time, that is, the timer control word TMCW (j+1), are read out, and this is stored in the timer update register. 7, the contents of the registered address pointer section 4 are decremented from FE to FD, the read address of the timer control word storage section 3 is moved to the update address pointer section 6 side, and the contents of the pointer section 6 are set to 02. The timer control word TMCW (j+1) in the update register 7 is updated, that is, TMCW (j+1) is written to address 02. In FIG. 3, TMCW (j+1) is the latest timer control word, and "-" indicates an empty area.

更新アドレスポインタ部6を順次インクリメン
トしてタイマ制御語の更新処理を行い、更新アド
レスポインタ部6と登録アドレスポインタ部4の
内容が比較器8で一致するアドレスのタイマ制御
語の更新処理が終了すると、前記の1つの基準タ
イマの割込みによる更新処理は終了する。
The update address pointer section 6 is sequentially incremented to update the timer control word, and when the update processing of the timer control word of the address where the contents of the update address pointer section 6 and the registered address pointer section 4 match in the comparator 8 is completed. , the update process due to the interruption of one reference timer is completed.

タイマスタツクオーバフローフラグが“1”の
場合で、タイマ更新処理時、タイムアウト処理に
より、タイマ制御語記憶部3内に一定量の空領域
が生じた場合、登録更新制御部2はタイマスタツ
クオーバフローフラグを“0”にしたのち、外部
回路に対し、タイマスタツクオーバフロー解除の
割込みを発生する。外部回路はそれを契機として
保持していたタイマ制御語を出力することができ
る。タイマスタツクオーバフロー解除割込みを生
ずるための空領域の値は、タイマスタツクオーバ
フロー発生と解除の割込みとが交互に発生しない
ように複数個以上にすることが望ましい。
If the timer stack overflow flag is "1" and a certain amount of empty space is generated in the timer control word storage unit 3 due to timeout processing during timer update processing, the registration update control unit 2 will handle the timer stack overflow. After setting the flag to "0", an interrupt is generated to the external circuit to release the timer stack overflow. The external circuit can use this as an opportunity to output the timer control word held. It is desirable that the number of empty areas for generating timer stack overflow release interrupts be set to a plurality of values or more so that timer stack overflow generation and release interrupts do not occur alternately.

基準タイマの割込みによるタイマ更新処理中に
外部回路からタイマ制御語を受領すると、登録更
新制御部2は当該タイマ制御語をタイマ登録レジ
スタ部1に保留しておき、j番目のタイマ制御語
の更新処理が終了し、j+1番目のタイマ制御語
の更新処理に移行する直前に更新処理を中断し、
保留中のタイマ制御語の登録処理を行う。
When a timer control word is received from an external circuit during timer update processing due to a reference timer interrupt, the registration update control unit 2 reserves the timer control word in the timer registration register unit 1 and updates the j-th timer control word. After the processing is completed, the update processing is interrupted immediately before proceeding to the update processing of the j+1th timer control word,
Performs registration processing of pending timer control words.

〈効果〉 以上説明したように、この発明は高精度かつ設
定可能範囲の広い多量のタイマ回路を安価に提供
できるので装置の処理能力の向上、コストパフオ
ーマンスの向上に役立たせることができる。
<Effects> As described above, the present invention can provide a large number of timer circuits with high accuracy and a wide settable range at low cost, and thus can be useful for improving the processing ability and cost performance of the device.

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

第1図はこの発明で使用するタイマ制御語の一
形式例を示す図、第2図はこの発明の一実施例を
示すブロツク図、第3図はタイマ制御語がタイム
アウトした場合のタイマ制御語記憶部の内容及び
登録、更新アドレスポインタ部の内容の推移図で
ある。 1:タイマ登録レジスタ部、2:登録更新制御
部、3:タイマ制御語記憶部、4:登録アドレス
ポインタ部、5:内部インターバルタイマ部、
6:更新アドレスポインタ部、7:タイマ更新レ
ジスタ、8:比較器。
FIG. 1 is a diagram showing an example of the format of a timer control word used in this invention, FIG. 2 is a block diagram showing an embodiment of this invention, and FIG. 3 is a diagram showing a timer control word when the timer control word times out. It is a transition diagram of the contents of the storage section and the contents of the registration and update address pointer section. 1: Timer registration register section, 2: Registration update control section, 3: Timer control word storage section, 4: Registered address pointer section, 5: Internal interval timer section,
6: Update address pointer section, 7: Timer update register, 8: Comparator.

Claims (1)

【特許請求の範囲】 1 基準タイマ値、タイマ種別、監視時間値、パ
ス番号及び前記パス番号が属するグループ識別子
から成るタイマ制御語を保持するタイマ登録レジ
スタ部と、前記タイマ制御語を複数個蓄積するた
めのタイマ制御語記憶部と、タイマ制御語を前記
タイマ制御語記憶部に格納するためのアドレスを
保持する登録アドレスポインタ部と、更新すべき
タイマ制御語を前記タイマ制御語記憶部から読出
すためのアドレスを保持する更新アドレスポイン
タ部と、タイマ制御語で示される基準タイマ値の
時間毎に、割込み信号を発生する内部インターバ
ルタイマ部と、 外部回路からタイマ制御語が出力されると、そ
のタイマ制御語を、前記登録アドレスポインタ部
の内容に1を加算したアドレスが示す前記タイマ
制御語記憶部に格納する手段と、前記内部インタ
ーバルタイマ部からの割込み信号により、前記更
新アドレレスポインタ部によりアドレスされて、
前記タイマ制御語記憶部から読出されたタイマ制
御語内の基準タイマ値と、割込みを発生したイン
ターバルタイマの基準タイマ値が一致した場合の
み当該タイマ制御語の監視時間値から一定値を減
算し、その結果が1以上であれば、減算された監
視時間値を含む当該タイマ制御語を、前記タイマ
制御語記憶部内のもとの位置にもどし、前記減算
結果が0であれば、当該タイマ制御語のタイムア
ウトを外部回路に通知する手段と、その通知の
後、前記登録アドレスポインタ部が示すタイマ制
御語を読出して登録アドレスポインタ部から1を
減算すると共に前記タイマ制御語の更新処理を行
つたのち、前記更新アドレスポインタ部が示す前
記タイマ制御語記憶部内に格納する手段と、前記
更新アドレスポインタ部の内容を更新し、当該更
新アドレスポインタ部の内容が、前記登録アドレ
スポインタ部の内容と一致するまで、前記タイマ
制御語の更新処理を継続する手段とをもつ登録更
新制御部とを具備する時間監視回路。 2 前記タイマ制御語記憶部が満杯であることを
示すフラグを設け、タイマ登録用のタイマ制御語
受領時、前記フラグが満杯を示していれば、外部
回路に前記タイマ制御語記憶部のオーバーフロー
発生を通知し、更新処理により前記タイマ制御語
記憶部内に一定数以上の空領域が生じた場合、前
記フラグが満杯を示していれば、外部回路に、オ
ーバーフローの解除を通知すると共に、前記フラ
グをリセツトする手段を前記登録更新制御部に設
けたことを特徴とする特許請求の範囲第1項記載
の時間監視回路。
[Scope of Claims] 1. A timer registration register section that holds a timer control word consisting of a reference timer value, a timer type, a monitoring time value, a path number, and a group identifier to which the path number belongs; and a timer registration register section that stores a plurality of the timer control words. a timer control word storage section for reading a timer control word to be updated from the timer control word storage section; a registration address pointer section holding an address for storing a timer control word in the timer control word storage section; an update address pointer section that holds the address for output, an internal interval timer section that generates an interrupt signal every time the reference timer value indicated by the timer control word; means for storing the timer control word in the timer control word storage section indicated by an address obtained by adding 1 to the contents of the registered address pointer section; and an interrupt signal from the internal interval timer section, the update address pointer section addressed by
subtracting a certain value from the monitoring time value of the timer control word only when the reference timer value in the timer control word read from the timer control word storage unit and the reference timer value of the interval timer that generated the interrupt match; If the result is 1 or more, the timer control word containing the subtracted monitoring time value is returned to its original position in the timer control word storage section, and if the result of the subtraction is 0, the timer control word is returned to its original position in the timer control word storage section. means for notifying an external circuit of a timeout of the timeout; and after the notification, reading a timer control word indicated by the registered address pointer section, subtracting 1 from the registered address pointer section, and updating the timer control word; , means for storing in the timer control word storage section indicated by the update address pointer section, and updating the contents of the update address pointer section, so that the contents of the update address pointer section match the contents of the registered address pointer section. and a registration update control section having means for continuing the update processing of the timer control word until the time. 2. A flag indicating that the timer control word storage section is full is provided, and when the timer control word for timer registration is received, if the flag indicates that the timer control word storage section is full, an overflow occurs in the timer control word storage section in an external circuit. If a certain number or more empty areas are generated in the timer control word storage unit due to the update process, and if the flag indicates full, an external circuit is notified of the release of the overflow, and the flag is set. 2. The time monitoring circuit according to claim 1, wherein said registration update control section is provided with means for resetting.
JP58110653A 1983-06-20 1983-06-20 Time monitoring circuit Granted JPS603034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58110653A JPS603034A (en) 1983-06-20 1983-06-20 Time monitoring circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58110653A JPS603034A (en) 1983-06-20 1983-06-20 Time monitoring circuit

Publications (2)

Publication Number Publication Date
JPS603034A JPS603034A (en) 1985-01-09
JPH022164B2 true JPH022164B2 (en) 1990-01-17

Family

ID=14541111

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58110653A Granted JPS603034A (en) 1983-06-20 1983-06-20 Time monitoring circuit

Country Status (1)

Country Link
JP (1) JPS603034A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5894493B2 (en) 2011-08-09 2016-03-30 ルネサスエレクトロニクス株式会社 Timing control apparatus and control system including the same

Also Published As

Publication number Publication date
JPS603034A (en) 1985-01-09

Similar Documents

Publication Publication Date Title
US5287471A (en) Data transfer controller using direct memory access method
US3577084A (en) Computer sound generator
JPH022164B2 (en)
GB1276590A (en) Improvements in or relating to data processing systems
JP2959046B2 (en) Memory control circuit
CN110069221A (en) Data method for releasing and device
JPH022163B2 (en)
JPH0377533B2 (en)
JP2688245B2 (en) DMA controller
JP2707256B2 (en) Micro computer
JP3089642B2 (en) Data transfer device between processors
JPS61130893A (en) Timer circuit
JP2948244B2 (en) Bus control method
JPH02194719A (en) Code generator
JPH02219118A (en) Timer device
JPH0221774Y2 (en)
JP2596207B2 (en) Semiconductor storage device
JPS61143857A (en) Recording system of history memory
JPH04152443A (en) Method and device for storage of data
JPH052669A (en) Digital counter memory system
JPH077383B2 (en) Waiting circuit
JPH01212911A (en) timing generator
JPS58165608U (en) linearizer
JPS6238748B2 (en)
JPH0442328A (en) Interruption control system for information processor