JPS58221448A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPS58221448A
JPS58221448A JP57103348A JP10334882A JPS58221448A JP S58221448 A JPS58221448 A JP S58221448A JP 57103348 A JP57103348 A JP 57103348A JP 10334882 A JP10334882 A JP 10334882A JP S58221448 A JPS58221448 A JP S58221448A
Authority
JP
Japan
Prior art keywords
area
program
written
rom
cpu
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
JP57103348A
Other languages
Japanese (ja)
Inventor
Shinichi Kobayashi
信一 小林
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 Home Technology Corp
Original Assignee
Toshiba Home Technology 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 Home Technology Corp filed Critical Toshiba Home Technology Corp
Priority to JP57103348A priority Critical patent/JPS58221448A/en
Publication of JPS58221448A publication Critical patent/JPS58221448A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent the generation of faults by writing a NO OPERATION instruction for one machine cycle in respective addresses of an idle area in an ROM and also writing a branch instruction to transfer to a runaway processing program in the final address area of the idle area. CONSTITUTION:The NO OPERATION instruction for one machine cycle is written in respective addresses of the idle area of the ROM in a memory part 10 and the branch instruction to transfer to the runaway processing program is written in the final address area of the idle area. Even if a CPU 20 runs away and the value of a program counter is made correspond to the address in the idle area of the ROM, the CPU 20 executes the NO OPERATION instruction successively and then executes the branch instruction to branch to the runaway processing program and execute the program because the NO OPERATION instruction for one machine cycle is written in all addresses of the idle area except the final address area.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、処理装置の暴走に対処するための機能を備え
たマイクロコンピュータに関スる。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a microcomputer equipped with a function for dealing with a runaway of a processing device.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

近時、家庭電化製品を始めとして電気製品には多種多様
なマイクロコンビーータが使用されているが、そのひと
つとして1チツノ中に処理装置(CPU)、リード・オ
ンリー・メモリ(ROM)、ランダム・アクセス・メモ
リ(RAM)および発振器を収容したものがある。この
ようなマイクロコンピュータは、ROMの容量が固定さ
れているため、ROMにプログラムを書き込んでいない
いわゆる空領域が生じることが多い。
Recently, a wide variety of microcontrollers are used in home appliances and other electrical products, one of which is a processing unit (CPU), read-only memory (ROM), random - Some contain access memory (RAM) and an oscillator. In such a microcomputer, the capacity of the ROM is fixed, so that there is often a so-called empty area in which no program is written in the ROM.

ところで、外来ノイズや瞬時停電等により処理装置が暴
走を起こすと、マイクロコンピュータは同一のプログラ
ムを繰り返し実行するか、もしくは上記を領域に飛び込
むことが多い。この空領域に飛び込むと、処理装置はこ
の領域に書き込まれている無意味な情報をあたかも命令
であるかのように実行しようとするため、マイクロコン
ぎユータは予期しない動作を行なって種々の障害をもた
らすことになり、非常に好ましくなかった。
By the way, when a processing device goes out of control due to external noise, instantaneous power outage, etc., the microcomputer often repeatedly executes the same program or jumps into the above domain. When jumping into this empty area, the processing unit attempts to execute the meaningless information written in this area as if it were an instruction, causing the microcomputer to perform unexpected operations and cause various problems. This was extremely undesirable.

〔発明の目的〕[Purpose of the invention]

本発明は、処理装置が暴走を起こしてプログラムカウン
タの値がリード・オン″す・−・メモリの空領域に飛び
込んだ場合の動作状態を高確度で保障し、これにより障
害の発生を低減するようにしたマイクロコンビーータを
提供することを目的とする。
The present invention guarantees the operating state with high accuracy in the event that the processing device goes out of control and the value of the program counter jumps into an empty area of the read-on memory, thereby reducing the occurrence of failures. The purpose of the present invention is to provide a micro combinator that achieves the following.

〔発明の概要〕[Summary of the invention]

本発明は、上記目的を達成するために、リード・オンリ
ー・メモリ(ROM)の空領域の谷番地に1マシンサイ
クルのノーオペレーション命令を書き込むとともに、上
記空領域の最終番地領域に処理装置の実行を停止させる
か、もしくは処理装置の暴走に対処するためのプログラ
ムへ分岐させる命令を書き込むようにしたものである。
In order to achieve the above object, the present invention writes a no-operation instruction of one machine cycle to the valley address of an empty area of a read-only memory (ROM), and writes a no-operation instruction of one machine cycle to the final address area of the empty area. It is designed to write an instruction to stop the program or branch to a program to deal with a runaway of the processing device.

〔発明の実施例〕[Embodiments of the invention]

第1図は、本発明の一実施例におけるマイクロコンピュ
ータの概略構成を示すブロック図で、このマイクロコン
ビーータはメモリ部1oと、このメモリ部10から命令
およびデータを読出して演算する処理装置(CPU) 
20と、このCPU20の動作に必要なりロック信号全
発生する発振器30とから構成され、これらを1チツプ
上に群成したものである。メモリ部10は、主としてC
PU 2 oを動作制御するためのプログラムを記憶し
たリード・−オンリー・メモリ(ROM )と、主とし
て入力データや演算結果を記憶するランダム・アクセス
・メモリ(RAM)とから構成され、このうちROMの
番地指定はCPU Ro内のプログラムカウンタによシ
行なわれるようになっている。
FIG. 1 is a block diagram showing a schematic configuration of a microcomputer according to an embodiment of the present invention. This microcomputer includes a memory section 1o, and a processing device ( (CPU)
20, and an oscillator 30 that generates all the lock signals necessary for the operation of the CPU 20, and these are grouped together on one chip. The memory section 10 mainly includes C.
It consists of a read-only memory (ROM) that stores programs for controlling the operation of the PU2o, and a random access memory (RAM) that mainly stores input data and calculation results. The address designation is made by the program counter in the CPU Ro.

さて、上記ROMの空領域、つまりプログラムを記憶し
ていない残余領域には、第2図に示す如くその最初の番
地に対応する領域(例えば351H番地)から、最終番
地領域としての3FEHおよび3 FFH各番地に対応
する領域を除いたすべての領域に、rNOPJなる1マ
シンサイクルのノーオペレーション命令が書き込んであ
る。
Now, in the empty area of the ROM, that is, the remaining area where no program is stored, as shown in FIG. A one-machine-cycle no-operation instruction rNOPJ is written in all areas except the area corresponding to each address.

また、上記最終番地領域(3FFHおよび3 FFH各
番地に対応する領域)には、図示する如くrJMP 5
TOPJなる分岐命令が書き込んである。この分岐命令
は、ROMのプログラム領域中に書き込まれた5TOP
ルーチン、すなわちCPUの実行を停止するとともに警
告等を発する命令からなるプログラムへ分岐させるだめ
のものである。
In addition, in the final address area (3FFH and the area corresponding to each address of 3FFH), as shown in the figure, rJMP 5
A branch instruction TOPJ has been written. This branch instruction is the 5TOP written in the program area of the ROM.
This is to branch to a routine, that is, a program consisting of instructions that stop the execution of the CPU and issue a warning or the like.

このような構成であるから、仮にCPU 20が暴走し
てプログラムカウンタの値がROMの空領域内の番地に
対応するものになったとしても、この空領域の各番地に
は最終の2番地を除いてすべて1マシンサイクルのノー
オペレージ、ン命令が書き込んであるため、CPU 2
 oはノーオペレーション命令を順次実行し、しかるの
ち分岐命令(r JMP 5TOP J )を実行して
暴走処理用のプログラムへ分岐しこのプログラムを実行
する。
With such a configuration, even if the CPU 20 goes out of control and the program counter value corresponds to an address in the empty area of the ROM, the last two addresses will be stored in each address in the empty area. All except for one machine cycle no-operation instruction are written, so CPU 2
o sequentially executes no-operation instructions, then executes a branch instruction (r JMP 5TOP J) to branch to a program for runaway processing, and executes this program.

したがって、最終番地を除く空領域に飛び込んだ場合の
CPUの動作は確実に保障され、この結果CPU 20
の暴走による障害の発生を高確度で防止することができ
る。
Therefore, when the CPU jumps into an empty area other than the final address, the operation of the CPU is guaranteed, and as a result, the CPU 20
The occurrence of failures due to runaway can be prevented with high accuracy.

〔発明の効果〕〔Effect of the invention〕

以上詳述したように、ROMの空領域の各番地にそれぞ
れ1マシンサイクルのノーオペレージ目ン命令を書き込
み、かつ上記空領゛域の最終番地領域に暴走処理用のプ
ログラムへ移行させるための分岐命令を書き込んだ本発
明によれば、処理装置が暴走を起こしてプログラムカウ
ンタの値がリード・オンリー・メモリの空領域に飛び込
んだ場合の動作状態を高確度で保障し、これによル障害
の発生を低減することができるマイクロコンピュータを
提供することができる。
As detailed above, a no-operation instruction of one machine cycle is written to each address of the empty area of the ROM, and a branch instruction is written to the final address area of the empty area for transitioning to a program for runaway processing. According to the present invention, the operating state is guaranteed with high accuracy in the event that the processing unit goes out of control and the value of the program counter jumps into the empty area of the read-only memory, thereby preventing the occurrence of a failure. It is possible to provide a microcomputer that can reduce the

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

第1図は本発明の一実施例におけるマイクロコンピュー
タの!ロック構成図、第2図はメモリマツプの構成図で
ある。 10・・・メモリ部、20・・・処理装置(CPU)、
30・・・発振器
FIG. 1 shows a microcomputer in one embodiment of the present invention! FIG. 2 is a block diagram of a memory map. 10... Memory section, 20... Processing unit (CPU),
30...Oscillator

Claims (1)

【特許請求の範囲】[Claims] 1チ、プ中に処理装置およびリード・オンリー・メモリ
を備えたマイクロコンビーータにおいて、前記リード・
オンリー・メモリの空領域に、1マシンサイクルのノー
オペレージ、ン命令を書き込みかつ空領域の最終番地領
域に前記処理装置の実行を停止させるかもしくは処理装
置の暴走に対処するためのプログラムへ分岐させる命令
を書き込んだことを特徴とするマイクロコンピュータ。
1. In a microcomputer equipped with a processing unit and a read-only memory in the chip, the read-only memory
An instruction that writes a one-machine-cycle no-operation instruction into an empty area of the only memory and causes the final address area of the empty area to stop execution of the processing device or branch to a program for dealing with a runaway of the processing device. A microcomputer characterized by being written with.
JP57103348A 1982-06-16 1982-06-16 Microcomputer Pending JPS58221448A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57103348A JPS58221448A (en) 1982-06-16 1982-06-16 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57103348A JPS58221448A (en) 1982-06-16 1982-06-16 Microcomputer

Publications (1)

Publication Number Publication Date
JPS58221448A true JPS58221448A (en) 1983-12-23

Family

ID=14351628

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57103348A Pending JPS58221448A (en) 1982-06-16 1982-06-16 Microcomputer

Country Status (1)

Country Link
JP (1) JPS58221448A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6295634A (en) * 1985-10-22 1987-05-02 Nec Corp Microprogram controller
JP2015120081A (en) * 2015-04-02 2015-07-02 京楽産業.株式会社 Game machine

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53122338A (en) * 1977-04-01 1978-10-25 Hitachi Ltd Data processor
JPS55127606A (en) * 1979-03-23 1980-10-02 Nissan Motor Co Ltd Fail safe method of control computer
JPS56164444A (en) * 1980-05-23 1981-12-17 Toshiba Corp Error check method for controller of microprogram

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53122338A (en) * 1977-04-01 1978-10-25 Hitachi Ltd Data processor
JPS55127606A (en) * 1979-03-23 1980-10-02 Nissan Motor Co Ltd Fail safe method of control computer
JPS56164444A (en) * 1980-05-23 1981-12-17 Toshiba Corp Error check method for controller of microprogram

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6295634A (en) * 1985-10-22 1987-05-02 Nec Corp Microprogram controller
JP2015120081A (en) * 2015-04-02 2015-07-02 京楽産業.株式会社 Game machine

Similar Documents

Publication Publication Date Title
JPS58221448A (en) Microcomputer
KR890002765A (en) Data processing system
JPS6126091B2 (en)
JPS60124746A (en) Data processing unit
JPH0283749A (en) Internal interruption control system for microprocessor
JPH059815B2 (en)
JPH01134627A (en) Instruction extending system for microprocessor
KR940011045B1 (en) Interrupt vector addressing method in micro controller unit
JPS63120340A (en) Data processor
JPS62264338A (en) Single chip microcomputer for evaluation
JPS62127951A (en) Interruption information save device
JPH0264828A (en) Address trace circuit
JPS61264444A (en) Data processing system for central processing unit
JPS61151745A (en) Interruption processing system
JPH04157530A (en) Microprocessor
JPS5968067A (en) Specifying system for number of run steps
JPS60193046A (en) Detecting system for instruction exception
JPH02264339A (en) Information processor
JPH059814B2 (en)
JP2000066923A (en) Method for controlling all-instruction tracing in emulator
JPS6252642A (en) Microprocessor
JPH0481939A (en) Control system for microcomputer
JPH0438526A (en) Microcomputer
JPS6454549A (en) Lsi state monitoring system
JPH06301552A (en) Microprocessor unit