[go: up one dir, main page]

JPH1069398A - Microcomputer for software debugging - Google Patents

Microcomputer for software debugging

Info

Publication number
JPH1069398A
JPH1069398A JP9123131A JP12313197A JPH1069398A JP H1069398 A JPH1069398 A JP H1069398A JP 9123131 A JP9123131 A JP 9123131A JP 12313197 A JP12313197 A JP 12313197A JP H1069398 A JPH1069398 A JP H1069398A
Authority
JP
Japan
Prior art keywords
interrupt
mode
user
priority
interruption
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
JP9123131A
Other languages
Japanese (ja)
Other versions
JP2877138B2 (en
Inventor
Tomoshi Fukui
知史 福井
Junichi Nakada
淳一 中田
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP9123131A priority Critical patent/JP2877138B2/en
Publication of JPH1069398A publication Critical patent/JPH1069398A/en
Application granted granted Critical
Publication of JP2877138B2 publication Critical patent/JP2877138B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Microcomputers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide the microcomputer for software debugging which prevents an application system from malfunctioning or becoming abnormal in IE mode by varying the interruption priority level of SVI(interruption used exclusively to make a shift from user mode to IE mode) and then enabling multiple interruption control. SOLUTION: An interruption circuit control circuit 11 in an object microcomputer is provided with an interruption switching circuit 13, a break control circuit 12, and a multiple interruption circuit 14 to control priority-level interruption, and the multiple interruption circuit 14 and the break control circuit 12 which controls the shift to evaluation mode performs a multiple interruption request process in the evaluation mode. In the IE mode, a user's interruption request is accepted according to the priority to perform a user interruption process, so that a user program can be executed in real time. Further, a shift to the evaluation mode can be made even during the user program execution, real-time evaluation can be performed, and a secure return from an interruption destination can be made.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はソフトウェア評価装
置として適用可能なマイクロコンピュータに関し、特に
ソフトウェアディバグ用マイクロコンピュータに関す
る。
The present invention relates to a microcomputer applicable as a software evaluation device, and more particularly to a microcomputer for software debugging.

【0002】[0002]

【従来の技術】インサーキットエミュレータ(以後、
「IE」と称す)は、マイクロコンピュータを用いた応
用システムをディバグする際に使用する。IEと応用シ
ステムを接続し、ユーザが作成したソフトウェア(「ユ
ーザプログラム」という)を実行するが、このユーザプ
ログラムを実行している状態を、以後「ユーザモード」
と称する。このユーザモード中にIE専用の割り込み処
理をかけ、IEの評価専用のプログラムへ移行する(以
後、この状態を「IEモード」と称す)ことにより、ソ
フトウェアの実行状態およびハードウェアの状態を確認
する。このユーザモードからIEモードに移行する時に
使用する専用の割り込みのことを「SVI」と称する。
2. Description of the Related Art In-circuit emulators (hereinafter referred to as "in-circuit emulators")
"IE") is used when debugging an application system using a microcomputer. The IE is connected to the application system, and the software created by the user (referred to as a “user program”) is executed.
Called. During this user mode, an interrupt process dedicated to the IE is performed, and a transition is made to a program dedicated to the evaluation of the IE (hereinafter, this state is referred to as the “IE mode”), thereby confirming the software execution state and the hardware state. . The dedicated interrupt used when shifting from the user mode to the IE mode is called “SVI”.

【0003】IEは、ユーザプログラム実行中にSVI
が発生するとIEの評価機能を制御するSVIルーチン
であるモニタプログラムを起動し、これによりディバッ
ク作業を行っている。また、SVIは、応用システムの
動作状態を確認する等の評価を行うために発生させる特
殊な割り込み処理であるために、ユーザプログラム実行
中においてユーザが意図した時点で必ず受け付けられな
ければならない割り込みである。このようにSVIは、
割り込みの優先順位が最も高くなっているため、IEモ
ード中はSVI以外の全ての割り込みサービスは行われ
ない。ここで、ユーザモードとIEモードとでは通常各
プログラムを実行するメモリ空間が相違している。これ
はユーザメモリとIEモードとで同一のメモリ空間を使
用することにすると、IEモードで使用するメモリ領域
を予め定めておかなければならず、ユーザに対してユー
ザモードで使えるメモリ領域を制限してしまうことにな
るためである。
[0003] IE executes SVI during execution of a user program.
When the error occurs, a monitor program, which is an SVI routine for controlling the IE evaluation function, is started, thereby performing a debugging operation. Also, SVI is a special interrupt process that is generated for performing an evaluation such as confirming an operation state of an application system. Therefore, the SVI is an interrupt that must be accepted at a time intended by a user during execution of a user program. is there. Thus, SVI is
Since the priority of the interrupt is the highest, no interrupt service other than the SVI is performed during the IE mode. Here, the user mode and the IE mode usually have different memory spaces for executing respective programs. This means that if the same memory space is used for the user memory and the IE mode, the memory area used in the IE mode must be determined in advance, and the memory area available for the user mode in the user mode is limited. It is because it will be.

【0004】実際のシステムの一例を図15を参照して
説明する。図15は、DCモータを制御するシステムの
一部を示すブロック図である。マイクロコンピュータの
ポート出力がモータ制御回路の入力に接続され、モータ
制御回路の出力がDCモータの電源になっている。この
システムでは、タイマーを用いて一定間隔で割り込み要
求を発生させ、その割り込み処理ルーチンでポートの出
力を変化させている。このシステムのディバグにおい
て、IEモードへの遷移後、全てのユーザ割り込みが禁
止状態になるため、マイクロコンピュータのポート出力
がIEモード遷移前の状態を保持したまま変化しなくな
る。もし、保持しているポートの状態によってはDCモ
ータ過電圧が印可されていればDCモータのコイルを焼
き切る可能性があると考えられる。このようなシステム
を保護し、システムの破壊が起こらないようにするため
にも、回路保護を行う割り込み処理は、IEモード中に
おいても受け付けられる必要性があった。
An example of an actual system will be described with reference to FIG. FIG. 15 is a block diagram showing a part of a system for controlling a DC motor. A port output of the microcomputer is connected to an input of the motor control circuit, and an output of the motor control circuit is used as a power supply for the DC motor. In this system, an interrupt request is generated at regular intervals using a timer, and the output of the port is changed in the interrupt processing routine. In the debugging of this system, all the user interrupts are disabled after the transition to the IE mode, so that the port output of the microcomputer does not change while maintaining the state before the transition to the IE mode. If a DC motor overvoltage is applied depending on the state of the port being held, it is considered that the DC motor coil may be burned out. In order to protect such a system and prevent the system from being destroyed, it is necessary to accept an interrupt process for protecting the circuit even during the IE mode.

【0005】[0005]

【発明が解決しようとする課題】上記例のように、応用
システムの仕様によっては、一定時間毎に割り込み応答
を行わないとシステムに致命的な異常をきたすものがあ
る。また、IEモード中ではマスク不能割り込みを含む
ユーザ割り込みにサービスせず保留されるため、割り込
み応答解除が保証できないという問題があった。また、
単にSVIの割り込み優先レベルを下げるだけでは、ユ
ーザ割り込みの優先順位がSVIより高くなった場合、
評価を行いたいタイミングでのIEモードへ遷移が行え
なくなってしまう。
As described in the above example, depending on the specifications of the applied system, a fatal abnormality may occur in the system unless an interrupt response is made at regular intervals. Further, in the IE mode, the user interrupt including the non-maskable interrupt is not serviced but is held, so that there is a problem that the cancellation of the interrupt response cannot be guaranteed. Also,
Simply lowering the SVI interrupt priority level will result in a user interrupt having a higher priority than SVI.
The transition to the IE mode at the timing at which evaluation is desired cannot be performed.

【0006】したがって、本発明の目的は、任意にSV
Iの割り込み優先レベルを変更することによる多重割り
込み制御を可能とし、IEモード中における応用システ
ムの誤動作や異常を防ぐソフトウェアディバグ用のマイ
クロコンピュータを提供することにある。
Accordingly, it is an object of the present invention to
An object of the present invention is to provide a microcomputer for software debugging that enables multiple interrupt control by changing the interrupt priority level of I and prevents malfunction or abnormality of an application system in the IE mode.

【0007】[0007]

【課題を解決するための手段】前記目的を達成するた
め、本発明のマイクロコンピュ−タは、ユ−ザ非公開の
割り込み機能を有し、前記ユーザ非公開の割り込みと、
マスク不能割り込みを含むユ−ザ割り込みの優先順位を
任意に変更できることを特徴とする。すなわち、SVI
割り込みを任意の優先順位に設定するための優先順位制
御手段を備え、入力された割り込み信号の優先順位を比
較し、多重割り込みが行われるかどうかを判断する機能
部と、割り込みが受け付けられるとカウントアップし、
割り込みルーチンから復帰するとカウントダウンするカ
ウンタと、SVI割り込みの際のPC(プログラムカウ
ンタ)およびPSW(プログラムステータスワード)の
退避のためのレジスタとを備える。また、割り込み処理
時のPC値とPSW値中退避領域として、ユーザ割り込
みとユーザ非公開の割り込みとで別々の記憶領域をもつ
ことを特徴とする。
In order to achieve the above object, a microcomputer according to the present invention has a user-undisclosed interrupt function,
It is characterized in that the priority of user interrupts including non-maskable interrupts can be arbitrarily changed. That is, SVI
Priority control means for setting interrupts to arbitrary priorities, comparing the priority of input interrupt signals and determining whether multiple interrupts are performed, and counting when interrupts are accepted Up,
It has a counter that counts down when returning from the interrupt routine, and a register for saving the PC (program counter) and PSW (program status word) when an SVI interrupt occurs. Also, as a save area for saving a PC value and a PSW value during interrupt processing, a separate storage area is provided for a user interrupt and an interrupt that is not disclosed to the user.

【0008】[0008]

【発明の実施の形態】次に、本発明の実施の形態を図面
を参照して説明する。図1は、本発明のマイクロコンピ
ュータの実施の形態の概略構成を示す図である。ここで
は、幾つかあるユーザ割り込みの1をユーザ割り込み端
子とSVI端子とを兼用させている。通常この兼用端子
は、ユーザ割り込み端子として使用されているが、評価
を行う際、IEモード中において優先順位付きの多重割
り込みを行うと設定すると本マイクロコンピュータ内で
発生するSVI信号専用の端子に切り替わり、SVIを
割り込み信号の1つと見なすことにより、SVIの優先
順位を切り替えることができる。
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a diagram showing a schematic configuration of a microcomputer according to an embodiment of the present invention. Here, one of several user interrupts is used as both a user interrupt terminal and an SVI terminal. Normally, this dual-purpose terminal is used as a user interrupt terminal. However, when evaluation is performed, if multiple interrupts with priorities are set to be performed in the IE mode, the terminal is switched to a terminal dedicated to the SVI signal generated in the microcomputer. , SVI as one of the interrupt signals, the priority of the SVI can be switched.

【0009】この機能を実現するための構成として、図
1に示すように、この実施の形態において、マイクロコ
ンピュータは、割り込み制御回路11(図2参照)と、
IEモードとユーザモードとの遷移を制御するブレーク
制御回路12と、割り込みと割り込み優先順位を制御す
る割り込み切り替え回路13(図3参照)と、ユーザモ
ードからIEモード、IEモードからユーザ割り込み要
求を処理するという多重の割り込み処理を確実に行うた
めの多重割り込み回路14(図4参照)と、CPUコア
15と3つのAND回路と1つのOR回路と1つのNO
T回路と、を有している。また、IEは2つのメモリ空
間を持っており、ユーザモード中とIEモード中では、
同アドレスを示していて、モードによって内容が異な
る。このため、ユーザモード中に一般割り込みが発生し
た場合にPC/PSWを退避させる一般スタック151
と、IEモードへ遷移する際あるいは、IEモード中に
受け付けたユーザ割り込みを処理する場合、このユーザ
割り込みからIEモードに復帰する際のPC/PSWを
退避させる専用退避レジスタ152を有している。
As a configuration for realizing this function, as shown in FIG. 1, in this embodiment, the microcomputer comprises an interrupt control circuit 11 (see FIG. 2)
A break control circuit 12 for controlling the transition between the IE mode and the user mode, an interrupt switching circuit 13 for controlling the interrupt and the priority of the interrupt (see FIG. 3), and processing of the IE mode from the user mode and the user interrupt request from the IE mode. A multiple interrupt circuit 14 (see FIG. 4) for surely performing a multiple interrupt process of executing a CPU core 15, three AND circuits, one OR circuit, and one NO
And a T circuit. Further, the IE has two memory spaces, and in the user mode and the IE mode,
The same address is shown, and the content differs depending on the mode. Therefore, when a general interrupt occurs during the user mode, the general stack 151 that saves the PC / PSW is saved.
And a dedicated save register 152 for saving the PC / PSW when returning to the IE mode from the user interrupt when processing a user interrupt received during the transition to the IE mode or during the IE mode.

【0010】前記した各ブロックの構成と概要を説明す
る。まず、CPUコア15は、SVIを許可した場合、
SVIAK信号を、また、ユーザ割り込み要求を許可し
た場合は、INTAK信号の2種類の割り込み許可信号
を割り込み切り替え回路と多重割り込み回路に「1パル
ス」出力し、復帰時に使用するPCとPSWをスタック
退避した後、割り込み処理を開始する。また、IEモー
ドからの復帰時においては、RETSVI信号をユーザ
割り込みからの復帰時には、RETI信号を割り込み切
り替え回路13と多重割り込み回路14に「1パルス」
出力し、退避してあったPCおよびPSWの値を読み込
み復帰処理を行う。
The configuration and outline of each block will be described. First, when the CPU core 15 permits SVI,
When the SVIAK signal and the user interrupt request are permitted, two kinds of interrupt permission signals of the INTAK signal are output as "one pulse" to the interrupt switching circuit and the multiple interrupt circuit, and the PC and PSW used at the time of return are saved in the stack. After that, interrupt processing is started. When returning from the IE mode, the RETSVI signal is supplied to the interrupt switching circuit 13 and the multiple interrupt circuit 14 by "1 pulse" when returning from the user interrupt.
The output and saved PC and PSW values are read and a restoration process is performed.

【0011】前記専用退避レジスタ(以後、「SVレジ
スタ」という)152は、IEモードへの割り込み開始
時のユーザプログラムのPCおよびPSWと、IEモー
ドを中に受け付ける割り込み処理を開始する際のモニタ
プログラムのPCおよびPSWの値を退避する。一般ス
タック151は上述以外のユーザ割り込み時にPCおよ
びPSWの値を退避させるレジスタである。
The dedicated save register (hereinafter, referred to as an “SV register”) 152 includes a PC and a PSW of a user program at the time of starting an interrupt to the IE mode, and a monitor program at the time of starting an interrupt process for accepting the IE mode. PC and PSW values are saved. The general stack 151 is a register for saving the values of PC and PSW at the time of a user interrupt other than the above.

【0012】SVIとしてNMI(マスク不能割り込
み)を使用する場合、それを示すためのフラグNMIS
EL信号が「1」、かつIEモード中か否かを示す信号
(SVMODE信号)が「1」のときに、NMIBKが
「1」となり、ブレーク制御回路に出力する。NMIS
ELが「0」のときは、外部NMIをそのままNMIR
Qに出力する。
When an NMI (Non-Maskable Interrupt) is used as the SVI, a flag NMIS indicating this is used.
When the EL signal is “1” and the signal (SVMODE signal) indicating whether the current mode is the IE mode is “1”, the NMIBK becomes “1” and is output to the break control circuit. NMIS
When EL is "0", the external NMI is left
Output to Q.

【0013】割り込み制御回路11を図2を参照して説
明する。割り込み制御回路11は、割り込み信号のセレ
クタ(SEL1、SEL2)と割り込み回路21から成
っている。割り込み回路21は、一般に使用されている
割り込み回路(例:μPD71059相当)である。こ
れにユーザ割り込み要求信号(以後INT信号)を入力
する。SEL1の入力は、INT6信号とIEモード割
り込みの条件成立を示す信号(以後、BRKCOND信
号)であり、出力は割り込み回路21のINT6端子
に、接続されている。SEL1の制御は、優先順位を持
つ多重割り込みを行うことを示す信号であるINTSE
L信号で行う。INTSEL信号が「1」の場合、優先
順位を持つ多重割り込みを行うことを示し、SEL1
は、BRKCOND信号をINT6端子に出力する。つ
まり優先順位を持つ多重割り込みを行う際、INT6
は、IEモードヘの割り込み専用端子となる。
The interrupt control circuit 11 will be described with reference to FIG. The interrupt control circuit 11 includes an interrupt signal selector (SEL1, SEL2) and an interrupt circuit 21. The interrupt circuit 21 is a commonly used interrupt circuit (for example, equivalent to μPD71059). A user interrupt request signal (hereinafter, an INT signal) is input thereto. The input of SEL1 is an INT6 signal and a signal indicating the satisfaction of the IE mode interrupt condition (hereinafter, a BRKCOND signal), and the output is connected to the INT6 terminal of the interrupt circuit 21. The control of SEL1 is a signal indicating that multiple interrupts having priority are performed.
This is performed using the L signal. When the INTSEL signal is “1”, it indicates that multiple interrupts having priority are performed, and SEL1
Outputs the BRKCOND signal to the INT6 terminal. That is, when performing multiple interrupts having priority, INT6
Is a terminal dedicated to interrupting the IE mode.

【0014】SEL2は、割り込み回路21からの割り
込み要求信号(INTORG信号)の出力先をIEモー
ド中か否かを示す信号(SVMODE信号)を使い決定
している。SVMODE信号が「1」ならユーザ割り込
み要求信号(INTRQ信号)とし、「0」ならばIN
TBK信号としてOR回路を経てブレーク制御回路12
へ出力する。
The output destination of the interrupt request signal (INTORG signal) from the interrupt circuit 21 is determined using a signal (SVMODE signal) indicating whether or not the IE mode is in the IE mode. If the SVMODE signal is "1", the signal is a user interrupt request signal (INTRQ signal).
Break control circuit 12 via OR circuit as TBK signal
Output to

【0015】前記ブレーク制御回路12は、INTBK
信号やその他発生するブレーク成立条件を照合し、IE
モードヘの割り込み信号(SVI信号)を出力する。S
VI信号は、INTSEL=1の時に「BRKCOND
信号」として出力される。
The break control circuit 12 has an INTBK
Check the signal and other break conditions that occur, and
An interrupt signal (SVI signal) to the mode is output. S
The VI signal is “BRKCOND” when INTSEL = 1.
Output as a signal.

【0016】前記割り込み切り替え回路13を図3を参
照して説明する。パソコンI/F部31と、SVI許可
回路32と、割込優先クリア回路33とOR回路から成
り立っている。パソコンI/F部31は、ユーザインタ
ーフェースの役割を果たしている。パソコンI/F部3
1には評価マイクロコンピュータ制御用の設定値を保持
する幾つかのレジスタがある。このレジスタの1つにI
NTSEL信号を制御しているレジスタが有り、このレ
ジスタを「1」あるいは、「0」をセットすることで、
優先順位多重割り込みを行うかどうかを決定する。さら
に前記レジスタの1つにNMISEL信号を制御してい
るレジスタが有り、このレジスタに「1」あるいは
「0」をセットすることで、NMIをSVIとして使用
するかどうかを決定する。INTSELとNMISEL
は排他である。
The interrupt switching circuit 13 will be described with reference to FIG. It comprises a personal computer I / F unit 31, an SVI permission circuit 32, an interrupt priority clear circuit 33, and an OR circuit. The personal computer I / F unit 31 plays a role of a user interface. PC I / F 3
1 has several registers for holding the set values for controlling the evaluation microcomputer. One of these registers contains I
There is a register that controls the NTSEL signal. By setting this register to “1” or “0”,
Determines whether to perform priority multiple interrupts. Further, one of the registers includes a register for controlling the NMISEL signal. By setting "1" or "0" in this register, it is determined whether or not the NMI is used as the SVI. INTSEL and NMISEL
Are exclusive.

【0017】SVI許可回路32は、SVIが許可され
たことを示すCPUコア15からのSVIAK信号を受
け、割り込み回路21に対してのSVI用の割り込み許
可信号であるSVINTAK信号を出力している。割込
優先クリア回路33は、現在処理中のINTnが要求し
た割り込み処理が終了したことを示すSVCLRIP信
号を生成する。この信号は、図2の割り込み制御回路1
1中の割り込み回路(以後、INTC)21には、現在
どの割り込み端子から要求のあった割り込み処理が行わ
れていることを示しているレジスタ(例:μPD710
59のISRレジスタ相当)がある。このレジスタは、
数本あるINTn端子対応するビットがあり、このビッ
トは、対応するINT端子に要求のあった割り込み処理
が開始されると「1」となる。SVCLRIP信号は、
前述のレジスタのSVIの終了を示すビットをクリアす
る。ビットがクリアされると次の優先位を持つ割り込み
の処理を開始する。
The SVI permission circuit 32 receives the SVIAK signal from the CPU core 15 indicating that the SVI is permitted, and outputs an SVIINT signal, which is an SVI interrupt permission signal, to the interrupt circuit 21. The interrupt priority clear circuit 33 generates the SVCLRIP signal indicating that the interrupt processing requested by the currently processed INTn has been completed. This signal corresponds to the interrupt control circuit 1 of FIG.
In the interrupt circuit 21 (hereinafter referred to as INTC) 21, a register (for example, μPD710) indicating which interrupt terminal is currently performing the interrupt processing requested from which interrupt terminal is being executed.
59 ISR registers). This register
There are several bits corresponding to the INTn terminal, and this bit becomes “1” when the interrupt processing requested for the corresponding INT terminal is started. The SVCLRIP signal is
The bit indicating the end of the SVI of the aforementioned register is cleared. When the bit is cleared, processing of the interrupt having the next priority starts.

【0018】前記多重割り込み回路14は、図4を参照
すると、SVI割り込みカウンタ41とINT割り込み
カウンタ42の2種類のカウンタを有している。SVI
割り込みカウンタ41は、IEモードに遷移すると“+
1”カウントアップし、IEモードからユーザモードに
復帰すると“−1”カウントダウンする。このカウンタ
の出力がSVCNT[1:0]である。INT割り込み
カウンタ42は、IEモード中においてSVIが使用し
た優先順位より高い優先順位を持つユーザ割り込みが発
生し、これを受け付け、割り込み処理を実行した場合
(図6のユーザモード2)に「0」から「1」へカウン
トアップする。これ以降ユーザ割り込みが発生する度
に、“+1”ずつカウントアップする。また、割り込み
処理により復帰する度に、“−1”ずつカウントダウン
し、最後に元のIEモードに復帰の際は、「0」にな
る。このカウンタの出力がINTCNT[n:0]であ
る。
Referring to FIG. 4, the multiple interrupt circuit 14 has two types of counters, an SVI interrupt counter 41 and an INT interrupt counter 42. SVI
Upon transition to the IE mode, the interrupt counter 41 sets “+”
The counter counts up by "1", returns to the user mode from the IE mode, and decrements by "-1" .The output of this counter is SVCNT [1: 0] .The INT interrupt counter 42 has priority over SVI used during the IE mode. A user interrupt having a higher priority than the priority is generated. When the user interrupt is accepted and the interrupt process is executed (user mode 2 in FIG. 6), the count is incremented from “0” to “1”. Thereafter, each time a user interrupt occurs, the count is incremented by "+1". Also, every time it returns by the interrupt processing, it counts down by “−1”, and finally becomes “0” when it returns to the original IE mode. The output of this counter is INTCNT [n: 0].

【0019】SVIフラグ43は、SVINEST信号
を制御している。SVINEST信号は、SVCNT
[1:0]が「2」の時、有効となる信号である。この
信号が有効の時は、新たにSVI信号が発生しても、こ
れを受け付けず無視する。SVCNT[1:0]の値が
「1」かつINTCNT[n:0]の値が「1」でリセ
ットされる。SVMODE制御回路44では、SVMO
DE信号を制御している。この信号の制御は、次の通り
である。SVIAK信号が「1」の入力あるいは、RE
TIが「1」かつINTCNT[n:0]が「1」かつ
SVCNT[1:0]が「0」の入力で有効(「1」)
となり、RETSVIが「1」または、INTAKが
「1」の入力で無効(「0」)となる。この信号が有効
時は、IEモードであることを示す。
The SVI flag 43 controls an SVINEST signal. The SVINEST signal is SVCNT
This signal is valid when [1: 0] is “2”. When this signal is valid, even if a new SVI signal is generated, it is ignored and ignored. The value of SVCNT [1: 0] is reset to “1” and the value of INTCNT [n: 0] is reset to “1”. In the SVMODE control circuit 44, the SVMO
Controls the DE signal. The control of this signal is as follows. When the SVIAK signal is "1" or RE
Valid when TI is “1”, INTCNT [n: 0] is “1” and SVCNT [1: 0] is “0” (“1”)
When RETSVI is "1" or INTAK is "1", it becomes invalid ("0"). When this signal is valid, it indicates that the mode is the IE mode.

【0020】次に、動作について図5〜図14を用いて
説明する。図5は、従来技術の動作概略を示している。
ユーザモード中にIEモードヘの割り込み要求SVIが
発生すると、ユーザモード中のいかなる場合においても
IEモードへ遷移する。なぜならば、SVIが最高優先
割り込みであるからである。図6〜図9および図10〜
図14はそれぞれ本発明の基本動作を示すための遷移図
とフローチャートである。
Next, the operation will be described with reference to FIGS. FIG. 5 shows an outline of the operation of the prior art.
When an interrupt request SVI to the IE mode occurs during the user mode, the state transits to the IE mode in any case during the user mode. This is because SVI is the highest priority interrupt. 6 to 9 and 10
FIG. 14 is a transition diagram and a flowchart showing the basic operation of the present invention.

【0021】ユーザモードからIEモードへの割り込み
処理の概略としては、図10を参照する。ユーザのホス
トマシン(パーソナルコンピュータ)から本マイクロコ
ンピュータのパソコンI/Fを通して割り込み各端子
(INTn)に優先を設定し、優先順位付き多重割り込
みを行うことを指定することで、INT6がIEモード
割り込みの専用端子となる。ここで、SVIを発生させ
ると、まず、SVMODE信号の状態を確認する。この
時、SVMODE=1ならばこの要求は、無視される。
「0」ならば、SVMODEを「1」とし、SVI要求
を受け付け処理を開始する。
FIG. 10 shows an outline of the interrupt processing from the user mode to the IE mode. By setting a priority to each interrupt terminal (INTn) from the user's host machine (personal computer) through the personal computer I / F of the microcomputer and designating that a multiple interrupt with a priority is performed, the INT6 can execute the IE mode interrupt. Dedicated terminal. Here, when the SVI is generated, first, the state of the SVMODE signal is checked. At this time, if SVMODE = 1, this request is ignored.
If "0", SVMODE is set to "1", and the SVI request is accepted and the process is started.

【0022】次に、PC/PSWの退避先を選択するた
め、SVCNT[1:0]の値を確認する。この値が
「1」ならば、すでに一度、IEモードへの割り込み処
理を行っていることを示しているため、PC/PSWの
退避先をSVレジスタのSV2が選択され、「0」なら
ばSVレジスタのSV1に、その時のPCとPSWを退
避させる。その後、PCにIEモードを制御するモニタ
プログラムの開始アドレスをセットし実行することによ
り、SVI処理を開始する。
Next, the value of SVCNT [1: 0] is checked in order to select the PC / PSW save destination. If this value is "1", it indicates that the interrupt processing to the IE mode has already been performed once, so that the save destination of the PC / PSW is SV2 of the SV register, and if "0", SV2 is selected. The PC and PSW at that time are saved in the register SV1. After that, the start address of the monitor program for controlling the IE mode is set and executed in the PC, thereby starting the SVI processing.

【0023】また、IEモード中にユーザ割り込み要求
が発生した時の概略を示したものが図11である。SV
I処理中(IEモード)においてユーザ割り込みINT
1が発生すると、まずSVI割り込みに使用されている
INT6の優先順位と比較する。この際、INT1の優
先順位がINT6より低ければこの要求は無視され、高
ければ、受け付けられ次の処理を行う。割り込みが受け
付けられると、IEモード中にユーザ割り込みが何回処
理されているかを示すカウンタINTCNTの値が「+
1」される。
FIG. 11 shows an outline when a user interrupt request occurs during the IE mode. SV
User interrupt INT during I processing (IE mode)
When 1 occurs, the priority is compared with the priority of INT6 used for the SVI interrupt. At this time, if the priority of INT1 is lower than INT6, this request is ignored, and if it is higher, it is accepted and the next processing is performed. When the interrupt is accepted, the value of the counter INTCNT indicating how many times the user interrupt is processed during the IE mode is set to “+”.
1 ".

【0024】次に、PCとPSWの退避先を選択するた
めにSVMODEの状態を確認する。SVMODEが
「1」ならば、IEモードであることを意味し、ここか
らユーザ割り込み処理を行うため、SVレジスタのSV
2にPCとPSWを退避させ、SVMODEを「0」に
する。SVMODEが「0」の時は、ユーザモード実行
中であることを示しているので、一般のスタックにPC
とPSWを退避させる。PCとPSWの退避後は、PC
にユーザ割り込みの開始アドレスをセットし、これを実
行する。
Next, the state of SVMODE is checked in order to select a PC and PSW save destination. If SVMODE is "1", it means that the mode is the IE mode. From here, the SV of the SV register is set to execute the user interrupt processing.
2, the PC and PSW are saved, and SVMODE is set to "0". When SVMODE is "0", it indicates that the user mode is being executed.
And save the PSW. After evacuation of PC and PSW, PC
Is set to the start address of the user interrupt, and this is executed.

【0025】復帰処理には、3種類ある。通常の割り込
み処理からの復帰、IEモードからユーザモードヘの復
帰、IEモード中に発生したユーザモード(図6のユー
ザモード2)からIEモードへの復帰である。IEモー
ドからユーザモードへの復帰を示したものが図12であ
る。まずユーザモードヘの復帰命令であるRETSVI
が発生すると、SVMODEの状態を確認する。SVM
ODEが「1」ならば、この命令を受け付け、SVMO
DEに「0」をセットする。次にSVCNT[1:0]
の値を確認する。これが「1」ならばSVレジスタのS
V1の値をPC/PSWにセットし、「2」ならば、S
V2の値をセットする。セットされたPCおよびPSW
の状態からユーザプログラムを実行する。
There are three types of return processing. A return from the normal interrupt processing, a return from the IE mode to the user mode, and a return from the user mode (the user mode 2 in FIG. 6) generated during the IE mode to the IE mode. FIG. 12 shows the return from the IE mode to the user mode. First, RETSVI which is a command to return to the user mode
Occurs, the state of SVMODE is checked. SVM
If ODE is "1", this command is accepted and SVMO
Set “0” to DE. Next, SVCNT [1: 0]
Check the value of. If this is "1", the SV register S
Set the value of V1 to PC / PSW, and if "2", set S
Set the value of V2. PC and PSW set
The user program is executed from the state.

【0026】図13は、通常の割り込み復帰の命令(R
ETI)発生時の概略を示している。RETIが発生す
るとSVMODEの状態を確認し、「0」ならば受け付
ける。次にSVCNT[1:0]の値を確認する。この
値が「2」ならば、この状態での割り込みは全て無視さ
れているので復帰命令も無視される。「0」ならば、一
度もIEモードヘの割り込みが発生していないのでこの
命令を受け付け、「1」ならば、INTCNT[n:
0]の値を確認する。そこで、INTCNT[n:0]
=1ならば、IEモード中に処理されたユーザ割り込み
からIEモードへの復帰であるため、SVレジスタのS
V2の値をPC/PSWにセットする。「1」以外なら
ば、通常割り込みからの復帰処理として、一般スタック
の値をPC/PSWにセットする。セット後は、PC/
PSWの値通りに実行する。
FIG. 13 shows a normal interrupt return instruction (R
(ETI) is schematically shown. When RETI occurs, the state of SVMODE is confirmed, and if "0", it is accepted. Next, the value of SVCNT [1: 0] is confirmed. If this value is "2", all interrupts in this state are ignored, and the return instruction is also ignored. If “0”, this instruction is accepted since no interrupt to the IE mode has ever occurred, and if “1”, INTCNT [n:
0]. Therefore, INTCNT [n: 0]
If = 1, since it is a return to the IE mode from the user interrupt processed during the IE mode, the SV register S
Set the value of V2 to PC / PSW. If the value is other than "1", the value of the general stack is set in the PC / PSW as a return process from the normal interrupt. After setting, PC /
Execute according to the value of PSW.

【0027】上述動作を遷移図で示したものが、図6〜
図9である。図6、図7は、ユーザモードからIEモー
ドへ、IEモードからユーザモード2への遷移および復
帰を示している。例えばINT6にある優先順位を持た
せ、SVI信号によるIEモードへの割り込み要求を発
生させると、その時のユーザモードのPCとPSW値を
SVレジスタのSV1に格納し、割り込み処理を行う。
このときSVMODE信号が「1」、SVCNT[1:
0]が「1」となりIEモードに遷移する。IEモード
中において、INT6より優先順位の高いINT1のユ
ーザ割り込み要求信号が発生した場合、INT1のユー
ザ割り込み要求が受け付けられ、そのときのIEモード
制御プログラムのPCとPSW値をSVレジスタのSV
2に退避した後、ユーザ割り込み処理を行い、ユーザモ
ード2に遷移する。この際、INTCNT[n:0]の
カウンタ値が「1」にインクリメントされる。また、図
7のようにINT6より、優先順位が低いINT2の要
求があった場合、この要求は無視される。
The above operation is shown in a transition diagram in FIGS.
FIG. 6 and 7 show transition and return from the user mode to the IE mode and from the IE mode to the user mode 2. FIG. For example, when INT6 has a certain priority and an interrupt request to the IE mode is generated by the SVI signal, the PC and PSW values of the user mode at that time are stored in the SV1 of the SV register, and the interrupt process is performed.
At this time, the SVMODE signal is “1” and SVCNT [1:
0] becomes “1” and transits to the IE mode. In the IE mode, when an INT1 user interrupt request signal having a higher priority than INT6 is generated, the INT1 user interrupt request is accepted, and the PC and PSW values of the IE mode control program at that time are stored in the SV register SV.
After saving to user mode 2, user interrupt processing is performed, and a transition is made to user mode 2. At this time, the counter value of INTCNT [n: 0] is incremented to “1”. Also, as shown in FIG. 7, when there is a request for INT2 having a lower priority than INT6, this request is ignored.

【0028】ユーザモード2からの復帰命令を示すRE
TI信号がCPUコア発生するとSVレジスタのSV2
中のPCとPSW値を読み込み、IEモードヘ復帰す
る。このときINTCNT[n:0]=0となる。IE
モード中にユーザ・モードへの復帰命令を示すRETS
VI信号が発生すると、SVレジスタのSV1中のPC
とPSW値を読み込み、ユーザモードへ復帰する(図1
3参照)。このとき、SVCNT[1:0]=0とな
り、SVCLRIP信号が1パルス出力される。
RE indicating a return instruction from user mode 2
When the TI signal is generated by the CPU core, the SV register SV2
Read the PC and PSW values inside and return to IE mode. At this time, INTCNT [n: 0] = 0. IE
RETS indicating return instruction to user mode during mode
When the VI signal is generated, the PC in SV1 of the SV register
And read the PSW value and return to the user mode (Fig. 1
3). At this time, SVCNT [1: 0] = 0, and one pulse of the SVCLRIP signal is output.

【0029】さらにIEモード中にユーザ割り込みIN
T6より優先順位が低いINT2のユーザ割り込みが要
求された場合、INT2の割り込み優先順位がINT6
より低いため、INT2からの割り込み要求は、無視さ
れてしまう。その後、INT6より優先順位の高いIN
T1が要求されるとこれを受け付け、前述同様に割り込
み処理および復帰処理を行う。
Further, during the IE mode, the user interrupt IN
When a user interrupt of INT2 lower in priority than T6 is requested, the interrupt priority of INT2 is changed to INT6.
Since it is lower, the interrupt request from INT2 is ignored. After that, IN6 with higher priority than INT6
When T1 is requested, it is accepted and interrupt processing and return processing are performed as described above.

【0030】図8は、ユーザモード2中にユーザ割り込
みのINT命令が発生した時の動作を示している。ユー
ザモード2中において、割り込み要求INT3(INT
2<INT3)が発生すると、その時のユーザプログラ
ム上のPCとPSW値をユーザが割り込み処理の時に使
用する一般スタックへ退避した後、ユーザ割り込み処理
を行い、ユーザモード3に遷移する。このとき、INT
CNT[n:0]=2にインクリメントされる。また、
ユーザモード3中において割り込み要求INTm(IN
T3<INTm)が発生すると、前述同様にその時のユ
ーザプログラム上のPCとPSW値を一般スタックへ退
避した後、ユーザ割り込み処理を行いユーザモード4に
遷移する。このときINTCNT[n:0]=3にイン
クリメントされる。
FIG. 8 shows the operation when the user interrupt INT instruction occurs during the user mode 2. During the user mode 2, the interrupt request INT3 (INT
When 2 <INT3) occurs, the PC and PSW values on the user program at that time are saved to a general stack used by the user at the time of interrupt processing, then user interrupt processing is performed, and a transition is made to user mode 3. At this time, INT
CNT [n: 0] is incremented to 2. Also,
During user mode 3, the interrupt request INTm (IN
When T3 <INTm) occurs, the PC and PSW values in the user program at that time are saved in the general stack, and the user interrupt processing is performed and the mode transits to the user mode 4 as described above. At this time, INTCNT [n: 0] is incremented to 3.

【0031】このようにユーザモード2は、ユーザプロ
グラムを実行している状態なので、ここで発生する通常
のユーザ割り込みは受け付けられ、割り込み処理を行う
ことができる。また、このユーザ割り込み処理が行われ
る度にINTCNT[n:0]の値が「1」ずつインク
リメントされていく。IEモード中に割り込みができる
ユーザ割り込みの深さ(INTCNT[n:0]のカウ
ント値)は、最大数本ある割り込み端子の内、SVIが
専有している1つを除いた数だけ割り込むことができ
る。
As described above, the user mode 2 is in a state in which the user program is being executed, so that a normal user interrupt generated here can be accepted and interrupt processing can be performed. Each time the user interrupt process is performed, the value of INTCNT [n: 0] is incremented by "1". The depth of a user interrupt that can be interrupted during the IE mode (the count value of INTCNT [n: 0]) can be interrupted by the number of interrupt terminals excluding one occupied by SVI among the maximum number of interrupt terminals. it can.

【0032】復帰処理は、ユーザモード4中にCPUコ
アから復帰命令RETI信号が発生すると一般スタック
中にある最新値のPCとPSW値を読み込み、通常の復
帰処理を行い、ユーザモード3に遷移し、INTCNT
[n:0]=2にデクリメントされる。また、ユーザモ
ード3において、前述同様に復帰命令が発生すると一般
スタックの内容を読み出すなどの復帰処理を行い、ユー
ザモード2に復帰する。このときには、INTCNT
[n:0]の値は、「1」となる。このように復帰時
は、通常復帰命令実行毎にINTCNT[n:0]の値
を「1」だけデクリメントしてゆき、INTCNT
[n:0]値が「1」になるまでは、通常のユーザ割り
込みの復帰と同様の処理を行う。ユーザモード2からの
復帰処理は、この状態でRETI命令が発生すると、S
VレジスタのSV2の値を読み出し、復帰処理を行い、
IEモードに復帰する。このときINTCNT[n:
0]の値は、「0」になる。
In the return processing, when a return instruction RETI signal is generated from the CPU core in the user mode 4, the latest PC and PSW values in the general stack are read, a normal return processing is performed, and a transition to the user mode 3 is made. , INTCNT
[N: 0] = 2 is decremented. Further, in the user mode 3, when a return instruction is issued as described above, a return process such as reading the contents of the general stack is performed, and the process returns to the user mode 2. At this time, INTCNT
The value of [n: 0] is “1”. In this way, upon return, the value of INTCNT [n: 0] is decremented by "1" each time the normal return instruction is executed, and INTCNT is decremented.
Until the value of [n: 0] becomes "1", the same processing as that of normal user interrupt return is performed. The return process from the user mode 2 is as follows.
The value of SV2 of the V register is read, and a return process is performed.
Return to the IE mode. At this time, INTCNT [n:
0] is “0”.

【0033】図14は、RETI命令においてユーザモ
ードからIEモードに復帰する際におきる例外の復帰命
令の流れを示している。この状態においては、IEモー
ドに復帰せず、直接最初のユーザモードへ復帰する。こ
れを図9で説明する。ユーザモード3中にSVIが発生
するという特殊な場合を示している。これは、ユーザの
応用システムの異常時による強制的なSVI割り込みで
あり、ユーザが意識的に行うものではない。ユーザモー
ド3中においてもSVMODE信号が「0」であるた
め、SVIを受け付けることができる。この時、ユーザ
モード3におけるPCとPSW値は、緊急(強制)のI
Eモードへの割り込み命令であるため、SVレジスタの
SV1、SV2とも使用されているが最新のSV2の内
容を上書きしてしまう。PCとPSWの格納処理後、S
VI処理を行いIEモード2になる。これと同時に、S
VMODE信号および、SVINEST信号が「1」と
なり、SVCNT[1:0]値が「2」にインクリメン
トされる。上記状態で示されるように、SVINEST
信号=1かつ、SVCNT[n:0]≧2の時は、これ
以降発生する全ての割り込みを無視する。
FIG. 14 shows the flow of an exception return instruction when returning from the user mode to the IE mode in the RETI instruction. In this state, the mode directly returns to the first user mode without returning to the IE mode. This will be described with reference to FIG. A special case in which an SVI occurs during the user mode 3 is shown. This is a compulsory SVI interruption due to an abnormality of the user's application system, and is not intentionally performed by the user. Since the SVMODE signal is "0" even in the user mode 3, SVI can be accepted. At this time, the PC and PSW values in the user mode 3 are the urgent (forced) I
Since this is an interrupt instruction to the E mode, both SV1 and SV2 of the SV register are used, but they overwrite the latest contents of SV2. After storing the PC and PSW, S
VI processing is performed, and IE mode 2 is set. At the same time, S
The VMODE signal and the SVINEST signal become “1”, and the SVCNT [1: 0] value is incremented to “2”. As shown in the above state, SVINEST
When signal = 1 and SVCNT [n: 0] ≧ 2, all interrupts occurring thereafter are ignored.

【0034】この状態からの復帰は、IEモード2中に
ユーザモードへの復帰命令であるRETSVIがCPU
コア発生すると、SVレジスタのSV2のPCとPSW
値を読み込み、復帰処理を行い、ユーザモード3に戻
る。また、INTCNT[n:0]値が「1」になるユ
ーザモード2まで通常のユーザ割り込み復帰処理を行
う。ユーザモード2において、復帰命令であるRETI
が発生した場合、SVレジスタのSV2の値はすでに使
用されているため、SV1の値が読み込まれ、IEモー
ドへは復帰せず、SV1書き込まれている最初のユーザ
モードへ直接復帰する。また、SVINESTは、SV
CNT[1:0]値および、INTCNT[n:0]値
が「1」となった時点でクリア(「0」)される。
To return from this state, RETSVI, which is a command to return to the user mode during the IE mode 2, is issued by the CPU.
When a core is generated, the SV of PC and PSW of SV2 in the SV register
The value is read, a return process is performed, and the process returns to the user mode 3. Further, the normal user interrupt return processing is performed until the user mode 2 in which the value of the INTCNT [n: 0] becomes “1”. In the user mode 2, the return instruction RETI
Occurs, since the value of SV2 in the SV register has already been used, the value of SV1 is read, and the mode does not return to the IE mode, but directly returns to the first user mode in which the SV1 is written. SVINEST is SV
It is cleared ("0") when the values of CNT [1: 0] and INTCNT [n: 0] become "1".

【0035】[0035]

【発明の効果】以上説明したように、本発明は、SVI
割り込みをNMIを含む任意の優先順位に設定するため
の優先順位制御手段を備えており、入力された割り込み
信号の優先順位を比較し、多重割り込みが行われるかど
うかを判断し、割り込みが受け付けられるとカウントア
ップし、割り込みルーチンから復帰するとカウントダウ
ンするカウンタと、SVI割り込みの際のPCおよびP
SWの退避のためのレジスタとを備えることにより、I
Eモード中であっても、ユーザ割り込みに応答でき、さ
らにIEモードの割り込み優先レベルもユーザが任意に
変更できる。また、IEモード中に受け付けたユーザ割
り込み処理中にさらに、IEモードに遷移することがで
き、かつ正確に復帰できる。IEモード中にユーザの割
り込み要求に即座に応答可能となるのでリアルタイムで
の動作が確認できる上、数種のプログラムモジュールが
ある場合、モジュール毎に優先度を確定しておくことに
より、個別にリアルタイム実行および、評価も行える。
As described above, the present invention provides an SVI
Priority control means for setting an interrupt to an arbitrary priority including an NMI is provided, the priority of input interrupt signals is compared, it is determined whether or not multiple interrupts are performed, and the interrupt is accepted. And a counter that counts down when returning from the interrupt routine, and PC and P at the time of the SVI interrupt.
By providing a register for saving the SW,
Even during the E mode, the user can respond to a user interrupt, and the user can arbitrarily change the interrupt priority level in the IE mode. In addition, during the user interrupt process accepted during the IE mode, the mode can be further shifted to the IE mode, and the mode can be accurately restored. Since it is possible to immediately respond to a user's interrupt request during the IE mode, real-time operation can be confirmed. In addition, when there are several types of program modules, the priority is determined for each module so that real-time operation can be individually performed. Execution and evaluation can also be performed.

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

【図1】本発明の実施の形態のマイクロコンピュータの
概略ブロック図である。
FIG. 1 is a schematic block diagram of a microcomputer according to an embodiment of the present invention.

【図2】割り込み制御回路のブロック図である。FIG. 2 is a block diagram of an interrupt control circuit.

【図3】割り込み切り替え回路のブロック図である。FIG. 3 is a block diagram of an interrupt switching circuit.

【図4】多重割り込み回路のブロック図である。FIG. 4 is a block diagram of a multiple interrupt circuit.

【図5】IEモードの遷移動作を示す図である。FIG. 5 is a diagram showing a transition operation in the IE mode.

【図6】本発明の基本動作概要を示す遷移図のその1で
ある。
FIG. 6 is a first transition diagram illustrating an outline of a basic operation of the present invention.

【図7】本発明の基本動作概要を示す遷移図のその2で
ある。
FIG. 7 is a second transition diagram showing the outline of the basic operation of the present invention.

【図8】多重割り込み概要を示す遷移図のその1であ
る。
FIG. 8 is a first transition diagram illustrating an overview of multiple interrupts.

【図9】多重割り込み概要を示す遷移図のその2であ
る。
FIG. 9 is a second transition diagram illustrating an outline of multiple interrupts.

【図10】SVI操作の手順を示すフローチャートであ
る。
FIG. 10 is a flowchart illustrating a procedure of an SVI operation.

【図11】IEモード中におけるユーザ割り込み処理手
順を示すフローチャートである。
FIG. 11 is a flowchart showing a user interrupt processing procedure during the IE mode.

【図12】RETSVI命令における復帰処理を示すフ
ローチャートである。
FIG. 12 is a flowchart illustrating a return process in a RETSVI instruction.

【図13】RETI命令における復帰処理を示すフロー
チャートである。
FIG. 13 is a flowchart showing a return process in a RETI instruction.

【図14】例外復帰のフローチャートである。FIG. 14 is a flowchart of exception return.

【図15】従来技術の一例の回路構成図である。FIG. 15 is a circuit configuration diagram of an example of a conventional technique.

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

11 割り込み制御回路 12 ブレーク制御回路 13 割り込み切り替え回路 14 多重割り込み回路 15 CPUコア 21 割り込み回路 31 パソコンI/F 32 SVI許可回路 33 割り込み優先クリア回路 41 SVI割り込みカウンタ 42 INT割り込みカウンタ 43 CVIフラグ 44 CVMODE制御回路 DESCRIPTION OF SYMBOLS 11 Interrupt control circuit 12 Break control circuit 13 Interrupt switching circuit 14 Multiple interrupt circuit 15 CPU core 21 Interrupt circuit 31 Personal computer I / F 32 SVI enable circuit 33 Interrupt priority clear circuit 41 SVI interrupt counter 42 INT interrupt counter 43 CVI flag 44 CVMODE control circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】ユーザ非公開の割り込み機能を有し、前記
ユーザ非公開の割り込みと、ユーザ割り込みの優先順位
を任意に変更できることを特徴とするソフトウェアディ
バグ用マイクロコンピュータ。
1. A microcomputer for software debugging having an interrupt function that is not disclosed by a user and wherein the priority of the interrupt that is not disclosed by the user and the priority of the user interrupt can be arbitrarily changed.
【請求項2】ユーザモードからIE(インサーキットエ
ミュレータ)モードに移行する時に使用するSVI割り
込みを、マスク不能割り込みを含む、任意の優先順位に
設定するための優先順位制御手段を備え、 入力された割り込み信号の優先順位を比較し、多重割り
込みが行われるかどうかを判断する機能部と、 割り込みが受け付けられるとカウントアップし、割り込
みルーチンから復帰するとカウントダウンするカウンタ
と、 SVI割り込みの際のPC(プログラムカウンタ)およ
びPSW(プログラムステータスワード)の退避のため
のレジスタと、 を備えたことを特徴とする請求項1記載のソフトウェア
ディバグ用マイクロコンピュータ。
2. An apparatus according to claim 1, further comprising: priority control means for setting an SVI interrupt used when shifting from a user mode to an IE (in-circuit emulator) mode to an arbitrary priority including a non-maskable interrupt. A functional unit that compares the priority of interrupt signals and determines whether or not multiple interrupts are performed; a counter that counts up when an interrupt is accepted and counts down when returning from an interrupt routine; and a PC (program) for SVI interrupts 2. The microcomputer for software debugging according to claim 1, further comprising: a register for saving a counter and a PSW (program status word).
【請求項3】割り込み処理時のPC値とPSW値の退避
領域として、ユーザ割り込みとユーザ非公開の割り込み
とで別々の記憶領域をもつことを特徴とする請求項2記
載のソフトウェアディバグ用マイクロコンピュータ。
3. The software debugging microcomputer according to claim 2, wherein a separate storage area is provided for a user interrupt and a user private interrupt as a save area for a PC value and a PSW value during interrupt processing. .
JP9123131A 1996-04-26 1997-04-25 Microcomputer for software debugging Expired - Lifetime JP2877138B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9123131A JP2877138B2 (en) 1996-04-26 1997-04-25 Microcomputer for software debugging

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP10654296 1996-04-26
JP8-106542 1996-04-26
JP9123131A JP2877138B2 (en) 1996-04-26 1997-04-25 Microcomputer for software debugging

Publications (2)

Publication Number Publication Date
JPH1069398A true JPH1069398A (en) 1998-03-10
JP2877138B2 JP2877138B2 (en) 1999-03-31

Family

ID=26446658

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9123131A Expired - Lifetime JP2877138B2 (en) 1996-04-26 1997-04-25 Microcomputer for software debugging

Country Status (1)

Country Link
JP (1) JP2877138B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0943996A3 (en) * 1998-03-20 2000-12-06 Texas Instruments Incorporated Processor having real-time execution control for debug functions without a debug monitor
JP2001125804A (en) * 1999-10-29 2001-05-11 Fujitsu Ltd Interrupt processing control apparatus and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0943996A3 (en) * 1998-03-20 2000-12-06 Texas Instruments Incorporated Processor having real-time execution control for debug functions without a debug monitor
JP2001125804A (en) * 1999-10-29 2001-05-11 Fujitsu Ltd Interrupt processing control apparatus and method

Also Published As

Publication number Publication date
JP2877138B2 (en) 1999-03-31

Similar Documents

Publication Publication Date Title
JP4343795B2 (en) Data processing apparatus and method
JP2004086451A (en) Semiconductor integrated circuit
US5701494A (en) Microprocessor with multiple supervisor interrupt processing function
JP2877138B2 (en) Microcomputer for software debugging
US7334167B2 (en) Circuit for detection of internal microprocessor watchdog device execution and method for resetting microprocessor system
US7752496B2 (en) Method, apparatus, and computer product for managing log data
US5455940A (en) Method for abnormal restart of a multiprocessor computer of a telecommunication switching system
JPH11259340A (en) Reactivation control circuit for computer
JP2000330798A (en) Interrupt controller and method for verifying interrupt control
JP5756413B2 (en) Control device
JP4114004B2 (en) Semiconductor integrated circuit
JP2003330751A (en) Microprocessor debugging system
JPH044630B2 (en)
JPH01231128A (en) Fault processing system
JPH04270441A (en) Data processor
JP2870083B2 (en) Microcomputer with built-in watchdog timer
JP2002251299A (en) Program tracing device
JPS584365B2 (en) Reset control system
JP2002091826A (en) Information processor
US20040230319A1 (en) Microcontroller device for complex processing procedures and corresponding interrupt management process
JPH06202879A (en) Interrupt processing method
JPH0628218A (en) Program development assisting device for microcomputer
JPH07210421A (en) Debugging method in thread environment
JPH0229833A (en) Maintenance diagnostic system
JPH033041A (en) Time-out monitoring circuit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19981222