JPH09160786A - Microprocessor - Google Patents

Microprocessor

Info

Publication number
JPH09160786A
JPH09160786A JP31501995A JP31501995A JPH09160786A JP H09160786 A JPH09160786 A JP H09160786A JP 31501995 A JP31501995 A JP 31501995A JP 31501995 A JP31501995 A JP 31501995A JP H09160786 A JPH09160786 A JP H09160786A
Authority
JP
Japan
Prior art keywords
interrupt
vector
vector table
address
storage unit
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.)
Withdrawn
Application number
JP31501995A
Other languages
Japanese (ja)
Inventor
Yuji Miyashita
裕治 宮下
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 Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP31501995A priority Critical patent/JPH09160786A/en
Publication of JPH09160786A publication Critical patent/JPH09160786A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To shorten the interruption processing time by using effectively the time during the saving of the contents of various registers accompanying the interruption processing and then setting the address of the interruption destination. SOLUTION: An interruption control part 3 processes the interruption request received from a peripheral device 2 and gives an interruption vector number to a CPU 1. A vector table control part 5 outputs a vector table address 13 and a control signal 12 to the part 5 based on the vector number sent from the part 3. A latch circuit 7 holds the data (interruption destination address) given from the part 5 until the saving of contents of a register is over. A selector 6 switches the data buses 10 and 11 by means of a selection flag that selects the software or hardware to perform the write/read control against the circuit 7.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はマイクロプロッサに
関し、特に、ベクタモードでの割り込み処理に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprocessor, and more particularly to interrupt handling in vector mode.

【0002】[0002]

【従来の技術】マイクロプロセッサの割り込み制御で
は、割り込みが受け付けられると、スタックポインタに
よって、マイクロプロセッサ内の各種レジスタに保持さ
れているデータを、主記憶等の記憶装置にプッシュダウ
ンして、退避させる。この処理が終わると、入力された
ベクタ番号によって決定されるベクタ・アドレスによ
り、ベクタ・テーブルから割り込み先を読み出し、その
アドレスをプログラムカウタに転送する。プログラムカ
ウンタにロードされたアドレスからプログラムの実行を
行う。
2. Description of the Related Art In interrupt control of a microprocessor, when an interrupt is accepted, a stack pointer pushes down data held in various registers in the microprocessor to a storage device such as a main memory and saves the data. . When this process ends, the interrupt destination is read from the vector table by the vector address determined by the input vector number, and the address is transferred to the program counter. The program is executed from the address loaded in the program counter.

【0003】図2に従来のマイクロプロセッサにおける
割り込み方法を説明するための概念図を示す。図2は特
開昭61−46531号公報(以下、先行技術1と呼
ぶ)に開示されているもので、ラッチ回路によりベクタ
発生回路を構成し、ソフトウェアにより任意の割り込み
先を直接指定して、割り込み処理機能の向上を図ってい
る。
FIG. 2 is a conceptual diagram for explaining an interrupt method in a conventional microprocessor. FIG. 2 is disclosed in Japanese Patent Application Laid-Open No. 61-46531 (hereinafter referred to as "prior art 1"). A vector generating circuit is configured by a latch circuit, and an arbitrary interrupt destination is directly designated by software. The interrupt processing function is being improved.

【0004】図2において、破線で囲まれた部分は、マ
イクロプロセッサCPUと、メモリエリアMAである。
このメモリエリアMAには、RAM(ランダム・アクセ
ス・メモリ)やROM(リード・オンリ・メモリ)等に
割り当てられたアドレス空間が含まれるものである。
In FIG. 2, a portion surrounded by a broken line is a microprocessor CPU and a memory area MA.
The memory area MA includes an address space assigned to a RAM (random access memory), a ROM (read only memory), or the like.

【0005】マイクロプロセッサCPUは、情報処理の
ための算術論理演算回路(図示せず)、アキュムレータ
(図示せず)などの各種レジスタや、タイミング制御回
路(図示せず)を有するものであるが、この例では、割
り込み動作に直接関係のあるプログラムカウンタPC、
スタックポインタSP、状態レジスタCC、命令レジス
タIR、およびデコータDCRが、例示的に示されてい
る。
The microprocessor CPU has various registers such as an arithmetic and logic operation circuit (not shown) and an accumulator (not shown) for information processing, and a timing control circuit (not shown). In this example, the program counter PC directly related to the interrupt operation,
The stack pointer SP, the status register CC, the instruction register IR, and the decoder DCR are exemplarily shown.

【0006】また、割り込み先を指定するベクタ発生回
路は、内部データバスD−BUSとのデータの授受を行
う。言い換えるなれば、ベクタ発生回路は書き込み/読
み出しを行うことのできるラッチ回路FFにより構成さ
れる。このようなラッチ回路FFによりベクタ発生回路
を構成するものであるので、そのプログラムの実行に先
立って、上記ラッチ回路FFには、初期値が書き込まれ
る。
The vector generation circuit designating the interrupt destination transfers data to and from the internal data bus D-BUS. In other words, the vector generation circuit is composed of the latch circuit FF capable of writing / reading. Since such a latch circuit FF constitutes a vector generating circuit, an initial value is written in the latch circuit FF prior to the execution of the program.

【0007】次に、この例の割り込み動作について説明
する。
Next, the interrupt operation of this example will be described.

【0008】マイクロプロセッサCPUがあるプログラ
ムの処理中に、割り込み信号IQRが入力されると、状
態レジスタCCの特定ビットに論理“1”レベルの信号
が書き込まれる。このとき、その割り込みを無効にする
ようなビット情報が書き込まれていないならば、その情
報処理が中断され、スタックポインタSPにより構成さ
れるスタック、すなわち、スタックポインタSPが指示
するアドレス、例えば16進数でF000(H)から現
在処理中の各種レジスタに保持されているデータがプロ
グラムカウンタPC(下位L、上位U以下同様)、Uレ
ジスタ(L,U)〜状態レジスタCCの順で、プッシュ
ダウンされる。これにより、中断されるプログラムの状
態が退避される。
When the interrupt signal IQR is input during the processing of a program by the microprocessor CPU, a logic "1" level signal is written to a specific bit of the status register CC. At this time, if the bit information for invalidating the interrupt is not written, the information processing is interrupted and the stack constituted by the stack pointer SP, that is, the address indicated by the stack pointer SP, for example, a hexadecimal number. At F000 (H), the data held in various registers currently being processed is pushed down in the order of program counter PC (lower L, upper U and so on), U register (L, U) to status register CC. It As a result, the state of the interrupted program is saved.

【0009】この後、状態レジスタCCには、割り込み
処理中を示す特定のビットに論理“1”レベルの信号が
書き込まれる。
After this, a signal of logic "1" level is written in the status register CC at a specific bit indicating that the interrupt is being processed.

【0010】そして、プログラムカウンタPCには、上
記ベクタ発生回路としてラッチ回路FFに保持されてい
る特定のアドレスXXXX(H)が転送される。このア
ドレスXXXX(H)は、上記割り込み要因によって処
理すべき割り込みプログラムの先頭アドレスである。こ
れにより、直ちに割り込み先であるアドレスXXXX
(H)に格納されているプログラムが順次命令レジスタ
IRに読み出されて、デコーダCDRがこれを解読し
て、そのプログラムの中で、必要ならば上記ラッチ回路
FFの内容の書き換えが行われる。すなわち、次の同じ
割り込み要因によって、次に処理すべき割り込み処理が
異なる場合には、それが格納されたプログラムの先頭ア
ドレスが書き込まれる。このような割り込み先の変更
は、任意の情報処理の中で任意の時に行うことができる
ものである。例えば、プロセス制御などにあっては、一
定の手順で情報処理が行われるものであるから、同一要
因の複数の割り込み処理を行う場合、ある情報処理の中
で割り込みが発生する原因は予め判るので、それに応じ
たベクタの設定がソフトウェアにより行われるものであ
る。
Then, the specific address XXXX (H) held in the latch circuit FF as the vector generating circuit is transferred to the program counter PC. This address XXX (H) is the start address of the interrupt program to be processed by the above interrupt factor. As a result, the address XXXXX which is the interrupt destination is immediately sent.
The program stored in (H) is sequentially read into the instruction register IR, and the decoder CDR decodes the program, and the content of the latch circuit FF is rewritten in the program if necessary. That is, when the interrupt processing to be processed next is different due to the same next interrupt factor, the start address of the program in which it is stored is written. Such change of the interrupt destination can be performed at any time in any information processing. For example, in process control and the like, information processing is performed in a fixed procedure. Therefore, when performing a plurality of interrupt processes of the same factor, the cause of the interrupt in a certain information process is known in advance. The software sets the vector accordingly.

【0011】尚、上記割り込み処理プログラムの最後の
リターン命令の実行により、スタック領域に退避された
データがプッシュアップされて各レジスタに再び戻され
るので、上記中断された元のプログラムが再開されるも
のとなる。
By the execution of the last return instruction of the interrupt processing program, the data saved in the stack area is pushed up and returned to each register again, so that the interrupted original program is restarted. Becomes

【0012】尚、本発明に関連する他の先行技術として
次のものが知られている。例えば、特開昭61−849
号公報(以下、先行技術2と呼ぶ)には、マイクロプロ
セッサユニットにレジスタを付加し、ベクタ番号をこの
レジスタに設定することにより、コンパクトかつ高速な
割り込み処理手続きを作成する「マイクロコンピュータ
の割込制御方式」が開示されている。
The following is known as another prior art related to the present invention. For example, Japanese Patent Laid-Open No. 61-849
Japanese Patent Publication (hereinafter referred to as "prior art 2") adds a register to a microprocessor unit and sets a vector number in this register to create a compact and high-speed interrupt processing procedure "Microcomputer Interrupt". A control method "is disclosed.

【0013】[0013]

【発明が解決しようとする課題】図2に示した先行技術
1では、割り込み先アドレスを保持するためのラッチ回
路FFは内部データバスに接続されているので、割り込
み先アドレスのセットと割り込み処理に伴う各種レジス
タの内容の退避は、排他的に行わなければならない。プ
ログラムの状態保持のためのレジスタの内容退避にかか
る時間的問題は、割り込みを頻繁に使用するシステムで
は、その処理時間のオーバーヘッドにより性能が低下す
ることである。特に通信回線などの送受信処理を割り込
みで行う場合、通信速度を速めたときにマイクロプロセ
ッサCPUが割り込みをサービス中に、次に送信あるい
は受信するデータに対して、処理の長引きによるアンダ
ーラン、オーバーランを起こしてしまう等の欠点があ
る。先に述べたように、先行技術1では、割り込み先ア
ドレスのセットと割り込み処理に伴う各種レジスタの内
容退避は、排他的に行わなければならないため、割り込
み処理に伴う各種レジスタの内容退避中の時間を有効に
利用ができない欠点がある。
In the prior art 1 shown in FIG. 2, since the latch circuit FF for holding the interrupt destination address is connected to the internal data bus, the interrupt destination address is set and the interrupt processing is performed. The accompanying saving of the contents of various registers must be performed exclusively. The time problem of saving the contents of the registers for holding the state of the program is that the performance is lowered due to the overhead of the processing time in a system that frequently uses interrupts. In particular, when the transmission / reception processing such as a communication line is performed by an interrupt, when the communication speed is increased, the microprocessor CPU is servicing the interrupt, and the data to be transmitted or received next is underrun or overrun by prolonging the processing. There are drawbacks such as causing As described above, in Prior Art 1, the setting of the interrupt destination address and the saving of the contents of various registers associated with the interrupt processing must be performed exclusively. Has the drawback that it cannot be used effectively.

【0014】本発明の課題は、上記の問題を解決し、割
り込み処理に伴う各種レジスタの内容退避中の時間を有
効に利用し、割り込み先アドレスのセットを行うこと
で、割り込み処理時間の短縮を図ったマイクロプロセッ
サを提供することにある。
An object of the present invention is to solve the above problems and to effectively use the time during the saving of the contents of various registers associated with interrupt processing and to set the interrupt destination address, thereby shortening the interrupt processing time. It is to provide a designed microprocessor.

【0015】本発明の他の課題は、ベクタモードでの割
り込み処理について、ベクタ番号が入力されると、ベク
タ・テーブルアドレスと制御信号をベクタ・テーブル記
憶部へ出力し、CPUが割り込み処理に伴う各種レジス
タの内容退避を行っている間に、割り込み先アドレスの
確定を可能とするマイクロプロセッサを提供することに
ある。
Another object of the present invention is, regarding the interrupt processing in the vector mode, when the vector number is input, the vector table address and the control signal are output to the vector table storage unit, and the CPU is involved in the interrupt processing. An object of the present invention is to provide a microprocessor capable of determining an interrupt destination address while saving the contents of various registers.

【0016】尚、先行技術2では、外部機器が印加する
ベクタ番号を記憶し、割り込みを処理する手続きより読
み出すことのできるレジスタを備えたマイクロコンピュ
ータユニットを開示しているに過ぎす、割り込み処理に
伴う各種レジスタの内容退避中の時間を有効に利用する
技術とは全く異なるものである。
The prior art 2 merely discloses a microcomputer unit having a register that can store a vector number applied by an external device and can be read by a procedure for processing an interrupt. This is completely different from the technique of effectively utilizing the time during the saving of the contents of the various registers involved.

【0017】[0017]

【課題を解決するための手段】上記の課題を解決するた
めに、本発明によるマイクロプロセッサは、割り込み要
求を発生する周辺機器と、割り込み処理を行う際、各種
レジスタのデータを退避させておくための主記憶部と、
割り込みベクタ・テーブルを記憶しておくベクタ・テー
ブル記憶部とに接続され、CPUを備えたマイクロプロ
セッサにおいて、周辺機器からの割り込み要求を受け、
その割り込み要求を処理し、割り込みベクタ番号をCP
Uへ与える割り込み制御部と、この割り込み制御部より
出力されるベクタ番号により、ベクタ・テーブルアドレ
スと制御信号をベクタ・テーブル記憶部へ出力するベク
タ・テーブル制御部と、レジスタの内容の退避の終了を
知らせる終了フラグと、レジスタの内容の退避が終了す
るまで、ベクタ・テーブル記憶部からのデータ(割り込
み先アドレス)を保持するラッチ回路と、を備えたこと
を特徴とする。
In order to solve the above problems, the microprocessor according to the present invention saves the data of various registers with the peripheral device which generates an interrupt request and the interrupt processing. Main memory of
In a microprocessor equipped with a CPU, which is connected to a vector table storage unit that stores an interrupt vector table, receives an interrupt request from a peripheral device,
Process the interrupt request and set the interrupt vector number to CP
Depending on the interrupt control unit given to U and the vector number output from this interrupt control unit, the vector table control unit that outputs the vector table address and the control signal to the vector table storage unit, and the end of the saving of the register contents And a latch circuit that holds the data (interrupt destination address) from the vector table storage unit until the saving of the contents of the register is completed.

【0018】上記マイクロプロセッサにおいて、ラッチ
回路への書き込み、読み出し制御を、ソフトウェアで行
うか、ハードウェアで行うかの選択フラグと、その選択
フラグによりデータバスの切り替えを行うセレクタとを
有しても良い。
In the microprocessor described above, a selection flag for writing or reading control to the latch circuit by software or hardware and a selector for switching the data bus by the selection flag may be provided. good.

【0019】[0019]

【作用】本発明では、割り込み制御部は、CPUが割り
込み要求を受け付けたことを確認した後、ベクタ番号を
ベクタ・テーブル制御部へ出力する。
In the present invention, the interrupt control unit outputs the vector number to the vector table control unit after confirming that the CPU has accepted the interrupt request.

【0020】CPUでは、割り込みを受け付けると、割
り込み処理が終了した後に割り込みを受け付けた時点の
状態を復元できるように、各種レジスタの内容を退避す
る。
Upon accepting the interrupt, the CPU saves the contents of various registers so that the state at the time of accepting the interrupt can be restored after the interrupt processing is completed.

【0021】CPUが各種レジスタの内容の退避を行っ
ている間に、ベクタ・テーブル制御部では、入力された
ベクタ番号に従い、ベクタ・テーブルアドレスと制御信
号とをベクタ・テーブル記憶部へ出力する。ベクタ・テ
ーブル記憶部では、入力されたベクタ・テーブルのアド
レスに従い、割り込み先のアドレスをラッチ回路へセッ
トする。
While the CPU saves the contents of various registers, the vector table control unit outputs the vector table address and the control signal to the vector table storage unit according to the input vector number. The vector table storage unit sets the address of the interrupt destination in the latch circuit according to the input address of the vector table.

【0022】その後、レジスタの内容の退避が完了した
時点で、終了フラグに論理“1”レベルの信号が書き込
まれ、ラッチ回路に保持されたアドレスがPC(プログ
ラムカウンタ)へセットされる。
After that, when the saving of the contents of the register is completed, a signal of logical "1" level is written in the end flag, and the address held in the latch circuit is set in the PC (program counter).

【0023】このように、CPUが主記憶部へ各種レジ
スタの内容の退避を行う間、割り込み先アドレスの確定
ができるため、割り込み処理時間の短縮ができる。
As described above, while the CPU saves the contents of various registers to the main storage unit, the interrupt destination address can be determined, so that the interrupt processing time can be shortened.

【0024】また、割り込み先アドレスを保持するラッ
チ回路への書き込みをハードウェア的に行うか、ソフト
ウェア的に行うかの選択フラグによりデータバスの切り
替えを行うことで、上記先行技術1でのソフトウェアに
より割り込み先アドレスの設定も可能となり、状況に応
じて効率よく書き込み制御を切り替えることで、より一
層割り込み機能の向上を図ることができる。
Further, by switching the data bus according to a selection flag as to whether writing to the latch circuit holding the interrupt destination address is performed by hardware or software, the software in the prior art 1 described above is used. It is also possible to set the interrupt destination address, and by efficiently switching the write control according to the situation, it is possible to further improve the interrupt function.

【0025】[0025]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態について詳細に説明する。
DETAILED DESCRIPTION OF THE INVENTION Embodiments of the present invention will be described in detail below with reference to the drawings.

【0026】図1を参照すると、本発明の一実施形態に
係るマイクロプロセッサが適用される情報処理システム
は、CPU1と、周辺機器2と、割り込み制御部3と、
ベクタ・テーブル制御部4と、ベクタ・テーブル記憶部
5と、主記憶部8と備えている。CPU1と割り込み制
御部3とベクタ・テーブル制御部4とによってマイクロ
プロセッサが構成されている。CPU1は、セレクタ6
と、ラッチ回路7と、プログラムカウンタ(PC)9と
を含む。主記憶部8はスタックエリアを含む。
Referring to FIG. 1, an information processing system to which a microprocessor according to an embodiment of the present invention is applied includes a CPU 1, a peripheral device 2, an interrupt control unit 3, and
The vector table control unit 4, the vector table storage unit 5, and the main storage unit 8 are provided. The CPU 1, the interrupt controller 3, and the vector table controller 4 constitute a microprocessor. CPU 1 is selector 6
And a latch circuit 7 and a program counter (PC) 9. The main storage unit 8 includes a stack area.

【0027】周辺機器2より割り込み制御部3へ割り込
み要求が入力されると、割り込み制御部3はCPU1へ
割り込み要求を出し、割り込みの受付許可が出るのを待
つ。CPU1が割り込み要求を受け付けたことを確認し
た後、割り込み制御部3はベクタ番号をベクタ・テーブ
ル制御部4へ出力する。
When an interrupt request is input from the peripheral device 2 to the interrupt control unit 3, the interrupt control unit 3 issues an interrupt request to the CPU 1 and waits for permission to accept an interrupt. After confirming that the CPU 1 has accepted the interrupt request, the interrupt controller 3 outputs the vector number to the vector table controller 4.

【0028】一方、CPU1では、割り込み処理ルーチ
ンの実行が終了したときに割り込みを受け付けた時点の
状態を完全に復元できるように、主記憶部8内にスタッ
クポインタより構成されるスタックへ、現在処理中の各
種レジスタに保持されているデータを退避させる。
On the other hand, in the CPU 1, when the execution of the interrupt processing routine is completed, the current processing is performed on the stack constituted by the stack pointer in the main memory 8 so that the state at the time of accepting the interrupt can be completely restored. The data held in the various registers inside is saved.

【0029】ベクタ・テーブル制御部4では、CPU1
がレジスタの内容の退避を行っている間、入力されたベ
クタ番号をデコードし、ベクタ・テーブルアドレス13
を生成する。ベクタ・テーブルアドレス13の生成方法
として、例えば、nである割り込みベクタの割り込み先
アドレスは、(4×n)番地から始まるという具合で算
出される。
In the vector table control unit 4, the CPU 1
While it is saving the contents of the register, it decodes the input vector number and returns the vector table address 13
Generate As a method of generating the vector table address 13, for example, the interrupt destination address of the interrupt vector that is n is calculated in such a manner that it starts from the address (4 × n).

【0030】ベクタ・テーブル記憶部5には、割り込み
処理ルーチンの先頭アドレスが、割り込みベクタによっ
て決定されるアドレスに格納されており、ベクタ・テー
ブル制御部4は、ベクタ・テーブルアドレス13の生成
が完了すると、ベクタ・テーブル記憶部5へベクタ・テ
ーブルアドレス13及び制御信号12を出力する。
The vector table storage unit 5 stores the start address of the interrupt processing routine at an address determined by the interrupt vector, and the vector table control unit 4 completes the generation of the vector table address 13. Then, the vector table address 13 and the control signal 12 are output to the vector table storage unit 5.

【0031】ベクタ・テーブル記憶部5は、入力された
ベクタ・テーブルアドレス13に対応する割り込み先ア
ドレスをラッチ回路7へセットしておく。
The vector table storage unit 5 sets the interrupt destination address corresponding to the input vector table address 13 in the latch circuit 7.

【0032】この後、各種レジスタの内容の退避が完了
した時点で、終了フラグ(図示せず)に論理“1”レベ
ルの信号が書き込まれ、ラッチ回路7に保持された割り
込みアドレスをPC9へ転送することで、割り込み先プ
ログラムが実行され、割り込み処理が行われる。
After this, when the saving of the contents of the various registers is completed, a signal of logic "1" level is written in the end flag (not shown), and the interrupt address held in the latch circuit 7 is transferred to the PC 9. By doing so, the interrupt destination program is executed and interrupt processing is performed.

【0033】内容が退避された各種レジスタ類は、割り
込み処理ルーチンの最後で、リターン命令などを実行す
ることにより、元の状態に戻されるので、中断されたプ
ログラムが再開されることになる。
The various registers whose contents have been saved are returned to their original states by executing a return instruction or the like at the end of the interrupt processing routine, so that the interrupted program is restarted.

【0034】また、ラッチ回路7への書き込みをソフト
ウェアで行うか、ハードウェアで行うかの選択フラグ
(図示せず)の設定内容により、ソフトウェア設定用デ
ータバス10とハードウェア設定用データバス11の切
り替えがセレクタ6によって行われる。
Further, depending on the setting contents of a selection flag (not shown) for writing to the latch circuit 7 by software or hardware, the software setting data bus 10 and the hardware setting data bus 11 are set. Switching is performed by the selector 6.

【0035】これにより、ソフトウェアとハードウェア
のどちらかでも割り込み先アドレスの設定が可能とな
る。
As a result, the interrupt destination address can be set by either software or hardware.

【0036】[0036]

【発明の効果】以上のように本発明によれば、CPUが
主記憶部へ各種レジスタの退避を行う時間を利用し、ベ
クタ・テーブルから割り込み先アドレスを読み出し、ラ
ッチ回路にセットしておくことで、割り込み処理時間を
短縮することができる。ソフトウェア設定かハードウェ
ア設定かのフラグにより切り替わるセレクタを設けるこ
とで、割り込みの種類によって、効率のいい方で制御す
ることができる。
As described above, according to the present invention, the interrupt destination address is read from the vector table and set in the latch circuit by utilizing the time taken for the CPU to save various registers in the main memory. Thus, the interrupt processing time can be shortened. By providing a selector that switches depending on whether the flag is software setting or hardware setting, it is possible to perform control in a more efficient manner depending on the type of interrupt.

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

【図1】本発明の一実施形態に係るマイクロプロサッサ
を含む情報処理システムを示すブロック図である。
FIG. 1 is a block diagram showing an information processing system including a microprocessor according to an embodiment of the present invention.

【図2】従来のマイクロプロサッサにおける割り込み方
法を説明するための概念図である。
FIG. 2 is a conceptual diagram for explaining an interrupt method in a conventional microprocessor.

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

1 CPU 2 周辺機器 3 割り込み制御部 4 ベクタ・テーブル制御部 5 ベクタ・テーブル記憶部 6 セレクタ 7 ラッチ回路 8 主記憶部 9 プログラムカウンタ(PC) 1 CPU 2 Peripheral device 3 Interrupt control unit 4 Vector table control unit 5 Vector table storage unit 6 Selector 7 Latch circuit 8 Main storage unit 9 Program counter (PC)

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 割り込み要求を発生する周辺機器と、割
り込み処理を行う際、各種レジスタのデータを退避させ
ておくための主記憶部と、割り込みベクタ・テーブルを
記憶しておくベクタ・テーブル記憶部とに接続され、C
PUを備えたマイクロプロセッサにおいて、 前記周辺機器からの前記割り込み要求を受け、その割り
込み要求を処理し、割り込みベクタ番号を前記CPUへ
与える割り込み制御部と、 前記割り込み制御部より出力されるベクタ番号により、
ベクタ・テーブルアドレスと制御信号とを前記ベクタ・
テーブル記憶部へ出力するベクタ・テーブル制御部と、 レジスタの内容退避の終了を知らせる終了フラグと、 レジスタの内容の退避が終了するまで、前記ベクタ・テ
ーブル記憶部からのデータを保持するラッチ回路とを含
むマイクロプロセッサ。
1. A peripheral device that generates an interrupt request, a main storage unit for saving data of various registers when performing interrupt processing, and a vector table storage unit for storing an interrupt vector table. Connected to and C
In a microprocessor including a PU, an interrupt control unit that receives the interrupt request from the peripheral device, processes the interrupt request, and gives an interrupt vector number to the CPU, and a vector number output from the interrupt control unit ,
The vector table address and control signal are
A vector table control unit for outputting to the table storage unit, an end flag for notifying the end of saving the contents of the register, and a latch circuit for holding the data from the vector table storage unit until the saving of the contents of the register is completed. Including a microprocessor.
【請求項2】 前記ラッチ回路への書き込み、読み出し
制御を、ソフトウェアで行うか、ハードウェアで行うか
の選択フラグと、該選択フラグによりデータバスの切り
替えを行うセレクタとを更に含む、請求項1に記載のマ
イクロプロセッサ。
2. The method according to claim 1, further comprising a selection flag for controlling whether writing or reading to or from the latch circuit is performed by software or hardware, and a selector for switching the data bus according to the selection flag. The microprocessor according to.
【請求項3】 前記ベクタ・テーブル記憶部からのデー
タが割り込み先アドレスを含む、請求項1に記載のマイ
クロプロセッサ。
3. The microprocessor according to claim 1, wherein the data from the vector table storage unit includes an interrupt destination address.
JP31501995A 1995-12-04 1995-12-04 Microprocessor Withdrawn JPH09160786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31501995A JPH09160786A (en) 1995-12-04 1995-12-04 Microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31501995A JPH09160786A (en) 1995-12-04 1995-12-04 Microprocessor

Publications (1)

Publication Number Publication Date
JPH09160786A true JPH09160786A (en) 1997-06-20

Family

ID=18060448

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31501995A Withdrawn JPH09160786A (en) 1995-12-04 1995-12-04 Microprocessor

Country Status (1)

Country Link
JP (1) JPH09160786A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1124185A1 (en) * 2000-02-09 2001-08-16 Siemens Aktiengesellschaft Interface system and method for processing interrupts to a processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1124185A1 (en) * 2000-02-09 2001-08-16 Siemens Aktiengesellschaft Interface system and method for processing interrupts to a processor
WO2001061510A1 (en) * 2000-02-09 2001-08-23 Siemens Aktiengesellschaft Circuit and method for servicing interrupt requests on a processor

Similar Documents

Publication Publication Date Title
EP0127440A2 (en) Integrated circuit device incorporating a data processing unit and a ROM storing applications program therein
US6175890B1 (en) Device for efficiently handling interrupt request processes
JPH02267634A (en) Interrupt system
US4095268A (en) System for stopping and restarting the operation of a data processor
JP2004516547A (en) Suspension control device
US7076641B2 (en) Programmable controller
US5677859A (en) Central processing unit and an arithmetic operation processing unit
JPH09160786A (en) Microprocessor
EP0811922A1 (en) Peripheral device control
JP3139310B2 (en) Digital signal processor
JP2000029508A (en) Programmable controller
JP2000040057A (en) Computer system, buffer controller and transferring method
JP3168845B2 (en) Digital signal processor
JPS59144955A (en) Information processor
JP3197045B2 (en) Extended central processing unit
JPH1011387A (en) Information processor
JP3127737B2 (en) Digital signal processor
JP2000010908A (en) Dma controller
JPH0876876A (en) Clock supply control circuit of microprocessor
JPS60142450A (en) Storage system
JP3239042B2 (en) Microcomputer
JP2635863B2 (en) Central processing unit
JPH0821027B2 (en) Microcomputer with built-in A / D converter
JPH02183342A (en) Interruption controller
KR19990058930A (en) Deamic controller and method for changing priority of deamplification request signal using same

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030204