JPS5920052A - Interruption control circuit of microcomputer system - Google Patents

Interruption control circuit of microcomputer system

Info

Publication number
JPS5920052A
JPS5920052A JP12979982A JP12979982A JPS5920052A JP S5920052 A JPS5920052 A JP S5920052A JP 12979982 A JP12979982 A JP 12979982A JP 12979982 A JP12979982 A JP 12979982A JP S5920052 A JPS5920052 A JP S5920052A
Authority
JP
Japan
Prior art keywords
interrupt
circuit
processing request
request signal
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.)
Pending
Application number
JP12979982A
Other languages
Japanese (ja)
Inventor
Shinjiro Toyoda
豊田 新次郎
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 Corp
Original Assignee
Toshiba Corp
Tokyo Shibaura Electric Co Ltd
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 Corp, Tokyo Shibaura Electric Co Ltd filed Critical Toshiba Corp
Priority to JP12979982A priority Critical patent/JPS5920052A/en
Publication of JPS5920052A publication Critical patent/JPS5920052A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements

Abstract

PURPOSE:To simplify a circuit constitution, by applying a processing request signal of non-mask interruption and that of system abnormal detection insterruption to an interruption detecting circuit via a common logical circuit. CONSTITUTION:A trap interruption processing request signal TRAP, a software interruption processing request signal SWI, and a non-mask logical processing request signal NMI at power failure given to an external device 14 are applied to a latch 17 via an OR gate circuit 16 and an output signal of a latch 17 is fed to an interruption detecting circuit 25. When this system uses the signal SWI as a brake point at program debug and it is detected that an output signal of the latch 17 goes to ''1'', the circuit 25 discriminates that a request of the software interruption processing is produced, this request is received. Thus, the software interruption processing is executed at the CPU.

Description

【発明の詳細な説明】 〔発明の技術分野〕 この発明は、システム異常検出による割込み機能および
外部信号による非マスク割込み機能ヲ持ツマイクロコン
ピュータシステムの割込み制御回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to an interrupt control circuit for a microcomputer system having an interrupt function based on system abnormality detection and a non-masked interrupt function based on an external signal.

〔発明の技術的背景〕[Technical background of the invention]

ある種のマイクロコンピュータシステムでは、CPU 
(中央演算処理ユニット)の暴走を未然に防ぐ目的でト
ラップ割込みと称する割込み機能が用意されている。こ
のトラップ割込みとは、未定義エリアがアクセスされる
場合のアドレスエラーや未定義命令がフェッチされる場
合のオペコードエラー等が発生する際に起動され、この
後、この割込み処理が実行されることによってCPUの
暴走が未然に防止されるものである。
In some types of microcomputer systems, the CPU
An interrupt function called a trap interrupt is provided for the purpose of preventing the (central processing unit) from running out of control. This trap interrupt is activated when an address error occurs when an undefined area is accessed, an opcode error occurs when an undefined instruction is fetched, etc., and after this interrupt processing is executed, This prevents the CPU from running out of control.

壕だある種のマイクロコンピュータシステムでは、シス
テム開発時のプログラムデバッグのためのブレークポイ
ントとして用いられるソフトウェア割込み(swi )
機能が用意されている。
In some microcomputer systems, software interrupts (swi) are used as breakpoints for program debugging during system development.
Functions are available.

さらにまたある種のマイクロコンピュータシステムでは
、システムの電源異常対策等のために、外部信号によっ
て起動される非マスク割込み(Non−Magkabl
a  Inturrupt略してNMI )機能が用意
されている。
Furthermore, some types of microcomputer systems use non-mask interrupts (Non-Magkabl interrupts) activated by external signals to prevent system power failures.
a) An interrupt (abbreviated as NMI) function is provided.

ところで、いま上記3種類の割込み機能をすべて用意し
ている従来のマイクロコンピュータシステムにおいて、
その割込み制御回路は第1図に示すように構成されてい
る。すなわち、ラッチ1ノは、トラップ割込み処理要求
が生じた際に“1”レベルに設定される要求信号TRA
Pによってセットされるようになっている。またもう1
つのラッチ12は、ソフトウェア割込み処理要求が生じ
た際に61#レベルに設定される要求信号SWIによっ
てセットされるようになっている。さらにもう1つのラ
ッチ13は、外部端子14にu1#レベルの非マスク割
込み処理要求信号NMIが与えられる際にセットされる
ようになっている。そして上記3つのラッチ1ノ。
By the way, in conventional microcomputer systems that currently provide all three types of interrupt functions,
The interrupt control circuit is constructed as shown in FIG. That is, latch 1 receives the request signal TRA, which is set to the "1" level when a trap interrupt processing request occurs.
It is set by P. Yet another one
The two latches 12 are set by a request signal SWI which is set to the 61# level when a software interrupt processing request occurs. Yet another latch 13 is set when the unmasked interrupt processing request signal NMI of u1# level is applied to the external terminal 14. And the above three latches 1.

12.13の出力信号は並列的に割込み検出回路15に
与えられる。この割込み検出回路15は、上記3つのラ
ッチ11,12.13からの出力信号を検出し、“1#
レベルとなっているも −のがあればこれに対応する′
割込み処理要求が生じていると判定しこの要求を受付け
る。
The output signals of 12 and 13 are given to the interrupt detection circuit 15 in parallel. This interrupt detection circuit 15 detects the output signals from the three latches 11, 12.
If there is a level -, it corresponds to this.
It is determined that an interrupt processing request has occurred, and this request is accepted.

〔背景技術の問題点〕 ところで、上記構成でなる従来のフィクロコンピュータ
システムの割込み制御回路では、システムの電源異常や
システムデバッグ時等のためだけにそれぞれ専用の割込
み処理経路を別りに設けている。このために回路構成が
複雑化しているとともに、システムが正常に動作してい
る時に使用できる割込みの数を少なくせざるを得ないと
いう欠点がある。
[Problems in the Background Art] By the way, in the interrupt control circuit of the conventional ficrocomputer system having the above configuration, a separate dedicated interrupt processing path is provided only for system power failures, system debugging, etc. There is. This has the disadvantage that the circuit configuration is complicated and that the number of interrupts that can be used when the system is operating normally must be reduced.

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

この発明は上記のような事情を考慮してなされたもので
あり、その目的とするとこうは、回路構成の簡略化およ
びシステムの正常時に使用できる割込みの数を増大させ
ることができるマイクロコンピュータシステムの割込み
制御回路を提供することにある。
This invention was made in consideration of the above circumstances, and its purpose is to provide a microcomputer system that can simplify the circuit configuration and increase the number of interrupts that can be used during normal system operation. An object of the present invention is to provide an interrupt control circuit.

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

上記目的′fc達成するためこの発明にあっては、シス
テム異常検出によるトラ、、7°割込み、ソフトウェア
割込み尋の処理要求信号および外部信号による非マスク
割込みの処理要求信号を論理和ダート回路を介して割込
み検出回路に供給するようにしている。
In order to achieve the above object 'fc, in this invention, a processing request signal for a 7° interrupt due to system abnormality detection, a processing request signal for a software interrupt, and a processing request signal for a non-masked interrupt caused by an external signal are processed through an OR dart circuit. The signal is then supplied to the interrupt detection circuit.

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

以下図面を参照してこの発明の詳細な説明する。第2図
はこの発明に係るマイクロコンピュータシステムの割込
み制御回路の回路構成図である。この実施例回路では、
前記トラップ割込み処理要求信号TRAP、ソフトウェ
ア割込み処理要求信号swrおよび外部端子14に与え
られる電源異常時の非マスク割込み処理要求信号NMI
をORダート回路16を介してラッチ17に供給し、さ
らにこのラッチ17の出力信号を割込み検出回路25に
供給するようにしたものである。
The present invention will be described in detail below with reference to the drawings. FIG. 2 is a circuit diagram of the interrupt control circuit of the microcomputer system according to the present invention. In this example circuit,
The trap interrupt processing request signal TRAP, the software interrupt processing request signal swr, and the non-masked interrupt processing request signal NMI at the time of a power failure, which is applied to the external terminal 14.
is supplied to the latch 17 via the OR dart circuit 16, and the output signal of the latch 17 is further supplied to the interrupt detection circuit 25.

このような構成において、いまこのシステムがプログラ
ムのデパック時でtりル、ブレークポイントとしてSW
Iを使用している場合、ラッチ17の出力信号が″′1
#レベルになったことを検出すると、割込み検出回路2
5は前記ソフトウェア割込み処理の要求が生じているも
のと判定してこの要求を受付ける。するとこの後に図示
し彦いCPUはソフトウェア割込み処理を実行する。
In this configuration, when this system is depacking the program, the SW is set as a breakpoint.
When using I, the output signal of latch 17 is
# When detecting the level, interrupt detection circuit 2
5 determines that a request for the software interrupt processing has occurred and accepts this request. Thereafter, the CPU shown in the figure executes software interrupt processing.

一方、プログラムデバッグが終了し、このシステムを完
成したプログラムでもって動作させている場合にラッチ
17の出力信号が”1”レベルになったことを検出する
と、割込み検出回路25は前記ドラッグ割込み処理ある
いは非マスク割込み処理の要求7r生じているものと判
定してこの要求を受付ける。ところでこのとき、割込み
検出回路25では、受付けた割込み処理要求がトラ、7
6割込み処理であるか非マスク割込み処理であるかを区
別することはできない。しかしながら両割込み処理では
データの退避。
On the other hand, when program debugging is completed and this system is operating with a completed program, when it is detected that the output signal of the latch 17 has become "1" level, the interrupt detection circuit 25 performs the drag interrupt processing or It is determined that a request 7r for non-masked interrupt processing has occurred, and this request is accepted. By the way, at this time, the interrupt detection circuit 25 detects that the accepted interrupt processing request is
It is not possible to distinguish between 6 interrupt processing and non-mask interrupt processing. However, data is saved in both interrupt processing.

RAMアドレスの内容の書き替え禁止等、処理内容がほ
ぼ同じである。このため、上記処理要求の受付は後、C
PUはトラップ割込み処理および非マスク割込み処理に
共通した処理を実行する。
The processing contents are almost the same, such as prohibiting rewriting of the contents of the RAM address. Therefore, the above processing request will be accepted after C
The PU executes processing common to trap interrupt processing and non-masked interrupt processing.

このように上記実施例回路では、−イクロコンぎユータ
システムが正常に動作しているときにはほとんど使用さ
れないシステム異常やプログラムデバッグ時のだめの割
込み信号をまとめてORデート回路16を介して1つの
ラッチ17に供給し、さらにこのラッチ17の出力信号
を割込み検出回路25に供給するようにしたので、シス
テム異常やデバッグ時のだめの割込み処理経路を1つに
まとめることができ、これによυ回路構成の簡略化を図
ることができる。
In this way, in the circuit of the above embodiment, interrupt signals that are rarely used during system abnormality or program debugging when the microcomputer system is operating normally are collected and sent to one latch 17 via the OR date circuit 16. Furthermore, since the output signal of this latch 17 is supplied to the interrupt detection circuit 25, it is possible to combine the interrupt processing paths for system abnormalities and debugging into one, thereby simplifying the υ circuit configuration. It is possible to aim for

しかも上記目的のための割込み検出回路25への割込み
の数は従来の3本に対して1本に減少している。このた
め、システムが正常に動作している時に必要な割込みの
数は、上記本数が減少した分だけ増大させることができ
る。
Moreover, the number of interrupts to the interrupt detection circuit 25 for the above purpose has been reduced to one, compared to three in the conventional system. Therefore, the number of interrupts required when the system is operating normally can be increased by the amount that the above number is reduced.

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

以上説明したようにこの発明によれば、システム異常検
出による割込み処理要求信号および外部信号による非マ
スク割込み処理要求信号を共通の論理和回路を介して割
込み検出回路に供給するようにしたので、回路構成の簡
単化およびシステムの正常時に使用できる割込みの数を
増大させることができるマイクロコンピュータシステム
の割込み制御回路が提供できる。
As explained above, according to the present invention, the interrupt processing request signal due to system abnormality detection and the non-masked interrupt processing request signal due to the external signal are supplied to the interrupt detection circuit via the common OR circuit. It is possible to provide an interrupt control circuit for a microcomputer system that can simplify the configuration and increase the number of interrupts that can be used during normal system operation.

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

第1図は従来の回路構成図、第2図はこの発明の一実施
例の回路構成図である。 11.12,13.17・・・ラッチ、14・・・外部
端子、15.25・・・割込み検出回路、16・・・O
Rダート回路。
FIG. 1 is a conventional circuit diagram, and FIG. 2 is a circuit diagram of an embodiment of the present invention. 11.12, 13.17...Latch, 14...External terminal, 15.25...Interrupt detection circuit, 16...O
R dirt circuit.

Claims (1)

【特許請求の範囲】[Claims] システム異常検出によ〕起動される割込み機能および外
部信号により起動される非マスク割込み機能を有するマ
イクロコンピュータシステムにおいて、上記システム異
常検出割込みの処理要求信号および非マスク割込みの処
理要求信号を共通の論理和回路を介して割込み検出回路
に供給するように構成したことを特徴とするマイクロコ
ンピュータシステムの割込み制御回路。
In a microcomputer system that has an interrupt function activated by system abnormality detection and a non-masked interrupt function activated by an external signal, the system abnormality detection interrupt processing request signal and the non-masked interrupt processing request signal are connected to a common logic. 1. An interrupt control circuit for a microcomputer system, characterized in that the interrupt control circuit is configured to supply a signal to an interrupt detection circuit via a sum circuit.
JP12979982A 1982-07-26 1982-07-26 Interruption control circuit of microcomputer system Pending JPS5920052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12979982A JPS5920052A (en) 1982-07-26 1982-07-26 Interruption control circuit of microcomputer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12979982A JPS5920052A (en) 1982-07-26 1982-07-26 Interruption control circuit of microcomputer system

Publications (1)

Publication Number Publication Date
JPS5920052A true JPS5920052A (en) 1984-02-01

Family

ID=15018508

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12979982A Pending JPS5920052A (en) 1982-07-26 1982-07-26 Interruption control circuit of microcomputer system

Country Status (1)

Country Link
JP (1) JPS5920052A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6224329A (en) * 1985-07-23 1987-02-02 Mitsubishi Electric Corp State signal detector
JPS6282885U (en) * 1985-11-15 1987-05-27

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS573145A (en) * 1980-06-05 1982-01-08 Sanyo Electric Co Ltd Interruption processing method for microcomputer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS573145A (en) * 1980-06-05 1982-01-08 Sanyo Electric Co Ltd Interruption processing method for microcomputer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6224329A (en) * 1985-07-23 1987-02-02 Mitsubishi Electric Corp State signal detector
JPS6282885U (en) * 1985-11-15 1987-05-27

Similar Documents

Publication Publication Date Title
EP0702297B1 (en) A data processor with breakpoint circuit
JP7351933B2 (en) Error recovery method and device
JPS5920052A (en) Interruption control circuit of microcomputer system
JP6996748B2 (en) Debug system, BIOS, information processing device and debugging method
CN116932270A (en) Diagnosis method and device for long-term off interruption
JP2786215B2 (en) Restart processing control method
JPH0333939A (en) Microprocessor
JPS6298435A (en) Defecting method for abnormality of computer
JP3019336B2 (en) Microprocessor development support equipment
JPS62231340A (en) Computer
JPS60128541A (en) Microprocessor
JPS5833737A (en) Reset controlling system
JPH03152637A (en) Abnormality diagnostic system
CN112486712A (en) Method for diagnosing equipment non-response in embedded system
JPS60254251A (en) Debug system
JPS61163452A (en) Central controller
JPS6029849A (en) Prevention system against malfunction of detecting circuit for processor malfunction
JPH0419580B2 (en)
JPH02245941A (en) Address inspection device
JPH0314148A (en) Program breakdown detecting device
JPS58169640A (en) Preventing circuit of runaway of microcomputer
JPS63307547A (en) Cpu monitor circuit
JPS61121140A (en) Detecting system for computer runaway
JPH03204739A (en) Microcomputer
JPH01166145A (en) Cpu monitor