JPS6343560Y2 - - Google Patents

Info

Publication number
JPS6343560Y2
JPS6343560Y2 JP18311782U JP18311782U JPS6343560Y2 JP S6343560 Y2 JPS6343560 Y2 JP S6343560Y2 JP 18311782 U JP18311782 U JP 18311782U JP 18311782 U JP18311782 U JP 18311782U JP S6343560 Y2 JPS6343560 Y2 JP S6343560Y2
Authority
JP
Japan
Prior art keywords
cpu
clock
bus
watchdog timer
signal
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
Application number
JP18311782U
Other languages
Japanese (ja)
Other versions
JPS5988749U (en
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 filed Critical
Priority to JP18311782U priority Critical patent/JPS5988749U/en
Publication of JPS5988749U publication Critical patent/JPS5988749U/en
Application granted granted Critical
Publication of JPS6343560Y2 publication Critical patent/JPS6343560Y2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Measurement Of Unknown Time Intervals (AREA)
  • Debugging And Monitoring (AREA)

Description

【考案の詳細な説明】 本考案はウオツチドツグタイマによりCPUの
異常を検出するCPU監視装置に関する。
[Detailed Description of the Invention] The present invention relates to a CPU monitoring device that detects CPU abnormalities using a watchdog timer.

この種の従来のウオツチドツグタイマは、第1
図A又はBに示す方式のものがある。同図Aに示
す方式はバス1上のメモリフエツチ信号でウオツ
チドツグタイマ2の計時リセツトをすることで、
タイマ2の設定時間内のメモリフエツチ信号検出
でCPU3を正常と判定し、設定時間を越えるま
でメモリフエツチ信号がないときにCPU3を異
常と判定する。この方式では、DMAによつてメ
モリ4と補助記憶装置等の入出力装置5間のデー
タ転送中にはバス1上に繰返しメモリフエツチ信
号が存在するためその期間にはCPU3が異常に
なつても検出できない。
This type of conventional watchdog timer
There are methods shown in Figures A and B. The method shown in Figure A resets the watchdog timer 2 using the memory fetch signal on the bus 1.
The CPU 3 is determined to be normal when the memory fetch signal is detected within the set time of the timer 2, and the CPU 3 is determined to be abnormal when there is no memory fetch signal until the set time is exceeded. In this method, a memory fetch signal is repeatedly present on the bus 1 during data transfer between the memory 4 and an input/output device 5 such as an auxiliary storage device by DMA, so even if the CPU 3 becomes abnormal during that period, it is detected. Can not.

第1図Bに示す方式はウオツチドツグタイマ2
に設定する時間内にCPU3から計時リセツト信
号を与えるようプログラムを構成しておき、設定
時間内にリセツト信号が与えられないことで
CPU3の異常と判定するソフトウエアアクセス
方式としている。この方式ではソフトウエアアク
セスを頻繁に行なうとCPU3の負荷が増大し、
リアルタイムシステムにおいてはソフトウエアア
クセスの頻度を下げざるを得ないため最大30秒間
もCPUの停止を検出できないこともある。
The method shown in Figure 1B is for watchdog timer 2.
The program is configured so that the clock reset signal is given from CPU3 within the time set in .If the reset signal is not given within the set time
A software access method is used to determine that CPU3 is abnormal. In this method, frequent software access increases the load on CPU3.
In real-time systems, it is necessary to reduce the frequency of software access, so it may not be possible to detect a CPU stoppage for up to 30 seconds.

本考案は時計から一定周期でバス占有の割込み
を起し、CPUからのバス占有許可信号をウオツ
チドツグタイマのリセツト信号とすることによ
り、従来の問題点を解消したCPU監視装置を提
供することを目的とする。
The present invention provides a CPU monitoring device that solves the conventional problems by generating bus occupancy interrupts from the clock at regular intervals and using the bus occupancy permission signal from the CPU as the watchdog timer reset signal. The purpose is to

第2図は本考案の一実施例を示す構成図であ
る。バス1に結合される内部時計6は一定周期で
CPU3にバス占有リクエスト信号を発生し、
CPU3はバス占有リクエスト信号に対して優先
順位判定装置3Aが時計6の優先順位を判定し、
他の装置がバス占有リクエスト信号発生又はバス
占有状態にないときに時計6に対してバス占有許
可信号を与える。ウオツチドツグタイマ2は時計
6に与えられるバス占有許可信号を計時のリセツ
トとして検出してCPU3が正常に動作している
と判定する。
FIG. 2 is a block diagram showing an embodiment of the present invention. The internal clock 6 connected to the bus 1 has a constant cycle.
Generates a bus occupancy request signal to CPU3,
In the CPU 3, the priority determination device 3A determines the priority of the clock 6 in response to the bus occupancy request signal,
A bus occupancy permission signal is given to the clock 6 when no other device generates a bus occupancy request signal or is in a bus occupancy state. The watchdog timer 2 detects the bus occupancy permission signal given to the clock 6 as a timing reset and determines that the CPU 3 is operating normally.

こうした構成により、CPU3が停止すると優
先順位判定装置3Aも停止するため、時計6から
のバス占有リクエスト信号に対してバス占有許可
信号が発生されないときにはCPU3の異常又は
他の優先順位の高い装置によるバス占有状態にあ
り、このバス占有状態は比較的短い時間内に解除
されることから時計6からの複数回のバス占有リ
クエストにバス占有許可信号が発生されないこと
を検出すればCPU3の異常と判定することがで
きる。
With this configuration, when the CPU 3 stops, the priority determination device 3A also stops, so if a bus occupancy permission signal is not generated in response to a bus occupancy request signal from the clock 6, it is due to an abnormality in the CPU 3 or because the bus is being used by another high priority device. Since the bus occupancy state is released within a relatively short time, if it is detected that no bus occupancy permission signal is generated in response to multiple bus occupancy requests from the clock 6, it is determined that the CPU 3 is abnormal. be able to.

例えば、メモリ4と入出力装置5間にDMAが
実行されているとき、時計6からのバス占有リク
エストに対してCPU3の優先順位判定装置3A
はDMA中のためバス占有許可信号を発生しない
が、DMAは1ワード、1フレームの単位データ
の転送終了から次の単位データの転送開始までに
空き時間があり、この間に時計6からのバス占有
リクエスト信号にはバス占有許可信号の発生があ
つてウオツチドツグタイマ2によるCPU3の正
常,異常判定ができ、本考案では最大でも20ms
でCPUの動作判定が可能となる。
For example, when DMA is executed between the memory 4 and the input/output device 5, the CPU 3's priority determination device 3A responds to a bus occupation request from the clock 6.
does not generate a bus occupancy permission signal because it is in DMA, but DMA has an idle time between the end of transfer of one word, one frame of unit data and the start of transfer of the next unit of data, and during this time the bus occupancy permission signal from clock 6 is generated. The request signal includes the generation of a bus occupancy permission signal, which allows the watchdog timer 2 to determine whether the CPU 3 is normal or not.
It becomes possible to judge the operation of the CPU.

なお、時計6からのバス占有リクエスト信号発
生周期を短かくする頻度の高いリクエスト信号発
生にもCPU3の負荷が増えることは少ない。即
ち、従来のソフトウエアによるCPUのアクセス
に比べて、本考案のように時計6とCPU3の信
号授受は極めて短時間内に処理される。
Note that the load on the CPU 3 is unlikely to increase even when a request signal is generated frequently, which shortens the cycle of bus occupancy request signal generation from the clock 6. That is, compared to the CPU access by conventional software, the signal transmission and reception between the clock 6 and the CPU 3 is processed in an extremely short time according to the present invention.

以上のとおり、本考案によれば、ウオツチドツ
グタイマによるCPUの異常から検出までの時間
を大幅に短縮し、CPUの負担も軽減できる効果
がある。また、本考案では時計の割込みによる監
視のため、CPUの監視に加えて内部時計の異常
も検出できる効果がある。
As described above, the present invention has the effect of significantly shortening the time taken by the watchdog timer to detect an abnormality in the CPU and reducing the burden on the CPU. Furthermore, since the present invention uses clock interrupts for monitoring, it is effective in detecting abnormalities in the internal clock in addition to monitoring the CPU.

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

第1図は従来のウオツチドツグタイマによる
CPU監視装置を説明するための図、第2図は本
考案の一実施例を示す図である。 1……システムバス、2……ウオツチドツグタ
イマ、3……CPU、4……メモリ、5……入出
力装置、6……内部時計、3A……優先順位判定
装置。
Figure 1 shows a conventional watchdog timer.
FIG. 2, which is a diagram for explaining the CPU monitoring device, is a diagram showing an embodiment of the present invention. 1... System bus, 2... Watchdog timer, 3... CPU, 4... Memory, 5... Input/output device, 6... Internal clock, 3A... Priority determining device.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] CPU、メモリ、入出力装置及びウオツチドツ
グタイマ、内部時計がバス結合されるコンピユー
タにおいて、上記時計はCPUに対して一定周期
でバス占有リクエスト信号を発生し、上記ウオツ
チドツグタイマはCPUから時計に与えるバス占
有許可信号を検出し、この信号が該タイマに設定
する時間内に検出されないときにCPUの異常と
判定することを特徴とするウオツチドツグタイマ
によるCPU監視装置。
In a computer in which the CPU, memory, input/output device, watchdog timer, and internal clock are connected to a bus, the clock generates a bus occupancy request signal to the CPU at regular intervals, and the watchdog timer 1. A CPU monitoring device using a watchdog timer, which detects a bus occupancy permission signal given to a clock from a clock, and determines that a CPU is abnormal when this signal is not detected within a time set in the timer.
JP18311782U 1982-12-02 1982-12-02 CPU monitoring device using watchdog timer Granted JPS5988749U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18311782U JPS5988749U (en) 1982-12-02 1982-12-02 CPU monitoring device using watchdog timer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18311782U JPS5988749U (en) 1982-12-02 1982-12-02 CPU monitoring device using watchdog timer

Publications (2)

Publication Number Publication Date
JPS5988749U JPS5988749U (en) 1984-06-15
JPS6343560Y2 true JPS6343560Y2 (en) 1988-11-14

Family

ID=30396395

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18311782U Granted JPS5988749U (en) 1982-12-02 1982-12-02 CPU monitoring device using watchdog timer

Country Status (1)

Country Link
JP (1) JPS5988749U (en)

Also Published As

Publication number Publication date
JPS5988749U (en) 1984-06-15

Similar Documents

Publication Publication Date Title
US5497501A (en) DMA controller using a predetermined number of transfers per request
GB2065939A (en) Arrangement having a programmabel electrical circuit and monitoring menas
US5138709A (en) Spurious interrupt monitor
JPS6343560Y2 (en)
JPH0962640A (en) Access control method for shared memory
JPH05324409A (en) Run-away monitor system for software
JP3145765B2 (en) Information processing device
JPS60183657A (en) Common bus fault detecting system
JP3612471B2 (en) Spurious interrupt control method in multiprocessor configuration
JPH0749817A (en) Dma transfer controller
JPH10254822A (en) Bus right requesting method
JPS6225795Y2 (en)
JP2837893B2 (en) Microcomputer device
JPS60164852A (en) Monitor system of program runaway
JP2825589B2 (en) Bus control method
JPH05233526A (en) Dma control system
JPH0666060B2 (en) Bus priority control method
JPH0354374B2 (en)
JPH03252831A (en) Method for collecting ras information by dma transfer
JPS6468865A (en) Bus connection arbitrating system
JPS63124157A (en) Data fetching system into processor
JPH02130646A (en) Abnormality detecting system for cpu
JPS6029856A (en) Access control system for local memory of multiprocessor system
JPS5856057A (en) Interruption signal generating device
JPH0236971B2 (en)