JPH01184545A - Microprocessor - Google Patents

Microprocessor

Info

Publication number
JPH01184545A
JPH01184545A JP63011358A JP1135888A JPH01184545A JP H01184545 A JPH01184545 A JP H01184545A JP 63011358 A JP63011358 A JP 63011358A JP 1135888 A JP1135888 A JP 1135888A JP H01184545 A JPH01184545 A JP H01184545A
Authority
JP
Japan
Prior art keywords
interrupt
signal
output
interruption
executed
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
JP63011358A
Other languages
Japanese (ja)
Inventor
Kaoru Tono
東野 薫
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 JP63011358A priority Critical patent/JPH01184545A/en
Publication of JPH01184545A publication Critical patent/JPH01184545A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To accept interruption in breaking and to execute the interruption processing of an application program in an emulator by providing a circuit to mask a privilege mode signal which becomes input to an interruption prohibition circuit. CONSTITUTION:When an interruption request is generated at the time of setting a register 5 at '0', the interruption processing is started after an instruction being executed at that time is completed, and a signal INT is outputted. After that, a recovery instruction is executed after an interruption processing routine being executed, and a program status word is recovered from a stack, then, a signal RETI is outputted. The output Q of an R-SFF 8 goes to '1' by the above signal, and an alternate memory 2 becomes active, and the execution of a monitoring program is restarted. As mentioned above, when the interruption is applied in a privilege interruption mode, the interruption processing of the application program can be executed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロプロセッサに関し、特に特権割り込み
と特権モード信号を持つマイクロプロセッサに関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to microprocessors, and more particularly to microprocessors with privileged interrupts and privileged mode signals.

〔従来の技術〕[Conventional technology]

第5図は、従来のマイクロプロセッサを用いたエミュレ
ーション装置の部分図である。エミューレーション装置
はユーザの作成した応用プログラムのデパックを効率良
く行うための装置でユーザシステムの替わりとなり応用
プログラムを実時間で実行(以後、この状態をエミュレ
ーションと呼ぶ)でき、ユーザの設定したアドレスのプ
ログラムを実行したらエミュレータ3ンを中断(以後こ
の状態をブレークと呼ぶ)シ、その時のレジスタの内容
を表示する機能や、メモリやレジスタの内容の表示や書
き換え等の機能を持っている。
FIG. 5 is a partial diagram of an emulation device using a conventional microprocessor. An emulation device is a device that efficiently depacks application programs created by the user.It replaces the user system, executes application programs in real time (hereinafter referred to as emulation), and uses the addresses set by the user. It has functions such as interrupting the emulator 3 when a program is executed (hereinafter this state is called a break), displaying the contents of the registers at that time, and displaying and rewriting the contents of memory and registers.

応用プログラムは代替メモリ3に格納されており、エミ
ュレーション中は特権モード状態でないため、特権モー
ド状態を表わすSVMODE信号は“O”レベルとなっ
ており、マイクロプロセッサ1′から出力されたSVM
ODE信号をチップセレクト(O8)入力とするオルタ
ネ−トメモリ2はチップセレクトが正論理入力のためイ
ンアクティブ状態で代替メモリ3はチップセレクト入力
が負論理のためアクティブ状態となり代替メモリ3上の
応用プログラムが実行される。
Since the application program is stored in the alternative memory 3 and is not in the privileged mode during emulation, the SVMODE signal representing the privileged mode is at the "O" level, and the SVM output from the microprocessor 1'
Alternate memory 2, which uses the ODE signal as chip select (O8) input, is inactive because the chip select is a positive logic input, and alternative memory 3 is active because the chip select input is negative logic, and the application program on alternative memory 3 is is executed.

ここでユーザの設定したブレークをさせたいアドレスを
プログラムを実行した場合、ブレーク状態に移行させる
ために不図示のブレーク回路より特権割り込み要求信号
aが発生し、マイクロプロセッサ1′の特権割り込み入
力端子SVIに入力される。マイクロプロセッサ1′は
特権割り込−tを受は付けると特権モード信号SVMO
DEを“1”とする。これによりマイクロプロセ、す1
内部の割り込み禁止回路は入力であるSVMODE信号
“1”となったため割り込みの受は付けを禁止する。ま
た代替メモリ3はインアクティブ状態、オルタネ−トメ
モリ2はアクティブ状態となりオルタネ−トメモリ2に
格納されたモニタプ四グラムが実行され、ブレーク状態
となる。
When the program is executed at the address set by the user where the user wants to cause a break, a privileged interrupt request signal a is generated from a break circuit (not shown) in order to enter the break state, and the privileged interrupt input terminal SVI of the microprocessor 1' is is input. When the microprocessor 1' accepts the privileged interrupt -t, it outputs the privileged mode signal SVMO.
DE is set to "1". This allows the microprocessor to
The internal interrupt disabling circuit disables the acceptance of interrupts because the input SVMODE signal becomes "1". Further, the alternative memory 3 becomes inactive, and the alternate memory 2 becomes active, and the monitor program stored in the alternative memory 2 is executed, resulting in a break state.

〔発明が解決しようとする問題点丁 上述した従来のマイクロプロセッサを用いたエミュレー
ション装置では、応用プログラムを実行していないブレ
ーク状態の時は割り込みが全て禁止状態となっている。
[Problems to be Solved by the Invention] In the emulation device using the conventional microprocessor described above, all interrupts are disabled during a break state in which no application program is being executed.

この事は次の様な場合に問題となる。This becomes a problem in the following cases.

第6図は、マイクロプロセッサ1′によりDCモータ1
3を制御するシステムになっている。
FIG. 6 shows how the microprocessor 1' controls the DC motor 1.
It is a system that controls 3.

ユーザシステムの部分図でマイクロプロセッサ1′のポ
ート出力が四−パスフィルタ120入力に接続され、ロ
ーパスフィルタ12の出力はDCモータ13の電源電圧
となっている。マイクロプロセッサ1′のポート出力は
内蔵のタイマーが一巡し、オーバーフローする毎に発生
するオーバーフロー割り込みの処理にルーチンにより“
1”にセットされる。また、予め設定しておいた値とタ
イマーのカウント値が一致した時に発生するタイマー割
り込みの処理ルーチンにより“0”にセットさhる。こ
のタイマー割り込みのための設定値を多くするとタイマ
ー割り込みの発生が遅れるため、その分だけポート出力
が“1″の期間が長くなる。このタイミングを示したも
のが第7図である。ポート出力はローパスフィルタ12
により電圧の変化となるため、この電圧によりDCモー
タ13の回転数の制御が行える。
In the partial diagram of the user system, the port output of the microprocessor 1' is connected to the input of a four-pass filter 120, and the output of the low-pass filter 12 is the power supply voltage of the DC motor 13. The port output of the microprocessor 1' is processed by a routine to handle overflow interrupts that occur each time the built-in timer completes a cycle and overflows.
It is set to "1". It is also set to "0" by the timer interrupt processing routine that occurs when the preset value and the timer count value match. The setting value for this timer interrupt If you increase the timer interrupt, the occurrence of the timer interrupt will be delayed, so the period in which the port output is "1" will be lengthened accordingly. This timing is shown in Figure 7. The port output is filtered by the low-pass filter 12.
Since the voltage changes, the rotation speed of the DC motor 13 can be controlled by this voltage.

このシステムでは、ボートの出力を割り込み処理ルーチ
ンで変化させているため、エミュレーション装置を用い
てこのシステムのプログラムをデパックする場合、ブレ
ーク状態となると割り込みが禁止状態となり、ポート出
力はブレーク直前の値を保持したまま、変化しなくなる
。もし、ブレーク時にポート出力が“1”であった場合
、ローパスフィルタ12の出力は最大電圧となり、DC
モータ13に最大電圧が加わったままとなる。
In this system, the port output is changed by the interrupt processing routine, so when depacking a program on this system using an emulation device, when a break occurs, interrupts are disabled and the port output changes to the value immediately before the break. It will remain unchanged and will not change. If the port output is “1” at the time of break, the output of the low-pass filter 12 will be the maximum voltage, and the DC
The maximum voltage remains applied to the motor 13.

この状態で長時間、放置されると、DCモータ13のフ
ィルが過電圧のため焼き切れるという事態が発生する事
も考えられ、重大な問題点となっていた。
If left in this state for a long time, the fill of the DC motor 13 may burn out due to overvoltage, which is a serious problem.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のマイクロプロセッサは、割り込み禁止回路への
入力となる特権モード信号をマスクする回路と、特権割
り込み以外の割り込みが発生し、その割り込みの復帰命
令の実行が終了するまでの間、信号を出力する回路と、
その信号により特権モード信号をマスクする回路を有し
ている。
The microprocessor of the present invention includes a circuit that masks a privileged mode signal that is input to an interrupt disabling circuit, and a circuit that outputs a signal from the time an interrupt other than a privileged interrupt occurs until the execution of the return instruction for that interrupt is completed. A circuit to
It has a circuit that masks the privileged mode signal using the signal.

〔実施例〕〔Example〕

第1図は、本発明の実施例1のマイクロプロセッサを用
いたエミュレーション装置の部分図である。
FIG. 1 is a partial diagram of an emulation device using a microprocessor according to a first embodiment of the present invention.

レジスタ5は、マイクロプロセッサ1が特権モード中に
割り込み処理を行うモードにするか行えないモードにす
るかを設定するレジスタで“1″で特権モード中に割り
込み処理を行えないモード″0″で割り込み処理を行え
るモードとなる。
Register 5 is a register that sets whether the microprocessor 1 is set to a mode in which interrupt processing is performed in privileged mode or not. The mode is set to allow processing.

R−8フリツプフロツプ8は、特権割り込み以外の割り
込みが発生し、その割り退入の復帰命令の実行が終了す
るまでの間、出力する割り込みモード信号の発生回路で
、セット入力Sにはレジスタ5の出力Qと割り込みから
の復帰命令が終了した事を示すRETI信号を入力とす
る2人力ORゲート6の出力が、またリセット入力Rに
は割り込み処理の始まりを示すINT信号が入力されて
いる。尚、リセット入力R,セッタ入力S共に“1”の
場合は出力Qは“1″とする。またその出力Qは、2人
力ANDゲート9の入力に接続されており、2人力AN
Dゲート9のもう一方の入力に接続された特権モード中
は“1”を出力する特権モード信号SVMODEOのマ
スク信号となっている。
The R-8 flip-flop 8 is an interrupt mode signal generation circuit that outputs an interrupt other than a privileged interrupt until the execution of the return instruction for that interrupt is completed. The output of a two-man OR gate 6 receives the output Q and the RETI signal indicating that the return instruction from the interrupt has been completed, and the reset input R receives the INT signal indicating the start of interrupt processing. Note that when both the reset input R and the setter input S are "1", the output Q is "1". Moreover, the output Q is connected to the input of the two-man power AND gate 9, and the two-man power AND gate 9 is connected to the input of the two-man power AND gate 9.
It is connected to the other input of the D gate 9 and serves as a mask signal for the privileged mode signal SVMODEO which outputs "1" during the privileged mode.

割り込み禁止回路4は、入力に“1”を入力する事によ
り割り込みの発生を禁止する回路で入力にはレジスタ5
の出力Qと2人力ANDゲート9の出力SVMODEを
入力とする2人力ANDゲート7の出力が接続されてい
る。
The interrupt disable circuit 4 is a circuit that disables the generation of interrupts by inputting "1" to the input, and the input is a register 5.
The output Q of the two-man power AND gate 7 whose input is the output SVMODE of the two-man power AND gate 9 is connected.

マイクロプロセッサlのオルタネ−トメモリ2、代替メ
モリ3は、マイクロプロセッサ1のSVMODE信号が
、オルタネ−トメモリ2、代替メモリ3のチップセレク
ト入力C8へ、アドレスAO〜15、データDO〜7は
、各々が接続されている。また、オルタネ−トメモリ2
はブレーク中にアクティブになるメモリでモニタプログ
ラムが格納されており代替メモリ3はエミュレーション
中にアクティブになるメモリで応用プロゲラ゛ムが格納
されている。
The SVMODE signal of the microprocessor 1 is input to the chip select input C8 of the alternate memory 2 and the alternate memory 3, and the addresses AO to 15 and data DO to 7 of the microprocessor L are respectively It is connected. Also, alternate memory 2
3 is a memory that becomes active during a break and stores a monitor program, and an alternative memory 3 is a memory that becomes active during emulation and stores an application program.

尚、本実施例では、割り込み処理ルーチンではレジスタ
の値を破壊しない、またモニタプログラムではスタック
ポインタを使用しないと規定する。
In this embodiment, it is specified that register values are not destroyed in the interrupt processing routine, and that the stack pointer is not used in the monitor program.

まず、レジスタ5に“1”が設定された場合の動作を説
明する。
First, the operation when "1" is set in the register 5 will be explained.

レジスタ5の出力Qが“1”のため2人力ORゲート6
の出力は“1”となりR−Sフリップフロップ8の出力
Qは常に“1”となる。従って2人力ANDゲート9の
出力SVMODEは入力のSVMODEO信号と同一と
なる。また、2人力NANDゲート7の出力は一方の入
力がレジスタ5の出力Qに接続されており、これが、1
′のため、SVMODE信号と同一となる。このため特
権モード中でない場合は、SVMODEO=”O″でS
VMODEも“O”で割り込み禁止回路4の入力は“0
”で割り込み許可状態となっており、代替メモリ3のチ
ップセレクト入力C8が“0″のためアクティブ状態と
なり応用プログラムが実行される。また、特権モード中
はSVMODEO=“1”でSVMODEも“1”とな
り割り込み禁止回路4の入力は“1″で割り込み禁止状
態で、オルタネ−トメモリ2のチップセレクト入力O8
が“1”のためアクティブ状態となり、モニタプログラ
ムが実行される。
Since the output Q of the register 5 is “1”, the two-man OR gate 6
The output of is "1", and the output Q of the R-S flip-flop 8 is always "1". Therefore, the output SVMODE of the two-man power AND gate 9 is the same as the input SVMODEO signal. Also, one input of the output of the two-man power NAND gate 7 is connected to the output Q of the register 5, which is 1
', so it is the same as the SVMODE signal. Therefore, if you are not in privileged mode, set SVMODEO="O"
VMODE is also “O” and the input of interrupt disable circuit 4 is “0”.
”, interrupts are enabled, and since the chip select input C8 of the alternative memory 3 is “0”, it becomes active and the application program is executed. Also, in privileged mode, SVMODEO is “1” and SVMODE is also “1”. ”, the input of the interrupt disable circuit 4 is “1” and interrupts are disabled, and the chip select input O8 of the alternate memory 2
Since it is "1", it becomes active and the monitor program is executed.

以上、説明した様にレジスタ5が“1”に設定されてい
る場合は、ブレーク状態つまり特権モード中は、割り込
み禁止状態となり、従来と同じ動作となる。
As described above, when register 5 is set to "1", interrupts are disabled during the break state, that is, during the privileged mode, and the operation is the same as before.

このモードは、応用プログラムのデバッグが初期の段階
で割り込み処理ルーチンの動作が完全ない場合に、ブレ
ーク中に割り込みが発生し、割り込み処理ルーチン実行
中に暴走してしまう事を防ぐ事ができる。
This mode can prevent an interrupt from occurring during a break and causing a runaway during execution of the interrupt processing routine when the application program is being debugged at an early stage and the interrupt processing routine is not fully operational.

次にレジスタ“0”に設定された場合の動作を説明する
Next, the operation when the register is set to "0" will be explained.

2人力ANDゲート7の入力の一方がレジスタ5の出力
Qで“0”のため出力は“0”となりSVMODE信号
の状態に関わりなく割り込み禁止回路4は割り込み許可
状態となる。
Since one of the inputs of the two-manual AND gate 7 is the output Q of the register 5 which is "0", the output is "0" and the interrupt disabling circuit 4 is in the interrupt enabled state regardless of the state of the SVMODE signal.

R−8フリップフp、プ8は、レジスタ5の出力Qが“
1″→“0”となって2人力ORゲート6の出力が“0
”となっても出力Qは“1”を保持している。この状態
で、特権割り込み要求SvI入力にaより信号が入力さ
れ特権割り込みが受は付けられSVMODEO信号が“
1”となると2人力ANDゲート9の出力SVMODE
も“1”となりオルタネ−トメモリ2のチップセレクト
入力C8が“1”となりオルタネ−トメモリがアクティ
ブ状態になりモニタプログラムが実行される。
The R-8 flip-flop p, p8 has the output Q of the register 5 “
1" → "0" and the output of the two-man OR gate 6 becomes "0".
”, the output Q remains “1”. In this state, a signal is input to the privileged interrupt request SvI input from a, the privileged interrupt is accepted, and the SVMODEO signal is “
1”, the output SVMODE of the two-man AND gate 9
also becomes "1", the chip select input C8 of the alternate memory 2 becomes "1", the alternate memory becomes active, and the monitor program is executed.

ここで割り込み要求が発生すると、その時点で実行中の
命令が終了後、割り込み処理が始まりINT信号が出力
される。この信号によりR−Sフリ、プフロップ8はリ
セットされ出力Qは“θ″となり、2人力ANDゲート
9の出力SVMODEは“0”となり代替メモリ3がア
クティブ状態となる。プログラムカウントプログラムス
テータスワードを代替メモリ3上のスタックに退避し、
割り込み処理ルーチンへ分岐し、割り込み処理を終える
。その後割り込み処理ルーチン実行後割り込みからの復
帰命令を実行し、スタックよりプ四グラムカウンタプロ
グラムステータスワードを復帰し、その後[TI信号を
出力する。この信号によりR−8フリツプフロツプ8の
出力Qが“1”となりS VMOD E信号が“1″と
なりオルタネ−トメモリ2がアクティブ状態となり、モ
ニタプログラムの実行が再開される。、この時の各信号
のタイミングを第2図に示す。
When an interrupt request is generated here, after the instruction being executed at that point is completed, interrupt processing begins and an INT signal is output. This signal resets the R-S flip-flop 8, the output Q becomes "θ", and the output SVMODE of the two-manual AND gate 9 becomes "0", making the alternative memory 3 active. Save the program count program status word to the stack on alternative memory 3,
Branches to the interrupt processing routine and ends the interrupt processing. Thereafter, after executing the interrupt handling routine, a return instruction from the interrupt is executed, the program status word of the four-gram counter is returned from the stack, and the [TI signal is output]. Due to this signal, the output Q of the R-8 flip-flop 8 becomes "1", the SVMOD E signal becomes "1", the alternate memory 2 becomes active, and the execution of the monitor program is resumed. , the timing of each signal at this time is shown in FIG.

以上説明した様にレジスタ5が“0”に設定されている
とブレーク状態つまり特権モード中に割り込み要求があ
った場合、割り込みが発生し、代替メモリ3上の応用プ
ログラムの割り込み処理ルーチンを実行する事ができる
As explained above, if register 5 is set to "0" and an interrupt request is made during break state, that is, privileged mode, an interrupt will be generated and the interrupt processing routine of the application program in alternative memory 3 will be executed. I can do things.

第3図は本発明の実施例2のマイクロプロセ。FIG. 3 shows a microprocessor according to a second embodiment of the present invention.

すを用いたエミュレーション装置の部分図である。FIG. 2 is a partial diagram of an emulation device using a

実施例1の違う部分は、特権割り込み以外の割り込みが
発生し、その割り込みの復帰命令の実行が終了するまで
の間、出力する割り込みモード信号発生回路だけでその
他の部分は同一である。
The only difference in the first embodiment is that the interrupt mode signal generating circuit outputs the signal from the time when an interrupt other than a privileged interrupt occurs until the execution of the return instruction for that interrupt is completed, and other parts are the same.

この割り込みモード信号発生回路の動作を説明する。The operation of this interrupt mode signal generation circuit will be explained.

特権モード中でない場合、SVMODEO信号は“0”
なので16進アツプダウンカウンタlOのリセット入力
Rは“0”となりカウンタ10はリセット状態とな9て
いる。この時のカウンタ10の出力QA、QB、Qc、
QDは全て“0”となる、この後、特権モード中になり
、SVMODEOが1′の場合カウンタ10のイネーブ
ル入力ENが“1”なのでカウント許可状態にならず出
力QA、QB、Qc、QDは全て“O”のままで4人力
NORゲー)11の出力は1′のままで特権モード信号
はマスクされないため従来技術と同様の動作となる。レ
ジスタ5の出力Qが0″の場合は、カウンタ10がカウ
ント許可状態となり、割り込みの発生によりINT信号
が“1″となりカウンタ10のアップカウント入力とな
っているためカウントアツプされ、出力はQA=1.Q
!1=0゜Q、= 0 、 QT、= 0となり、4人
力N0IRゲート11の出力は“0″となり、特権モー
ド信号SVMODEは“0”となり、実施例1と同様に
代替メモリ3上の割り込み処理ルーチンを実行する。こ
こで実施例1では許していなかった多重割り込みが発生
すると、INT信号が再び“1”となりカウンタ10は
さらにカウントアツプされ出力はQA=0.Q!1=1
.Qc=Oとなり4人力NORゲート11の出力は“O
”のままのためそのまま代替メモリ3上のプログラムが
実行されている。多重に入った割り込みの復帰命令が実
行されRETI信号“1”となるとカウンタ10はダウ
ンカウントされ出力はQA=1.QB=O,Qc=0.
QD=0となり次に最初の割り込みに対する復帰命令が
実行されRETI信号が再び“1”となるとカウンタ1
0はさらにダウンカウントされ出力はQA。
When not in privileged mode, SVMODEO signal is “0”
Therefore, the reset input R of the hexadecimal up-down counter 10 becomes "0", and the counter 10 is in the reset state. The outputs of the counter 10 at this time QA, QB, Qc,
All QDs become "0". After this, the mode enters the privileged mode, and when SVMODEO is 1', the enable input EN of the counter 10 is "1", so the count is not enabled and the outputs QA, QB, Qc, and QD are If all remain at "O", the output of the four-person NOR game) 11 remains at 1', and the privileged mode signal is not masked, so the operation is similar to that of the prior art. When the output Q of the register 5 is 0'', the counter 10 is enabled to count, and due to the occurrence of an interrupt, the INT signal becomes ``1'' and becomes an up-count input for the counter 10, so it is counted up, and the output is QA= 1.Q
! 1 = 0°Q, = 0, QT, = 0, the output of the four-man power N0IR gate 11 becomes "0", the privileged mode signal SVMODE becomes "0", and the interrupt on the alternative memory 3 is generated as in the first embodiment. Execute processing routines. Here, when multiple interrupts, which were not allowed in the first embodiment, occur, the INT signal becomes "1" again, the counter 10 counts up further, and the output is QA=0. Q! 1=1
.. Qc=O, and the output of the four-man power NOR gate 11 is “O”.
”, so the program in the alternative memory 3 is executed as it is. When the return instruction of the multiple interrupt is executed and the RETI signal becomes “1”, the counter 10 counts down and the outputs are QA=1.QB= O, Qc=0.
When QD=0 and the return instruction for the first interrupt is executed and the RETI signal becomes "1" again, the counter 1
0 is further counted down and the output is QA.

qB+ Qc−QD全て“0”となり4人力NORゲー
ト11の出力が“l”となりSVMODE信号も“1”
となりオルタネ−トメモリ2上のモニタプログラムの実
行が再開される。この時の各信号のタイミングを第4図
に示す。
qB+ Qc-QD all become "0", the output of the 4-man power NOR gate 11 becomes "l", and the SVMODE signal also becomes "1"
Execution of the monitor program on the alternate memory 2 is then resumed. The timing of each signal at this time is shown in FIG.

この様に割り込みが多重に入って来た場合でもカウンタ
10がオーバーフローしない範囲で最大のレベルである
15種までは正常に動作する。通常、割り込みは多重に
起った場合でも2重ぐらいまでで15重までの回路を持
っていれば問題はない。
Even when multiple interrupts are received in this manner, the counter 10 operates normally up to the maximum level of 15 types as long as the counter 10 does not overflow. Normally, even if multiple interrupts occur, there is no problem as long as you have up to 2 circuits and up to 15 circuits.

実施例2では、この様に多重割り込みが発生した場合で
も、正常に応用プログラムの割り込み処理ルーチンを実
行する事ができる。
In the second embodiment, even when multiple interrupts occur in this way, the interrupt processing routine of the application program can be executed normally.

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

以上説明したように本発明のマイクロプロセッサは、割
り込み禁止回路への入力となる特権モード信号をマスク
とする回路と、割り込みモード発生回路と、その信号に
より特権モード信号をマスクする回路を有する事により
、エミュレーション装置において、ブレーク中に割り込
みを受は付け、応用プログラムの割り込み処理ルーチン
を実行する事ができるという利点がある。
As explained above, the microprocessor of the present invention has a circuit that masks the privileged mode signal that is input to the interrupt disable circuit, an interrupt mode generation circuit, and a circuit that masks the privileged mode signal with the signal. In the emulation device, there is an advantage that interrupts can be accepted during a break and the interrupt processing routine of the application program can be executed.

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

第1図は本発明の実施例10マイクロプロセツサを用い
たエミュレーション装置の部分図、第3図は本発明の実
施例2のマイクロプロセッサを用いたエミュレーション
装置の部分図、第5図は従来のマイクロプロセッサを用
いたエミュレーション装置の部分図、第6図はマイクロ
プロセッサによりDCモータを制御するシステムの部分
図、第7図はモータ制御時の各部のタイミング図である
。 第2図は実施例1の特権モード中に割り込みが発生した
場合のタイミング図、第4図は実施例2の特権モード中
に割り込みが発生した場合のタイミング図である。 1・・・・・・本発明のマイクロプロセッサ、1′・・
・・・・従来のマイクロプロセッサ、2・・・・・・オ
ルタネ−トメモリ、3・・・・・・代替メモリ、4・・
・・・・割り込み禁止回路、5・・・・・・レジスタ、
6・・・・・・2人力ORゲート、7.9・・・・・・
2人力ANDゲート、8・・・・・・R−8フリツプフ
ロ、プ、10・・・・・・16進アツプダウンカウンタ
、11・・・・・・4人力NORゲート、12・・・・
・・ローパスフィルタ、13・・・・・・DCモータ。 代理人 弁理士  内 原   音 a−へ) 第  5  図 箭  2  回
FIG. 1 is a partial diagram of an emulation device using a microprocessor according to a tenth embodiment of the present invention, FIG. 3 is a partial diagram of an emulation device using a microprocessor according to a second embodiment of the present invention, and FIG. FIG. 6 is a partial diagram of an emulation device using a microprocessor, FIG. 6 is a partial diagram of a system for controlling a DC motor using a microprocessor, and FIG. 7 is a timing diagram of each part during motor control. FIG. 2 is a timing diagram when an interrupt occurs during the privileged mode of the first embodiment, and FIG. 4 is a timing diagram when an interrupt occurs during the privileged mode of the second embodiment. 1...Microprocessor of the present invention, 1'...
...Conventional microprocessor, 2...Alternate memory, 3...Alternative memory, 4...
...Interrupt disable circuit, 5...Register,
6...2-person OR gate, 7.9...
2-person AND gate, 8...R-8 flip-flop, 10...Hex up/down counter, 11...4-person NOR gate, 12...
...Low pass filter, 13...DC motor. Agent Patent Attorney Uchihara Oto A) No. 5 Zuyaku 2nd time

Claims (1)

【特許請求の範囲】[Claims] 特権割り込みとその割り込みからの復帰命令を持ち、特
権割り込みが発生し、その割り込みの復帰命令の実行が
終了するまでの間、出力される特権モード信号と、その
特権モード信号を入力とする割り込み禁止回路を持つマ
イクロプロセッサにおいて、割り込み禁止回路への入力
となる特権モード信号をマスクする回路を特権割り込み
が発生し、その割り込みの復帰命令の実行が終了するま
での間、信号を出力する回路と、その信号により前記特
権モード信号をマスクする回路を持つ事を特徴とするマ
イクロプロセッサ。
It has a privileged interrupt and a return instruction from that interrupt, and a privileged mode signal that is output from the time a privileged interrupt occurs until the execution of the return instruction for that interrupt is completed, and an interrupt that uses that privileged mode signal as input is disabled. In a microprocessor having a circuit, a circuit that masks a privileged mode signal that is input to an interrupt disabling circuit is provided, and a circuit that outputs a signal until a privileged interrupt occurs and the execution of a return instruction for that interrupt is completed; A microprocessor comprising a circuit that masks the privileged mode signal using the signal.
JP63011358A 1988-01-19 1988-01-19 Microprocessor Pending JPH01184545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63011358A JPH01184545A (en) 1988-01-19 1988-01-19 Microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63011358A JPH01184545A (en) 1988-01-19 1988-01-19 Microprocessor

Publications (1)

Publication Number Publication Date
JPH01184545A true JPH01184545A (en) 1989-07-24

Family

ID=11775806

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63011358A Pending JPH01184545A (en) 1988-01-19 1988-01-19 Microprocessor

Country Status (1)

Country Link
JP (1) JPH01184545A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05313915A (en) * 1992-05-12 1993-11-26 Nec Ic Microcomput Syst Ltd Microcomputer
US7882293B2 (en) 2003-12-23 2011-02-01 Arm Limited Interrupt masking control

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05313915A (en) * 1992-05-12 1993-11-26 Nec Ic Microcomput Syst Ltd Microcomputer
US7882293B2 (en) 2003-12-23 2011-02-01 Arm Limited Interrupt masking control

Similar Documents

Publication Publication Date Title
US5339437A (en) Method and apparatus for saving a system image onto permanent storage that is operating system independently
JP2625402B2 (en) Microprocessor
US4095268A (en) System for stopping and restarting the operation of a data processor
JPH01184545A (en) Microprocessor
JPS6218939B2 (en)
JP3209144B2 (en) Microprocessor
JPH03252886A (en) Single chip microcomputer
JPH0229455Y2 (en)
JPS62205441A (en) Microcomputer
JPS58161046A (en) Interruption controlling circuit
JPS63146137A (en) Device for preventing runaway of program execution
JPH0683652A (en) Microcomputer system
JPS60140440A (en) Central processing unit
JPS63124143A (en) Information processor
JPH0312751B2 (en)
JPS60178524A (en) One-chip microcomputer
JPS61121139A (en) Microcomputer for program evaluation
JPH03201040A (en) Watchdog timer
JPS59111543A (en) Interruption controller
JPS6230452B2 (en)
JPS6159537A (en) Interruption controller
JPS6349941A (en) Arithmetic processing unit
JPS63120340A (en) Data processor
JPH04225432A (en) Interruption processing time control system for one-chip microcomputer
JPH01260561A (en) Microprocessor