JPH0348337A - Interruption control system - Google Patents
Interruption control systemInfo
- Publication number
- JPH0348337A JPH0348337A JP18303089A JP18303089A JPH0348337A JP H0348337 A JPH0348337 A JP H0348337A JP 18303089 A JP18303089 A JP 18303089A JP 18303089 A JP18303089 A JP 18303089A JP H0348337 A JPH0348337 A JP H0348337A
- Authority
- JP
- Japan
- Prior art keywords
- priority
- interruption
- interrupt
- low
- circuit
- 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
Links
- 238000000034 method Methods 0.000 claims abstract description 14
- 238000007796 conventional method Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 2
- 238000003672 processing method Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は複数の回路を有する装置からの割り込み制御方
式に関し、特に複数の回路の個々に発生する割り込み事
象を優先度順に処理する割り込み制御方式に関する。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to an interrupt control method from a device having a plurality of circuits, and particularly to an interrupt control method that processes interrupt events occurring individually in a plurality of circuits in order of priority. Regarding.
従来、この種の割り込み制御方式は、割り込み発生源と
制御部との間にインターフェイスを設け、個々の割り込
み信号をラッチ回路にラッチし、優先順位操作回路によ
り優先度の高いものから割り込みコントローラへ割り込
む制御がとられている。Conventionally, this type of interrupt control method provides an interface between the interrupt source and the control unit, latches each interrupt signal in a latch circuit, and uses a priority control circuit to send the interrupt to the interrupt controller in order of priority. It's under control.
上述した従来の割り込み制御方式は、優先度が一定であ
ることから、各割り込みに対する優先度の割り当て方に
よっては、優先度の高い割り込み事象が頻繁に発生する
場合、優先度の低い割り込みが受けつけられず処理され
ない事態が起こり、障害を引き起こすという欠点がある
。In the conventional interrupt control method described above, the priority is fixed, so depending on how the priority is assigned to each interrupt, if a high priority interrupt event occurs frequently, a low priority interrupt may not be accepted. The disadvantage is that situations may occur that are not processed immediately, causing failures.
本発明の目的は、かかる優先度の低い割り込みをも受け
つけて処理することのできる割り込み処理方式を提供す
ることにある。An object of the present invention is to provide an interrupt processing method that can accept and process even such low priority interrupts.
本発明の割り込み制御方式は、個々の独立した動作をな
す複数の回路を有する装置からの割り込みを制御する割
り込み制御方式において、非同期に発生する個々の回路
からの割り込み事象を優先度を用いて処理する優先順位
操作回路と、前記優先度を制御する割り込み制御回路と
、前記操作回路および割り込み制御回路を制御する制御
部とを含んで構或される。The interrupt control method of the present invention is an interrupt control method that controls interrupts from a device having a plurality of circuits operating independently, and processes interrupt events from individual circuits that occur asynchronously using priorities. The present invention is configured to include a priority operation circuit that controls the priority, an interrupt control circuit that controls the priority, and a control section that controls the operation circuit and the interrupt control circuit.
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例を示す割り込み制御方式の概
略ブロック図である。FIG. 1 is a schematic block diagram of an interrupt control system showing one embodiment of the present invention.
第1図に示すように、本実施例はそれぞれ独立な動作を
経て割り込みを発生する回路El,E2,E3,E4,
・・・・・・,Enがあり、その割り込み要求を受け付
けるレジスタlはそれぞれビッ}Fl,F’2,F3,
F4,・・・・・・Fnが各発生回路と一対一に対応し
ている。このレジスタlは予めクリアされており、割り
込み発生により事象を発生した回路El”−Enと対に
なるビッ}Fl−Fnがセットされる。このレジスタ1
に接続された優先順位操作回路2は予めセットしておい
た優先度によって優先順位を決定し、その優先順位に基
づいてレジスタ1の状態から最も優先順位の高い割り込
み要求を制御部4へ引き渡す。かかる割り込み処理が終
了すると、制御部4から処理された割り込みの起因とな
ったレジスタl中のビットをクリアする。As shown in FIG. 1, this embodiment includes circuits El, E2, E3, E4, and circuits that generate interrupts through independent operations.
......, En, and the register l that accepts the interrupt request has bits }Fl, F'2, F3, respectively.
F4, . . . , Fn correspond to each generating circuit on a one-to-one basis. This register l is cleared in advance, and the bits Fl-Fn paired with the circuit El"-En that generated the event are set when an interrupt occurs.
A priority level operation circuit 2 connected to the CPU determines the priority level based on a preset priority level, and based on the priority level, passes the interrupt request with the highest priority level to the control unit 4 based on the state of the register 1. When the interrupt processing is completed, the bit in the register l that caused the interrupt processed by the control unit 4 is cleared.
本実施例は前述した割り込み処理において、優先度の高
い割り込みが頻繁に発生し、優先度の低い割り込みが無
視されることを防ぐことにあり、そのために割り込み制
御回路3を設け、優先度の低い割り込みが発生した後、
一定時間経過後もこの割り込みが処理されない場合、割
り込み制御回路3は、優先順位操作回路2における優先
順位を逆転させるようにしている。これにより、今まで
処理されなかった低優先度の割り込みが受け付けられる
ことになる。また、かかる低優先度の割り込み処理がな
されると、割り込み制御回路3は優先順位操作回路2に
おける優先順位を再び元に再すようにしている。The purpose of this embodiment is to prevent high-priority interrupts from frequently occurring and low-priority interrupts from being ignored in the interrupt processing described above.For this purpose, an interrupt control circuit 3 is provided to prevent low-priority interrupts from being ignored. After an interrupt occurs,
If this interrupt is not processed after a certain period of time has elapsed, the interrupt control circuit 3 reverses the priority order in the priority order operation circuit 2. This allows low-priority interrupts that have not been processed up to now to be accepted. Further, when such low priority interrupt processing is performed, the interrupt control circuit 3 restores the priority order in the priority order operation circuit 2 to the original state.
以上説明したように、本発明の割り込み制御方式は、非
同期に発生する複数の回路からの割り込み制御において
優先順位操作回路に対する割り込み制御回路を設け、一
定時間未処理の低優先度割り込み要因の処理を行うこと
により、一定時間をもって要求された割り込み処理が少
なくとも一回は実行されることになり、割り込みの信頼
性を向上させることができるという効果がある。As explained above, the interrupt control method of the present invention provides an interrupt control circuit for a priority operation circuit in controlling interrupts generated asynchronously from a plurality of circuits, and handles low-priority interrupt factors that are unprocessed for a certain period of time. By doing so, the requested interrupt processing will be executed at least once after a certain period of time, which has the effect of improving the reliability of the interrupt.
第1図は本発明の一実施例を示す割り込み制御方式のブ
ロック図である.
El,E2,E3,E4〜En=割り込み事象発生回路
、1・・・・・・レジスタ、2・・・・・・優先順位操
作回路、3・・・・・・割り込み制御回路、4・・・・
・・制御部、Fl,F2,F3,F4〜Fn・・・・・
・レジスタ中のビット。FIG. 1 is a block diagram of an interrupt control system showing one embodiment of the present invention. El, E2, E3, E4 to En = interrupt event generation circuit, 1... register, 2... priority operation circuit, 3... interrupt control circuit, 4...・・・
...control section, Fl, F2, F3, F4 to Fn...
- Bits in registers.
Claims (1)
の割り込みを制御する割り込み制御方式において、非同
期に発生する個々の回路からの割り込み事象を優先度を
用いて処理する優先順位操作回路と、前記優先度を制御
する割り込み制御回路と、前記操作回路および割り込み
制御回路を制御する制御部とを含むことを特徴とする割
り込み制御方式。In an interrupt control method for controlling interrupts from a device having a plurality of circuits operating individually and independently, a priority operation circuit that processes interrupt events from the individual circuits that occur asynchronously using priorities; An interrupt control method comprising: an interrupt control circuit that controls priority; and a control section that controls the operation circuit and the interrupt control circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP18303089A JPH0348337A (en) | 1989-07-14 | 1989-07-14 | Interruption control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP18303089A JPH0348337A (en) | 1989-07-14 | 1989-07-14 | Interruption control system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0348337A true JPH0348337A (en) | 1991-03-01 |
Family
ID=16128511
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP18303089A Pending JPH0348337A (en) | 1989-07-14 | 1989-07-14 | Interruption control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0348337A (en) |
-
1989
- 1989-07-14 JP JP18303089A patent/JPH0348337A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS5999553A (en) | Interruption control system | |
JPH0348337A (en) | Interruption control system | |
JPH1153201A (en) | Method and device for processing plural interruptions | |
US20030225812A1 (en) | Controller for machine | |
KR100209595B1 (en) | Device and method of interrupt generation | |
JPH01246602A (en) | Special function unit for programmable controller | |
JP2003044293A (en) | Interruption processor | |
JPS63127317A (en) | Electronic equipment provided with input device | |
JPH1063603A (en) | Peripheral control device and its load state setting method | |
JPH03262062A (en) | Central processing unit | |
JPS5922146A (en) | Task scheduling circuit | |
JPH02300801A (en) | Numerical controller | |
JPH0535663A (en) | Hierarchical bus arbitration circuit | |
JP2879854B2 (en) | Address conversion value setting processing method | |
JPH05225094A (en) | Buffer pool control system for communication control system | |
JPH03273437A (en) | Interruption processor | |
JPS61136115A (en) | Basic clock generating circuit of microcomputer system | |
JPH03167633A (en) | Control method for interruption program | |
JPH06282445A (en) | Peripheral device exclusive controller | |
JPH0212433A (en) | Task management method for control program | |
JPH05181581A (en) | Key repeat control method | |
JPH05120199A (en) | Device and method for interruption control | |
JPH06230980A (en) | Interruption circuit | |
JPS61127055A (en) | Input and output controller | |
JPH01120634A (en) | Interruption controller |