[go: up one dir, main page]

JPH07225691A - Device and method for interrupt processing - Google Patents

Device and method for interrupt processing

Info

Publication number
JPH07225691A
JPH07225691A JP1684994A JP1684994A JPH07225691A JP H07225691 A JPH07225691 A JP H07225691A JP 1684994 A JP1684994 A JP 1684994A JP 1684994 A JP1684994 A JP 1684994A JP H07225691 A JPH07225691 A JP H07225691A
Authority
JP
Japan
Prior art keywords
program
address
interrupt
memory
data
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
JP1684994A
Other languages
Japanese (ja)
Inventor
Minoru Okamoto
稔 岡本
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 JP1684994A priority Critical patent/JPH07225691A/en
Publication of JPH07225691A publication Critical patent/JPH07225691A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide an interrupt processor for turning a branching operation until the execution start of a program corresponding to an interruption request to one time by the slight change of a hardware. CONSTITUTION:This processor is provided with a program memory 100 for storing the various kinds of programs, a data memory 120 for storing leading addresses 121 in the program memory 100 of the programs, A storage address 143 for storing the leading address 121 in the data memory 120, a table for making the interruption request 130 and the storage address 143 correspond to each other, an interruption control circuit 140 for receiving the interruption request 130, recognizing the storage address 143 of the program corresponding to the request by referring to the table and reading the leading address 121 of the program stored in the storage address 143 in the data memory 120 and a program counter 110 for holding the read leading address 121.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えば外部端子からの
割り込み要求により所定の処理を実行する割り込み処理
装置及び割り込み処理方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt processing device and an interrupt processing method for executing a predetermined process in response to an interrupt request from an external terminal, for example.

【0002】[0002]

【従来の技術】近年、ディジタル信号処理プロセッサ
(以下DSPと略称)には、高速な割り込み応答(割り
込み要求入力後、短時間で割り込み処理を開始)が要求
される。
2. Description of the Related Art In recent years, a digital signal processor (abbreviated as DSP hereinafter) is required to have a high-speed interrupt response (start interrupt processing in a short time after inputting an interrupt request).

【0003】すなわち、AD/DA変換器等の周辺機器
とのデータ転送、制御用マイクロプロセッサとの制御情
報の通信など、DSPに接続される機器数は増大する傾
向にあり、又、これら周辺機器の動作速度(動作周波
数)も高速化している。このような複数機器の制御、デ
ータ転送を、DSP内部では割り込み処理により実行す
るが、その場合、割り込み処理の開始に至るまでには、
まず割り込み要求の受理がなされ、次にその割り込み要
求の種類に応じて予め固定されたプログラムメモリの番
地Xへの分岐がなされ、更にプログラムメモリの番地X
に予め保持された所定の分岐命令により、受理された割
り込み要求に対応するプログラムの先頭番地Yへの分岐
がなされる、という3つの段階を経るのが一般的であっ
た(例えば「MN1920シリーズLSI説明書5−8
9頁(1990年、松下電子工業刊)」参照)。
That is, the number of devices connected to the DSP, such as data transfer with peripheral devices such as AD / DA converters and communication of control information with the control microprocessor, tends to increase, and these peripheral devices are also increasing. The operating speed (operating frequency) is also increasing. Such control of a plurality of devices and data transfer are executed by an interrupt process inside the DSP, but in that case, by the time the interrupt process starts,
First, an interrupt request is accepted, and then a branch is made to a fixed program memory address X according to the type of the interrupt request.
In general, a predetermined branch instruction held in advance is used to branch to the start address Y of the program corresponding to the accepted interrupt request (for example, "MN 1920 series LSI"). Manual 5-8
Page 9 (1990, published by Matsushita Electronics Industry) ").

【0004】以下、上記した従来の割り込み処理装置に
おける信号等の流れも含めた構成について図面を参照し
ながら説明する。図2は従来の割込み処理装置の構成を
示した構成図である。
The configuration including the flow of signals and the like in the above-mentioned conventional interrupt processing device will be described below with reference to the drawings. FIG. 2 is a configuration diagram showing a configuration of a conventional interrupt processing device.

【0005】図2において、プログラムメモリ200
は、割り込み要求により実行を開始するプログラムを格
納し、そのプログラムのプログラムメモリ200におけ
る先頭番地への分岐命令を格納するための記憶手段であ
り、命令205は、プログラムメモリ200が後述する
デコーダに対して出力する命令であり、プログラムカウ
ンタ210は、プログラムメモリ200に対してアクセ
スするための番地(以下、これをアクセス番地と呼ぶこ
ともある)を出力するものであり、割り込み要求信号2
30は、外部端子等からの割り込み要求を示す信号であ
り、割り込み制御回路240は、割り込み要求信号23
0に応じてプログラムメモリ200の割り込み処理開始
番地(これは、割り込み要求信号230に対応したプロ
グラムの先頭番地そのものではなく、そのプログラムの
先頭番地へ分岐するための分岐命令が格納されたプログ
ラムメモリ200における番地である)を後述のデータ
バス250に出力し、割り込み命令、すなわちデータバ
ス250上のデータをプログラムカウンタ210に書き
込む命令を出力するためのものである。
In FIG. 2, the program memory 200 is shown.
Is a storage means for storing a program to be started by an interrupt request and a branch instruction to the start address in the program memory 200 of the program. The program counter 210 outputs an address for accessing the program memory 200 (hereinafter, this may be referred to as an access address), and the interrupt request signal 2
Reference numeral 30 denotes a signal indicating an interrupt request from an external terminal or the like, and the interrupt control circuit 240 causes the interrupt request signal 23
In response to 0, the interrupt processing start address of the program memory 200 (this is not the start address itself of the program corresponding to the interrupt request signal 230, but the program memory 200 in which a branch instruction for branching to the start address of the program is stored. Address) is output to the data bus 250 described later, and an interrupt instruction, that is, an instruction to write the data on the data bus 250 to the program counter 210 is output.

【0006】ここで、割り込み制御回路240は、割り
込み要求信号230と前記プログラムメモリ200にお
ける割り込み処理開始番地を対応づけたテーブル(図示
省略)を有しており、割り込み要求信号230を受理す
ると、このテーブルの内容に基づいて、その割り込み要
求信号230に対応した、予め定められている割り込み
処理開始番地を認識して出力する。
Here, the interrupt control circuit 240 has a table (not shown) in which the interrupt request signal 230 and the interrupt processing start address in the program memory 200 are associated with each other. Based on the contents of the table, a predetermined interrupt processing start address corresponding to the interrupt request signal 230 is recognized and output.

【0007】又、番地データ242は、割り込み制御回
路240から出力される割り込み処理開始番地であり、
割り込み命令245は、割り込み制御回路240が後述
のデコーダに対して出力する命令であり、制御信号24
6は、割り込み制御回路240が後述のデコーダ280
対して出力する制御用の信号であり、データバス250
は、番地データ242をプログラムカウンタ210に出
力するものであり、デコーダ280は、命令205又は
割り込み命令245を制御信号246に従って解読する
ものであり、プログラムカウンタ制御信号281は、プ
ログラムカウンタ210に対してデータバス250上の
データを書き込むことを指示するための制御用の信号で
ある。
The address data 242 is an interrupt processing start address output from the interrupt control circuit 240,
The interrupt instruction 245 is an instruction that the interrupt control circuit 240 outputs to a decoder described later, and the control signal 24
6, the interrupt control circuit 240 has a decoder 280 described later.
It is a control signal output to the data bus 250.
Outputs the address data 242 to the program counter 210, the decoder 280 decodes the instruction 205 or the interrupt instruction 245 in accordance with the control signal 246, and the program counter control signal 281 outputs to the program counter 210. This is a control signal for instructing to write data on the data bus 250.

【0008】以上のように構成された割り込み処理装置
において、割り込み要求入力を受理してから、その割り
込み要求に対応するプログラムの実行開始に至るまでの
動作を図2を用いて説明する。
In the interrupt processing device configured as described above, the operation from the receipt of an interrupt request input to the start of execution of the program corresponding to the interrupt request will be described with reference to FIG.

【0009】まず、割り込み要求信号230が割り込み
制御回路240に入力される。
First, the interrupt request signal 230 is input to the interrupt control circuit 240.

【0010】割り込み制御回路240は、上記テーブル
の内容に基づいて、割り込み要求の種類により予め決め
られた番地データ242(割り込み処理開始番地)をデ
ータバス250に出力する。
The interrupt control circuit 240 outputs to the data bus 250 the address data 242 (interrupt processing start address) which is predetermined according to the type of interrupt request, based on the contents of the above table.

【0011】例えば、割り込み要求信号230が、割り
込み「A」を示せば、番地242として「0」、割り込
み「B」を示せば、番地242として「2」を出力する
というものである。
For example, if the interrupt request signal 230 indicates an interrupt "A", it outputs "0" as the address 242, and if it indicates an interrupt "B", it outputs "2" as the address 242.

【0012】このように、割り込み要求の種類により番
地データ242は対応づけられる(この番地データ24
2を一般に割り込みベクタと呼ぶ)。このような割り込
みベクタは、通常は、数番地おきに設定される(例え
ば、0番地、2番地、4番地、・・・)ため、プログラ
ムメモリ200における番地データ242で示される番
地以降には、複数命令からなるプログラムを格納するこ
とが困難となる。従って、プログラムメモリ200にお
ける番地データ242で示される番地には、割り込み要
求により実行をしたいプログラムの先頭番地へ分岐する
ための分岐命令が格納されている。
In this way, the address data 242 are associated with each other depending on the type of interrupt request (this address data 24
2 is generally called an interrupt vector). Since such an interrupt vector is normally set every few addresses (for example, 0 address, 2 address, 4 address, ...), after the address indicated by the address data 242 in the program memory 200, It becomes difficult to store a program consisting of multiple instructions. Therefore, at the address indicated by the address data 242 in the program memory 200, a branch instruction for branching to the head address of the program to be executed by the interrupt request is stored.

【0013】同時に割り込み制御回路240は、割り込
み命令245をデコーダ280に出力し、制御信号24
6をアクティブにする。
At the same time, the interrupt control circuit 240 outputs an interrupt instruction 245 to the decoder 280, and the control signal 24
Activate 6

【0014】デコーダ280は、制御信号246がアク
ティブであれば、割り込み命令245をデコードし、割
り込み処理開始に伴う制御を行なう。すなわち、制御信
号281をアクティブにすることで、プログラムカウン
タ210にデータバス250のデータを書き込み、又、
更新前のプログラムカウンタ210の値をスタックメモ
リに退避する(スタックメモリ、及びスタックメモリへ
の退避構成については図示しない)。これにより、割り
込み要求信号230に対応する番地データ242(割り
込み処理開始番地)への分岐が実行される。
If the control signal 246 is active, the decoder 280 decodes the interrupt instruction 245 and performs control associated with the start of interrupt processing. That is, by activating the control signal 281, the data on the data bus 250 is written to the program counter 210, and
The value of the program counter 210 before updating is saved in the stack memory (the stack memory and the save configuration to the stack memory are not shown). As a result, branching to the address data 242 (interrupt processing start address) corresponding to the interrupt request signal 230 is executed.

【0015】続いて、プログラムメモリ200の番地デ
ータ242で示される番地に格納されている命令、すな
わち割り込み要求により実行したいプログラムの先頭番
地へ分岐させるための分岐命令が実行(すなわち、デコ
ーダ280による分岐命令の解読等)されて、ようや
く、割り込み要求に応じたプログラムの実行が開始され
る。
Then, the instruction stored in the address indicated by the address data 242 of the program memory 200, that is, the branch instruction for branching to the head address of the program to be executed by the interrupt request is executed (that is, the branch by the decoder 280). Finally, the execution of the program in response to the interrupt request is started.

【0016】[0016]

【発明が解決しようとする課題】しかしながら、上記の
ような構成で割り込み処理を行なう場合、割り込み要求
入力後、割り込みベクタへの分岐、割り込み要求により
実行したいプログラムへの分岐、という2回の分岐を経
てようやく割り込み処理を開始することになる。すなわ
ち、この本来の割り込み処理とは無関係な2回の分岐動
作のため、高速な割り込み応答ができないという問題点
を有していた。
However, in the case of performing the interrupt processing with the above-described configuration, after the interrupt request is input, the branch to the interrupt vector and the branch to the program to be executed by the interrupt request are performed twice. Eventually, the interrupt processing will start. That is, there is a problem in that a high-speed interrupt response cannot be performed because the branch operation is performed twice regardless of the original interrupt processing.

【0017】本発明は、従来の割り込み処理装置の課題
を考慮し、割り込み要求入力後、1回の分岐動作で割り
込み要求に対応したプログラムが実行できるという割り
込み処理装置及び方法を提供することを目的とする。
In view of the problems of the conventional interrupt processing device, the present invention aims to provide an interrupt processing device and method capable of executing a program corresponding to an interrupt request by one branch operation after inputting an interrupt request. And

【0018】[0018]

【課題を解決するための手段】請求項1の発明は、各種
プログラムを格納するプログラムメモリと、それらプロ
グラムの前記プログラムメモリにおける格納番地を記憶
するデータメモリと、複数の割り込み要求と前記データ
メモリにおける前記格納番地が記憶されている記憶番地
を対応づけたテーブルと、前記割り込み要求を受け、そ
の要求に対応するプログラムの前記記憶番地を、前記テ
ーブルを参照して、認識し、前記データメモリにおける
前記記憶番地に記憶されている前記プログラムの格納番
地を読み取る割り込み制御手段と、その読み取られた格
納番地を保持するプログラムカウンタとを備えた割り込
み処理装置である。
According to a first aspect of the present invention, there are provided a program memory for storing various programs, a data memory for storing storage addresses of the programs in the program memory, a plurality of interrupt requests and the data memory. A table in which the storage address is associated with a storage address is stored, and the interrupt request is received, the storage address of the program corresponding to the request is recognized by referring to the table, and the data in the data memory is stored. It is an interrupt processing device provided with an interrupt control means for reading a storage address of the program stored in a storage address and a program counter for holding the read storage address.

【0019】又、請求項2の発明は、各種プログラムを
プログラムメモリに格納するステップと、それらプログ
ラムの前記プログラムメモリにおける格納番地をデータ
メモリに記憶するステップと、複数の割り込み要求と前
記データメモリにおける前記格納番地が記憶されている
記憶番地をテーブルとして対応づけるステップと、前記
割り込み要求を受け、その要求に対応するプログラムの
前記記憶番地を、前記テーブルを参照して、認識し、前
記データメモリにおける前記記憶番地に記憶されている
前記プログラムの格納番地を読み取るステップとを備え
た割り込み処理方法である。
The invention of claim 2 stores various programs in a program memory, stores storage addresses of the programs in the program memory in a data memory, a plurality of interrupt requests and the data memory. A step of associating a storage address in which the storage address is stored as a table, receiving the interrupt request, recognizing the storage address of the program corresponding to the request by referring to the table, and storing the data in the data memory. And a step of reading a storage address of the program stored in the storage address.

【0020】[0020]

【作用】請求項1の発明では、プログラムメモリは、各
種プログラムを格納し、データメモリは、それらプログ
ラムの前記プログラムメモリにおける格納番地を記憶
し、テーブルは、複数の割り込み要求とデータメモリに
おける前記格納番地が記憶されている記憶番地を対応づ
ける。
According to the invention of claim 1, the program memory stores various programs, the data memory stores storage addresses of the programs in the program memory, and the table stores a plurality of interrupt requests and the storage in the data memory. The memory address in which the address is stored is associated.

【0021】割り込み制御手段は、割り込み要求を受
け、その要求に対応するプログラムの前記記憶番地を、
前記テーブルを参照して、認識し、前記データメモリに
おける前記記憶番地に記憶されている前記プログラムの
格納番地を読み取り、プログラムカウンタは、その読み
取られた格納番地を保持する。
The interrupt control means receives an interrupt request, and stores the storage address of the program corresponding to the request,
The table is referred to for recognition, the storage address of the program stored in the storage address in the data memory is read, and the program counter holds the read storage address.

【0022】請求項2の発明では、例えば、各種プログ
ラムをプログラムメモリに予め格納し、それらプログラ
ムの前記プログラムメモリにおける格納番地をデータメ
モリに予め記憶し、複数の割り込み要求と前記データメ
モリにおける前記格納番地が記憶されている記憶番地を
テーブルとして予め対応づけ、割り込み要求を受け、そ
の要求に対応するプログラムの前記記憶番地を、前記テ
ーブルを参照して、認識し、前記データメモリにおける
その記憶番地に記憶されている前記プログラムの格納番
地を読み取る。これにより割り込み要求に対応したプロ
グラムの実行開始までの分岐動作を1回にすることがで
きる。
According to a second aspect of the present invention, for example, various programs are stored in a program memory in advance, storage addresses of the programs in the program memory are stored in a data memory in advance, and a plurality of interrupt requests and the storage in the data memory are stored. The storage addresses storing the addresses are associated in advance as a table, an interrupt request is received, the storage address of the program corresponding to the request is recognized by referring to the table, and the address is stored in the data memory. The stored address of the stored program is read. As a result, the branch operation until the execution of the program corresponding to the interrupt request can be performed once.

【0023】[0023]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0024】図1は本発明に係る一実施例の割り込み処
理装置の構成を示す構成図である。
FIG. 1 is a block diagram showing the configuration of an interrupt processing device according to an embodiment of the present invention.

【0025】ここで、従来の構成との主な相違点は、割
り込み要求により実行したいプログラムのプログラムメ
モリ100における先頭番地が記憶されているデータメ
モリ120を備え、割り込み要求を受理するとそれに対
応したプログラムの先頭番地を直接、プログラムカウン
タ110に送るようにしたことである。
Here, the main difference from the conventional configuration is that the data memory 120 in which the start address of the program memory 100 of the program to be executed by the interrupt request is stored is stored, and the program corresponding to the interrupt request is accepted. That is, the leading address of the is directly sent to the program counter 110.

【0026】図1において、プログラムメモリ100
は、割り込み要求により実行を開始するプログラムを格
納するための記憶手段であり、プログラムカウンタ11
0は、プログラムメモリ100にアクセス番地(プログ
ラムの先頭番地121等)を出力するためのものであ
り、データメモリ120は、プログラムメモリ100に
格納された割り込み要求により実行したいプログラムの
プログラムメモリ100における先頭番地121(本発
明の格納番地に相当)を記憶するための記憶手段であ
り、割り込み制御回路140は、割り込み要求130
と、実行を開始することが予め定められている所定のプ
ログラムのプログラムメモリ100における先頭番地1
21が記憶されているところのデータメモリ120にお
ける記憶番地143を対応づけたテーブル(図示省略)
を有している。
In FIG. 1, the program memory 100
Is a storage means for storing a program that starts execution in response to an interrupt request.
0 is for outputting the access address (the program start address 121, etc.) to the program memory 100, and the data memory 120 is the start of the program memory 100 of the program to be executed by the interrupt request stored in the program memory 100. The interrupt control circuit 140 is a storage unit for storing the address 121 (corresponding to the storage address of the present invention).
And the first address 1 in the program memory 100 of a predetermined program whose execution is predetermined.
A table (not shown) associating the storage address 143 in the data memory 120 where 21 is stored.
have.

【0027】これにより、割り込み制御回路140は、
割り込み命令130を受理すると、上記テーブルの内容
を参照して、割り込み要求に応じて、実行を開始するこ
とが予め定められている所定のプログラムに対応した記
憶番地143を認識してデータメモリ120に出力し、
後述のデコーダ180に割り込み命令145と制御信号
146を出力する。
As a result, the interrupt control circuit 140 is
When the interrupt instruction 130 is received, the contents of the above table are referred to, and in response to the interrupt request, the storage address 143 corresponding to a predetermined program whose execution is predetermined is recognized and the data memory 120 is recognized. Output,
An interrupt instruction 145 and a control signal 146 are output to a decoder 180 described later.

【0028】データバス150は、データメモリ120
から出力されるデータ(プログラムの先頭番地121)
をプログラムカウンタ110に出力するためのものであ
り、デコーダ180は、プログラムメモリ100から出
力される命令105又は、割り込み制御回路140が出
力する割り込み命令145を、割り込み制御回路140
が出力する制御信号146に従って解読するためのデコ
ーダである。
The data bus 150 is the data memory 120.
Data output from the program (start address 121 of the program)
Is output to the program counter 110, and the decoder 180 outputs the instruction 105 output from the program memory 100 or the interrupt instruction 145 output from the interrupt control circuit 140 to the interrupt control circuit 140.
Is a decoder for decoding according to the control signal 146 output by the.

【0029】又、プログラムカウンタ制御信号181
は、プログラムカウンタ110にデータバス150のデ
ータを書き込むことを指示するための制御用の信号であ
り、データメモリ制御信号183は、データメモリ12
0のアクセスを制御するための制御用の信号である。こ
こで、本発明の割り込み制御手段は、割り込み制御回路
140に含まれる。
Further, the program counter control signal 181
Is a control signal for instructing to write the data of the data bus 150 to the program counter 110, and the data memory control signal 183 is the data memory 12
This is a control signal for controlling 0 access. Here, the interrupt control means of the present invention is included in the interrupt control circuit 140.

【0030】以上のように構成された本実施例の割り込
み処理装置において、割り込み要求入力からその割り込
み要求に対応するプログラムの実行開始までの動作を述
べながら本発明の割り込み処理方法の一実施例を、図1
を用いて説明する。
In the interrupt processing device of the present embodiment configured as described above, one embodiment of the interrupt processing method of the present invention is described while describing the operation from the input of an interrupt request to the start of execution of the program corresponding to the interrupt request. , Figure 1
Will be explained.

【0031】まず、割り込み要求信号130が、割り込
み制御回路140に入力される。
First, the interrupt request signal 130 is input to the interrupt control circuit 140.

【0032】割り込み制御回路140は、上記テーブル
を参照して割り込み要求の種類により予め決められた記
憶番地143をデータメモリ120に出力する。
The interrupt control circuit 140 outputs to the data memory 120 a storage address 143 determined in advance according to the type of interrupt request with reference to the above table.

【0033】例えば、割り込み制御回路140は、割り
込み要求信号130が、割り込み「A」を示せば、記憶
番地143として「0」、割り込み「B」を示せば、記
憶番地143として「1」を出力する。このように、割
り込み要求の種類により記憶番地143を対応づけられ
たテーブルがある。
For example, the interrupt control circuit 140 outputs "0" as the memory address 143 if the interrupt request signal 130 indicates the interrupt "A", and outputs "1" as the memory address 143 if the interrupt request signal 130 indicates the interrupt "B". To do. As described above, there is a table in which the storage address 143 is associated with the type of interrupt request.

【0034】データメモリ120には、上述したように
予め、プログラムメモリ100に格納され割り込み要求
信号130により実行したいプログラムの先頭番地12
1を設定しておく。
In the data memory 120, as described above, the head address 12 of the program which is stored in the program memory 100 in advance and is to be executed by the interrupt request signal 130.
Set 1 in advance.

【0035】例えば、割り込み「A」については、デー
タメモリ120の「0」番地にプログラム「A」のプロ
グラムメモリ100における先頭番地を、又割り込み
「B」については、データメモリ120の「1」番地に
プログラム「B」のプログラムメモリ100における先
頭番地を設定しておく。
For example, for the interrupt “A”, the start address of the program “A” in the program memory 100 is assigned to the address “0” of the data memory 120, and for the interrupt “B”, the address “1” of the data memory 120 is assigned. The leading address of the program "B" in the program memory 100 is set in the.

【0036】同時に、割り込み制御回路140は、割り
込み命令145をデコーダ180に出力し、制御信号1
46をアクティブにする。
At the same time, the interrupt control circuit 140 outputs the interrupt instruction 145 to the decoder 180, and the control signal 1
Activate 46.

【0037】デコーダ180は、制御信号146がアク
ティブでない場合、すなわち割り込み処理を行なわない
場合は命令105をデコードする。制御信号146がア
クティブであれば、割り込み命令145をデコードし、
割り込み処理に伴う制御を行なう。すなわち、制御信号
183をアクティブにすることで、データメモリ120
の記憶番地143で示される番地のデータ(プログラム
の先頭番地121)をデータバス150に出力し、さら
に、制御信号181をアクティブにすることで、プログ
ラムカウンタ110にデータバス150のデータ(プロ
グラムの先頭番地121)を書き込み、又、更新前のプ
ログラムカウンタ110の値をスタックメモリに退避す
る(スタックメモリ、及びスタックメモリへの退避構成
については図示しない)。これにより、割り込み要求信
号130に対応するプログラムの先頭番地121への分
岐が実行される。
Decoder 180 decodes instruction 105 when control signal 146 is not active, that is, when interrupt processing is not performed. If the control signal 146 is active, decode the interrupt instruction 145,
Performs control associated with interrupt processing. That is, by activating the control signal 183, the data memory 120
The data of the address indicated by the memory address 143 (the head address 121 of the program) is output to the data bus 150, and the control signal 181 is activated to cause the program counter 110 to output the data of the data bus 150 (the head of the program). The address 121) is written, and the value of the program counter 110 before updating is saved in the stack memory (the stack memory and the saving configuration in the stack memory are not shown). As a result, the branch to the head address 121 of the program corresponding to the interrupt request signal 130 is executed.

【0038】従って、割り込み要求入力後、1回の分岐
動作でその割り込み要求に対応したプログラムが実行で
きる。
Therefore, after inputting the interrupt request, the program corresponding to the interrupt request can be executed by one branch operation.

【0039】又、DSPにおいては、プログラムメモリ
とデータメモリを別に持つ構成が一般的であるので、上
記効果を実現するために追加するハードウェアはわずか
である。
Further, since the DSP generally has a program memory and a data memory separately, only a small amount of hardware is added to realize the above effect.

【0040】尚、上記実施例では、データメモリ120
の出力データをデータバス150を介してプログラムカ
ウンタ110に入力する場合について説明したが、これ
に限らず、データメモリに予め格納した番地データ、す
なわち割り込み要求により実行を開始するプログラムの
プログラムメモリにおける先頭番地を読みだしてプログ
ラムカウンタに書き込むことさえできれば、データバス
等の使用の有無は問わない。
In the above embodiment, the data memory 120 is used.
Although the output data of the above is input to the program counter 110 via the data bus 150, the present invention is not limited to this, and the address data stored in advance in the data memory, that is, the head of the program memory of the program to be executed by an interrupt request Whether the data bus or the like is used does not matter as long as the address can be read and written in the program counter.

【0041】又、本発明のプログラムのプログラムメモ
リにおける格納番地は、上記実施例では、プログラムの
プログラムメモリ100における先頭番地として説明し
たがこれに限らず、例えばそのプログラムが格納されて
いる途中の番地あるいは後端の番地等、要するにそのプ
ログラムの実行が開始出来さえすればどのような番地で
あってもよい。
Further, although the storage address of the program of the present invention in the program memory has been described as the head address in the program memory 100 of the program in the above embodiment, the present invention is not limited to this. For example, the address in the middle of storing the program. Alternatively, any address such as a rear end address may be used as long as the execution of the program can be started.

【0042】又、上記実施例における各構成要素は、特
有のハード回路を用いて実現されるが、必ずしもそれに
限らず、各構成要素をソフトウェア的に実現してももち
ろんよい。
Further, although each constituent element in the above embodiment is realized by using a specific hardware circuit, it is not necessarily limited to this, and each constituent element may be realized by software.

【0043】[0043]

【発明の効果】以上述べたことから明らかなように、本
発明は、割り込み要求入力後、1回の分岐動作で割り込
み要求に対応したプログラムが実行できるという長所を
有する。
As is apparent from the above description, the present invention has an advantage that a program corresponding to an interrupt request can be executed by one branch operation after inputting an interrupt request.

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

【図1】本発明に係る一実施例の割り込み処理装置の構
成図
FIG. 1 is a configuration diagram of an interrupt processing device according to an embodiment of the present invention.

【図2】従来の割り込み処理装置の構成図FIG. 2 is a block diagram of a conventional interrupt processing device.

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

100 プログラムメモリ 105 命令 110 プログラムカウンタ 120 データメモリ 121 先頭番地 130 割り込み要求信号 140 割り込み制御回路 143 記憶番地(アクセス番地) 145 割り込み命令 146 制御信号 181 プログラムカウンタ制御信号 183 データメモリ制御信号 150 データバス 180 デコーダ 100 program memory 105 instruction 110 program counter 120 data memory 121 start address 130 interrupt request signal 140 interrupt control circuit 143 storage address (access address) 145 interrupt instruction 146 control signal 181 program counter control signal 183 data memory control signal 150 data bus 180 decoder

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 各種プログラムを格納するプログラムメ
モリと、 それらプログラムの前記プログラムメモリにおける格納
番地を記憶するデータメモリと、 複数の割り込み要求と前記データメモリにおける前記格
納番地が記憶されている記憶番地を対応づけたテーブル
と、 前記割り込み要求を受け、その要求に対応するプログラ
ムの前記記憶番地を、前記テーブルを参照して、認識
し、前記データメモリにおける前記記憶番地に記憶され
ている前記プログラムの格納番地を読み取る割り込み制
御手段と、 その読み取られた格納番地を保持するプログラムカウン
タとを備えたことを特徴とする割り込み処理装置。
1. A program memory for storing various programs, a data memory for storing storage addresses of the programs in the program memory, and a storage address for storing a plurality of interrupt requests and the storage address in the data memory. A table associated with the interrupt request is received, the storage address of the program corresponding to the request is recognized by referring to the table, and the program stored in the storage address in the data memory is stored. An interrupt processing device comprising: an interrupt control means for reading an address; and a program counter for holding the read storage address.
【請求項2】 各種プログラムをプログラムメモリに格
納するステップと、 それらプログラムの前記プログラムメモリにおける格納
番地をデータメモリに記憶するステップと、 複数の割り込み要求と前記データメモリにおける前記格
納番地が記憶されている記憶番地をテーブルとして対応
づけるステップと、 前記割り込み要求を受け、その要求に対応するプログラ
ムの前記記憶番地を、前記テーブルを参照して、認識
し、前記データメモリにおける前記記憶番地に記憶され
ている前記プログラムの格納番地を読み取るステップと
を備えたことを特徴とする割り込み処理方法。
2. A method of storing various programs in a program memory, a step of storing storage addresses of the programs in the program memory in a data memory, a plurality of interrupt requests and the storage addresses of the data memory being stored. A step of associating the stored memory addresses as a table, receiving the interrupt request, recognizing the memory address of the program corresponding to the request by referring to the table, and storing the memory address in the memory address in the data memory. And a step of reading the storage address of the stored program.
JP1684994A 1994-02-10 1994-02-10 Device and method for interrupt processing Pending JPH07225691A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1684994A JPH07225691A (en) 1994-02-10 1994-02-10 Device and method for interrupt processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1684994A JPH07225691A (en) 1994-02-10 1994-02-10 Device and method for interrupt processing

Publications (1)

Publication Number Publication Date
JPH07225691A true JPH07225691A (en) 1995-08-22

Family

ID=11927668

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1684994A Pending JPH07225691A (en) 1994-02-10 1994-02-10 Device and method for interrupt processing

Country Status (1)

Country Link
JP (1) JPH07225691A (en)

Similar Documents

Publication Publication Date Title
US20040064606A1 (en) Memory system allowing fast operation of processor while using flash memory incapable of random access
JP3970609B2 (en) Processor system
JPH07225691A (en) Device and method for interrupt processing
JPH056281A (en) Information processor
JPH09160786A (en) Microprocessor
JP2847863B2 (en) Microprocessor interrupt control method
JPH05334074A (en) Microprocessor
JP2000010908A (en) Dma controller
JPS60142450A (en) memory system
JPH0683639A (en) Register device
JPH07152630A (en) Digital signal processor
JPH0347536B2 (en)
JPS61183764A (en) Direct memory access controlling system
JPH05298249A (en) Io device control system for information processor
JPH01283635A (en) Buffer control circuit
JPH1091431A (en) Data processor
JP2000076078A (en) Microcomputer
JPH08166882A (en) Address space management system
JPS63120340A (en) Data processor
JPS5990159A (en) Multi-cpu starting system
JPH1063526A (en) Memory device
JPH10134013A (en) Multi-cpu system
JPH11176165A (en) Sequential-access semiconductor memory device
JPS62248043A (en) Memory switching circuit for fetching microcomputer instruction
JPH01229332A (en) Information processor