Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0467656B2 - - Google Patents
[go: Go Back, main page]

JPH0467656B2 - - Google Patents

Info

Publication number
JPH0467656B2
JPH0467656B2 JP60291976A JP29197685A JPH0467656B2 JP H0467656 B2 JPH0467656 B2 JP H0467656B2 JP 60291976 A JP60291976 A JP 60291976A JP 29197685 A JP29197685 A JP 29197685A JP H0467656 B2 JPH0467656 B2 JP H0467656B2
Authority
JP
Japan
Prior art keywords
value
timer
counter
count
register
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
JP60291976A
Other languages
Japanese (ja)
Other versions
JPS62152044A (en
Inventor
Susumu Nanba
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
Toshiba Computer Engineering Corp
Original Assignee
Toshiba Corp
Toshiba Computer Engineering 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, Toshiba Computer Engineering Corp filed Critical Toshiba Corp
Priority to JP60291976A priority Critical patent/JPS62152044A/en
Publication of JPS62152044A publication Critical patent/JPS62152044A/en
Publication of JPH0467656B2 publication Critical patent/JPH0467656B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、情報処理装置に於いて、単一のハー
ドウエアタイマを論理的に多重化して用いるタイ
マ機構の制御方法に係り、特にタイマカウント制
御の割込み発生頻度を大幅に低減してシステムス
ループツトの向上が計れるハードウエアタイマの
制御方法に関する。
Detailed Description of the Invention [Field of Industrial Application] The present invention relates to a method of controlling a timer mechanism in an information processing device that logically multiplexes a single hardware timer, and particularly relates to a method for controlling a timer mechanism that logically multiplexes a single hardware timer. This invention relates to a hardware timer control method that can significantly reduce the frequency of control interrupts and improve system throughput.

[従来の技術] 単一のハードウエアタイマを論理的に多重化し
て用いるタイマ機構の制御手法として、従来で
は、タイマの設定時間に拘らず一定の時間間隔で
割込みを発生させて、制御テーブル上に登録され
た各ソフトウエアタイマの設定時間を減算してゆ
き、その値が[0]になつたものがタイムアウト
であると検知する。
[Prior Art] Conventionally, as a control method for a timer mechanism that uses a single hardware timer by logically multiplexing it, interrupts are generated at fixed time intervals regardless of the set time of the timer, and an interrupt is generated on a control table. The set time of each software timer registered in is subtracted, and when the value becomes [0], a timeout is detected.

しかしながら、上記したような従来のタイマ制
御手段に於いては次のような欠点があつた。
However, the conventional timer control means as described above has the following drawbacks.

即ち、上記したタイマ制御手段に於いては、一
定時間間隔で割込みを発生させて制御テーブル上
に置かれたソフトウエアタイマの設定時間を減算
してゆく構成であることから、一定時間毎の定期
的な割込みが必要であり、従つて設定時間の単位
を小さくとればとるほど割込みの発生回数が増加
し、これに伴つてシステムスループツトの低下を
招くという欠点を有していた。
That is, since the above-described timer control means is configured to generate an interrupt at fixed time intervals and subtract the set time of the software timer placed on the control table, Therefore, the smaller the unit of set time is, the more the number of interrupts will occur, resulting in a reduction in system throughput.

[発明が解決しようする問題点] 本発明は、単一のハードウエアタイマを論理的
に多重化して用いるタイマ機構に於いて、タイマ
カウント制御のための割込みの発生頻度を大幅に
低減させ、これによつてシステムのスループツト
を向上させることのできるハードウエアタイマの
制御方法を提供するものである。
[Problems to be Solved by the Invention] The present invention significantly reduces the frequency of occurrence of interrupts for timer count control in a timer mechanism that logically multiplexes a single hardware timer. The present invention provides a hardware timer control method that can improve system throughput.

[問題点を解決するための手段及び作用] 本発明は、タイマ設定値を貯えるレジスタと、
一定タイミングの時刻信号を受けて計時カウント
を行なうカウンタと、このカウンタのカウント値
が上記レジスタの設定値に達した際に割込み要求
を発生する比較器とでなるタイマハードウエアを
用意するとともに、上記カウンタがカウント動作
を実行しているとき、タイマ起動要求が発生する
と、上記レジスタに貯えられた設定値から上記カ
ウンタの現カウント値を差し引いたカウント残り
時間の値と上記要求による新たな設定値とを比較
し、上記新たな設定値が上記残り時間の値よりも
小さいとき、上記レジスタに貯えられている設定
値をタイマカウント待ち状態として退避させ、上
記新たな設定値に上記カウンタのカウント値を加
えた値を新たな比較対象として上記レジスタにセ
ツトする制御手段と、上記新たな設定値が上記残
り時間の値よりも大きいとき、その新たな設定値
に上記カウンタのカウント値を加えた値をタイマ
カウント待ち状態として退避させ、上記カウンタ
のカウント値を変更せずにそのまま比較対象とす
る制御手段と、上記比較器より割込み要求が発生
した際、上記カウント割込み待ち状態にある各タ
イマ設定値から上記カウンタのカウント値を差し
引いて、上記カウンタを初期化し、上記タイマカ
ウント待ち状態にある各タイマ設定値から最小の
タイマ設定値を検索し、同タイマ設定値を新たな
比較対象として上記レジスタにセツトする手段と
を有して、タイマ起動要求それぞれのタイマ制御
並びにタイマ管理を実行するもので、これによ
り、上記ハードウエア機能を有効活用し、タイマ
制御のための一定の割込みを必要とせずに、割込
み発生頻度を大幅に低減でき、これに伴つてシス
テムのスループツトを向上できる。
[Means and effects for solving the problems] The present invention provides a register for storing timer setting values;
Prepare timer hardware consisting of a counter that performs time counting in response to a time signal at a fixed timing, and a comparator that generates an interrupt request when the count value of this counter reaches the set value of the register above. When a timer activation request occurs while the counter is executing a counting operation, the remaining count time value obtained by subtracting the current count value of the counter from the setting value stored in the register above and the new setting value due to the above request are combined. If the new set value is smaller than the remaining time value, the set value stored in the register is saved as a timer count wait state, and the count value of the counter is set to the new set value. A control means sets the added value in the register as a new comparison target, and when the new set value is larger than the remaining time value, a value obtained by adding the count value of the counter to the new set value. A control means that saves the count value of the counter as a timer count wait state and uses it as a comparison target without changing the count value of the counter, and when an interrupt request is generated from the comparator, from each timer setting value in the count interrupt wait state. Initialize the above counter by subtracting the count value of the above counter, search for the minimum timer setting value from each timer setting value in the above timer count waiting state, and set the same timer setting value in the above register as a new comparison target. The present invention has means for executing timer control and timer management for each timer activation request, thereby effectively utilizing the above hardware functions and eliminating the need for constant interrupts for timer control. The frequency of interrupt occurrence can be significantly reduced, and system throughput can be improved accordingly.

[実施例] 以下図面を参照して本発明の一実施例を説明す
る。
[Example] An example of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例を実現するためのハ
ードウエア構成を示すブロツク図である。
FIG. 1 is a block diagram showing a hardware configuration for realizing an embodiment of the present invention.

第1図に於いて、11は図示しないハードウエ
ア回路からの時刻信号TPにより+1ずつ増加す
るカウントレジスタであり以下単にカウンタと称
す。12はタイマ起動要求に従うタイマ設定値
(即ちカウンタ11が到達すべき最大値)を貯え
る最大値レジスタであり、以下単にレジスタと称
す。13は上記カウンタ11の起動/停止制御を
行なう制御レジスタである。14は上記カウンタ
11のカウント値とレジスタ12の設定値とを比
較し、カウンタ11のカウント値がレジスタ12
の設定値に達することによつて割込み要求IRQを
発生する比較器である。
In FIG. 1, numeral 11 is a count register that increases by +1 in response to a time signal T P from a hardware circuit (not shown), and is hereinafter simply referred to as a counter. Reference numeral 12 denotes a maximum value register that stores a timer setting value (that is, the maximum value that the counter 11 should reach) in accordance with a timer activation request, and is hereinafter simply referred to as a register. Reference numeral 13 denotes a control register for controlling start/stop of the counter 11. 14 compares the count value of the counter 11 and the set value of the register 12, and the count value of the counter 11 is compared with the set value of the register 12.
This is a comparator that generates an interrupt request IRQ when the set value of IRQ is reached.

第2図乃至第7図はそれぞれ上記実施例の動作
を説明するためのもので、第2図乃至第5図は各
タイマ要素間の時間関係を説明をするための図、
第6図及び第7図はそれぞれ動作処理フローを示
すフローチヤートである。このうち、第2図及び
第3図はそれぞれ上記カウンタ11が上記レジス
タ12に貯えられた設定値を最終カウント値とし
てカウント動作を実行している際に、新たなタイ
マ起動要求が発生した場合の各時間値を示したも
ので、第2図は新たなタイマ起動要求による設定
値(設定時間)T2が、レジスタ12の設定値か
らメインメモリ11のカウント値を差し引いた残
りの時間値TLよりも短い(TL>T2)場合であ
り、第3図は新たなタイマ起動要求による設定値
(設定時間)T2が、レジスタ12の設定値からメ
インメモリ11のカウント値を差し引いた残りの
時間値TLよりも長い(TL<T2)場合である。こ
こで、第2図の場合(即ちTL>T2の場合)は通
信チヤネル12のタイマ設定値が変更され、第3
図の場合(即ちTL≦T2の場合)はタイマ設定値
が変更されない。
2 to 7 are for explaining the operation of the above embodiment, respectively, and FIGS. 2 to 5 are for explaining the time relationship between each timer element,
FIG. 6 and FIG. 7 are flowcharts showing the operation processing flow, respectively. Of these, FIGS. 2 and 3 show cases in which a new timer activation request occurs while the counter 11 is executing a counting operation using the set value stored in the register 12 as the final count value. Each time value is shown in Figure 2, where the set value (set time) T 2 due to a new timer activation request is the remaining time value T L obtained by subtracting the count value of the main memory 11 from the set value of the register 12. (T L > T 2 ) , and as shown in FIG. ( T L < T 2 ). Here, in the case of FIG. 2 (that is, when T L > T 2 ), the timer setting value of the communication channel 12 is changed, and the third
In the case shown in the figure (ie, T L ≦T 2 ), the timer setting value is not changed.

又、第4図、及び第5図は割込み発生時と割込
み発生後のカウンタ11及びレジスタ12の設定
状態の変化を示したもので、第4図は割込み発生
時(即ちカウンタ11のカウント値がレジスタ1
2の設定値に達した際の比較器14からの割込み
要求IRQ出力時)、第5図はその割込み発生後で
あり、T1,T2,T3はそれぞれタイマ起動要求に
よるタイマ設定値を示している。
4 and 5 show changes in the setting states of the counter 11 and register 12 when an interrupt occurs and after the interrupt occurs. register 1
(When the interrupt request IRQ is output from the comparator 14 when the set value of 2 is reached), Figure 5 shows the result after the interrupt has occurred, and T 1 , T 2 , and T 3 each indicate the timer set value by the timer start request. It shows.

又、第6図は上記実施例に於ける新たなタイマ
起動要求時の処理フロー、第7図は割込み要求
IRQ発生時の処理フローをそれぞれ示している。
図中、TCは現時点におけるタイマカウントの比
較対象となつている(カウンタ11に貯えられて
いる)タイマ設定値、TNは新たなタイマ起動要
求によるタイマ設定値、TOはタイマカウント待
ちとして一時退避されるタイマ設定値、Cはカウ
ンタ11のカウント値、Rはレジスタ12の設定
値である。
Also, Fig. 6 shows the processing flow when a new timer activation request is made in the above embodiment, and Fig. 7 shows an interrupt request.
Each figure shows the processing flow when an IRQ occurs.
In the figure, T C is the timer setting value (stored in counter 11) that is being compared with the current timer count, T N is the timer setting value due to a new timer activation request, and T O is the timer setting value that is being compared with the timer count. The timer setting value that is temporarily saved, C is the count value of the counter 11, and R is the setting value of the register 12.

ここで上記各図を参照しながら一実施例の動作
を説明する。
Here, the operation of one embodiment will be explained with reference to the above figures.

初期状態に於いて、カウンタ11は制御レジス
タ13の制御によりカウント動作を停止してい
る。従つて比較器14からは割込み要求IRQが発
生されない。
In the initial state, the counter 11 stops counting under the control of the control register 13. Therefore, the comparator 14 does not generate an interrupt request IRQ.

最初のタイマ起動要求でそのタイマ設定値がレ
ジスタ12に設定され、カウンタ11がカウント
動作を開始する。
At the first timer activation request, the timer setting value is set in the register 12, and the counter 11 starts counting.

ここで、上記カウンタ11がカウント動作を実
行中にタイマ起動要求がなければ、カウンタ11
のカウント値がレジスタ12の設定値に達するこ
とによつて、比較器14より割込み要求IRQが発
生する。
Here, if there is no timer activation request while the counter 11 is executing the counting operation, the counter 11
When the count value reaches the set value of the register 12, the comparator 14 generates an interrupt request IRQ.

又、上記カウンタ11がカウント動作を実行中
にタイマ起動要求があると、第6図に示す処理が
実行される。
Further, when a timer activation request is received while the counter 11 is performing a counting operation, the process shown in FIG. 6 is executed.

この処理は、先ず、レジスタ12の設定値TC
からカウンタ11のカウント値Cを差し引いたカ
ウント残りの時間値TLを求め、この残りの時間
値TLと新たなタイマ起動要求によるタイマ設定
値TNとを比較する。
This process begins with the set value T C of register 12.
The remaining time value T L is obtained by subtracting the count value C of the counter 11 from the time value C, and this remaining time value T L is compared with the timer setting value T N based on the new timer activation request.

ここで、新たなタイマ起動要求によるタイマ設
定値TNが残りの時間値TLよりも小さい(TN
TL)ときは、レジスタ12に貯えられているタ
イマ設定値TCをタイマカウント待ち状態として
一時退避させ(TO←TC)、新たなタイマ起動要求
によるタイマ設定値TNにカウンタ11のカウン
ト値Cを加えた新たなタイマ設定値をレジスタ1
2にセツト(R←TN+C)する。
Here, the timer setting value T N due to the new timer activation request is smaller than the remaining time value T L (T N <
T L ), the timer setting value T C stored in the register 12 is temporarily saved as a timer count wait state (T O ← T C ), and the timer setting value T N of the counter 11 is changed by a new timer activation request. Add the new timer setting value by adding the count value C to register 1.
Set to 2 (R←T N +C).

これにより、以後は新たなタイマ起動要求によ
るタイマ設定値TNを対象にタイマカウントが開
始される。
As a result, from now on, timer counting is started using the timer setting value TN based on a new timer activation request.

この際の各タイマ要素の時間関係を第2図に示
している。ここでは新たなタイマ起動要求による
タイマ設定値TNをT2で示している。
The time relationship of each timer element at this time is shown in FIG. Here, the timer setting value T N based on the new timer activation request is indicated by T 2 .

又、上記新たなタイマ起動要求によるタイマ設
定値TNが残りの時間値TLよりも大きい(TN
TL)ときは、新たなタイマ起動要求によるタイ
マ設定値TNにカウンタ11のカウント値Cを加
えた値をタイマカウント待ち状態として一時退避
させ(TO←TN+C)、現行のタイマ設定値TC
対象にタイマカウントを継続する。
In addition, the timer setting value T N resulting from the above new timer activation request is larger than the remaining time value T L (T N >
T L ), the value obtained by adding the count value C of the counter 11 to the timer setting value T N due to a new timer activation request is temporarily saved as a timer count wait state (T O ←T N +C), and the current timer setting is The timer continues counting for the value T C.

この際の各タイマ要素の時間関係を第3図に示
している。
The time relationship of each timer element at this time is shown in FIG.

次に、カウンタ11のカウント値がレジスタ1
2の設定値に達して比較器14より割込み要求
IRQが発生されると第7図に示す処理が実行され
る。
Next, the count value of counter 11 is set to register 1.
When the set value of 2 is reached, the comparator 14 requests an interrupt.
When an IRQ is generated, the process shown in FIG. 7 is executed.

この処理は、先ず、一時退避されたタイマ設定
値Tpがそれぞれ上記カウンタ11のカウント値
Cだけ差き引かれ(Tp←Tp−C)、その後、カウ
ンタ11が初期化(クリア)される。
In this process, first, the temporarily saved timer setting value T p is subtracted by the count value C of the counter 11 (T p ← T p −C), and then the counter 11 is initialized (cleared). Ru.

そして一時退避された各タイマ設定値(Tp
Tp,…)のうちから、最も小さな設定値を検索
し、これを新たなタイマ設定値としてレジスタ1
2にセツトする。
Then, each timer setting value (T p ,
T p ,...), search for the smallest setting value and use this as the new timer setting value in register 1.
Set to 2.

これにより、以後は一時退避されたタイマ設定
値を対象に再び新たなタイマカウントが開始され
る。
As a result, a new timer count is started again using the temporarily saved timer setting value.

この際の割込み要求IRQ発生時のカウンタ1
1、及びレジスタ12の各状態を第4図に示し、
同割込み発生後の同状態を第5図に示している。
尚、ここでは一時退避された各タイマ設定値
(Tp,Tp,…)をT1,T2,T3として示している。
Counter 1 when the interrupt request IRQ occurs at this time
1 and the states of the register 12 are shown in FIG.
FIG. 5 shows the same state after the occurrence of the interrupt.
Note that the temporarily saved timer setting values (T p , T p , . . . ) are shown here as T 1 , T 2 , T 3 .

上記したような処理が各事象発生毎に繰返し実
行され、単一のハードウエアタイマを論理的に多
重化して用いたタイマが機能する。
The above-described processing is repeatedly executed each time an event occurs, and a timer using a single hardware timer logically multiplexed functions.

上述の如くしてタイマ処理が実行されることか
ら、一定時間毎の割込みを必要とせず、割込みの
発生頻度を低減してシステムのスループツトを向
上できる。
Since the timer processing is executed as described above, there is no need for interrupts at regular intervals, and the frequency of occurrence of interrupts can be reduced to improve system throughput.

尚、上記した実施例は、カウンタ11を時刻信
号TPに従いカウントアツプする動作を例にとつ
たが、例えばタイマ起動に際して、設定値をカウ
ンタにセツトし、タイマ起動時に上記カウンタ1
1を時刻信号TPに従い減算カウントしてゆく構
成としても上記実施例と同様のタイマ動作を実現
できる。
In the above embodiment, the counter 11 is counted up in accordance with the time signal TP , but for example, when the timer is started, a set value is set in the counter,
A timer operation similar to that of the above embodiment can be realized even with a configuration in which 1 is subtracted and counted according to the time signal T P.

[発明の効果] 以上詳記したように本発明によるハードウエア
タイマの制御方法によれば、単一のハードウエア
タイマを論理的に多重化して用いるタイマ機構に
於いて、タイマ設定値を貯えるレジスタと、一定
タイミングの時刻信号を受けて計時カウントを行
なうカウンタと、このカウンタのカウント値が上
記レジスタの設定値に達した際に割込み要求を発
生する比較器とでなるタイマハードウエアを用意
するとともに、上記カウンタがカウント動作を実
行しているとき、タイマ起動要求が発生すると、
上記レジスタに貯えられた設定値から上記カウン
タの現カウント値を差し引いたカウント残り時間
の値と上記要求による新たな設定値とを比較し、
上記新たな設定値が上記残り時間の値よりも小さ
いとき、上記レジスタに貯えられている設定値を
タイマカウント待ち状態として退避させ、上記新
たな設定値に上記カウンタのカウント値を加えた
値を新たな比較対象として上記レジスタにセツト
する制御手段と、上記新たな設定値が残り時間の
値よりも大きいとき、その新たな設定値に上記カ
ウンタのカウント値を加えた値をタイマカウント
待ち状態として退避させ、上記カウンタのカウン
ト値を変更せずにそのまま比較対象とする制御手
段と、上記比較器より割込み要求が発生した際、
上記タイマカウント割込み待ち状態にある各タイ
マ設定値から上記カウンタのカウント値を差し引
いて、上記カウンタを初期化し、上記タイマカウ
ント待ち状態にある各タイマ設定値から最小のタ
イマ設定値を検索し、同タイマ設定値を新たな比
較対象として上記レジスタにセツトする手段とを
有して、タイマ起動要求それぞれのタイマ制御並
びにタイマ管理を実行することにより、上記ハー
ドウエア機能を有効活用し、タイマ制御のための
一定の割込みを必要とせずに、割込み発生頻度を
大幅に低減でき、これに伴つてシステムのスルー
プツトを向上できる。
[Effects of the Invention] As detailed above, according to the hardware timer control method according to the present invention, in a timer mechanism that logically multiplexes a single hardware timer, a register for storing timer setting values is used. In addition, we prepare timer hardware consisting of a counter that performs time counting in response to a time signal at a fixed timing, and a comparator that generates an interrupt request when the count value of this counter reaches the set value of the above register. , when a timer start request occurs while the above counter is performing a counting operation,
Compare the value of the remaining count time obtained by subtracting the current count value of the counter from the set value stored in the register with the new set value according to the above request,
When the above new set value is smaller than the above remaining time value, the set value stored in the above register is saved as a timer count wait state, and the value obtained by adding the count value of the above counter to the above new set value is set. A control means sets the register as a new comparison target, and when the new set value is greater than the remaining time value, the new set value plus the count value of the counter is set as a timer count wait state. A control means that saves the count value of the counter and uses it as a comparison target without changing the count value of the counter, and when an interrupt request is generated from the comparator,
Initialize the above counter by subtracting the count value of the above counter from each timer setting value in the above timer count interrupt wait state, search for the minimum timer setting value from each timer setting value in the above timer count wait state, and By having a means for setting the timer setting value in the above register as a new comparison target and executing timer control and timer management for each timer start request, the above hardware function can be effectively utilized and the timer control can be performed. The frequency of interrupt occurrence can be significantly reduced without requiring constant interrupts, and system throughput can be improved accordingly.

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

図は本発明の一実施例を説明するためのもの
で、第1図はハードウエア構成を示すブロツク
図、第2図乃至第5図はそれぞれ各タイマ要素相
互に於ける時間関係を説明するための図、第6図
及び第7図はそれぞれ処理フローを示すフローチ
ヤートである。 11…カウンタ(カウントレジスタ)、12…
レジスタ(最大値レジスタ)、13…制御レジス
タ、14…比較器。
The figures are for explaining one embodiment of the present invention. Fig. 1 is a block diagram showing the hardware configuration, and Figs. 2 to 5 are for explaining the time relationships among each timer element. , FIG. 6, and FIG. 7 are flowcharts showing the processing flow, respectively. 11...Counter (count register), 12...
Register (maximum value register), 13...control register, 14...comparator.

Claims (1)

【特許請求の範囲】 1 単一のハードウエアタイマを論理的に多重化
して用いるタイマ機構に於いて、 タイマ設定値を貯えるレジスタと、一定タイミ
ングの時刻信号を受けて計時カウントを行なうカ
ウンタと、このカウンタのカウント値が上記レジ
スタの設定値に達した際に割込み要求を発生する
比較器とをもち、 上記カウンタがカウント動作を実行していると
き、タイマ起動要求が生じると、上記レジスタに
貯えられた設定値から上記カウンタの現カウント
値を差し引いたカウント残り時間の値を求めて、
そのカウント残り時間の値と上記要求による新た
な設定値とを比較し、 上記新たな設定値が上記残り時間の値よりも小
さいとき、上記レジスタに貯えられている設定値
をタイマカウント待ち状態として退避させ、上記
新たな設定値に上記カウンタのカウント値を加え
た値を新たな比較対象として上記レジスタにセツ
トし、 上記新たな設定値が上記残り時間の値よりも大
きいとき、その新たな設定値に上記カウンタのカ
ウント値を加えた値をタイマカウント待ち状態と
して退避させ、上記カウンタのカウント値を変更
せずにそのまま比較対象とし、 上記比較器より割込み要求が発生することによ
り、タイマカウント割込み待ち状態にある各タイ
マ設定値から上記カウンタのカウント値を差し引
いて、上記カウンタを初期化し、上記タイマカウ
ント待ち状態にある各タイマ設定値から最小のタ
イマ設定値を検索し、同タイマ設定値を新たな比
較対象として上記レジスタにセツトするハードウ
エアタイマの制御方法。
[Scope of Claims] 1. In a timer mechanism that logically multiplexes a single hardware timer and uses the following: This counter has a comparator that generates an interrupt request when the count value of this counter reaches the set value of the above register, and when a timer start request is generated while the above counter is performing counting operation, it is stored in the above register. Find the remaining count time by subtracting the current count value of the above counter from the set value,
The value of the remaining count time is compared with the new setting value according to the above request, and if the new setting value is smaller than the remaining time value, the setting value stored in the above register is set as the timer count waiting state. The value obtained by adding the count value of the counter to the above new set value is set in the above register as a new comparison target, and when the above new set value is larger than the above remaining time value, the new setting is The value obtained by adding the count value of the above counter to the value is saved as a timer count wait state, and the count value of the above counter is used as a comparison target without changing, and when an interrupt request is generated from the above comparator, a timer count interrupt is generated. Initialize the counter by subtracting the count value of the counter from each timer setting value in the waiting state, search for the minimum timer setting value from each timer setting value in the waiting state for timer count, and set the same timer setting value. A method of controlling a hardware timer that is set in the above register as a new comparison target.
JP60291976A 1985-12-26 1985-12-26 Control method for hardware timer Granted JPS62152044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60291976A JPS62152044A (en) 1985-12-26 1985-12-26 Control method for hardware timer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60291976A JPS62152044A (en) 1985-12-26 1985-12-26 Control method for hardware timer

Publications (2)

Publication Number Publication Date
JPS62152044A JPS62152044A (en) 1987-07-07
JPH0467656B2 true JPH0467656B2 (en) 1992-10-29

Family

ID=17775898

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60291976A Granted JPS62152044A (en) 1985-12-26 1985-12-26 Control method for hardware timer

Country Status (1)

Country Link
JP (1) JPS62152044A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5375756B2 (en) * 2010-06-18 2013-12-25 株式会社デンソー Time monitoring apparatus and method

Also Published As

Publication number Publication date
JPS62152044A (en) 1987-07-07

Similar Documents

Publication Publication Date Title
US5708814A (en) Method and apparatus for reducing the rate of interrupts by generating a single interrupt for a group of events
KR20090088942A (en) Interrupt controller
JPH0467656B2 (en)
US7127632B2 (en) Method and device for synchronizing integrated circuits
SU1441398A1 (en) Multichannel dynamic priority device
JPH05313776A (en) Pulse generation circuit
JPS6024968B2 (en) timer device
CN113495781B (en) Task scheduling method, device, equipment and readable storage medium
JPS60168240A (en) Interrupt processing circuit
JP2566002B2 (en) Task dispatching method
SU1580363A1 (en) Multichannel priority device
SU1709313A1 (en) Device for foregrounding calls
SU1633405A1 (en) Priority signal selection device
JPH09134294A (en) Interruption control circuit
JPS61245242A (en) Interruption input device
JPH0675780A (en) Interruption controller
SU1661765A1 (en) Multichannel prioritizer
RU1803969C (en) Device for selecting pulses from pulse train
JPH0934727A (en) Interrupt control method
JPS63265349A (en) Data transfer controller
JPH04373056A (en) interrupt controller
JPH0353364A (en) Information processing system
JPH0520102A (en) Priority changing system for resources acquisition waiting processing
JP2000066903A (en) Interrupt processing system and interrupt processing method
JPH02292653A (en) Channel control system