JPH0531772B2 - - Google Patents

Info

Publication number
JPH0531772B2
JPH0531772B2 JP59014717A JP1471784A JPH0531772B2 JP H0531772 B2 JPH0531772 B2 JP H0531772B2 JP 59014717 A JP59014717 A JP 59014717A JP 1471784 A JP1471784 A JP 1471784A JP H0531772 B2 JPH0531772 B2 JP H0531772B2
Authority
JP
Japan
Prior art keywords
interrupt
processing
option board
controller
present
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.)
Expired - Lifetime
Application number
JP59014717A
Other languages
Japanese (ja)
Other versions
JPS60159947A (en
Inventor
Yasuo Suzuki
Kazuo Akashi
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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP1471784A priority Critical patent/JPS60159947A/en
Publication of JPS60159947A publication Critical patent/JPS60159947A/en
Publication of JPH0531772B2 publication Critical patent/JPH0531772B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、パーソナルコンピユータ等、比較的
小型の情報処理装置に用いて好適な多重割込み処
理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a multiple interrupt processing method suitable for use in relatively small-sized information processing devices such as personal computers.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

パーソナルコンピユータ等マイクロプロセツサ
を制御の核とする情報処理装置では、入出力装置
を割込みによつて駆動するものが多い。この割込
みの処理のため、汎用周辺デバイスとして割込み
コントロール用LSIが提供されていることは周知
のとおりである。この汎用周辺デイバイスLSIと
して米国Intel社より製造販売されている8259Aが
有名である。このLSIは、8レベルの割込み要求
(割込みライン)を制御し、マイクロプロセツサ
から発せられる割込み応答信号によりベクタアド
レスとしてCALL命令を自動生成するものであ
る。
In many information processing devices, such as personal computers, whose control core is a microprocessor, input/output devices are driven by interrupts. It is well known that an interrupt control LSI is provided as a general-purpose peripheral device for processing this interrupt. The 8259A manufactured and sold by Intel Corporation in the United States is famous as this general-purpose peripheral device LSI. This LSI controls 8-level interrupt requests (interrupt lines) and automatically generates a CALL instruction as a vector address based on an interrupt response signal issued from a microprocessor.

一方、パーソナルコンピユータでは、ユーザが
オプシヨンボードを用意して組込むことを一般に
許容しており、このため、割込みラインも1ライ
ン開放する場合が多い。
On the other hand, personal computers generally allow the user to prepare and install an option board, and for this reason, one interrupt line is often left open.

ところで、割込みコントローラの割込み入力ラ
インがFULLのときには、第1図に示す様に、例
えばフロツピーデイスクコントローラ(FDC)
の割込みラインとユーザ個有のオプシヨンボード
(OB)からの割込みラインとを共用化して入力
することが通常行なわれている。割込みラインを
共用化することにより、オプシヨンボードには割
込みが発生したことを記憶するフリツプフロツプ
を用意し、第3図に示す手順にて割込み処理が行
なわれる。詳細は後述する。
By the way, when the interrupt input line of the interrupt controller is FULL, as shown in Figure 1, for example, the floppy disk controller (FDC)
It is common practice to share the interrupt line from the user's own option board (OB) with the interrupt line from the user's own option board (OB). By sharing the interrupt line, the option board is provided with a flip-flop for storing the occurrence of an interrupt, and interrupt processing is performed in accordance with the procedure shown in FIG. Details will be described later.

しかしながら、この共用化割込みを行なうこと
により、以下に示す不具合が生じる。即ち、一方
の割込みを処理中、他方の割込みを受けつけたく
ない場合があり、例えば、フロツピーデイスクか
ら主メモリへデータ転送の最中、オプシヨンボー
ドから割込みがあると、そのオプシヨンボードに
対するサービスの分だけフロツピーデイスク側に
してみれば処理時間の損失が生じ、場合によつて
は主メモリに転送されたデータに抜けが生じる事
態も考えられる。
However, by performing this shared interrupt, the following problems occur. In other words, you may not want to accept interrupts from the other while processing one interrupt. For example, if an interrupt is received from an option board while data is being transferred from a floppy disk to main memory, the service for that option board will be interrupted. On the floppy disk side, processing time will be lost, and in some cases, data transferred to the main memory may be missing.

〔発明の目的〕[Purpose of the invention]

本発明は上記欠点に鑑みてなされたものであ
り、非同期に発する割込みの要・不要をメインル
ーチン側にて選択し、排他処理することにより上
記不具合を解消する多重割込み処理方式を提供す
ることを目的とする。
The present invention has been made in view of the above-mentioned drawbacks, and it is an object of the present invention to provide a multiple interrupt processing method that eliminates the above-mentioned drawbacks by selecting on the main routine side whether or not interrupts that occur asynchronously are necessary and performing exclusive processing. purpose.

〔発明の概要〕[Summary of the invention]

本発明は、同一割込みレベルに対し非同期に発
生する少くとも2個の割込み要因を入力し、その
割込みレベルを共有使用する割込み処理装置にお
いて、非同期に発生する割込み要因を優先選択し
排他処理を行なうことにより多重割込み処理を実
現し、上述した不具合を解消したものである。
The present invention inputs at least two interrupt factors that occur asynchronously for the same interrupt level, and in an interrupt processing device that shares the interrupt level, selects the interrupt factor that occurs asynchronously with priority and performs exclusive processing. This realizes multiple interrupt processing and eliminates the above-mentioned problems.

具体的には、割込み要因に優先付けを行ない、
優先される割込み要因の処理ルーチンにて、他の
割込み要因による割込みの処理を禁止し、且つ、
この処理ルーチンによる割込みの処理の後、他の
割込み要因による割込みがセツトがされていたと
きにそのダミー処理を行ない、その割込み要因を
解除することを特徴とするものである。
Specifically, we prioritize interrupt factors,
In the processing routine of the priority interrupt factor, processing of interrupts caused by other interrupt factors is prohibited, and
After processing the interrupt by this processing routine, if an interrupt caused by another interrupt factor has been set, dummy processing is performed for that interrupt factor to cancel the interrupt factor.

〔発明の実施例〕[Embodiments of the invention]

以下、図面を使用して本発明に関し詳細に述べ
る。第2図は本発明が採用されるパーソナルコン
ピユータの構成例を示すブロツク図である。図に
おいて、11は制御の核となるマイクロプロセツ
サ(CPU)、12は主メモリ(MU)、13は割込
みコントローラ(INTC)である。割込みコント
ローラ13は上述したプログラマブルインタラプ
トコントローラintel 8259Aを想定している。又、
14はCRTコントローラ(CRTC)、15はフロ
ツピーデイスクコントローラ(FDC)、16は固
定デイスクコントローラ(FMKC)、17はカー
ボード及びキーボードコントローラ(KBC)、1
8は20ミリ秒毎に割込み信号を発生するプログラ
マブルインタバルタイマ(TIM)、19はRS−
232C通信チヤンネルコントローラ(CCU)、20
はオプシヨンボード(OB)である。これら各モ
ジユールはアドレス・データバス21へ共通接続
される。
Hereinafter, the present invention will be described in detail using the drawings. FIG. 2 is a block diagram showing an example of the configuration of a personal computer to which the present invention is applied. In the figure, 11 is a microprocessor (CPU) which is the core of control, 12 is a main memory (MU), and 13 is an interrupt controller (INTC). The interrupt controller 13 is assumed to be the above-mentioned programmable interrupt controller Intel 8259A. or,
14 is a CRT controller (CRTC), 15 is a floppy disk controller (FDC), 16 is a fixed disk controller (FMKC), 17 is a car board and keyboard controller (KBC), 1
8 is a programmable interval timer (TIM) that generates an interrupt signal every 20 milliseconds, and 19 is an RS-
232C communication channel controller (CCU), 20
is an option board (OB). Each of these modules is commonly connected to an address/data bus 21.

割込み要因となる各モジユール15〜20は割
込みコントローラ13に対し、第1図に示す如く
接続される。この例では、割込みレベル0にフロ
ツピーデイスクコントローラ15とオプシヨンボ
ード20がオアゲート22を介し接続されてい
る。割込みコントローラ13は上述した様に8レ
ベル(0〜7)の割込み要求を制御し、CPU1
1から発せられる割込み応答信号によりベクタア
ドレスとしてCALL命令を自動生成するものであ
り、CPU11に割込み信号を送出することによ
り、所定の割込み処理がなされる。
Each of the modules 15 to 20 serving as an interrupt factor is connected to the interrupt controller 13 as shown in FIG. In this example, a floppy disk controller 15 and an option board 20 are connected to interrupt level 0 via an OR gate 22. The interrupt controller 13 controls interrupt requests of 8 levels (0 to 7) as described above, and controls the interrupt requests of the CPU 1.
A CALL command is automatically generated as a vector address based on an interrupt response signal issued from CPU 11, and a predetermined interrupt process is performed by sending an interrupt signal to CPU 11.

本発明実施例では上述した装置構成に、更に入
力された割込み要因を識別するため、レジスタ又
はフリツプフロツプ(図示せず)が用意され、割
込みの都度、その割込み要因を表示するため適当
なデータあるいは該当フラグがセツトされる。こ
のレジスタもしくはフリツプフロツプは、CPU
11内レジスタあるいは各モジユール内蔵の入出
力レジスタに割付けられてあつても良いため、こ
こではあえて図示しなかつた。本発明実施例で
は、更に第4図にフローチヤートとして示す割込
み処理のためのプログラムが付加される。
In the embodiment of the present invention, a register or flip-flop (not shown) is provided in the device configuration described above to identify the input interrupt factor, and each time an interrupt occurs, appropriate data or a corresponding A flag is set. This register or flip-flop is
It is intentionally not shown here because it may be allocated to the internal registers of 11 or the input/output registers built into each module. In the embodiment of the present invention, a program for interrupt processing shown as a flowchart in FIG. 4 is further added.

以下、第4図に示したフローチヤートに従い本
発明の動作を詳細に説明する。参考のため、従来
例による処理手順を第3図に示した。まず、処理
手順の冒頭、本発明では、オプシヨンボード20
による割込みが禁止されているか否かが調べられ
る。(ステツプ)本発明実施例では、事前にオ
プシヨンボード20から発せられる割込みの受付
けが、優先処理すべきフロツピーデイスク15サ
ービスのためのメインルーチンにより、内蔵する
ソフトウエアフラグをONすることにより禁止さ
れている。従つてこのフラグの内容に従い、フロ
ツピーデイスク15の割込みサービス(ステツプ
、)が起動される。そして、この割込みサー
ビス終了後、上記レジスタもしくはフリツプフロ
ツプにオプシヨンボード20から発せられる割込
みがセツトされていたとき、オプシヨンボード割
込みダミーREADのためのルーチンを起動する。
(ステツプ)このダミールーチンは割込み要因
を解除できるだけの極少ないステツプ数で組むも
のとする。参考のため、第3図に従来例による処
理手順を示した。これと比較してみてわかる様
に、本発明ではステツプ、が付加されてい
る。
Hereinafter, the operation of the present invention will be explained in detail according to the flowchart shown in FIG. For reference, the processing procedure according to the conventional example is shown in FIG. First, at the beginning of the processing procedure, in the present invention, the option board 20
It is checked whether or not interrupts are prohibited. (Step) In the embodiment of the present invention, reception of interrupts issued from the option board 20 is prohibited in advance by turning on a built-in software flag by the main routine for the floppy disk 15 service, which should be processed with priority. ing. Therefore, according to the contents of this flag, the interrupt service (step) of the floppy disk 15 is activated. After this interrupt service is completed, if an interrupt issued from the option board 20 is set in the register or flip-flop, a routine for option board interrupt dummy READ is activated.
(Steps) This dummy routine is constructed with as few steps as possible to cancel the interrupt factor. For reference, FIG. 3 shows a processing procedure according to a conventional example. As can be seen from a comparison with this, steps are added in the present invention.

ところで、オプシヨンボード20を制御するプ
ログラムは上述したフラグ(オプシヨンボード割
込み禁止)がセツトされているか否かを参照する
ことにより、フロツピーデイスク15のデータ処
理が終了するまで待たせる処理方式とすることは
いうまでもない。
By the way, the program that controls the option board 20 has a processing method that waits until data processing on the floppy disk 15 is completed by referring to whether or not the above-mentioned flag (option board interrupt prohibition) is set. Needless to say.

尚、本発明実施例では、2種の多重割込みにつ
いてのみ述べたが、管理する入出力装置が3種以
上になつても同様の方式により充分対処できるも
のである。
In the embodiment of the present invention, only two types of multiple interrupts have been described, but even if there are three or more types of input/output devices to be managed, the same method can be used to adequately handle the case.

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

以上説明の如く本発明によれば、非同期に発生
する割込みの要・不要をメインルーチン側にて選
択し、排他処理することにより、例えば、フロツ
ピーデイスクデータ処理ルーチンの中でオプシヨ
ンボードからの非同期割込みを避けることが出
来、このことによりフロツピーデイスクのデータ
転送中におけるデータ抜け等の障害を解消でき
る。
As explained above, according to the present invention, by selecting on the main routine side whether or not an interrupt that occurs asynchronously is necessary and performing exclusive processing, for example, an asynchronous interrupt from an option board can be generated in a floppy disk data processing routine. Interruptions can be avoided, thereby eliminating problems such as data loss during floppy disk data transfer.

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

第1図は割込みコントローラに対する割込み入
力の接続状態を示す図、第2図は本発明が採用さ
れるパーソナルコンピユータの構成例を示す図、
第3図は従来例による処理手順をフローチヤート
にて示す図、第4図は本発明による処理手順をフ
ローチヤートにて示す図である。 11……マイクロプロセツサ(CPU)、12…
…主メモリ(MU)、13……割込みコントロー
ラ(INTC)、15……フロツピーデイスクコン
トローラ(FDC)、20……オプシヨンボード。
FIG. 1 is a diagram showing a connection state of an interrupt input to an interrupt controller, and FIG. 2 is a diagram showing an example of the configuration of a personal computer to which the present invention is applied.
FIG. 3 is a flowchart showing the processing procedure according to the conventional example, and FIG. 4 is a flowchart showing the processing procedure according to the present invention. 11...Microprocessor (CPU), 12...
...Main memory (MU), 13...Interrupt controller (INTC), 15...Floppy disk controller (FDC), 20...Option board.

Claims (1)

【特許請求の範囲】 1 同一割込みレベルに対し、非同期に発生する
少なくとも2個の割込み要因が入力され、その割
込みレベルを共有使用する割込み処理装置におい
て、 上記割込み要因に基づき発せられる割込みを認
識するために参照される記憶手段と、 上記同一割込みレベルの割込み要因の要/不要
情報をメインルーチンにて設定する手段と、 上記設定手段により不要と設定された割込み要
因による割込みの受付けを禁止する手段と、 上記不要と設定された割込み要因による割込み
が発生したかを上記記憶手段を参照して認識し、
割込みが発生した際にその割込みを解除する手段
と を具備することを特徴とする多重割込み処理方
式。
[Scope of Claims] 1. In an interrupt processing device that receives input of at least two interrupt factors that occur asynchronously for the same interrupt level and that shares the interrupt level, recognizes an interrupt that is issued based on the above-mentioned interrupt factor. means for setting necessary/unnecessary information for interrupt factors of the same interrupt level in the main routine; and means for prohibiting acceptance of interrupts due to interrupt factors set as unnecessary by the above setting means. and recognizes whether an interrupt has occurred due to the interrupt factor set as unnecessary by referring to the storage means, and
A multiple interrupt processing method characterized by comprising means for canceling an interrupt when the interrupt occurs.
JP1471784A 1984-01-30 1984-01-30 Multiplex interruption processing system Granted JPS60159947A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1471784A JPS60159947A (en) 1984-01-30 1984-01-30 Multiplex interruption processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1471784A JPS60159947A (en) 1984-01-30 1984-01-30 Multiplex interruption processing system

Publications (2)

Publication Number Publication Date
JPS60159947A JPS60159947A (en) 1985-08-21
JPH0531772B2 true JPH0531772B2 (en) 1993-05-13

Family

ID=11868890

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1471784A Granted JPS60159947A (en) 1984-01-30 1984-01-30 Multiplex interruption processing system

Country Status (1)

Country Link
JP (1) JPS60159947A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5886644A (en) * 1981-11-18 1983-05-24 Toshiba Corp Interruption processing system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5886644A (en) * 1981-11-18 1983-05-24 Toshiba Corp Interruption processing system

Also Published As

Publication number Publication date
JPS60159947A (en) 1985-08-21

Similar Documents

Publication Publication Date Title
KR960007839B1 (en) Dma controller
JPH02267634A (en) Interrupt system
US4748586A (en) Data processing system with interrupt facilities
JP3284311B2 (en) Communication bus control device and bus control method in data processing system
US7689991B2 (en) Bus management techniques
JPH0531772B2 (en)
JPH0414376B2 (en)
EP0614148A1 (en) Data processing apparatus
JP2765267B2 (en) Direct memory access transfer controller
JP3139310B2 (en) Digital signal processor
JP2501393B2 (en) Direct memory access device
JPH0736820A (en) I/o controller
JPS63293660A (en) Communication controller
JP3452656B2 (en) DMA controller
JPS58182737A (en) Information processor
JP2871171B2 (en) Microcomputer
JP2722908B2 (en) Single chip microcomputer
JPS63300346A (en) Dma control system
JPH0131224B2 (en)
JPS63153635A (en) Specification system for data transfer speed
JPS62190544A (en) Higher link unit for programmable controller
JPH05143510A (en) Pseudo channel device
JPH03122744A (en) Computer system
JPH03158946A (en) Processor system which permits retry control of data transfer
JPS62145345A (en) Control system for direct memory access interval