JPH01292438A - Interruption processor - Google Patents

Interruption processor

Info

Publication number
JPH01292438A
JPH01292438A JP12287688A JP12287688A JPH01292438A JP H01292438 A JPH01292438 A JP H01292438A JP 12287688 A JP12287688 A JP 12287688A JP 12287688 A JP12287688 A JP 12287688A JP H01292438 A JPH01292438 A JP H01292438A
Authority
JP
Japan
Prior art keywords
interruption
interrupt
level
urgency
signal
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
JP12287688A
Other languages
Japanese (ja)
Inventor
Yasunori Kawada
河田 泰紀
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP12287688A priority Critical patent/JPH01292438A/en
Publication of JPH01292438A publication Critical patent/JPH01292438A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To surely attain the execution of interruption within a fixed hour without allowing an interruption signal with the highest interruption level to always monopolize interruption by constituting the title processor so that the interruption level indicating interruption is changed together with time. CONSTITUTION:Until time arrives at t1 after starting the operation of a device, a counter 22 outputs a signal indicating degree of urgency C (C<B<A). When an interruption request signal IRQ is applied during the output of the signal, an interruption level selector 31 outputs an interruption request IRQ5 with level 5. The interruption signal is applied to a microprocessor 1. However, the processor 1 does not receive the interruption request until a fixed time t1 passes. After the passage of the time t1, the counter 22 outputs degree of urgency B. When the processor 1 does not still receive the interruption, the counter 22 outputs a signal indicating degree of urgency A after the passage of a prescribed time and outputs an interruption request signal IRQ7 with the highest interruption level to execute interruption processing.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、割込み機能を持ったマイクロプロセッサ装置
などに適用される割込み処理装置に関し、更に詳しくは
、マイクロプロセッサがどの様な状態でも、一定時間以
内に割込みを確実に処理することが出来るようにした割
込み処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an interrupt processing device applied to a microprocessor device having an interrupt function. The present invention relates to an interrupt processing device that can reliably process interrupts within a certain amount of time.

(従来の技術) リアルタイムに仕事を処理できるようにしたマイクロプ
ロセッサ装置は、リアルタイム処理を実現するなめに、
外部事象の変化を非同期で知ることが出来るように割込
み手段を備えている。この割込み手段は、何本かの割込
み線を持ち、それらの間にそれぞれ優先順位(割込みレ
ベル)が1対1に固定して割り付けられている。
(Prior art) Microprocessor devices that are capable of processing work in real time need to
It is equipped with an interrupt means so that changes in external events can be detected asynchronously. This interrupt means has several interrupt lines, among which priorities (interrupt levels) are fixedly assigned on a one-to-one basis.

(発明が解決しようとする課!!!) ところで、このように構成された従来装置において、例
えば、通信の受信時のように、割込み発生時間間隔が比
較的長く、一定の時間内に確実にデータを受けとらなけ
ればならないような仕事の処理について、その割込みレ
ベルをどのレベルに割り付けるかを決定することは、難
しい、何故ならば、確実にデータを受けとるためには、
割込みレベルを上げればよいが、そのようにすると、他
の割込み処理の効率に影響することとなり、また、割込
みレベルを下げると、一定の時間以内にデータを受は取
ることが出来なくなるという不具合が発生するからであ
る。
(Problem to be solved by the invention!!!) By the way, in the conventional device configured in this way, for example, when receiving a communication, the time interval between interrupt occurrences is relatively long, and it is not possible to reliably interrupt within a certain period of time. When processing work that requires receiving data, it is difficult to decide which interrupt level to assign to it, because in order to reliably receive data,
You can raise the interrupt level, but doing so will affect the efficiency of other interrupt processing, and lowering the interrupt level will cause the problem that data cannot be received or received within a certain amount of time. This is because it occurs.

本発明は、この様な点に鑑みてなされたもので、その目
的は、割込みレベルを時間的な緊急度に応じて変化させ
るようにし、割込み処理を効率的に行える割込み処理装
置を実現することにある。
The present invention has been made in view of these points, and its purpose is to realize an interrupt processing device that can efficiently process interrupts by changing the interrupt level according to the degree of temporal urgency. It is in.

(課題を解決するための手段) 第1図は本発明の基本的な構成ブロック図である0図に
おいて、1は外部からの割込みを受け、リアルタイムに
仕事を処理するマイクロプロセッサ、2は時間に依存し
た緊急度を設定する緊急度設定手段、3はこの緊急度設
定手段2からの緊急度を入力すると共に、割込み信号I
RQを受け、緊急度に応じて予め決められた割込みレベ
ルを決定する割込みレベル選定手段である。
(Means for solving the problem) FIG. 1 is a basic block diagram of the present invention. In FIG. 0, 1 is a microprocessor that receives external interrupts and processes work in real time; Urgency level setting means 3 for setting a dependent level of urgency inputs the level of urgency from this level of urgency setting means 2 and also outputs an interrupt signal I.
This is an interrupt level selection means that receives an RQ and determines a predetermined interrupt level according to the degree of urgency.

(作用) 緊急度設定手段2には、予め例えば、時間の経過と共に
緊急度が上がるように設定されており、割込みレベル選
定手段3は、割込みを受けると緊急度設定手段からの緊
急度に従った割込みレベルでマイクロプロセッサ1に割
込みをかける。
(Function) The urgency level setting means 2 is set in advance so that, for example, the degree of urgency increases with the passage of time, and the interrupt level selection means 3, when receiving an interrupt, selects the level of urgency according to the level of urgency from the urgency setting means. An interrupt is issued to the microprocessor 1 at the interrupt level set.

(実施例) 以下図面を用いて、本発明の実施例を詳細に説明する。(Example) Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は、本発明の一実施例を示す構成ブロック図であ
る0図において、第1図と同じものには同一の符号を付
して示す、マイクロプロセッサ1は例えばMC6800
0あるいはMC68020が用いられている。
FIG. 1 is a block diagram showing an embodiment of the present invention. In FIG. 0, the same components as in FIG. 1 are designated by the same reference numerals.
0 or MC68020 is used.

緊急度設定手段2は、割込みをかけるIloが必要とす
る割込み受付周期と、時間による緊急度とを設定した時
間設定レジスタ21と、時間設定レジスタ21の内容に
よる時間が来るとそこに設定しである緊急度を示す信号
A、B、Cを出力するカウンタ22とで構成されている
The urgency setting means 2 includes a time setting register 21 in which the interrupt acceptance cycle required by Ilo that makes the interrupt and the degree of urgency based on time are set, and when the time according to the contents of the time setting register 21 arrives, the interrupt acceptance period and the urgency level according to time are set. It is composed of a counter 22 that outputs signals A, B, and C indicating a certain degree of urgency.

割込みレベル選定手段3は、外部からの割込み要求信号
IRQを受け、これをどの優先レベルに出力するかを制
御する割込みレベルセレクタ31と、ユーザが割り込み
内容に関するデータを格納したベクターレジスタ32と
、後で述べる割込み確認信イ岑r受け、ベクターレジス
タ32の内容をデータバスBSを介してマイクロプロセ
ッサ1に知らせるコントローラ33とを含んでいる。
The interrupt level selection means 3 includes an interrupt level selector 31 that receives an external interrupt request signal IRQ and controls which priority level the signal is outputted to, a vector register 32 in which the user has stored data related to the interrupt contents, and a rear. It includes a controller 33 that receives the interrupt confirmation signal described in 2 and notifies the microprocessor 1 of the contents of the vector register 32 via the data bus BS.

これらの緊急度設定手段2、割込みレベル選定手段3は
、いずれもデータバスBSを介してマイクロプロセッサ
1に接続されている。
These urgency setting means 2 and interrupt level selection means 3 are both connected to the microprocessor 1 via a data bus BS.

4は割込みコントローラで、図示してない外部のIlo
から、それぞれの優先順位に応じた割込の7段階が用意
されている)を入力し、この割込み要求信号を優先順位
に合わせてエンコードする割込みレベルエンコーダ41
と、マイクロプロセッサ1からの割込み制御線が接続さ
れ、割込み確πア 認信イ11コントローラ33に対して出力し、割込みサ
イクルを制御するIACKサイクルコントローラ42と
で構成されている。
4 is an interrupt controller, which is connected to an external Ilo (not shown).
(7 levels of interrupts are prepared according to their priorities), and an interrupt level encoder 41 encodes this interrupt request signal according to the priority.
and an IACK cycle controller 42 to which an interrupt control line from the microprocessor 1 is connected, outputs an interrupt acknowledgment signal to the controller 33, and controls the interrupt cycle.

この様に構成された装置の動作を次に説明する。The operation of the device configured in this way will be explained next.

第3図は、その動作の一例を示すタイミングチャートで
ある。ここでは割込み受付周期は、tO〜t3時間であ
り、時間による緊急度はtO〜t1の間が5レベル、t
1〜t2の間は6レベル、t2〜t3の間が7レベルに
設定しであるものとする。
FIG. 3 is a timing chart showing an example of the operation. Here, the interrupt acceptance cycle is from tO to t3 hours, and the degree of urgency based on time is 5 levels between tO and t1, and t
It is assumed that 6 levels are set between 1 and t2, and 7 levels are set between t2 and t3.

はじめに装置が動作を開始し、tlに到達するまでは、
カウンタ22は(a)に示すように、緊急度C(緊急度
はC<B<Aとする)を示す信号を出力している。この
間に(d)に示すように割込み要求信号IRQが印加さ
れると、割込みレベルセレクタ31は、(e)に示すよ
うに5レベルの割込み要求信号IRQ5を出力する。こ
の割込み要求信号は、割込みレベルエンコーダ41でエ
ンコードされ、割込み信号IPL2となってマイクロプ
ロセッサ1に印加される。
Initially, the device starts operating and until it reaches tl,
As shown in (a), the counter 22 outputs a signal indicating the degree of urgency C (the degree of urgency is assumed to be C<B<A). During this time, when the interrupt request signal IRQ is applied as shown in (d), the interrupt level selector 31 outputs a 5-level interrupt request signal IRQ5 as shown in (e). This interrupt request signal is encoded by the interrupt level encoder 41 and applied to the microprocessor 1 as an interrupt signal IPL2.

しかしこの間にマイクロプロセッサ1は、この割込み要
求を受は付けず、時間t1が経過する。
However, during this time, the microprocessor 1 does not accept this interrupt request, and time t1 elapses.

そうすると、カウンタ22は、緊急度Bを示す信号を(
b)に示すように出力する1割込みレベルセレクタ31
は、この緊急度Bを示す信号を受けると、今度は(f)
に示すようにそれまでより優先順位の高い、6レベルの
割込み要求信号IRQ6を出力する。
Then, the counter 22 outputs a signal indicating the degree of urgency B (
1 interrupt level selector 31 that outputs as shown in b)
receives this signal indicating the urgency level B, then (f)
As shown in FIG. 3, a 6-level interrupt request signal IRQ6 having a higher priority than before is output.

しかしそれでもマイクロプロセッサ1は、この割込み要
求を受は付けず、時間t2が経過する。
However, the microprocessor 1 still does not accept this interrupt request, and time t2 elapses.

続いて、カウンタ22は、緊急度Aを示す信号を(c)
に示すように出力する1割込みレベルセレクタ31は、
この緊急度Aを示す信号を受けると、最も優先度の高い
7レベルの割込み要求信号IRQ7を、(g)に示すよ
うに出力する。これを受けた割込みレベルエンコーダ4
1は、ノン・マスカブル割込み信号I PLOをマイク
ロプロセッサ1に印加する。マイクロプロセッサ1は、
これによって確実に割込みを受は付け、割込みサイクル
をコントロールし、コントローラ42は確認信号IAC
Kをコントローラ33に(h)に示すように出力する。
Subsequently, the counter 22 outputs a signal indicating the degree of urgency A (c).
1 interrupt level selector 31 outputs as shown in
When receiving the signal indicating the degree of urgency A, the interrupt request signal IRQ7 of the 7th level with the highest priority is output as shown in (g). Interrupt level encoder 4 that received this
1 applies a non-maskable interrupt signal IPLO to the microprocessor 1. Microprocessor 1 is
This ensures that interrupts are accepted, the interrupt cycle is controlled, and the controller 42 receives the acknowledgment signal IAC.
K is output to the controller 33 as shown in (h).

これを受け、コントローラ33は、ベクタレジスタ32
に格納されている割込み内容を示すデータを、データバ
スBSを介してマイクロプロセッサ1に送り、マイクロ
プロセッサ1はその割込みを処理する。カウンタ22は
、その後にコントローラ33から出力されるクリア信号
CLRによって、クリアされる。
In response to this, the controller 33 controls the vector register 32
The data indicating the contents of the interrupt stored in the microprocessor 1 is sent to the microprocessor 1 via the data bus BS, and the microprocessor 1 processes the interrupt. The counter 22 is then cleared by a clear signal CLR output from the controller 33.

(発明の効果) 以上詳細に説明したように、本発明は、割込みレベルが
時間と共に変化するように構成されているもので、マイ
クロプロセッサがどの様な仕事を処理していても、一定
の時間以内には確実に割込みが受は付けられ、しかも常
に高い割込みレベルを専有するものではないので、他の
緊急度の高い割込み処理に対しても影響することはない
(Effects of the Invention) As explained above in detail, the present invention is configured such that the interrupt level changes over time, and no matter what kind of work the microprocessor is processing, the interrupt level remains constant for a certain period of time. Interrupts are reliably accepted within this period, and since the interrupt does not always occupy a high interrupt level, it does not affect other highly urgent interrupt processing.

従って、本発明によれば、割込み処理を効率的に行える
割込み処理装置を提供できる。
Therefore, according to the present invention, it is possible to provide an interrupt processing device that can efficiently process interrupts.

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

第1図は本発明の基本的な構成ブロック図、第2図は本
発明の一実施例を示す構成ブロック図、第3図は動作の
一例を示すタイミングチャートである。 1・・・マイクロプロセッサ 2・・・緊急度設定手段 21・・・レジスタ 22・・・カウンタ 3・・・割込みレベル選定手段 4・・・割込みコントローラ 第 1 図
FIG. 1 is a basic configuration block diagram of the present invention, FIG. 2 is a configuration block diagram showing an embodiment of the present invention, and FIG. 3 is a timing chart showing an example of the operation. 1...Microprocessor 2...Urgency level setting means 21...Register 22...Counter 3...Interrupt level selection means 4...Interrupt controller FIG.

Claims (1)

【特許請求の範囲】 外部からの割込みを受け、リアルタイムに仕事を処理す
る割込み処理装置において、 時間に依存した緊急度を設定する緊急度設定手段と、 この緊急度設定手段からの緊急度を入力すると共に、割
込み信号を受け、前記緊急度に応じて予め決められた割
込みレベルを決定する割込みレベル選定手段 とを設けたことを特徴とする割込み処理装置。
[Claims] An interrupt processing device that processes work in real time in response to an external interrupt, comprising: an urgency setting means for setting a time-dependent degree of urgency; and an input of the urgency from the urgency setting means. An interrupt processing device characterized in that it is further provided with an interrupt level selecting means for receiving an interrupt signal and determining a predetermined interrupt level according to the degree of urgency.
JP12287688A 1988-05-19 1988-05-19 Interruption processor Pending JPH01292438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12287688A JPH01292438A (en) 1988-05-19 1988-05-19 Interruption processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12287688A JPH01292438A (en) 1988-05-19 1988-05-19 Interruption processor

Publications (1)

Publication Number Publication Date
JPH01292438A true JPH01292438A (en) 1989-11-24

Family

ID=14846817

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12287688A Pending JPH01292438A (en) 1988-05-19 1988-05-19 Interruption processor

Country Status (1)

Country Link
JP (1) JPH01292438A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08286956A (en) * 1995-04-12 1996-11-01 Nec Corp Fault logging system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08286956A (en) * 1995-04-12 1996-11-01 Nec Corp Fault logging system

Similar Documents

Publication Publication Date Title
JPH0534699B2 (en)
JPH01292438A (en) Interruption processor
JPS6118292A (en) Interruption control system of electronic exchange
JPH0675780A (en) Interruption controller
JP2522401B2 (en) Programmable controller
JP2667285B2 (en) Interrupt control device
JPH04107663A (en) Control system for synchronous communication system
JPH0540725A (en) Input and output controller
JPH1165624A (en) Programmable controller
JPH0322142A (en) Interruption control device for microprocessor
JPH0485654A (en) Control method for microprocessor
JPS63111558A (en) Data transmission system
JPH0298743A (en) Semiconductor integrated circuit
JPH0773136A (en) Operation method for computer system
JPH05227222A (en) Data transmission speed converter
JPH02222059A (en) Multiprocessor system
JPH07264262A (en) Data transfer speed control system
JPS62190544A (en) Higher link unit for programmable controller
JPH02178866A (en) Sequence controller
JPH03273437A (en) Interruption processor
JPH0157379B2 (en)
JPH06149686A (en) Channel interruption control system
JPH038617B2 (en)
JPH04329442A (en) Interruption processing method for microcomputer
JPH0380304A (en) Timer/counter processing method for sequence process