JPH05165657A - Semiconductor integrated circuit - Google Patents

Semiconductor integrated circuit

Info

Publication number
JPH05165657A
JPH05165657A JP3331679A JP33167991A JPH05165657A JP H05165657 A JPH05165657 A JP H05165657A JP 3331679 A JP3331679 A JP 3331679A JP 33167991 A JP33167991 A JP 33167991A JP H05165657 A JPH05165657 A JP H05165657A
Authority
JP
Japan
Prior art keywords
cpu
bus
memory
semiconductor integrated
integrated circuit
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.)
Granted
Application number
JP3331679A
Other languages
Japanese (ja)
Other versions
JP2928418B2 (en
Inventor
Tetsuya Kimura
哲也 木村
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electronics 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 Matsushita Electronics Corp filed Critical Matsushita Electronics Corp
Priority to JP3331679A priority Critical patent/JP2928418B2/en
Publication of JPH05165657A publication Critical patent/JPH05165657A/en
Application granted granted Critical
Publication of JP2928418B2 publication Critical patent/JP2928418B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To realize the semiconductor integrated circuit equipped with a program run-away detecting and controlling circuit to stop a peripheral equipment connected to the input/output terminal of a microcontroller in a safe state by detecting the generation of CPU program run-away and initializing a system concerning the microcontroller system equipped with a CPU. CONSTITUTION:A watchdog timer 5, memory control circuit part 7 and memory 8 are installed, the run-away is detected by the watchdog timer 5, a CPU 6 is inset and at the same time, the control of an address bus/data bus in the system is moved from the CPU 6 to the output of the memory 8. After the peripheral equipment is stopped in the safe state by using the input/output terminal, the reset state of the CPU 6 is released.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はCPUを備えた半導体集
積回路において、プログラムの暴走を検出し、システム
全体の安全を確保するための構成に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a structure for detecting runaway of a program in a semiconductor integrated circuit having a CPU to ensure the safety of the entire system.

【0002】[0002]

【従来の技術】従来、プログラム暴走検出回路として図
2に示すようなシステムクロック1を分周し計時するた
めのカウンタ回路部2を設置した。このカウンタはアド
レス選択回路3によって書き込み/読みだし制御を受け
る制御レジスタ4の値で計時動作実行およびカウンタ値
のクリアを制御される。プログラムの暴走検出は次のよ
うに行われる。すなわち、プログラム開発時に、割り込
み要求発生の場合を含めたすべての場合について、プロ
グラム実行に要する時間を計算し、所定の周期でカウン
タ値のクリアを実行するようにプログラムする。システ
ムにおいて、プログラム暴走が発生すれば、上記周期で
のカウンタ値クリアが行われないためカウンタは計時を
続行し、ついにオーバーフローを発生する。このオーバ
ーフロー信号でCPUをリセットし安全を確保するもの
であった。
2. Description of the Related Art Conventionally, a counter circuit section 2 for dividing and clocking a system clock 1 as shown in FIG. 2 has been installed as a program runaway detection circuit. This counter is controlled by the value of the control register 4 which is subjected to write / read control by the address selection circuit 3 to execute the clocking operation and clear the counter value. Program runaway detection is performed as follows. That is, at the time of program development, the time required for program execution is calculated for all cases including the generation of interrupt requests, and the program is programmed so that the counter value is cleared at a predetermined cycle. In the system, if a program runaway occurs, the counter value is not cleared in the above cycle, so the counter continues to count time and finally overflows. With this overflow signal, the CPU is reset to ensure safety.

【0003】[0003]

【発明が解決しようとする課題】しかし、この構成によ
るとプログラム暴走検出後、CPUをリセットするのみ
であって必ずしも入出力端子14に接続されている周辺
機器の安全を確保できないという課題があった。
However, according to this configuration, there is a problem that the CPU is only reset after the program runaway is detected and the safety of the peripheral device connected to the input / output terminal 14 cannot be always ensured. ..

【0004】[0004]

【課題を解決するための手段】上記問題を解決し、プロ
グラム暴走時にシステム全体の安全が確保できる半導体
集積回路を実現するために本発明では、プログラムの暴
走を検出する手段と、その検出信号を受けてCPUをバ
スから切り離す手段と、前記CPUがバスから切り離さ
れると同時に周辺機器を所定の状態で停止させる手段と
を有している。
In order to solve the above problems and to realize a semiconductor integrated circuit in which the safety of the entire system can be ensured when a program goes out of control, the present invention provides means for detecting a runaway of a program and its detection signal. It has means for receiving and disconnecting the CPU from the bus, and means for stopping the peripheral device in a predetermined state at the same time when the CPU is disconnected from the bus.

【0005】また、本発明の半導体集積回路は、システ
ムクロックをカウントするカウンタと、正常動作時には
一定の周期で前記カウンタをリセットする手段と、前記
カウンタがオーバーフローした場合にCPUとバスとを
切り離すとともに、周辺機器を所定の状態で停止させる
手段とを有している。
In the semiconductor integrated circuit of the present invention, a counter for counting the system clock, a means for resetting the counter at a constant cycle during normal operation, a CPU and a bus are disconnected when the counter overflows. , And means for stopping the peripheral device in a predetermined state.

【0006】さらに、本発明の好ましい実施態様にあっ
ては、周辺機器を所定の状態で停止させる手段は、前記
周辺機器を所定の状態で停止させるためのデータを納め
たメモリ手段と、カウンタがオーバーフローした場合に
前記メモリ手段をバスに接続するとともに前記メモリ手
段を制御する手段とを有している。
Further, in a preferred embodiment of the present invention, the means for stopping the peripheral device in a predetermined state includes a memory means for storing data for stopping the peripheral device in a predetermined state and a counter. And a means for controlling the memory means while connecting the memory means to the bus when an overflow occurs.

【0007】[0007]

【作用】以上の構成によれば、プログラム暴走時にCP
Uがリセットされるのみならず、入出力端子に接続され
た周辺機器を所定の状態で停止させる手段を備えている
ので、周辺機器を安全な状態で停止させることが可能と
なり、プログラム暴走時においても周辺機器の安全が確
保される半導体集積回路が実現される。
[Operation] According to the above configuration, when the program goes out of control, the CP
Not only is U reset, but a means for stopping the peripheral devices connected to the input / output terminals in a prescribed state is also provided, so that it is possible to stop the peripheral devices in a safe state, and during program runaway. A semiconductor integrated circuit that ensures the safety of peripheral devices is realized.

【0008】[0008]

【実施例】本発明の実施例を図1の機能ブロック図を参
照して説明する。システムクロック1を分周して、計時
するウォッチドッグタイマ5と、ウォッチドッグタイマ
5のオーバーフローによってセットされるRSフリップ
フロップ9とRSフリップフロップ9の出力10によっ
て起動されるメモリ制御回路部7とメモリ制御回路部7
によってアドレス及びタイミング信号を与えられるメモ
リ8と、アドレスバス、データバスの制御をCPU6か
らメモリ8に移すためのアドレスバスバッファ11、デ
ータバスバッファ12、バスバッファ13によって構成
される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to the functional block diagram of FIG. A watchdog timer 5 which divides the system clock 1 to measure the time, an RS flip-flop 9 set by the overflow of the watchdog timer 5, and a memory control circuit unit 7 and a memory activated by an output 10 of the RS flip-flop 9. Control circuit section 7
It is composed of a memory 8 to which an address and a timing signal are given by, and an address bus buffer 11, a data bus buffer 12 and a bus buffer 13 for transferring control of the address bus and the data bus from the CPU 6 to the memory 8.

【0009】ウォッチドッグタイマ5がプログラム暴走
を検出する、すなわちカウンタ2がオーバーフローする
とCPUリセット信号17によってCPU6がリセット
される。
When the watchdog timer 5 detects a program runaway, that is, when the counter 2 overflows, the CPU 6 is reset by the CPU reset signal 17.

【0010】同時にシステムの立ち上げ時にリセット端
子15によりリセットされていたRSフリップフロップ
9の出力10がセットされる。
At the same time, the output 10 of the RS flip-flop 9 which has been reset by the reset terminal 15 when the system is started up is set.

【0011】これによりCPUアドレス及びデータバス
バッファ11,12の中のトライステートバスバッファ
がハイインピーダンスとなり、CPU6はデータバス1
9及びアドレスバス20から切り離される。
As a result, the tri-state bus buffers in the CPU address and data bus buffers 11 and 12 become high impedance, and the CPU 6 sets the data bus 1
9 and the address bus 20.

【0012】一方、バスバッファ13のトライステート
バスバッファはアクティブとなる。同時にメモリ制御回
路部7が起動され、メモリ8に対してアドレス及びタイ
ミング信号を供給する。
On the other hand, the tristate bus buffer of the bus buffer 13 becomes active. At the same time, the memory control circuit section 7 is activated and supplies address and timing signals to the memory 8.

【0013】メモリ8にはアドレスバス20及びデータ
バス19を通して入出力制御回路18を操作することに
より入出力端子14から信号を出力し、接続された周辺
機器を安全な状態で停止させるための少量のデータが記
憶されている。
The memory 8 outputs a signal from the input / output terminal 14 by operating the input / output control circuit 18 through the address bus 20 and the data bus 19, and a small amount for stopping the connected peripheral equipment in a safe state. The data of is stored.

【0014】なお、周辺機器とは、半導体集積回路に接
続されて制御される対象を意味し、例えば半導体集積回
路を加熱調理器具の制御のために用いた場合にはヒータ
素子等が該当し、パーソナルコンピュータの本体に用い
た場合には該本体に接続したハードディスクドライブ、
フレキシブルディスクドライブ等の周辺機器が該当す
る。
The peripheral equipment means an object connected to and controlled by a semiconductor integrated circuit. For example, when the semiconductor integrated circuit is used for controlling a cooking utensil, a heater element or the like is applicable. When used in the body of a personal computer, a hard disk drive connected to the body,
Peripheral devices such as flexible disk drives are applicable.

【0015】また、周辺機器を安全な状態で停止させる
というのは、上記の例であれば、ヒータ素子を非通電の
状態で停止させることであり、ハードディスクドライブ
やフレキシブルドライブの場合であれば、ヘッドをディ
スクから十分離した状態で停止させることを意味する。
Further, stopping the peripheral device in a safe state means stopping the heater element in the non-energized state in the above example, and in the case of a hard disk drive or a flexible drive. It means to stop the head when it is sufficiently separated from the disk.

【0016】メモリ8は上記動作の最後にRSフリップ
フロップ9に対して動作終了信号16を出力し、動作終
了信号16の出力10をリセットする。これによりアド
レスバス20、データバス19は再びCPU6の制御を
受ける状態となり、CPU6はリセット状態から解放さ
れ、プログラム実行を再開する。
At the end of the above operation, the memory 8 outputs the operation end signal 16 to the RS flip-flop 9 and resets the output 10 of the operation end signal 16. As a result, the address bus 20 and the data bus 19 are again controlled by the CPU 6, the CPU 6 is released from the reset state, and the program execution is restarted.

【0017】[0017]

【発明の効果】以上のように、本発明によればプログラ
ム暴走発生時にCPUをリセットすると同時に入出力端
子に接続された周辺機器を安全な状態で停止させるの
で、システム全体を致命的な傷害から保護することが可
能となる。
As described above, according to the present invention, when a program runaway occurs, the CPU is reset and at the same time the peripheral devices connected to the input / output terminals are stopped in a safe state. It becomes possible to protect.

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

【図1】本発明の半導体集積回路の構成を示すブロック
FIG. 1 is a block diagram showing a configuration of a semiconductor integrated circuit of the present invention.

【図2】従来の半導体集積回路の構成を示すブロック図FIG. 2 is a block diagram showing a configuration of a conventional semiconductor integrated circuit.

【符号の説明】[Explanation of symbols]

1 システムクロック 5 ウォッチドッグタイマ 6 CPU 7 メモリ制御回路部 8 メモリ 9 RSフリップフロップ 10 RSフリップフロップの出力 11 アドレスバスバッファ 12 データバスバッファ 13 バスバッファ 14 入出力端子 16 動作終了信号 17 CPUリセット信号 18 入出力制御回路 19 データバス 20 アドレスバス 1 System Clock 5 Watchdog Timer 6 CPU 7 Memory Control Circuit Section 8 Memory 9 RS Flip-Flop 10 RS Flip-Flop Output 11 Address Bus Buffer 12 Data Bus Buffer 13 Bus Buffer 14 Input / Output Terminal 16 Operation End Signal 17 CPU Reset Signal 18 I / O control circuit 19 Data bus 20 Address bus

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】プログラムの暴走を検出する手段と、その
検出信号を受けてCPUをバスから切り離す手段と、前
記CPUがバスから切り離されると同時に周辺機器を所
定の状態で停止させる手段とを有する半導体集積回路。
1. A means for detecting runaway of a program, means for disconnecting a CPU from a bus in response to the detection signal, and means for stopping a peripheral device in a predetermined state at the same time when the CPU is disconnected from the bus. Semiconductor integrated circuit.
【請求項2】システムクロックをカウントするカウンタ
と、正常動作時には一定の周期で前記カウンタをリセッ
トする手段と、前記カウンタがオーバーフローした場合
にCPUとバスとを切り離すとともに、周辺機器を所定
の状態で停止させる手段とを有するマイクロコントロー
ラ。
2. A counter for counting a system clock, a means for resetting the counter at a constant cycle during normal operation, a CPU and a bus are disconnected when the counter overflows, and peripheral devices are kept in a predetermined state. And a means for stopping.
【請求項3】周辺機器を所定の状態で停止させる手段
は、前記周辺機器を所定の状態で停止させるためのデー
タを納めたメモリ手段と、カウンタがオーバーフローし
た場合に前記メモリ手段をバスに接続するとともに前記
メモリ手段を制御する手段とから成る請求項2に記載の
半導体集積回路。
3. A means for stopping a peripheral device in a predetermined state, a memory means storing data for stopping the peripheral device in a predetermined state, and the memory means connected to a bus when a counter overflows. 3. The semiconductor integrated circuit according to claim 2, further comprising means for controlling the memory means.
JP3331679A 1991-12-16 1991-12-16 Semiconductor integrated circuit Expired - Fee Related JP2928418B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3331679A JP2928418B2 (en) 1991-12-16 1991-12-16 Semiconductor integrated circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3331679A JP2928418B2 (en) 1991-12-16 1991-12-16 Semiconductor integrated circuit

Publications (2)

Publication Number Publication Date
JPH05165657A true JPH05165657A (en) 1993-07-02
JP2928418B2 JP2928418B2 (en) 1999-08-03

Family

ID=18246371

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3331679A Expired - Fee Related JP2928418B2 (en) 1991-12-16 1991-12-16 Semiconductor integrated circuit

Country Status (1)

Country Link
JP (1) JP2928418B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005214862A (en) * 2004-01-30 2005-08-11 Toho Gas Co Ltd Remote monitoring system for gas supply governor room

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100703711B1 (en) * 2006-01-14 2007-04-09 삼성전자주식회사 A control signal generator for controlling the operation of the data transfer buffer, a semiconductor device having the control signal generator, and a method for controlling the operation of the transfer buffer

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02310634A (en) * 1989-05-25 1990-12-26 Nec Corp System for supervising runaway of program
JPH0342750A (en) * 1989-07-11 1991-02-22 Nec Corp Bus occupation supervisory system
JPH03152638A (en) * 1989-11-09 1991-06-28 Nec Ibaraki Ltd Log data collection system for information processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02310634A (en) * 1989-05-25 1990-12-26 Nec Corp System for supervising runaway of program
JPH0342750A (en) * 1989-07-11 1991-02-22 Nec Corp Bus occupation supervisory system
JPH03152638A (en) * 1989-11-09 1991-06-28 Nec Ibaraki Ltd Log data collection system for information processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005214862A (en) * 2004-01-30 2005-08-11 Toho Gas Co Ltd Remote monitoring system for gas supply governor room

Also Published As

Publication number Publication date
JP2928418B2 (en) 1999-08-03

Similar Documents

Publication Publication Date Title
US5590341A (en) Method and apparatus for reducing power consumption in a computer system using ready delay
JP3628372B2 (en) Computer system, parallel port circuit for interfacing peripheral devices to computer system, and operation method thereof
US6678777B2 (en) Integrated real-time performance monitoring facility
US5339437A (en) Method and apparatus for saving a system image onto permanent storage that is operating system independently
US5125088A (en) Computer system speed control at continuous processor speed
US5109521A (en) System for relocating dynamic memory address space having received microprocessor program steps from non-volatile memory to address space of non-volatile memory
JPH07134678A (en) Ram protective device
US6678838B1 (en) Method to track master contribution information in a write buffer
JPH05225067A (en) Important-memory-information protecting device
US5734844A (en) Bidirectional single-line handshake with both devices driving the line in the same state for hand-off
JPS6127786B2 (en)
JPH1153049A (en) Computer system
CN101281416A (en) Method for ensuring system shutdown completion
JPH05165657A (en) Semiconductor integrated circuit
KR0185186B1 (en) Minimum reset time hold circuit
US5606713A (en) System management interrupt source including a programmable counter and power management system employing the same
EP0825518A1 (en) PCI bus bridge reset circuit
KR100223096B1 (en) Method and apparatus for observing an internal memory map register
US7571266B2 (en) Peripheral device in a computerized system and method
JP2665043B2 (en) CPU runaway detection circuit
JP2539064B2 (en) Microprocessor
JPH0659941A (en) Information processor
JPS60241116A (en) portable terminal device
JPS5845050B2 (en) Bus centralized monitoring system
JPS63136159A (en) Data processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees