JPS61182590A - Timer counter system - Google Patents
Timer counter systemInfo
- Publication number
- JPS61182590A JPS61182590A JP2306485A JP2306485A JPS61182590A JP S61182590 A JPS61182590 A JP S61182590A JP 2306485 A JP2306485 A JP 2306485A JP 2306485 A JP2306485 A JP 2306485A JP S61182590 A JPS61182590 A JP S61182590A
- Authority
- JP
- Japan
- Prior art keywords
- counter
- pulse
- time
- timer
- microprogram
- 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
Links
Landscapes
- Measurement Of Predetermined Time Intervals (AREA)
Abstract
Description
【発明の詳細な説明】
〔発明の技術分野〕
この発明は、マイクロプログラム命令でセットするタイ
マーカウンタに関するものでるる。DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a timer counter set by a microprogram instruction.
従来この種の方式として第2図に示tものがあった。図
において、(υは時間別に設けられたカウンタ群中から
1つのカウンタな指定するフィールドを持つマイクロプ
ログラム上のタイマーセット命令、(2)はタイマーセ
ット命令(1)のカウンタ指定によりカウンタを選択す
る回路、(31は時間別に設けられカウンタ選択回路1
2+で指定されたカウンタだけがカウントするカウンタ
群、(4)はカウンタ群(3)中の指定されたカウンタ
出力がオーバフローしたことを検出しマイクロプログラ
ムヘタイマーカウンタ割込を出す機構から成るタイマー
カウンタ方式である。Conventionally, there has been a system of this type as shown in FIG. In the figure, (υ is a timer set instruction on a microprogram that has a field that specifies one counter from a group of counters provided for each time, and (2) is a timer set instruction that selects a counter by the counter specification of timer set instruction (1). circuit, (31 is a counter selection circuit 1 provided for each time
A counter group in which only the counter specified by 2+ counts, and (4) is a timer counter consisting of a mechanism that detects that the output of the specified counter in counter group (3) has overflowed and issues a timer counter interrupt to the microprogram. It is a method.
次に動作について説明する。マイクロプログラム上指定
した時間に割込を発生させる場合2期待した一番近い値
で割込を発生するカウンタ群中の1つのカウンタを、タ
イマーセット命令(1)のカウンタ指定フィールドで指
定する。カウンタ選択回路+21 rtカウンタ指定フ
ィールドで指定されたカウンタをカウンタ群田)中から
選択する0選択されたカウンタはカウントを開始し、出
力をタイマーカウンタ割込機構(4)へ送る。カウンタ
群(3)からのカウンタ出力がオーバフローした時タイ
マーカウンタ割込機構(4)からマイクロプログラム上
へタイマーカウンタ割込音発生する。Next, the operation will be explained. When generating an interrupt at a time specified in the microprogram 2. Specify one counter in the group of counters that generates an interrupt with the closest expected value in the counter specification field of the timer set instruction (1). Counter selection circuit +21 Selects the counter specified in the rt counter specification field from among the counters. 0 The selected counter starts counting and sends the output to the timer counter interrupt mechanism (4). When the counter output from the counter group (3) overflows, the timer counter interrupt mechanism (4) generates a timer counter interrupt sound on the microprogram.
従来のタイマーカウンタ方式は以上のように構成されて
いるりで、指定し之い時間分のカウンタ個数を持たなけ
ればならず、カウンタ群が必要で。The conventional timer/counter method is configured as described above, but it must have a number of counters for the specified time, and a group of counters is required.
また、カウンタ群にない時間指定は新たにカウンタを設
け、細かい時間指定が出来ないなどの欠点がめった。Additionally, new counters are provided for time specifications that are not included in the counter group, which often has drawbacks such as the inability to specify detailed time specifications.
この発明は上記のような従来のものの欠点を除去するた
めになされたもので、タイマーセット命令中に時間指定
フィールドをカウントパルス指定とカウント値に分け1
つのカウンタで細かい時間指定のできるタイマーカウン
タ方式を提供するものでりる。This invention was made in order to eliminate the drawbacks of the conventional ones as described above, and it divides the time designation field into a count pulse designation and a count value during a timer set command.
This provides a timer/counter method that allows detailed time specification using one counter.
〔発明の実施例〕
以下、この発明の一実施例を図について説明する。第1
図に2いて、(1)はカウンタのカウントパルスを指定
しカウント値からなる時間指定フィールドを持つマイク
ロプログラム上のタイマーセット命令、(社)はタイマ
ーセット命令(11のカウントパルス指定によりカウン
タへ人力するパルスを選択するパルス選択回路、@はイ
ニシャルリセットでリセットされ反転したカウント値か
ら選択されたパルスによりカウントするカウンタ、(4
)は力9ンタ出力がオーバ70−した時マイクロプログ
ラムヘタイマーカウンタ割込を出す機構、 I211は
タイマーセット命令(1)のカウント値を反転しカウン
タ(2)へ送るゲートでるる。[Embodiment of the Invention] An embodiment of the invention will be described below with reference to the drawings. 1st
In Figure 2, (1) is a timer set instruction on a microprogram that specifies the count pulse of the counter and has a time specification field consisting of the count value. A pulse selection circuit that selects the pulse to be used, @ is a counter that is reset by initial reset and counts by the pulse selected from the inverted count value, (4
) is a mechanism that issues a timer counter interrupt to the microprogram when the output of the counter exceeds 70. I211 is a gate that inverts the count value of the timer set command (1) and sends it to the counter (2).
次に動作九ついて説明する。マイクロプログラム上指定
した時間に割込を発生させる場合、指定時間値よりパル
スを選択しパルスの単位時間よりカウント値を決めタイ
マーセット命令filの時間指定フィールドを設定する
0カウントパルス指定により複数設けられている中より
1つのパルスを選Nfるパルス選択回路@からカウンタ
(至)へカウントパルスを送る。タイマーセット命令1
11のカウント値を反転させゲーH1υを通しカウンタ
ーへ送る。Next, operation 9 will be explained. When generating an interrupt at a time specified in the microprogram, select a pulse from the specified time value, determine the count value from the unit time of the pulse, and set the time specification field of the timer set command fil. A count pulse is sent from the pulse selection circuit @ which selects one pulse from among the pulses Nf to the counter. Timer set command 1
The count value of 11 is inverted and sent to the counter through the game H1υ.
カウンタC!3aイニシャルリセットでリセットされ。Counter C! It is reset by 3a initial reset.
ゲー)011を通って送られる反転したカウント値をセ
ットし、パルス選択回路(2)からのパルス毎にカウン
トして行く、カウンタ(至)出力がオーバ70−した時
タイマーカウンタ割込機構(4)はマイクロプログラム
ヘタイマーカウンタ割込を発生させ指定時間になったこ
とを知らせる。A timer counter interrupt mechanism (4) sets the inverted count value sent through 011 and counts each pulse from the pulse selection circuit (2).When the counter output exceeds 70- ) generates a timer counter interrupt to the microprogram to notify it that the specified time has arrived.
なお、上記実施例ではカウント値の反転ゲートQυを設
けたものな示したが9反転ゲートを削除しカウンタ(至
)を減算カウンタにしてもよい0また。Incidentally, in the above embodiment, an inversion gate Qυ for the count value is provided, but the inversion gate Qυ may be deleted and the counter (to) may be replaced by a subtraction counter.
上記実施例ではタイマーカウンタ割込を発生したが、各
種トリガー信号であってもよく、上記実施例と同様の効
果を奏する。In the above embodiment, a timer counter interrupt is generated, but various trigger signals may be used, and the same effects as in the above embodiment can be achieved.
以上のように、この発明によればタイマーカウンタの入
力パルスを選択しカウント値からカウントする様に構成
したので、いくつものカウンタを設けなくてよく装置が
安価にでき、また、細かい時間指定が出来るものが得ら
れる効果かりる0As described above, according to the present invention, the input pulse of the timer counter is selected and counting is performed from the count value, so there is no need to provide multiple counters, the device can be made inexpensive, and detailed time specifications can be made. The effect of getting something is 0
第1図はこの発明の一実施例によるタイマーカウンタ方
式を示す図、第2図は従来のタイマーカウンタ方式を示
す図である。
(1)はタイマーセット命令、(21はカウンタ選択回
路、 13)はカウンタ群、(4)はタイマーカウンタ
割込機構、Qっはカウント値反転ゲート、g3はパルス
選択回路、@はカウンタ。
なお9図中、同一符号は同一、又は相自部分を示す。FIG. 1 is a diagram showing a timer counter system according to an embodiment of the present invention, and FIG. 2 is a diagram showing a conventional timer counter system. (1) is a timer set command, (21 is a counter selection circuit, 13) is a counter group, (4) is a timer counter interrupt mechanism, Q is a count value inversion gate, g3 is a pulse selection circuit, and @ is a counter. In Figure 9, the same reference numerals indicate the same or similar parts.
Claims (1)
ント値を指定する時間指定フィールドを持つタイマーセ
ット命令を設け、前記フィールドのカウントパルス指定
により複数の周波数別パルス群からパルスを選択する回
路と、イニシャルリセットでリセットされカウント値か
ら選択されたパルスによりカウントするカウンタと、カ
ウンタ出力がオーバフローした時マイクロプログラムへ
タイマーカウンタ割込を出す機構を備えカウンタが一式
で入力パルス単位に時間指定が出来ることを特徴とした
タイマーカウンタ方式。A timer set instruction with a count pulse specification and a time specification field for specifying the count value is provided in the microprogram instruction, and a circuit that selects a pulse from a plurality of frequency-based pulse groups according to the count pulse specification in the field, and is reset by initial reset. A timer that is equipped with a counter that counts based on pulses selected from the counted value, and a mechanism that issues a timer counter interrupt to the microprogram when the counter output overflows. Counter method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2306485A JPS61182590A (en) | 1985-02-08 | 1985-02-08 | Timer counter system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2306485A JPS61182590A (en) | 1985-02-08 | 1985-02-08 | Timer counter system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS61182590A true JPS61182590A (en) | 1986-08-15 |
Family
ID=12099983
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2306485A Pending JPS61182590A (en) | 1985-02-08 | 1985-02-08 | Timer counter system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS61182590A (en) |
-
1985
- 1985-02-08 JP JP2306485A patent/JPS61182590A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS61182590A (en) | Timer counter system | |
EP0446833B1 (en) | Display control apparatus enabling clear display of operation performance of an arithmetic processor | |
SU1640689A1 (en) | Variable priority device | |
US4164712A (en) | Continuous counting system | |
SU1418715A1 (en) | Variable priority device | |
JP2884764B2 (en) | Signal processor | |
JPH01194550A (en) | Alarm signal holding circuit | |
JPS5886649A (en) | Watchdog timer | |
SU645158A1 (en) | Programme interrupting device | |
SU1096645A1 (en) | Multichannel device for priority pulse selection | |
SU1067503A1 (en) | Device for control of program interrupts | |
SU1444802A1 (en) | Device for simulating activity of human operator | |
SU1264176A1 (en) | Multichannel priority device | |
SU1485268A1 (en) | Computer system simulator | |
SU1432535A1 (en) | Device for interfacing subscribers with computer | |
JPH03273437A (en) | Interruption processor | |
JPS62151941A (en) | Interrupting signal control method | |
SU600558A1 (en) | Priority device | |
SU631925A1 (en) | Arrangement for simulating information collecting and processing process | |
JP2716203B2 (en) | Information processing device | |
JPS62239611A (en) | Digital signal noise eliminating circuit | |
JPH0474231A (en) | Interruption control circuit | |
JPS633341A (en) | Preference control processing method | |
JPH03188712A (en) | Signal interruption detection circuit | |
JPH0580089A (en) | Timer device |