JPH05334098A - Method and device for interruption control - Google Patents

Method and device for interruption control

Info

Publication number
JPH05334098A
JPH05334098A JP13654692A JP13654692A JPH05334098A JP H05334098 A JPH05334098 A JP H05334098A JP 13654692 A JP13654692 A JP 13654692A JP 13654692 A JP13654692 A JP 13654692A JP H05334098 A JPH05334098 A JP H05334098A
Authority
JP
Japan
Prior art keywords
address
interrupt
signal
instruction
generating
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
JP13654692A
Other languages
Japanese (ja)
Inventor
Naoya Iguchi
直哉 井口
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP13654692A priority Critical patent/JPH05334098A/en
Publication of JPH05334098A publication Critical patent/JPH05334098A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To solve noncoincidence between external interrupt period and internal interrupt processing period by executing processing by external interrupt with the first priority in an interrupt controller used in a device constituted of every kind of internal program and an external interrupt signal. CONSTITUTION:A control signal 123 from an interrupt control means 23 is generated according to the combination of the instruction signal 102 of an instruction generating means 2 and the interrupt signal 101 of an interrupt generating means 1, and the address saving or the address clearing operation of an address saving means 26 can be controlled in detail by the control signal 123, and a second address selection means 12 can be directly controlled by the interrupt signal 101 of the interrupt generating means 1, thereby, it is possible to execute interrupt on all the instructions and to solve the noncoincidence between the external interrupt period and the internal interrupt processing period.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は内部命令プログラムと外
部割込み信号により構成され、前記命令プログラムにし
たがって動作する装置(マイコン、DSP等)の命令実
行を制御する方法およびその制御のための装置の改善に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for controlling instruction execution of an apparatus (microcomputer, DSP, etc.) which is constituted by an internal instruction program and an external interrupt signal and operates according to the instruction program, and an apparatus for the control. It is about improvement.

【0002】[0002]

【従来の技術】近年、ディジタル信号技術の発展により
マイコン、DSPでディジタル制御される処理が増えて
きている。しかし、演算処理するタイミングと外部イン
ターフェイスのタイミングは常に一定でないため外部か
ら信号を入力する際には外部割込み制御が必要になる。
2. Description of the Related Art In recent years, with the development of digital signal technology, the number of processes digitally controlled by microcomputers and DSPs has increased. However, since the timing of arithmetic processing and the timing of the external interface are not always constant, external interrupt control is required when inputting a signal from the outside.

【0003】以下に、従来の割込み制御装置について説
明する。図4は従来の割込み制御装置のブロック図を示
すものである。図4において、1は外部割込み信号を発
生する割込み発生手段、2は入力アドレスにしたがい命
令信号を発生する命令発生手段、3は割込み発生手段
1、命令発生手段2の各々の出力信号にしたがい割込み
制御を行う割込み制御手段、4は例えば、電源オンやリ
セット動作などスタート信号を発生するスタート手段、
5は命令発生手段2にアドレス指示を行うアドレス指示
手段、6は割込み制御手段3の制御信号にしたがい現ア
ドレス105を退避させるアドレス退避手段、7、8は
アドレス退避手段6の出力アドレス、アドレス指示手段
5の出力アドレスを各々増加させる加算手段、9は命令
信号102にしたがい即値アドレス109を発生する即
値アドレス発生手段、10は即値アドレス109と、加
算アドレス107、108の3アドレスから前記命令信
号102にしたがい1アドレスを選択する第1のアドレ
ス選択手段、11は割込み発生が起こった際のアドレス
を発生する割込みアドレス発生手段、12は第1のアド
レス選択手段10により選択されたアドレス110と割
込みアドレス111を前記割込み制御信号103にした
がい選択する第2のアドレス選択手段。
A conventional interrupt control device will be described below. FIG. 4 is a block diagram of a conventional interrupt control device. In FIG. 4, 1 is an interrupt generating means for generating an external interrupt signal, 2 is an instruction generating means for generating an instruction signal according to an input address, 3 is an interrupt according to each output signal of the interrupt generating means 1, instruction generating means 2. Interrupt control means 4 for controlling, for example, start means for generating a start signal such as power-on or reset operation,
Reference numeral 5 is an address instruction means for giving an address instruction to the instruction generating means 2, 6 is an address saving means for saving the current address 105 according to the control signal of the interrupt control means 3, and 7 and 8 are output addresses and address instructions of the address saving means 6. Adding means for increasing the output address of the means 5, 9 is an immediate address generating means for generating an immediate address 109 in accordance with the instruction signal 102, 10 is the immediate address 109, and the instruction signal 102 from the three addresses 107 and 108. First address selecting means for selecting one address according to the above, 11 for interrupt address generating means for generating an address when an interrupt occurs, 12 for address 110 and interrupt address selected by the first address selecting means 10. Second selection of 111 according to the interrupt control signal 103 Address selection means.

【0004】以上のように構成された割込み制御装置に
ついて、以下その動作について図5および図6のフロー
図を用いて説明する。
The operation of the interrupt control device configured as described above will be described below with reference to the flow charts of FIGS. 5 and 6.

【0005】まず、スタート手段4からのスタート信号
104によりアドレス指示手段5は決められたアドレス
を指示し、内部動作が始まる。命令発生手段2はアドレ
ス指示手段5の示すアドレス105にしたがって命令1
02を出力し、この命令にしたがって処理が実行され
る。この命令の種類により次の動作が決定される。
First, the address designating means 5 designates a predetermined address by the start signal 104 from the starting means 4, and the internal operation is started. The instruction generating means 2 follows the address 105 indicated by the address instructing means 5 in accordance with the instruction 1
02 is output, and the processing is executed according to this instruction. The next operation is determined by the type of this instruction.

【0006】はじめに、割込みがない場合について考え
る。割込みがないため割込み制御信号103により第2
の割込み選択手段12は常に第1アドレス選択信号11
0を選択する。
First, consider the case where there is no interrupt. Since there is no interrupt, the interrupt control signal 103 causes the second
Of the interrupt selection means 12 is always the first address selection signal 11
Select 0.

【0007】(a)アドレスを操作しない命令の場合 命令信号102により第1のアドレス選択手段10はア
ドレス108を選択する。したがって、次のアドレスと
してアドレス指示手段5に入力されるアドレス112は
現在のアドレス105を(+1)増加させた108が選
択される。
(A) In the case of an instruction that does not manipulate the address: The first address selecting means 10 selects the address 108 by the instruction signal 102. Therefore, as the address 112 input to the address designating means 5 as the next address, 108, which is the current address 105 increased by (+1), is selected.

【0008】(b)サブルーチンコール命令、ループ回
数セット命令の場合(この命令を以下PUSH命令とい
う) 割込み制御信号103にしたがい現アドレス105はア
ドレス退避手段6に一次退避させるとともに、命令信号
102により第1のアドレス選択手段10は次のアドレ
スとして即値アドレス発生手段9の示すアドレス109
(サブルーチンコール時)かアドレス108(ループ回
数セット時)を選択する。
(B) In the case of a subroutine call instruction or a loop count setting instruction (this instruction is hereinafter referred to as a PUSH instruction) In accordance with the interrupt control signal 103, the current address 105 is temporarily saved in the address saving means 6 and the instruction signal 102 The address selection unit 10 of 1 indicates the address 109 indicated by the immediate address generation unit 9 as the next address.
(When the subroutine is called) or address 108 (when the loop count is set) is selected.

【0009】(c)サブルーチンリターン命令、ループ
リターン命令の場合(この命令を以下POP命令とい
う) 命令信号102により第1のアドレス選択手段10は次
のアドレスとしてアドレス107を選択する。とともに
アドレス退避手段6に退避させていたアドレスをクリア
する。
(C) In the case of a subroutine return instruction or a loop return instruction (this instruction is hereinafter referred to as a POP instruction) The instruction signal 102 causes the first address selecting means 10 to select the address 107 as the next address. At the same time, the address saved in the address saving means 6 is cleared.

【0010】ここで、上記動作に割込み発生手段1より
割込みが入力される場合を考える。割込みにより実行中
の内部プログラムと異なる処理を一次的に実行するた
め、割込み発生時には上記PUSH命令と同じく現アド
レス105をアドレス退避手段6に退避させる必要があ
る。
Now, consider a case where an interrupt is input from the interrupt generating means 1 to the above operation. Since a process different from the internal program being executed is temporarily executed by the interrupt, it is necessary to save the current address 105 in the address saving means 6 when the interrupt occurs, as in the case of the PUSH instruction.

【0011】しかし、割込み発生がPUSH命令、PO
P命令と同時に起こるとアドレス退避手段6内のアドレ
スを同時にアクセスするためアドレス退避手段6のアド
レスを壊してしまい元のアドレスに戻れなくなるため、
従来の割込み制御装置ではPUSH命令、POP命令を
割込み非許可命令として、外部割込みを実行せずに退避
させておき、割込みがなかったように割込み非許可命令
を実行し、次の割込み許可命令が実行される時に割込み
をさせる方法をとっている。
However, when an interrupt occurs, the PUSH instruction, PO
If it occurs at the same time as the P instruction, the addresses in the address saving means 6 are accessed at the same time, so that the address of the address saving means 6 is destroyed and the original address cannot be restored.
In the conventional interrupt control device, the PUSH instruction and the POP instruction are saved as interrupt non-permission instructions without executing an external interrupt, the interrupt non-permission instruction is executed as if there was no interrupt, and the next interrupt permission instruction is issued. It takes a method to interrupt when it is executed.

【0012】(a)アドレスを操作しない命令の場合 命令信号102に割込み非許可命令の情報がないため割
込みが実行され第2のアドレス選択手段12は割込みア
ドレス111を選択し、現アドレス105はアドレス退
避手段6に退避される。割込み処理が終わると第1のア
ドレス選択手段10はPOP命令と同じくアドレス10
7を選択、アドレス退避手段6内のアドレスはクリアさ
れる。
(A) In the case of an instruction that does not operate the address: Since the instruction signal 102 has no information of the instruction not permitting interruption, the interruption is executed, the second address selecting means 12 selects the interruption address 111, and the current address 105 is the address. It is saved in the saving means 6. When the interrupt processing is completed, the first address selecting means 10 receives the address 10 like the POP instruction.
7 is selected, and the address in the address saving means 6 is cleared.

【0013】(b)PUSH命令の場合 命令信号102に割込み非許可命令の情報があるため割
込み制御手段3にて割込み制御信号103にて割込みが
ない場合と同じようにアドレス信号108をアドレス退
避手段6に退避させるとともに、割込みホールドの情報
をもち次の命令を待つ。
(B) In the case of the PUSH instruction Since the instruction signal 102 has the information of the interrupt non-permission instruction, the address control means 3 stores the address signal 108 in the same manner as when the interrupt control signal 103 does not generate an interrupt. It saves to 6, and holds the interrupt hold information and waits for the next instruction.

【0014】(c)POP命令の場合 命令信号102に割込み非許可命令の情報があるため割
込み制御手段3にて割込み制御信号103にて割込みが
ない場合と同じようにアドレス退避手段6のアドレスを
クリアするとともに、割込みホールドの情報をもち次の
命令を待つ。
(C) In case of POP instruction Since the instruction signal 102 has the information of the interrupt non-permission instruction, the address of the address saving means 6 is set in the same manner as when the interrupt control means 3 does not interrupt the interrupt control signal 103. Along with clearing, it holds interrupt hold information and waits for the next instruction.

【0015】以上の動作にしたがい割込みを含む内部動
作がうまく実行されている。
According to the above operation, the internal operation including the interrupt is successfully executed.

【0016】[0016]

【発明が解決しようとする課題】しかしながら上記の従
来の構成では、割込み非許可命令が実行されている時に
外部割込み信号が入力されると当割込み信号は次の割込
み許可命令が実行されるときまで保持されるため、外部
割込み時期と内部で割込み処理される時期が一致しな
い、特に割込み非許可命令が続くと大きく時期がずれる
ため割込み許可命令を一定間隔でいれておく必要がある
という問題点を有していた。
However, in the above-mentioned conventional configuration, when an external interrupt signal is input while an interrupt non-permission instruction is being executed, this interrupt signal is kept until the next interrupt permission instruction is executed. Since it is held, there is a problem that the external interrupt timing does not match the internal interrupt processing timing. In particular, if the interrupt non-permission instruction continues, the timing will be greatly different, so it is necessary to put the interrupt permission instruction at a constant interval. I had.

【0017】本発明は上記従来の問題点を解決するもの
で、外部割込み信号に第1の優先順位を与え全ての命令
を割込み許可命令とすることで外部割込み時期と内部で
割込み処理される時期が一致する割込み制御が可能な割
込み制御装置を提供することを目的とする。
The present invention solves the above-mentioned problems of the prior art by providing the external interrupt signal with the first priority and making all the commands interrupt-enabled, and the external interrupt timing and the internal interrupt processing timing. It is an object of the present invention to provide an interrupt control device capable of controlling interrupts in which the two match.

【0018】[0018]

【課題を解決するための手段】この目的を達成するため
に本発明の割込み制御装置は、割込み発生手段の出力を
アドレス指示手段の直前のアドレス選択手段に直接に入
力することと、割込み発生手段と命令発生手段の出力に
より命令種類ごとにアドレス退避方法を制御する割込み
制御手段、アドレス退避手段とで、全ての命令を割込み
許可命令とし、外部割込み信号を第1の優先順位として
割込み制御が実現できる構成を有している。
In order to achieve this object, the interrupt control device of the present invention is such that the output of the interrupt generating means is directly input to the address selecting means immediately before the address designating means, and the interrupt generating means. The interrupt control means and the address saving means for controlling the address saving method for each instruction type by the output of the instruction generating means and the instruction saving means realize all the interrupts as the interrupt enable instruction and the external interrupt signal as the first priority. It has a configuration that can.

【0019】[0019]

【作用】本発明は上記した構成により、全ての命令が割
込み許可命令のため内部プログラムを組むときに一定区
間ごとに割込み許可命令を組み入れるなどの制約がなく
自由にプログラム作成ができ、しかも、外部割込み時期
と内部で割込み処理される時期が一致する優れた割込み
制御装置を実現できる。
According to the present invention, since all the instructions are interrupt enable instructions, the present invention can freely create a program without any restriction such as incorporating an interrupt enable instruction in every certain section when forming an internal program. It is possible to realize an excellent interrupt control device in which the interrupt timing and the timing at which interrupt processing is performed internally match.

【0020】[0020]

【実施例】以下本発明の一実施例について、図面を参照
しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0021】図1は本発明の第1の実施例における割込
み制御装置のブロック図を示すものである。図1におい
て、1は外部割込み信号を発生する割込み発生手段、2
は入力アドレスにしたがい命令信号を発生する命令発生
手段、23は割込み発生手段1、命令発生手段2の各々
の出力信号にしたがい割込み制御を行う割込み制御手
段、4は例えば、電源オンやリセット動作などスタート
信号を発生するスタート手段、5は命令発生手段2にア
ドレス指示を行うアドレス指示手段、8はアドレス指示
手段5の出力アドレスを増加させる加算手段、9は命令
信号102にしたがい即値アドレス109を発生する即
値アドレス発生手段、26は割込み制御手段23の制御
信号にしたがい加算アドレス108、即値アドレス10
9、自らの退避アドレス126の3アドレスから1アド
レスを選択して退避させるアドレス退避手段、10は即
値アドレス109と、加算アドレス107、108の3
アドレスから前記命令信号102にしたがい1アドレス
を選択する第1のアドレス選択手段、11は割込み発生
が起こった際のアドレスを発生する割込みアドレス発生
手段、12は第1のアドレス選択手段10により選択さ
れたアドレス110と割込みアドレス111を前記割込
み制御信号103にしたがい選択する第2のアドレス選
択手段。
FIG. 1 is a block diagram of an interrupt control device according to the first embodiment of the present invention. In FIG. 1, 1 is an interrupt generating means for generating an external interrupt signal, 2
Is an instruction generating means for generating an instruction signal according to an input address, 23 is an interrupt controlling means for controlling an interrupt according to each output signal of the interrupt generating means 1 and the instruction generating means 2, and 4 is, for example, power-on or reset operation. A start means for generating a start signal, 5 is an address indicating means for instructing an address to the instruction generating means 2, 8 is an adding means for increasing the output address of the address indicating means 5, and 9 is an immediate address 109 according to the instruction signal 102. An immediate address generating means, 26 is an addition address 108 and an immediate address 10 according to the control signal of the interrupt control means 23.
9, address saving means for selecting and saving one address from three addresses of its own saved address 126, 10 is an immediate address 109, and 3 of added addresses 107 and 108
First address selecting means for selecting one address from the address according to the command signal 102, 11 is an interrupt address generating means for generating an address when an interrupt occurs, and 12 is selected by the first address selecting means 10. Second address selecting means for selecting the address 110 and the interrupt address 111 according to the interrupt control signal 103.

【0022】なお、割込み発生手段1、命令発生手段
2、スタート手段4、アドレス指示手段5、加算手段
8、即値アドレス発生手段9、第1のアドレス選択手段
10、割込みアドレス発生手段11、第2のアドレス選
択手段12は従来の割込み制御装置と同じである。
The interrupt generating means 1, the instruction generating means 2, the starting means 4, the address designating means 5, the adding means 8, the immediate address generating means 9, the first address selecting means 10, the interrupt address generating means 11, the second The address selecting means 12 is the same as the conventional interrupt control device.

【0023】以上のように構成された本実施例の割込み
制御装置について、以下その動作について図2および図
3のフロー図を用いて説明する。
The operation of the interrupt control device of this embodiment having the above configuration will be described below with reference to the flow charts of FIGS. 2 and 3.

【0024】割込みがない場合の動作については従来と
同じためここでは説明を省略する。割込み発生手段より
割込みが発生した場合、まず第2のアドレス選択手段は
割込みアドレス発生手段のアドレス111を無条件に選
択し割込み処理が始まる。次にそのときの命令102に
したがってアドレス退避手段26へ退避するアドレスが
決定される。
Since the operation when there is no interrupt is the same as the conventional one, its explanation is omitted here. When an interrupt is generated by the interrupt generating means, first, the second address selecting means unconditionally selects the address 111 of the interrupt address generating means and the interrupt processing is started. Next, the address to be saved in the address saving means 26 is determined according to the instruction 102 at that time.

【0025】(a)PUSH命令の場合 サブルーチンコール命令なら割込み処理終了後サブルー
チンに戻るので即値アドレス109が退避される。ま
た、ループ回数セット命令なら割込み終了後、次の命令
が実行されるので現アドレス105に(+1)増加した
アドレス108が退避される。割込み処理が終わると第
1のアドレス選択手段10はアドレス107を選択する
が、PUSH命令による戻りアドレスがまだ必要なため
アドレス退避手段26内のアドレスはクリアされない。
(A) In the case of PUSH instruction If it is a subroutine call instruction, the immediate value address 109 is saved because the processing returns to the subroutine after the interrupt processing is completed. Further, in the case of the loop number setting instruction, the next instruction is executed after the interruption is completed, so that the address increased by (+1) to the current address 105 is saved. When the interrupt processing is completed, the first address selecting means 10 selects the address 107, but the address in the address saving means 26 is not cleared because the return address by the PUSH instruction is still needed.

【0026】(b)POP命令の場合 サブルーチンリターン命令、ループリターン命令(ルー
プ回数が残り0以外)なら割込み終了後アドレス退避手
段より戻しているアドレス126に戻るので再びアドレ
ス126を退避させる。割込み処理が終わると第1のア
ドレス選択手段10はアドレス107を選択し、POP
命令による戻りアドレスへ戻りアドレス退避手段26内
のアドレスはクリアされる。
(B) POP instruction If a subroutine return instruction or a loop return instruction (the number of loops is other than 0) is returned to the address 126 returned by the address saving means after the interruption, the address 126 is saved again. When the interrupt processing is completed, the first address selecting means 10 selects the address 107, and the POP
The address in the return address saving means 26 is cleared to the return address by the instruction.

【0027】(c)その他の命令の場合 割込み終了後次の命令が実行されるので現アドレス10
5に(+1)増加したアドレス108が退避される。割
込み処理が終わると第1のアドレス選択手段10はアド
レス107を選択し、アドレス退避手段26内のアドレ
スはクリアされる。
(C) In case of other instruction Since the next instruction is executed after the interruption, the current address 10
The address 108 increased by (+1) to 5 is saved. When the interrupt processing is completed, the first address selecting means 10 selects the address 107 and the address in the address saving means 26 is cleared.

【0028】以上のように本実施例によれば命令発生手
段2の命令102と割込み発生手段1の割込み101に
したがって割込み制御手段23でアドレス退避手段26
を詳細に制御すれば全ての命令を割込み許可命令とする
ことができ、割込み発生手段の割込みにしたがって第2
のアドレス選択手段が制御でき命令によらずいつでも割
込みをかけることが可能になる。
As described above, according to this embodiment, according to the instruction 102 of the instruction generating means 2 and the interrupt 101 of the interrupt generating means 1, the interrupt control means 23 causes the address saving means 26 to operate.
By controlling in detail, all instructions can be made to be interrupt enable instructions.
The address selection means can be controlled so that an interrupt can be issued at any time regardless of the instruction.

【0029】[0029]

【発明の効果】以上のように本発明による割込み制御装
置は、命令発生手段より発生された命令を全て割込み許
可命令とし、割込み発生手段により発生された割込み信
号を第1の優先順位とすることで、外部割込み時期と内
部割込み処理時期とが一致した割込み制御をすることが
できる。
As described above, in the interrupt control device according to the present invention, all the commands generated by the command generating means are set as the interrupt enable commands, and the interrupt signal generated by the interrupt generating means is set as the first priority. Thus, it is possible to perform interrupt control in which the external interrupt timing and the internal interrupt processing timing match.

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

【図1】本発明の第1の実施例における割込み制御装置
のブロック図
FIG. 1 is a block diagram of an interrupt control device according to a first embodiment of the present invention.

【図2】本発明の第1の実施例における割込み制御のフ
ロー図
FIG. 2 is a flowchart of interrupt control in the first embodiment of the present invention.

【図3】図2の割込み制御フローにおけるサブルーチン
のフロー図
3 is a flow chart of a subroutine in the interrupt control flow of FIG.

【図4】従来の割込み制御装置のブロック図FIG. 4 is a block diagram of a conventional interrupt control device.

【図5】従来の割込み制御のフロー図FIG. 5 is a flow chart of conventional interrupt control.

【図6】図5の割込み制御フローにおけるサブルーチン
のフロー図
6 is a flowchart of a subroutine in the interrupt control flow of FIG.

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

1 割込み発生手段 2 命令発生手段 3 割込み制御手段 4 スタート手段 5 アドレス指示手段 6 アドレス退避手段 7,8 加算手段 8 加算手段 9 即値アドレス発生手段 10 第1のアドレス選択手段 11 割込みアドレス発生手段 12 第2のアドレス選択手段 23 割込み制御手段 26 アドレス退避手段 101 外部割込み信号 102 命令信号 103 割込み制御信号 104 スタート信号 105 現アドレス信号 106 退避アドレス信号 107 退避アドレス信号の加算信号 108 現アドレス信号の加算信号 109 即値アドレス信号 110 第1の選択アドレス信号 111 割込みアドレス信号 112 第2の選択アドレス信号 123 割込み制御信号 126 退避アドレス信号 1 Interrupt Generation Means 2 Instruction Generation Means 3 Interrupt Control Means 4 Start Means 5 Address Indication Means 6 Address Saving Means 7, 8 Addition Means 8 Addition Means 9 Immediate Address Generation Means 10 First Address Selection Means 11 Interrupt Address Generation Means 12 Second 2 Address selection means 23 Interrupt control means 26 Address saving means 101 External interrupt signal 102 Command signal 103 Interrupt control signal 104 Start signal 105 Current address signal 106 Saved address signal 107 Addition signal of saved address signal 108 Addition signal of current address signal 109 Immediate address signal 110 First selection address signal 111 Interrupt address signal 112 Second selection address signal 123 Interrupt control signal 126 Saved address signal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】命令発生手段より発生された命令を全て割
込み許可命令とし、割込み発生手段により発生された割
込み信号を第1の優先順位とすることで外部割込み時期
と内部割込み処理時期が一致した割込み制御ができるこ
とを特徴とした割込み制御方法。
1. An external interrupt timing coincides with an internal interrupt processing timing by setting all the instructions generated by the instruction generating means as interrupt enable instructions and setting the interrupt signal generated by the interrupt generating means as the first priority. An interrupt control method characterized by being capable of interrupt control.
【請求項2】外部割込み信号を発生する割込み発生手
段、入力アドレスにしたがい命令信号を発生する命令発
生手段と、前記2手段の各々の信号により割込みを制御
する割込み制御手段と、内部動作のスタートを決めるス
タート手段と、前記スタート手段からのスタート信号に
よりアドレス指示を始めるアドレス指示手段と、前記ア
ドレス指示手段の出力アドレスを増加させる加算手段
と、前記命令信号にしたがい即値アドレスを発生する即
値アドレス発生手段と、前記割込み制御手段により制御
され前記加算手段の出力アドレス、前記即値アドレス手
段の即値アドレスと自らの出力アドレスを3入力とする
アドレス退避手段と、前記アドレス退避手段と同一3入
力を前記命令発生手段の命令信号にしたがい1出力アド
レスを選択する第1のアドレス選択手段と、前記第1の
アドレス選択手段の出力アドレスと割込みが発生したと
きに選択される割込みアドレスを発生する割込みアドレ
ス発生手段の出力アドレスを前記割込み発生手段の割込
み信号にしたがい選択する第2のアドレス選択手段とを
備えたことを特徴とする割込み制御装置。
2. An interrupt generating means for generating an external interrupt signal, an instruction generating means for generating an instruction signal according to an input address, an interrupt control means for controlling an interrupt by each signal of the two means, and a start of internal operation. Determining means, an address designating means for starting address designation by a start signal from the starting means, an adding means for increasing an output address of the address designating means, and an immediate value address generating means for generating an immediate value address according to the command signal. Means, address saving means controlled by the interrupt control means, the output address of the adding means, the immediate address of the immediate value means and its own output address being three inputs, and the same three inputs as the address saving means A first selecting one output address according to a command signal of the generating means; Address selecting means, and an output address of the first address selecting means and an output address of an interrupt address generating means for generating an interrupt address to be selected when an interrupt occurs. 1st selecting according to an interrupt signal of the interrupt generating means An interrupt control device comprising two address selecting means.
JP13654692A 1992-05-28 1992-05-28 Method and device for interruption control Pending JPH05334098A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13654692A JPH05334098A (en) 1992-05-28 1992-05-28 Method and device for interruption control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13654692A JPH05334098A (en) 1992-05-28 1992-05-28 Method and device for interruption control

Publications (1)

Publication Number Publication Date
JPH05334098A true JPH05334098A (en) 1993-12-17

Family

ID=15177739

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13654692A Pending JPH05334098A (en) 1992-05-28 1992-05-28 Method and device for interruption control

Country Status (1)

Country Link
JP (1) JPH05334098A (en)

Similar Documents

Publication Publication Date Title
US4095268A (en) System for stopping and restarting the operation of a data processor
JPH02156334A (en) Information processor
JPS6156822B2 (en)
JPH05334098A (en) Method and device for interruption control
JPH0573296A (en) Microcomputer
JPH05197577A (en) Virtual computer execution priority control system in virtual computer system
JPS61241843A (en) Information processor
JPS60250438A (en) Information processor
JPH0683652A (en) Microcomputer system
KR100233082B1 (en) Method for controlling inter memory in digital signal processor
JPS61213928A (en) Alteration system for program
JPS616704A (en) Programmable controller
JPS5943446A (en) Microcomputer system
JPS6224325A (en) Arithmetic processor
JPH10143376A (en) Information processing device
JPH0682321B2 (en) Micro controller
JPH0535637A (en) Microprocessor control circuit
JPH0517595B2 (en)
JPH056280A (en) Interruption control system
JPS615349A (en) Programmable controller
JPH06314197A (en) Auxiliary processor
JPS62168234A (en) Microprogram controller using sequencer
JPH09325892A (en) Job parallel execution control method
JPH047739A (en) Controlling system for instruction executing time
JPH0612500A (en) Microprocessor