JPH04122132A - Timer device - Google Patents
Timer deviceInfo
- Publication number
- JPH04122132A JPH04122132A JP2243170A JP24317090A JPH04122132A JP H04122132 A JPH04122132 A JP H04122132A JP 2243170 A JP2243170 A JP 2243170A JP 24317090 A JP24317090 A JP 24317090A JP H04122132 A JPH04122132 A JP H04122132A
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- processing unit
- interrupt request
- central processing
- base station
- 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
- 230000004044 response Effects 0.000 claims description 12
- 230000006378 damage Effects 0.000 abstract 1
- 230000002950 deficient Effects 0.000 abstract 1
- 238000000034 method Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
Landscapes
- Electric Clocks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はタイマー装置に関し、特に自動車の無線機基地
局装置に使用されるタイマー装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a timer device, and particularly to a timer device used in a radio base station device of a vehicle.
従来のタイマー装置の動作について図面を参照して説明
する。The operation of a conventional timer device will be explained with reference to the drawings.
第4図は従来のタイマー装置の動作の一例を示すフロー
チャートである。FIG. 4 is a flowchart showing an example of the operation of a conventional timer device.
第4図において、従来のタイマー装置は、カウンタ値が
1から0になった時(ステップ24)、タイムアウトが
発生し、割込要求を送出しくステップ25)、基地局装
置の中央処理装置が割込要求を受け取ると割込応答を返
送してくるのでそれを受信すると動作を停止する構成と
なっていた。In FIG. 4, in the conventional timer device, when the counter value goes from 1 to 0 (step 24), a timeout occurs and an interrupt request is sent out. When an interrupt request is received, an interrupt response is sent back, so when the interrupt response is received, the operation is stopped.
上述した従来のタイマー装置では、基地局装置の中央処
理装置からの割込応答を受けとると、基地局装置の中央
処理装置は必ず割込処理を実行するとみなしているので
、基地局装置内の記憶装置の容量不足や、割込応答を返
してからタスクを行うまでに中央処理装置が壊れた場合
、割込処理が実行されないという問題点があった。In the conventional timer device described above, when receiving an interrupt response from the central processing unit of the base station device, it is assumed that the central processing unit of the base station device always executes the interrupt process. There is a problem in that if the device capacity is insufficient or if the central processing unit breaks down between returning an interrupt response and executing a task, interrupt processing will not be executed.
本発明のタイマー装置は、基地局装置内の中央処理装置
がカウンタ回路に設定したカウンタ値を一定時間ごとに
1ずつ減算して予め設定したある一定値になると割込要
求を前記中央処理装置へ送出するタイマー装置において
、前記カウンタ回路のカウンタ値が1のときにカウント
ダウンを中止して割込要求を前記中央処理装置へ送出し
、前記中央処理装置から前記割込要求に対する割込応答
を受け取ると前記割込要求を解除し、予め設定した一定
時間後に前記カウンタ回路をチェックして前記カウンタ
値が1ならば再び割込要求を送出し、前記カウンタ値が
Oになると動作を停止する制御手段を有している。In the timer device of the present invention, a central processing unit in a base station device subtracts a counter value set in a counter circuit by 1 at regular intervals, and when the value reaches a certain preset value, an interrupt request is sent to the central processing unit. In the sending timer device, when the counter value of the counter circuit is 1, the countdown is stopped and an interrupt request is sent to the central processing unit, and when an interrupt response to the interrupt request is received from the central processing unit. Control means for canceling the interrupt request, checking the counter circuit after a preset certain period of time, sending out the interrupt request again if the counter value is 1, and stopping the operation when the counter value becomes O. have.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例の適用例を示すブロック図、
第2図は本実施例の制御回路の制御手順の一例を示すフ
ローチャート、第3図は本実施例の動作の一例を示すタ
イムチャートである。FIG. 1 is a block diagram showing an example of application of an embodiment of the present invention;
FIG. 2 is a flowchart showing an example of a control procedure of the control circuit of this embodiment, and FIG. 3 is a time chart showing an example of the operation of this embodiment.
第1図において、本適用例は基地局装置2と、基地局装
置2からのタロツク信号CLKによって動作するタイマ
ー装置1とを備えて構成し、基地局装置2はメモリ22
に格納されたプログラムによって基地局装置1全体の処
理を行う中央処理袋W(以下CPUと記す)21を有し
、タイマー装置1はCPU21によってタイマー値が初
期設定されるカウンタ回路11と、CPU21に割込要
求信号INTを送出しCPU21から割込応答IACK
を受信する割込要求回路13と、タイマー装置1全体を
制御し且つカウンタ回路11を減算させる制御回路12
とを有して構成している。In FIG. 1, this application example includes a base station device 2 and a timer device 1 operated by a tarlock signal CLK from the base station device 2, and the base station device 2 has a memory 22.
The timer device 1 has a central processing unit W (hereinafter referred to as CPU) 21 that processes the entire base station device 1 according to a program stored in the CPU 21. Sends interrupt request signal INT and receives interrupt response IACK from CPU 21
an interrupt request circuit 13 that receives the interrupt request circuit 13; and a control circuit 12 that controls the entire timer device 1 and causes the counter circuit 11 to subtract.
It is composed of:
次に、本適用例の動作について第1図、第2図および第
3図を用いて説明する。Next, the operation of this application example will be explained using FIGS. 1, 2, and 3.
基地局装置2のCPU21はあるタスク(タイムアウト
処理)実行の際に、実行するタスクに対応してメモリ2
2からのカウンタ値をカウンタ回路11に設定する。When executing a certain task (timeout processing), the CPU 21 of the base station device 2 stores data in the memory 2 corresponding to the task to be executed.
The counter value from 2 is set in the counter circuit 11.
制御回路12はステップ11でカウンタ回路11のカウ
ンタ値をリードし、ステップ12でカウンタ値が“0”
であるかどうか判断し、カウンタ値が“0”でなければ
ステップ13に進み、カウンタ値が“l”でステップ1
4に進んで割込要求信号INTを割込要求回路13から
CPU21へ送出させる。カウンタ値、I¥1でなけれ
ばステップ15に進み、カウンタ値を“−1″減算させ
る。CPLI21から割込応答IACKが有れば(ステ
ップ16)、CPU21がカウンタ値を“0”に設定す
るので動作を停止する(ステップ18)、 もし、割込
応答IACKが無ければ予め設定した一定時間後(ステ
ップ17)、カウンタ回路11のカウンタ値が“1”な
らば再度割込要求信号INTをCPU21へ送出し、以
下同様に繰り返し、カウンタ回路11のカウンタ値が“
O”になると動作は停止する。The control circuit 12 reads the counter value of the counter circuit 11 in step 11, and the counter value becomes "0" in step 12.
If the counter value is "0", the process proceeds to step 13, and if the counter value is "l", the process proceeds to step 1.
4, the interrupt request signal INT is sent from the interrupt request circuit 13 to the CPU 21. If the counter value is not I\1, the process proceeds to step 15, where "-1" is subtracted from the counter value. If there is an interrupt response IACK from the CPLI 21 (step 16), the CPU 21 sets the counter value to "0" and stops the operation (step 18). If there is no interrupt response IACK, the CPU 21 waits for a preset period of time. After that (step 17), if the counter value of the counter circuit 11 is "1", the interrupt request signal INT is sent to the CPU 21 again, and the same process is repeated until the counter value of the counter circuit 11 is "1".
When it reaches "O", the operation stops.
例えば第3図に示すようにカウンタ回路11の初期設定
値を3とする。最初のクロック信号CLKaでカウンタ
値は“−1″されて“2”となる。次のクロック信号C
LKbでさらに“−1′。For example, as shown in FIG. 3, the initial setting value of the counter circuit 11 is set to 3. The counter value is "-1" and becomes "2" by the first clock signal CLKa. next clock signal C
Further "-1' in LKb.
されてカウンタ値は“1”となり、割込要求回路13は
割込要求dを出す、タイムアウト処理が予め設定した例
えば1秒以内に終了しない場合、タロツク信号CLKc
で再度割込要求eを出す。The counter value becomes "1", and the interrupt request circuit 13 issues an interrupt request d. If the timeout process does not end within a preset time, for example, one second, the tarlock signal CLKc
Then issue the interrupt request e again.
このとき、CPU21が割込応答IACKを返送してく
ると、CPU21はカウンタ回路11を“0”に設定す
るので動作は停止する。At this time, when the CPU 21 returns an interrupt response IACK, the CPU 21 sets the counter circuit 11 to "0" and the operation is stopped.
以上説明したように本発明は、カウンタ回路のカウンタ
値が1のときにカウントダウンを中止して割込要求を中
央処理装置へ送出し、中央処理装置から割込要求に対す
る割込応答を受け取ると割込要求を解除し、予め設定し
た一定時間後にカウンタ回路をチェックしてカウンタ値
が1ならば再び割込要求を送出し、カウンタ値が0にな
ると動作を停止する制御手段を有することにより、規定
時間内にタイムアウト処理を終了しないと基地局中央処
理装置へ再度割込要求を出すので、基地局の中央処理装
置が容量オーバーでタスクが作れない場合や、割込応答
を返してからタスクが実行するまでに中央処理装置が壊
れてしまった場合の割込処理不実行を無くすことができ
る効果を有する。As explained above, the present invention stops the countdown when the counter value of the counter circuit is 1, sends an interrupt request to the central processing unit, and interrupts when an interrupt response to the interrupt request is received from the central processing unit. By having a control means that cancels the interrupt request, checks the counter circuit after a preset period of time, and if the counter value is 1, sends the interrupt request again, and stops the operation when the counter value becomes 0. If the timeout processing is not completed within the specified time, an interrupt request will be sent to the base station central processing unit again, so if the base station central processing unit is over capacity and cannot create a task, or the task will be executed after returning an interrupt response. This has the effect of eliminating the possibility of interrupt processing not being executed even if the central processing unit is broken before the processing is completed.
第1図は本発明の一実施例の適用例を示すブロック図、
第2図は本実施例内の制御回路の制御手順の一例を示す
フローチャート、第3図は本適用例の動作の一例を示す
タイムチャート、第4図は従来のタイマー装置の制御手
順の一例を示すフローチャートである。
1・・・タイマー装置、2・・・基地局装置、11・・
・カウンタ回路、12・・・制御回路、13・・・割込
要求回路、21・・・中央処理装置(CPtJ)、22
−9.メモリ。FIG. 1 is a block diagram showing an example of application of an embodiment of the present invention;
FIG. 2 is a flowchart showing an example of the control procedure of the control circuit in this embodiment, FIG. 3 is a time chart showing an example of the operation of this application example, and FIG. 4 is an example of the control procedure of the conventional timer device. FIG. 1... Timer device, 2... Base station device, 11...
- Counter circuit, 12... Control circuit, 13... Interrupt request circuit, 21... Central processing unit (CPtJ), 22
-9. memory.
Claims (1)
カウンタ値を一定時間ごとに1ずつ減算して予め設定し
たある一定値になると割込要求を前記中央処理装置へ送
出するタイマー装置において、前記カウンタ回路のカウ
ンタ値が1のときにカウントダウンを中止して割込要求
を前記中央処理装置へ送出し、前記中央処理装置から前
記割込要求に対する割込応答を受け取ると前記割込要求
を解除し、予め設定した一定時間後に前記カウンタ回路
をチェックして前記カウンタ値が1ならば再び割込要求
を送出し、前記カウンタ値が0になると動作を停止する
制御手段を有することを特徴とするタイマー装置。In the timer device, the central processing unit in the base station device subtracts a counter value set in a counter circuit by 1 at regular time intervals and sends an interrupt request to the central processing unit when the value reaches a preset constant value. When the counter value of the counter circuit is 1, the countdown is stopped and an interrupt request is sent to the central processing unit, and when an interrupt response to the interrupt request is received from the central processing unit, the interrupt request is canceled. , a timer characterized in that it has a control means that checks the counter circuit after a preset certain period of time, sends out an interrupt request again if the counter value is 1, and stops the operation when the counter value reaches 0. Device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2243170A JPH04122132A (en) | 1990-09-13 | 1990-09-13 | Timer device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2243170A JPH04122132A (en) | 1990-09-13 | 1990-09-13 | Timer device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04122132A true JPH04122132A (en) | 1992-04-22 |
Family
ID=17099858
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2243170A Pending JPH04122132A (en) | 1990-09-13 | 1990-09-13 | Timer device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04122132A (en) |
-
1990
- 1990-09-13 JP JP2243170A patent/JPH04122132A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1503292B1 (en) | DMA controller with bus occupation time limitation and sets of DMA parameters for a plurality of logical processors | |
JPS61249143A (en) | Interruption circuit | |
JPH04122132A (en) | Timer device | |
JPH03175537A (en) | Error controller for debugging microprocessor | |
JPS5878239A (en) | Operation controlling circuit | |
US11330415B2 (en) | Near field communication device and method of operating the same | |
JPH0355657A (en) | Shared memory access method for multi-task/multi-processor system | |
JPH03167633A (en) | Control method for interruption program | |
JPH04267438A (en) | Double exception detector | |
JPH03191452A (en) | Method for controlling communication | |
JPS63271537A (en) | Interruption controller | |
JPH0330172B2 (en) | ||
JPH0667900A (en) | Method for controlling timer interruption | |
JPH09259070A (en) | Interruption control system | |
JPH03282903A (en) | Task control method in communication system for programmable controller | |
JPH0418640A (en) | Electronic computer | |
JPH03191488A (en) | Microprocessor device | |
JPS62143154A (en) | Input/output controller | |
JPH0325552A (en) | Bus connector | |
JPH0240755A (en) | Data processor | |
EP0266799A2 (en) | Single chip microcomputer having multi-timer function | |
JPS61121155A (en) | Timer of multi-processor system | |
JPH04139555A (en) | Bus repeating device | |
JPH01292449A (en) | Data base monopoly evading system for on-line instantaneous updating system | |
JPH03294952A (en) | Input/output processing system |