[go: up one dir, main page]

JPH03144744A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH03144744A
JPH03144744A JP1283869A JP28386989A JPH03144744A JP H03144744 A JPH03144744 A JP H03144744A JP 1283869 A JP1283869 A JP 1283869A JP 28386989 A JP28386989 A JP 28386989A JP H03144744 A JPH03144744 A JP H03144744A
Authority
JP
Japan
Prior art keywords
cpu
signal
rom
memory
monitoring 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.)
Pending
Application number
JP1283869A
Other languages
Japanese (ja)
Inventor
Kaneyuki Sakai
酒井 謙行
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1283869A priority Critical patent/JPH03144744A/en
Publication of JPH03144744A publication Critical patent/JPH03144744A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To prevent a CPU from running away and to reduce the malfunction of a system by providing a microcomputer with a runaway monitoring circuit. CONSTITUTION:There are two cases for outputting a reset signal 11 from the runaway monitoring circuit 5 to the CPU 1. When a ROM chip select signal 13 is non-active, a memory read signal 8 is active and a CPU status signal 10 is in an operation code fetching cycle in the 1st case, the CPU 1 is reset if addresses are not in a ROM area though the CPU 1 is in the operation code fetching cycle. If the CPU 1 tries to write data in the ROM 4 when both of the ROM chip select signal 13 and memory write signal 8 are active in the 2nd case, the CPU 11 is reset. Consequently, the system can be prevented from generating malfunction.

Description

【発明の詳細な説明】 〔産業上の利用分野] この発明は、cpu、メモリ及びその他の周辺回路を有
するマイクロコンピュータに関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer having a CPU, memory, and other peripheral circuits.

〔従来の技術] 第2図は従来の、中央処理装置(以下、cPUと称す)
、メモリ及び周辺回路を有するマイクロコンピュータの
ブロック図である0図において、1はCPU、2はアド
レスデコード回路、3はRAM、4はROM、6はデー
タバス、7はアドレス信号、8はメモリリード」言分、
9はメモリライト信号、12はRAMチップセレクト信
号、13はROMチンプセレクト信号である。
[Prior art] Figure 2 shows a conventional central processing unit (hereinafter referred to as cPU).
In Figure 0, which is a block diagram of a microcomputer having memory and peripheral circuits, 1 is a CPU, 2 is an address decoding circuit, 3 is a RAM, 4 is a ROM, 6 is a data bus, 7 is an address signal, and 8 is a memory read. ” words,
9 is a memory write signal, 12 is a RAM chip select signal, and 13 is a ROM chimp select signal.

従来のCPU、メモリ及び周辺回路を有するマイクロコ
ンピュータは、CPUIがROM4にアクセスする場合
は、アドレスを指定するアドレス信号7及びメモリリー
ド信号8がCPU1からROM4に出力される。この時
、アドレスデコード回路2において、アドレス信号7を
デコードし、ROMチップセレクト信号13を作り、R
OM4に出力する0以上の信号がROM4に入力すると
、指定されたアドレスのデータをデータバス6を通して
CPU1に出力する。
In a conventional microcomputer having a CPU, a memory, and a peripheral circuit, when the CPU accesses the ROM 4, an address signal 7 specifying an address and a memory read signal 8 are output from the CPU 1 to the ROM 4. At this time, the address decode circuit 2 decodes the address signal 7, creates a ROM chip select signal 13, and R
When a signal of 0 or more is input to the ROM 4, the data at the designated address is output to the CPU 1 through the data bus 6.

一方、CPUIがRAM3にアクセスする場合は、アド
レスを指定するアドレス信号7及びメモリリード信号8
またはメモリライト信号9がCPU1からRAM3に出
力される。この時、アドレスデコード回路2において、
アドレス信号7をデコードし、RAMチップセレクト信
号12を作り、RAM3に出力する。以上の信号がRA
M3に入力すると、メモリリード時は指定されたアドレ
スのデータをデータバス6を通してCPUIに出力し、
メモリライト時は指定されたアドレスにCPU1からの
データを収納する。
On the other hand, when the CPUI accesses the RAM 3, an address signal 7 specifying the address and a memory read signal 8
Alternatively, the memory write signal 9 is output from the CPU 1 to the RAM 3. At this time, in the address decoding circuit 2,
It decodes the address signal 7, creates a RAM chip select signal 12, and outputs it to the RAM 3. The above signal is RA
When input to M3, data at the specified address is output to the CPUI through the data bus 6 when reading memory.
At the time of memory write, data from CPU 1 is stored at the specified address.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来のcpu、メモリ及び周辺回路は、以上のように構
成されているため、CPUが暴走した場合、間違ったデ
ータを読み書きし、システムが誤動作したり、メモリを
破壊したりするなどの問題点があった。
Conventional CPUs, memories, and peripheral circuits are configured as described above, so if the CPU goes out of control, it may read or write incorrect data, resulting in system malfunctions or memory destruction. there were.

この発明は上記のような従来のものの問題点を解消する
ためになされたものでJ’CP Uが暴走した時にCP
Uにリセットをかける暴走監視回路を有スるマイクロコ
ンピュータを得ることを目的とする。
This invention was made in order to solve the problems of the conventional ones as mentioned above, and when the J'CPU goes out of control, the CPU
The object of the present invention is to obtain a microcomputer having a runaway monitoring circuit that resets U.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係るマイクロコンピュータは、CPUからの
出力を監視する暴走監視回路を備え、CPUが暴走して
いると判断した場合は、CPUに対してリセット信号を
出力するようにしたものである。
The microcomputer according to the present invention includes a runaway monitoring circuit that monitors the output from the CPU, and when it is determined that the CPU is running out of control, outputs a reset signal to the CPU.

〔作用〕[Effect]

この発明における暴走監視回路は、CPUがROMにア
クセスする時、アドレスがROM eI域域外外走る時
、及びメモリライトサイクルでアドレスがRA M 領
域以外を走る場合にCPUにリセットをかける。
The runaway monitoring circuit according to the present invention resets the CPU when the CPU accesses the ROM, when the address runs outside the ROM eI area, and when the address runs outside the RAM area in a memory write cycle.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例によるマイクロコンピュータ
を示し、図において、1〜4.6〜9゜12.13は従
来の回路と全く同じものである。
FIG. 1 shows a microcomputer according to an embodiment of the present invention, and in the figure, 1 to 4.6 to 9 degrees and 12.13 are exactly the same as the conventional circuit.

5は暴走監視回路、10はCPUステータス信号、11
はCPUリセット信号である。
5 is a runaway monitoring circuit, 10 is a CPU status signal, 11
is a CPU reset signal.

また第3図は第1図の暴走監視回路の一例を示し、図に
おいて、51は2人力NOR回路、52は2人力OR回
路、53.54はインバータ、55は4人力NOR回路
、56はDフリ・ンプフロツプ、57はバッファ、58
は2人力AND回路である。また10aはホールト信号
、10bはLIBI号、IMBKはボートによる切り換
え信号、PWRPはパワーオンリセット信号である。
FIG. 3 shows an example of the runaway monitoring circuit shown in FIG. 1. In the figure, 51 is a two-man power NOR circuit, 52 is a two-man power OR circuit, 53, 54 is an inverter, 55 is a four-man power NOR circuit, and 56 is a D Flip-flop, 57 is a buffer, 58
is a two-person AND circuit. Further, 10a is a halt signal, 10b is a LIBI signal, IMBK is a boat switching signal, and PWRP is a power-on reset signal.

上記のように構成されたCPU及びメモリ周辺回路にお
いて、cputが正常に動作している時は、従来通りの
動作である。CPUIの暴走を監視するため、暴走監視
回路5にはメモリリード信号8.メモリライト信号9.
CPUステータス信号10.ROMチップセレクト信号
13を入力している。
In the CPU and memory peripheral circuit configured as described above, when cput is operating normally, the operation is the same as before. In order to monitor CPUI runaway, the runaway monitoring circuit 5 receives a memory read signal 8. Memory write signal9.
CPU status signal 10. A ROM chip select signal 13 is input.

この暴走監視回路5がCPUIに対してリセ・ント信号
11を出力する場合は2通りある。まず、第1の場合は
、ROMチップセレクト信号13がノンアクティブで、
メモリリード信号8がアクティブ、かつCPUステータ
ス信号10がオペコードフェッチサイクルであることを
示した時で、CPUIがオペコードフェッチサイクルで
ありながら、アドレスがROM fiJf域を走ってい
ない時、CPUIをリセットする0次に、第2の場合は
、ROMチップセレクト信号13及びメモリライト信号
8が共にアクティブの時で、CPUIがROM4にデー
タの書き込みを行おうとした時、CPU11をリセット
する。
There are two cases in which the runaway monitoring circuit 5 outputs the reset signal 11 to the CPUI. First, in the first case, the ROM chip select signal 13 is inactive,
When the memory read signal 8 is active and the CPU status signal 10 indicates an opcode fetch cycle, and the CPU is in an opcode fetch cycle but the address is not running in the ROM fiJf area, reset the CPUI.0 Next, in the second case, when both the ROM chip select signal 13 and the memory write signal 8 are active and the CPU attempts to write data to the ROM 4, the CPU 11 is reset.

なお、上記実施例では暴走監視回路をハードウェアで構
成したものを示したが、ソフトウェアでボートを設け、
第3図の切り換え信号IMBKにより暴走監視回路を使
用したい時だけONにして使用することもできる。
In the above embodiment, the runaway monitoring circuit is configured with hardware, but it is also possible to provide a board with software.
It is also possible to use the runaway monitoring circuit by turning it ON only when it is desired to use it, using the switching signal IMBK shown in FIG.

また、上記実施例ではメモリに関連した暴走を監視する
場合について示したが、他の周辺回路に関連した暴走を
監視するようにしてもよく、上記実施例と同様の効果を
奏する。
Further, although the above embodiment shows a case where runaway related to memory is monitored, runaway related to other peripheral circuits may be monitored, and the same effects as in the above embodiment can be obtained.

(発明の効果〕 以上のように、この発明によれば、CPU、メモリ及び
周辺回路を有するマイクロコンピュータにおいて、暴走
監視回路を設けたので、CPUの暴走を防止でき、シス
テムの誤動作を少なくすることができる効果がある。
(Effects of the Invention) As described above, according to the present invention, since a runaway monitoring circuit is provided in a microcomputer having a CPU, memory, and peripheral circuits, runaway of the CPU can be prevented and system malfunctions can be reduced. There is an effect that can be done.

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

第1図はこの発明の一実施例によるマイクロコンピュー
タのブロック図、第2図は従来のCPU及びメモリ周辺
回路を有するマイクロコンピュータのブロック図、第3
図は第1図の暴走監視回路の構成例を示す図である。 ■・・・CPU、2・・・アドレスデコード回路、3・
・・RAM、4・・・ROM、5・・・暴走監視回路、
6・・・データバス、7・・・アドレス信号、8・・・
メモリリード信号、9・・・メモリライト信号、10・
・・CPUステータス信号、11・・・CPUリセット
信号、12・・・RAMチップセレクト信号、13・・
・ROMチップセレクト信号。 なお図中同一符号は同−又は相当部分を示す。
FIG. 1 is a block diagram of a microcomputer according to an embodiment of the present invention, FIG. 2 is a block diagram of a microcomputer having a conventional CPU and memory peripheral circuit, and FIG.
The figure shows an example of the configuration of the runaway monitoring circuit shown in FIG. 1. ■...CPU, 2...Address decoding circuit, 3.
...RAM, 4...ROM, 5...runaway monitoring circuit,
6...Data bus, 7...Address signal, 8...
Memory read signal, 9...Memory write signal, 10.
...CPU status signal, 11...CPU reset signal, 12...RAM chip select signal, 13...
・ROM chip select signal. Note that the same reference numerals in the figures indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】[Claims] (1)中央処理装置と、 ROMあるいはRAMなどのメモリと、 周辺回路とを備えたマイクロコンピュータにおいて、 上記CPUの暴走を監視してリセットをかける暴走監視
回路を備えたことを特徴とするマイクロコンピュータ。
(1) A microcomputer equipped with a central processing unit, a memory such as ROM or RAM, and a peripheral circuit, characterized in that the microcomputer is equipped with a runaway monitoring circuit that monitors runaway of the CPU and resets it. .
JP1283869A 1989-10-30 1989-10-30 Microcomputer Pending JPH03144744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1283869A JPH03144744A (en) 1989-10-30 1989-10-30 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1283869A JPH03144744A (en) 1989-10-30 1989-10-30 Microcomputer

Publications (1)

Publication Number Publication Date
JPH03144744A true JPH03144744A (en) 1991-06-20

Family

ID=17671227

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1283869A Pending JPH03144744A (en) 1989-10-30 1989-10-30 Microcomputer

Country Status (1)

Country Link
JP (1) JPH03144744A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5682957A (en) * 1979-12-08 1981-07-07 Canon Inc Runaway checking circuit for microcomputer
JPS60233743A (en) * 1984-05-04 1985-11-20 Fuji Electric Co Ltd Fault detecting circuit of computer system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5682957A (en) * 1979-12-08 1981-07-07 Canon Inc Runaway checking circuit for microcomputer
JPS60233743A (en) * 1984-05-04 1985-11-20 Fuji Electric Co Ltd Fault detecting circuit of computer system

Similar Documents

Publication Publication Date Title
US5305460A (en) Data processor
US4947478A (en) Switching control system for multipersonality computer system
KR100385493B1 (en) Microcontroller with a reconfigurable program status word
JPH03144744A (en) Microcomputer
US5802332A (en) Single-chip microcomputer and electronic device using the same
US6289429B2 (en) Accessing multiple memories using address conversion among multiple addresses
US5410659A (en) Digital processor with instruction memory of reduced storage size
JP2569693B2 (en) Microcomputer
JP3507193B2 (en) Load / store instruction processor
JP2533245Y2 (en) Data processing device
KR100238175B1 (en) Bus control logic
JPS6043757A (en) 1 chip microcomputer
JPH02309442A (en) Microprocessor
JPH0348954A (en) Key memory control method
JP2570361B2 (en) Storage control method
JPS63163942A (en) Memory protecting circuit
JPS6354630A (en) Data processor
JPH0822431A (en) Arithmetic processor
JPH0417200A (en) RAM with self-diagnosis function
JPS6269354A (en) Information processing system
JPH0346053A (en) Control system between plural processors
JPH07302205A (en) Microcomputer
JPS60105048A (en) Microprogram control method
JPS62109285A (en) Switching circuit for ram bank of microcomputer
JPH086920A (en) Information processor