JPH01276241A - Multiple interrupting device - Google Patents

Multiple interrupting device

Info

Publication number
JPH01276241A
JPH01276241A JP10574288A JP10574288A JPH01276241A JP H01276241 A JPH01276241 A JP H01276241A JP 10574288 A JP10574288 A JP 10574288A JP 10574288 A JP10574288 A JP 10574288A JP H01276241 A JPH01276241 A JP H01276241A
Authority
JP
Japan
Prior art keywords
priority
cpu
interrupt
interruption
peripheral device
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
JP10574288A
Other languages
Japanese (ja)
Inventor
Hiroshi Kubo
博 久保
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP10574288A priority Critical patent/JPH01276241A/en
Publication of JPH01276241A publication Critical patent/JPH01276241A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify a system by providing a peripheral device to generate an interruption requesting signal when the priority of its own is made higher than the priority of an interruption priority register and to activate a data bus corresponding to the priority of its own in an interruption response cycle. CONSTITUTION:When the rewrite of a priority register 7 in a CPU 1 is executed, the CPU priority registers of peripheral devices 21-23 are rewritten, and the peripheral device whose priority is higher than the priority of the CPU 1 generates the interruption requesting signal, respectively. Next, then the CPU 1 goes into the interruption response cycle, the peripheral devices 21-23 activate the data bus (1 bit) corresponding to the priorities of their own. The CPU 1 executes the interruption processing of the peripheral device having the highest priority, and the peripheral device stops the generation of the interruption requesting signal. Thereafter, in the same way as above, the interruption processing of the peripheral device having the priority higher than that of the CPU 1 is successively executed. Thus, an interruption requesting signal line can be composed of 1 line.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明はコンピュータ/ステムにおける多重割り込み装
置に関する。
DETAILED DESCRIPTION OF THE INVENTION <Field of Industrial Application> The present invention relates to a multiple interrupt device in a computer/system.

〈従来の技術〉 従来のコンピュータシステムにおける優先度を持った多
重側シ込み方式を第2図を用いて説明する。CPUIと
周辺装置24.25126の間に各割り込み優先度信号
44+ 45+ 4sに対応した割シ込み要求信号線t
4 + z5+ t6を接続し、CPUIを、複数の割
り込みが同時に発生した際に割り込み可能な割り込みの
うち最も高い優先度の割り込み?受は付けるように構成
する。
<Prior Art> A multi-side input method with priority in a conventional computer system will be explained with reference to FIG. An interrupt request signal line t corresponding to each interrupt priority signal 44+45+4s is connected between the CPUI and the peripheral device 24.25126.
Connect 4 + z5 + t6 and select the highest priority interrupt among the interrupts that can be interrupted when multiple interrupts occur at the same time. Configure the receiver so that it is attached.

〈発明が解決しようとする問題点〉 従来技術では、上記のように、各優先度に対応した割り
込み要求信号線を必要とする欠点があり、CPUと周辺
の装置の接続が煩雑になるという問題がある。
<Problems to be Solved by the Invention> As mentioned above, the conventional technology has the drawback of requiring interrupt request signal lines corresponding to each priority level, which makes the connection between the CPU and peripheral devices complicated. There is.

く問題点を解決するための手段〉 CPUが割り込み可能な優先度を保持する割り込み優先
度レジスタをCPUに備え、そのレジスタ1cPUが書
き換える度に同じ内容に更新されるCPU割り込み優先
度レジスタを有し、その優先度より、予め設定された自
身優先度が高くなった時点で、割り込み要求信号を発生
し、割り込み応答サイクルにおいて自身の優先度に対応
したデータバス(1ビツト)を活性化する周辺装置とを
備えて多重割り込み装置を構成する。
Measures to Solve Problems〉 The CPU is equipped with an interrupt priority register that holds the priority level at which the CPU can interrupt, and has a CPU interrupt priority register that is updated to the same content every time the register 1cPU is rewritten. , a peripheral device that generates an interrupt request signal when a preset own priority becomes higher than that priority, and activates a data bus (1 bit) corresponding to its own priority in the interrupt response cycle. constitutes a multiple interrupt device.

く作 用〉 上記構成による動作と作用を以下に示す。For Kusaku The operation and effects of the above configuration are shown below.

CPU内の優先度レジスタの書き換えが行われると、周
辺装置のCPU優先度レジスタが書き換えられ、優先度
がCPUの優先度より高くなった周辺装置は、各々割り
込み要求信号を発生する。
When the priority register in the CPU is rewritten, the CPU priority registers of peripheral devices are rewritten, and each peripheral device whose priority has become higher than that of the CPU generates an interrupt request signal.

次にCPUが割り込み応答サイクルに入ると、周辺装置
は自体の優先度に対応したデータバス(1ビツト)を活
性化する。CPUは最も高い優先度を持つ周辺装置の割
り込み処理を行い、その周辺装置は割シ込み要求信号の
発生を停止する。以下同様にCPUより優先度の高い周
辺装置の割シ込み処理を順次行う。
Next, when the CPU enters an interrupt response cycle, the peripheral device activates the data bus (1 bit) corresponding to its own priority. The CPU processes the interrupt for the peripheral device with the highest priority, and that peripheral device stops generating interrupt request signals. Thereafter, interrupt processing for peripheral devices having higher priority than the CPU is sequentially performed in the same manner.

よって、本発明は従来のようにCPUを割り込み可能な
割り込みのうち、最も旨い優先度の割り込みを受は付け
る様に構成しないですみ、割り込み要求信号線を1本で
構成できる。
Therefore, the present invention does not need to be configured to accept the interrupt with the highest priority among the interrupts that can interrupt the CPU, as is the case in the past, and can be configured with a single interrupt request signal line.

〈実施例〉 以下、本発明の一実施例について、図を用いて説明する
<Example> An example of the present invention will be described below with reference to the drawings.

第1図はCPUIと3つの周辺装置21,2□、23と
の接続関係を示す。
FIG. 1 shows the connection relationship between the CPUI and three peripheral devices 21, 2□, and 23.

CPUIと3つの周辺装置21 + 22 + 23は
、それぞれデータバス3(8本〕と割9込み要求信号線
t(ワイヤードOR)、割り込み応答信号線5および優
先度レジスタ書き込み信号Ifs6により並列に接続さ
れる。
The CPU and the three peripheral devices 21 + 22 + 23 are connected in parallel by a data bus 3 (8 lines), an interrupt request signal line t (wired OR), an interrupt response signal line 5, and a priority register write signal Ifs6. be done.

上記CPUIは、該CPUが割り込み可能な優先度を保
持する割り込み優先度レジスタが設けられ、またCPU
Iが上記割り込み優先度レジスタを書き換える度に同じ
内容に更新されるCPU割り込み優先度レジスタが設け
られている。上記周辺装置21〜23は、CPU割り込
み優先度レジスタの優先度より予め設定された自身の優
先度が高くなった時点で割り込み要求信号を発生する。
The CPUI is provided with an interrupt priority register that holds the priority level at which the CPU can interrupt, and
A CPU interrupt priority register is provided which is updated to the same contents each time I rewrites the interrupt priority register. The peripheral devices 21 to 23 generate an interrupt request signal when their own preset priority becomes higher than the priority of the CPU interrupt priority register.

また割り込み応答サイクルにおいて、周辺装置21〜2
3の優先度に対応したデータバス(1ビツト)を活性す
る機能を備える0 ここで各々の周辺装置21〜23の優先度を1゜2.3
(3が上位)とする。例えばCPUIの優先度が3以上
の場合はどの周辺装置も割り込み要求信号を発生しない
。CPUIの優先度が1に書き換えられると、周辺装置
21+ 2z 、23は優先度レジスタ書き込み信号線
6からデータバス上の優先度lを周辺装置2+ + 2
2123内に取り込み、CPUIより優先度の高い周辺
装置22と23が割り込み要求信号42と43を発生す
る0そしてCPU1が割り込み応答サイクルに入ると、
周辺装置22はデータバス3のピッート2を、周辺装置
23 はデータバス3のビット3を活性化する0この場
合周辺装置22に比べ周辺装置23の方が優先度が高い
ので、CPUIは周辺装置23の割り込み処理を行い、
周辺装置23は割り込み要求信号43を停止する。以下
、同様に、CPUより優先度の高い周辺装置の割り込み
処理を順次行う。
Also, in the interrupt response cycle, the peripheral devices 21 to 2
It has a function to activate the data bus (1 bit) corresponding to the priority of 3.Here, the priority of each peripheral device 21 to 23 is set to 1.2.3.
(3 is the top). For example, if the CPUI priority is 3 or higher, no peripheral device generates an interrupt request signal. When the CPUI priority is rewritten to 1, the peripheral devices 21+ 2z and 23 transfer the priority 1 on the data bus from the priority register write signal line 6 to the peripheral device 2+ + 2.
2123, peripheral devices 22 and 23 with higher priority than the CPU generate interrupt request signals 42 and 43. Then, when CPU 1 enters the interrupt response cycle,
Peripheral device 22 activates pit 2 of data bus 3, and peripheral device 23 activates bit 3 of data bus 3. In this case, peripheral device 23 has a higher priority than peripheral device 22, so the CPU Performs 23 interrupt processing,
The peripheral device 23 stops the interrupt request signal 43. Thereafter, similarly, interrupt processing for peripheral devices having higher priority than the CPU is sequentially performed.

〈発明の効果〉 上記の如く、割り込み要求信号線tを1本で多重割り込
み方式を構成できるので、システムが簡単になる。
<Effects of the Invention> As described above, since a multiple interrupt system can be configured with one interrupt request signal line t, the system becomes simpler.

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

第1図は本発明の一実施例を示すブロック図、第2図は
従来の技術による一実施例である。 I  CPU   2+〜26  周辺装置  41〜
46  割り込み要求信号  3 データノくス5 割
り込み応答信号線  6  CPU優先度レジスタ書き
込み信号線  7 割り込み優先度レジスタ
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG. 2 is a block diagram showing an embodiment according to the conventional technology. I CPU 2+~26 Peripheral device 41~
46 Interrupt request signal 3 Data node 5 Interrupt response signal line 6 CPU priority register write signal line 7 Interrupt priority register

Claims (1)

【特許請求の範囲】 1、CPU、周辺装置、データバス、割ク込み要求信号
線、割り込み応答信号線からなるコンピュータシステム
において、 割り込み可能な優先度を保持する割り込み優先度レジス
タを有するCPUと、 該CPUが上記割り込み優先度レジスタを書き換える度
に同じ内容に更新されるCPU優先度レジスタと、 上記割り込み優先度レジスタの優先度より自身の優先度
が高くなった時点で割り込み要求信号を発生し、割り込
み応答サイクルにおいて自身の優先度に対応するデータ
バスを活性化する周辺装置とからなる多重割り込み装置
[Claims] 1. A computer system comprising a CPU, peripheral devices, a data bus, an interrupt request signal line, and an interrupt response signal line, comprising: a CPU having an interrupt priority register that holds priorities for interrupts; a CPU priority register that is updated to the same content each time the CPU rewrites the interrupt priority register; and a CPU priority register that generates an interrupt request signal when its own priority becomes higher than the priority of the interrupt priority register. A multiple interrupt device consisting of a peripheral device that activates a data bus corresponding to its own priority in an interrupt response cycle.
JP10574288A 1988-04-27 1988-04-27 Multiple interrupting device Pending JPH01276241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10574288A JPH01276241A (en) 1988-04-27 1988-04-27 Multiple interrupting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10574288A JPH01276241A (en) 1988-04-27 1988-04-27 Multiple interrupting device

Publications (1)

Publication Number Publication Date
JPH01276241A true JPH01276241A (en) 1989-11-06

Family

ID=14415718

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10574288A Pending JPH01276241A (en) 1988-04-27 1988-04-27 Multiple interrupting device

Country Status (1)

Country Link
JP (1) JPH01276241A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04217057A (en) * 1990-12-18 1992-08-07 Nec Ic Microcomput Syst Ltd Interruption controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04217057A (en) * 1990-12-18 1992-08-07 Nec Ic Microcomput Syst Ltd Interruption controller

Similar Documents

Publication Publication Date Title
JPS62243058A (en) Control method of interruption for multi-processor system
JPH01305460A (en) Inter-processor communication system
JPH01276241A (en) Multiple interrupting device
JPH02230356A (en) Bus extension device for information processor
JPS6239792B2 (en)
JP2566139B2 (en) Bus interface circuit
JPS61269545A (en) Computer system
JPH1011411A (en) Interruption control system
JPH0473167B2 (en)
JPS6350903B2 (en)
JPS61151745A (en) Interruption processing system
JP2821176B2 (en) Information processing device
JP2752921B2 (en) Parallel computer system
JP2847729B2 (en) Information processing device
JPS6049465A (en) Data transfer method between microcomputers
JPH0374751A (en) Input/output controller
JP2000003285A (en) Method for processing interruption and circuit therefor
JPH02171949A (en) Dma transfer system
JPH01305459A (en) Inter-processor communication system
JPH03134783A (en) Single chip microcomputer
JPH05128279A (en) One-chip microcomputer
JPS63300346A (en) Dma control system
JPS6140658A (en) Data processor
JPH03130832A (en) Interruption controller
JPH0746318B2 (en) Microcomputer development support device