JP3572650B2 - Interrupt controller and control method thereof - Google Patents

Interrupt controller and control method thereof Download PDF

Info

Publication number
JP3572650B2
JP3572650B2 JP00562194A JP562194A JP3572650B2 JP 3572650 B2 JP3572650 B2 JP 3572650B2 JP 00562194 A JP00562194 A JP 00562194A JP 562194 A JP562194 A JP 562194A JP 3572650 B2 JP3572650 B2 JP 3572650B2
Authority
JP
Japan
Prior art keywords
interrupt
priority
processing
request
interrupt request
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 - Fee Related
Application number
JP00562194A
Other languages
Japanese (ja)
Other versions
JPH07210401A (en
Inventor
淳 倉元
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP00562194A priority Critical patent/JP3572650B2/en
Publication of JPH07210401A publication Critical patent/JPH07210401A/en
Application granted granted Critical
Publication of JP3572650B2 publication Critical patent/JP3572650B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【産業上の利用分野】
本発明は、ファクシミリ装置において送信の優先順位を変更するための割込みコントローラ、および割込み制御方法に関する。
【0002】
【従来の技術】
従来、ファクシミリ装置では、送信原稿をスキャナにより光学的に読取り、光・電気変換を行った後、プロセッサにより‘1’,‘0’の2値に変換して、リード/ライト・バッファに蓄積する。リード/ライト・バッファから読出された出力は、データ圧縮装置(DCR)に入力され、ここで原情報を失わずにデータ量を削減した後、データスイッチ(DSU)を介して高速モデムに導かれ、ここで変調された後、DSUと網制御装置(NCU)を介して回線に送出される。
一方、回線から入力された変調信号は、NCU、DSUを介して高速モデムに導かれ、モデムによりディジタル信号に復調された後、DCRに出力されて、ここで原情報に再生され、リード/ライト・バッファに蓄積される。リード/ライト・バッファでは、蓄積された情報が1行を越えると、1行単位で書込み駆動回路に出力され、受信用紙を1行分だけ進める。
次に、ファクシミリ装置の伝送制御のための情報は、全てプログラムにより編成され、プロセッサからの並列信号が直列信号に変換された後、伝送エラーをチェックするチェックビットが付加されて、DSUを介して高速モデムに導かれ、ここで変調されてDSU、NCUを介して回線に送出される。
回線から入力された伝送制御情報は、全てプロセッサのソフトウェアにより判読される。
【0003】
次に、ファクシミリ装置のソフトウェアとしては、▲1▼電源ON時に初期設定およびメモリローディングを実行するイニシャル実行プログラム、▲2▼システム動作開始要因の割込みがあると、割込み要因の判別と割込みジョブルーチンの管理を実行する割込み登録ルーチン、▲3▼各割込み要因に応じた仕事、主として機構部の制御を行う割込みジョブ用サブルーチン、▲4▼送信、受信、コピー等、それぞれの動作をモニターするモニタールーチン、ならびに▲5▼システム制御に必要な単位毎の仕事を行うジョブルーチンがある(例えば、Richo Technical Report No.1
March 1979 pp.61〜62参照)。
このように、従来のソフトウェアには、割込み処理のプログラムが存在したが、これは割込みによりシステムの動作を開始するためのもので、割込み要因を判別して、各割込み要因に応じた仕事が行われる。
一方、送信書画情報を割込み処理するプログラム、すなわち送信の優先順位を変更して、後順位のものを最優先ないし先順位に変更させるようなプログラムは存在していなかった。
つまり、従来の技術では、時間的に少しでも早く蓄積した送信電文が先に送信されるわけであって、送信用書画情報の優先順位は固定されていたため、これを変更することは不可能であった。
【0004】
【発明が解決しようとする課題】
このように、従来のファクシミリ装置では、優先順位が固定されていたので、優先順位の変更はできなかった。また、優先順位の低い処理の実行が開始された直後に、優先順位の高い処理の要求があった場合でも、前者の処理終了までは後者の処理は受け付けられなかった。なお、両者から同時に処理要求があった場合には、優先順位の高い処理が先に行われていた。
本発明の第1の目的は、このような従来の課題を解決し、書画情報の送信順位を変更して、割込み処理を実行することが可能な割込みコントローラおよび割込み制御方法を提供することにある。
本発明の第2の目的は、優先順位を決める必要がなく、その都度、優先的に送信すべき割込み処理を実行することにより、優先順位の低い送信処理の実行直後に、優先順位の高い送信要求があったときには、優先順位の高い処理を先ず実行することができる割込みコントローラおよび割込み制御方法を提供することにある。
本発明の第3の目的は、割込み処理中にも優先順位を判定して、その都度順位を設定することにより、割込み処理中に優先順位の高い割込み要求があったときには、処理を中断して効率よく割込み処理が行える割込みコントローラおよび割込み制御方法を提供することにある。
【0005】
【課題を解決するための手段】
上記目的を達成するため、本発明の割込みコントローラは、(1)ファクシミリ装置における1送信書画情報ブロックごとの送信順序を決定する割込みコントローラにおいて、各ブロックごと送信の順位を変更して、後順位のものを最優先ないし先順位に変更させる割込み要求を受付ける割込み要求受付部(11)と、該割込み要求のあるブロックごとに可変する順位に従って送信順序を決定し、決定された送信順序を保持する送信順序決定レジスタ部(15)と、送信順序が決定されると、カウンタ初期値がセットされ、割込み要求が発生してからの時間をカウントする動作を開始する割込み要求カウンタ部(12)と、該割込みカウンタ部(12)における各ブロックごとカウント値を比較し、割込み処理中の優先順位と割込み要求の優先順位を比較するカウント値比較部(13)と、後順位のものを先順位に変更させる割込み処理の準備を中断したことを表わす割込み処理中断記憶部(16)と、該カウント値比較部(13)と送信順序決定レジスタ部(15)と割込み処理中断記憶部(16)の各内容を基にして、割込み処理要求または割込み処理中断要求を発生する発生部とを具備したことを特徴としている。
また、本発明の割込み制御方法は、(2)ファクシミリ装置の送信順序を決定する割込み制御方法において、各ブロックごとの送信の順位を変更して、後順位のものを最優先ないし先順位に変更させる割込み要求が受付けられると、該割込み要求の送信順序をソフトウェアにより設定するとともに、該割込み要求が発生してからの時間をカウントするカウンタ(12)に対し、同一の初期値を設定して、カウントを開始させ、次に処理を開始しようとしている後順位のものを先順位に変更させる割込み処理がある場合、それよりも優先順位の高い割込み要求が受付けられると、割込み要求処理順序を変更して割込み処理を開始することを特徴としている。
また、(3)各ブロックごと送信の順位を変更して、後順位のものを最優先ないし先順位に変更させる割込み要求が受付けられると、該割込み要求が発生してからの時間をカウントするカウンタ(12)に対し、それぞれ異なる割込み優先順位に応じたカウント初期値を設定し、かつカウント値が予め定めた値以上になったとき、初めて各ブロックの後順位のものを先順位に変更させる割込み処理を開始することにより、割込みの優先順位に関係なく、その時点で優先的に処理すべき割込み要求を判断して割込み処理を開始することを特徴としている。
さらに、(4)各ブロックごと送信の順位を変更して、後順位のものを最優先ないし先順位に変更させる割込み要求が受付けられると、該割込み要求の送信順序を決定し、該割込み要求が発生してからの時間をカウントするカウンタ(12)に対し、同一のカウント初期値を設定して、カウントを開始させ、後順位のものを先順位に変更させる割込み処理中に優先順位の高い割込み要求が受付けられた場合、該割込み処理中のカウント値が予め定めた値未満であるときには、割込み処理を中断し、後から受付けた割込み要求を先に処理した後、中断された処理を再開し、予め定めた値以上であるときには、そのまま処理を続行することを特徴としている。
【0006】
【作用】
本発明における▲1▼第1の実施例では、割込み要求を受付ける毎に、ソフトウェアで優先順位を決定するので、割込み優先順位の変更が可能であり、LSI等の設計後の変更が可能となる。
また、▲2▼第2の実施例では、優先順位を持たせたい処理に対して、それぞれ異なるカウンタ値を設定することにより、優先順位が低くてもよいものに対しては、他の割込み要求がなくても、ある設定値までは処理を行わず、優先的に処理したい割込み要求が飛び込んで来た場合、その処理を行うようにすることにより、必要以上に優先順位の高い処理を待たせることなく、処理を行うことができる。すなわち、割込み要求が発生してからの時間を計数するためのカウンタを設けているため、優先順位を決定する必要がなく、その都度、優先的に処理すべき割込み処理を実行することができる。
また、▲3▼第3の実施例では、割込み処理中に優先順位の高い割込み要求が受付けられた場合に、カウンタ値を参照して、割込み処理の中断が可能か否かを判断することにより、より効率よく割込みの処理が行える。すなわち、割込み要求が発生してからの時間を計数するためのカウンタを設けるとともに、優先順位を設定することにより、優先順位の低い割込み処理中に、優先順位の高い割込み要求があった場合には、優先順位の高い割込み処理を先に実行することができる。
【0007】
【実施例】
以下、本発明の実施例を、図面により詳細に説明する。
本発明の一実施例を示す割込みコントローラの構成図である。
図1において、11はユーザから割込みの要求を受付ける割込み要求受付部、12は要求毎に優先順位に相当するカウンタ値をセットして、割込み要求が出されてからの時間をカウントする動作を実行する割込み要求カウンタ部、13は現在実行中あるいはカウント中の優先順位と新たに要求された割込みの優先順位とを比較して、どちらが早いかを判定するカウント値比較部、14は割込み処理要求と割込み処理中断要求を発生させる発生部、15は送信順序を決定して、それを保持する送信順序決定レジスタ部、16は中断された割込み要求を退避のために記憶し、中断した要求の処理が終了した後に、記憶から戻す割込み処理中断記憶部である。
本発明の割込みのコントローラは、これらの各装置から構成され、送信すべきファクシミリ原稿を送信書画情報の1ブロック毎に送信順序を決定し、割込み処理開始要求を送出する。
送信順序、割込み要求カウンタ部12の初期値は、ソフトウェアにより設定される。
そして、ソフトウェアにより設定された送信順序およびカウンタ部12の初期値は、それぞれ送信順序決定レジスタ部15および割込みカウンタ部12で保持される。
割込み要求カウンタ部12は、割込み処理が中断された場合にもカウントを続行し、割込み処理が終了すると初期値にリセットされる。
また、処理の続行、および中断の決定は、カウント値比較部13、送信順序決定レジスタ部15、および割込み処理中断記憶部16のデータを基にして、割込み処理要求・割込み中断要求発生部14が行う。
【0008】
割込み要求が発生すると、割込み要求受付部11において要求が確認される。
次に、ソフトウェアにより優先順位とカウント値がセットされ、決定された送信順序は送信順序決定レジスタ部15に保持されるとともに、クロック入力により割り込み要求カウンタ部12のカウント動作が開始される。
(1)第1の実施例として、割込み要求が受付けられる毎に、送信順序が決定され、決定された送信順序に従って割込み処理開始要求を行う場合を説明する。
割込み要求が受付けられると、そのとき他の割込み要求がなく、かつ割込み処理中でなければ、要求のあった割込み処理動作が実行される。すなわち、割込み要求受付部11で受付けられた割込み要求は、ソフトウェアにより優先順位と初期値(ここでは、0)が決定され、割込み要求カウンタ部12にカウント値がセットされることにより、カウンタ部12が時間を計数するための動作を開始する。
最も高い優先順位の要求がカウント値比較部13を通過して割込み処理中断要求発生部14に入力され、同時に送信順序決定レジスタ部15に保持されている送信順序と割込み処理中断記憶部16の値(何も保持されていない)も発生部14に入力されることにより、それらの値を基に割込み処理開始要求が発生し、その要求信号が出力される。
同時に複数個の割込み要求が受付けられると、ソフトウェアによりそれぞれ優先順位と初期値が決定され、カウント動作が開始される。そして、送信順序の早いものから順次、割込み処理開始要求が出力される。
処理の途中で割込み要求が受付けられても、優先順位が決定された後、最も高い順位のときには、現在処理中の次順位に開始要求が出力され、それ以外の場合には相当する順位の箇所に挿入されることになる。
【0009】
(2)第2の実施例として、割込み要求が受付けられると、優先順位を持たせたい要求に対して、それぞれ異なるカウント値を設定し、優先順位の決定は行わない場合を説明する。
割込み要求受付部11で受付けた要求に対して、他の割込み要求があった場合、すなわち、未だ処理が開始されていない他の割込み要求、あるいは同時に他の割込み要求があった場合には、割込み要求カウンタ部12はその要求に対してもカウント動作が行われているので、カウント値比較部13はそのカウンタ部12にセットされている値、つまり優先順位を比較することにより、順位の高い方から処理を実行する。
例えば、優先しなくてもよい要求に対してカウンタ部12の初期値を0とし、優先するものに対しては5,10,20等の整数値を初期値とすることにより、25のカウント値の要求に対して処理を開始するようにする。従って、25になるまでは、処理がなくても処理を開始しない。これにより、優先的に処理したい割込み要求が入った場合には、直ちに処理することが可能である。
これにより、割込み要求が発生してからの時間を計数するカウンタ部を設けるだけで、優先順位を決める必要がなく、その都度、優先的に処理すべき割込み処理を実行することが可能となる。
【0010】
(3)第3の実施例として、カウンタを設けるとともに、優先順位を決定することにより、割込み処理中に優先順位の高い割込み要求が受付けられた場合には、処理を中断して高い優先順位の要求を処理した後、中断されていた処理を再開する場合を説明する。
他の要求が割込み処理実行中に、実行中の割込み処理よりも優先順位の高い割込み要求があった場合には、先ず実行中の処理の割込み要求カウンタ部の値を参照し、ある規定値になっている場合には処理を続行し、その規定値になっていなければ、処理を中断して、優先順位の高い方の割込み処理を実行し、その処理が終了後に中断した処理を再度実行する。
例えば、予めカウンタ部12の値が10以下のときには処理を中断し、11以上のときには処理を続行するものと規定しておく。
いま、割込み要求カウンタ部12の値が8になった瞬間に、割込み要求が受付けられたとする。この場合には、カウント値比較部13は、処理中の要求の優先順位と割込み要求の優先順位とを比較して、後者が高いこと、およびカウント値が8のときに割込みがあったことをそれぞれ検出すると、割込み処理中断記憶部16の処理中の割込み要求を記憶して退避する。それにより、割込み処理要求・割込み中断要求発生部14は、送信順序決定レジスタ部15と割込み処理中断記憶部16の内容を入力し、割込み処理中断要求を発生して出力する。これにより、実行中の処理は中断されて、新たに入力した割込み要求の割込み処理開始要求が出力される。この処理が終了した後に、割込み処理中断記憶部16の記憶を読み出し、割込み処理要求発生部14から中断されて待機していた要求の処理再開を出力する。
【0011】
図2は、本発明の第3の実施例を示す割込み制御方法の動作フローチャートである。
先ず、通常処理が行われ、割込み要求カウンタ部12の初期設定が行われるとともに、優先順位が決定される(ステップ101)。次に、割込み要求の有無を判断し(ステップ102)、なければ、その判断を繰り返し行いながら、通常処理を行う。割込み要求が有れば、その要求を受付ける(ステップ103)。その要求に対して、割込み要求カウンタ部12のカウントを開始し(ステップ104)、他の割込み処理中か否かを判断する(ステップ105)。他の割込み処理中の場合には、割込み要求カウンタ部12のカウンタ値を参照するとともに、カウンタ値比較部13で優先順位の比較を行う(ステップ106)。実行中の割込み処理を中断するか否かを判定する(ステップ107)。すなわち、カウンタ値が予め定められた閾値以上であるか、あるいは実行中の割込み処理の優先順位の方が高い場合には、実行中の割込み処理を中断せず、そのまま処理を継続する。そして、実行中の割込み処理が終了したか否かを判断する(ステップ108)。終了すれば、再度、ステップ105に戻り、他の割込み処理中か否かを判断する。
【0012】
ステップ105において、他の割込み処理中でなければ、割込み処理が開始される(ステップ109)。割込み処理中断要求の有無を判断し(ステップ110)、中断要求がなければ正常終了する。一方、割込み処理中断要求が有れば、処理を中断し(ステップ111)、優先度の高い割込み処理を開始する(ステップ112)。実行された処理が終了したか否かを判断し(ステップ113)、終了したならば、中断された処理を再開する(ステップ114)。そして、その処理要終了する。
また、ステップ107において、実行中の割込み処理の優先順位とカウンタ値を参照し、これと新たに受付けられた割込み要求の優先順位とを比較することにより、実行中の割込み処理を中断することを判断したならば、さらに割込み処理中断要求が有るか否かを判断し(ステップ110)、なければ、その割込み処理を正常に終了する。さらに、割込み処理中断要求が有る場合には、さらに優先順位の高い割込み要求が受付けられたのであるから、処理を中断して(ステップ111)、優先順位の高い割込み処理を開始し(ステップ112)、処理が終了したならば(ステップ113)、中断された処理を再開し、それが終了したならば、最初に中断された処理を再開する(ステップ114)。
【0013】
【発明の効果】
以上説明したように、本発明によれば、割込みコントローラを設計した後でも、ソフトウェアで優先順位を決定することができるので、割込み優先順位の変更が可能である。また、割込み要求が発生してからの時間をカウントするカウンタを設けて、優先度により初期値を異ならせることにより、優先順位に関係なく優先的に処理したい割込み要求を迅速に処理することができる。さらに、時間をカウントするカウンタと、ソフトウェアにより優先順位を決定するので、優先順位の低い割込み処理中に、優先順位の高い割込み要求がある場合には、優先順位の低い処理を中断して優先順位の高い割込み処理を先に実行させることができる。
【図面の簡単な説明】
【図1】本発明の一実施例を示す割込みコントローラの構成図である。
【図2】本発明の一実施例を示す割込み制御方法の動作フローチャートである。
【符号の説明】
11 割込み要求受付部
12 割込み要求カウンタ部
13 カウント値比較部
14 割込み処理要求・割込み処理中断要求発生部
15 送信順序決定レジスタ部
16 割込み処理中断記憶部
[0001]
[Industrial applications]
The present invention relates to an interrupt controller for changing a transmission priority in a facsimile apparatus, and an interrupt control method.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, in a facsimile apparatus, a transmission original is optically read by a scanner, optical-to-electrical conversion is performed, and then converted into binary "1" and "0" by a processor and stored in a read / write buffer. . The output read from the read / write buffer is input to a data compression device (DCR) where the data amount is reduced without losing the original information, and then guided to a high-speed modem via a data switch (DSU). After being modulated here, it is transmitted to the line via the DSU and the network control unit (NCU).
On the other hand, the modulated signal input from the line is guided to a high-speed modem via the NCU and DSU, demodulated into a digital signal by the modem, output to the DCR, reproduced here as original information, and read / write. -Stored in the buffer. In the read / write buffer, when the accumulated information exceeds one line, it is output to the write drive circuit in units of one line, and the received paper is advanced by one line.
Next, all information for transmission control of the facsimile apparatus is organized by a program, and after a parallel signal from the processor is converted into a serial signal, a check bit for checking a transmission error is added, and the information is transmitted via the DSU. It is guided to a high-speed modem, where it is modulated and sent out to the line via DSU and NCU.
All transmission control information input from the line is read by the software of the processor.
[0003]
Next, as software of the facsimile machine, there are (1) an initial execution program for executing initial setting and memory loading when the power is turned on, and (2) when there is an interrupt of a system operation start factor, the determination of the interrupt factor and the interrupt job routine are performed. An interrupt registration routine for executing management; (3) a job corresponding to each interrupt factor; a subroutine for an interrupt job for mainly controlling a mechanism; (4) a monitor routine for monitoring respective operations such as transmission, reception, and copying; And (5) there is a job routine for performing a job for each unit necessary for system control (for example, Richo Technical Report No. 1).
March 1979 pp. 61-62).
As described above, the conventional software includes an interrupt processing program, which is used to start the operation of the system by an interrupt. The interrupt factor is determined, and the work corresponding to each interrupt factor is performed. Is
On the other hand, there has not been a program that interrupts transmission document information, that is, a program that changes the priority of transmission and changes the next priority to the highest priority or the highest priority.
In other words, according to the conventional technology, the transmitted telegrams accumulated as soon as possible are transmitted first, and the priority of the document information for transmission is fixed, so that it is impossible to change this. there were.
[0004]
[Problems to be solved by the invention]
As described above, in the conventional facsimile apparatus, the priorities were fixed, so that the priorities could not be changed. Further, even if a request for a process with a higher priority is issued immediately after the execution of a process with a lower priority is started, the latter process is not accepted until the end of the former process. Note that when processing requests are issued from both at the same time, processing with a higher priority is performed first.
A first object of the present invention is to solve such a conventional problem and to provide an interrupt controller and an interrupt control method capable of changing a transmission order of document information and executing an interrupt process. .
A second object of the present invention is to eliminate the need to determine the priority, and execute the interrupt processing to be transmitted with priority each time. An object of the present invention is to provide an interrupt controller and an interrupt control method capable of first executing a process with a higher priority when a request is made.
A third object of the present invention is to determine priorities even during interrupt processing and to set the priority each time, so that when an interrupt request with a high priority occurs during interrupt processing, the processing is interrupted. An object of the present invention is to provide an interrupt controller and an interrupt control method capable of efficiently performing an interrupt process.
[0005]
[Means for Solving the Problems]
In order to achieve the above object, an interrupt controller of the present invention comprises: (1) an interrupt controller that determines a transmission order for each transmission document information block in a facsimile apparatus, by changing a transmission order for each block , and an interrupt request receiving unit that receives an interrupt request for changing the priority or prior ranking ones (11), determines the transmission order in accordance with the variable to rank for each block of 該割 interrupt request, hold the determined transmission order A transmission order determination register unit (15) for setting a transmission order, and an interrupt request counter unit (12) for setting an initial value of a counter when the transmission order is determined and for starting an operation of counting time since an interrupt request is generated. , compares the count value for each block in 該割 included counter (12), the priority of the priority and the interrupt request in the interrupt processing Count value comparing unit for comparing the position (13) and the interrupt process interruption storage unit indicating that those subordinated interrupted preparation of interrupt processing to change the previously rank (16), 該Ka count value comparing section ( 13) and the transmission order determining register unit (15) and to interrupt processing suspended storage unit of each content (16) based on, as characterized by comprising a generator for generating an interrupt processing request or during interrupt processing disconnection request I have.
In the interrupt control method of the present invention, in the (2) interrupt control method for determining the transmission order of the facsimile apparatus, the transmission order for each block is changed, and the rear-order one is changed to the highest priority or the first priority. When an interrupt request causes is accepted, and sets the software transmission order of 該割 interrupt request, to counter (12) which該割 interrupt request counts the time from the occurrence, sets the same initial value Then, if there is an interrupt process that starts counting and then changes the next-priority one that is about to start processing to the first one, if an interrupt request with a higher priority is accepted, the interrupt request processing order is changed. The interrupt processing is started after the change.
Further, (3) by changing the order of transmission of each block, an interrupt request to change things subordinated to the highest priority to earlier order is accepted, the count time from 該割 interrupt request is generated The counters (12) to perform initial counts according to different interrupt priorities , and when the count value becomes equal to or greater than a predetermined value , change the rear rank of each block to the first rank for the first time. by starting the interrupt process causes, regardless of the priority of the interrupt, it is characterized in that to start the interrupt process to determine the interrupt request to be preferentially processed at that time.
Further, (4) by changing the order of transmission of each block, those subordinated an interrupt request to change the priority or prior order is accepted, and determines the transmission order of 該割 interrupt request,該割 The same initial value is set for the counter (12) that counts the time from the generation of the interrupt request, the count is started, and the priority is set during the interrupt processing for changing the next priority to the first priority. If high interrupt request is accepted, when count value in該割inclusive process is less than a predetermined value interrupts the interrupt processing, after processing above the interrupt request received later is interrupted It is characterized in that the processing is restarted and the processing is continued as it is when the value is equal to or greater than a predetermined value.
[0006]
[Action]
(1) In the first embodiment of the present invention, the priority is determined by software every time an interrupt request is accepted, so that the interrupt priority can be changed, and the LSI or the like can be changed after design. .
(2) In the second embodiment, a different counter value is set for each process that is to be given a priority. Even if there is no processing, processing is not performed up to a certain set value, and if an interrupt request to be processed with priority is jumped in, processing is performed so that processing with higher priority than necessary is made to wait The processing can be performed without any processing. That is, since the counter for counting the time from the occurrence of the interrupt request is provided, there is no need to determine the priority order, and the interrupt process to be processed with priority can be executed each time.
(3) In the third embodiment, when a high-priority interrupt request is accepted during interrupt processing, it is determined whether interrupt processing can be interrupted by referring to the counter value. Thus, the interrupt processing can be performed more efficiently. In other words, by providing a counter for counting the time from the occurrence of an interrupt request and setting a priority, when a high-priority interrupt request is issued during low-priority interrupt processing, , Interrupt processing with a higher priority can be executed first.
[0007]
【Example】
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 2 is a configuration diagram of an interrupt controller showing one embodiment of the present invention.
In FIG. 1, reference numeral 11 denotes an interrupt request receiving unit for receiving an interrupt request from a user, and 12 sets a counter value corresponding to a priority for each request, and performs an operation of counting the time since the interrupt request was issued. interrupt request counter unit which, 13 compares the priority of the priority and the newly requested interrupt the currently executing or in a count determines count value comparing section which one is earlier, 14 interrupt processing request a generator for generating an interrupt process interruption request, 15 determines the transmission order, the transmission order determination register unit to hold it, 16 stores the interrupt request interrupted for eviction, the interrupted request processing Is an interrupt processing interruption storage unit that returns from the storage after completion of the process .
The interrupt controller of the present invention is constituted by these devices, determines the transmission order of the facsimile original to be transmitted for each block of the transmission document information, and sends an interrupt processing start request.
The transmission order and the initial value of the interrupt request counter unit 12 are set by software.
Then, the transmission order set by the software and the initial value of the counter unit 12 are held in the transmission order determination register unit 15 and the interrupt counter unit 12, respectively.
The interrupt request counter unit 12 continues counting even when the interrupt processing is interrupted, and is reset to an initial value when the interrupt processing ends.
Further, the continuation of the processing and the determination of the interruption are determined by the interrupt processing request / interruption interruption request generation section 14 based on the data in the count value comparison section 13, the transmission order determination register section 15, and the interruption processing interruption storage section 16. Do.
[0008]
When an interrupt request occurs, the request is confirmed in the interrupt request receiving unit 11.
Next, the priority and the count value are set by software, the determined transmission order is held in the transmission order determination register unit 15, and the counting operation of the interrupt request counter unit 12 is started by the clock input.
(1) As a first embodiment, a case will be described in which the transmission order is determined each time an interrupt request is accepted, and an interrupt processing start request is made in accordance with the determined transmission order .
When an interrupt request is accepted, if there is no other interrupt request at that time and no interrupt processing is being performed, the requested interrupt processing operation is executed. That is, the priority and initial value (here, 0) of the interrupt request accepted by the interrupt request accepting unit 11 are determined by software, and the count value is set in the interrupt request counter unit 12 so that the counter unit 12 Starts an operation for counting time.
Most demanding priority is input through the count value comparison section 13 to the interrupt process interruption request generating unit 14, the transmission order and the interrupt processing suspended storage unit 16 held by the transmission order decision register unit 15 at the same time When a value (nothing is held) is also input to the generation unit 14, an interrupt processing start request is generated based on those values, and the request signal is output.
When a plurality of interrupt requests are received at the same time, the priority and the initial value are respectively determined by software, and the counting operation is started. Then, an interrupt processing start request is sequentially output in the order of transmission order .
Even if an interrupt request is accepted in the middle of processing, after the priority is determined, if the priority is the highest, a start request is output to the next priority that is currently being processed. Will be inserted.
[0009]
(2) As a second embodiment, a case will be described in which, when an interrupt request is accepted, different count values are set for requests to be given priority, and priority is not determined.
If there is another interrupt request in response to the request accepted by the interrupt request receiving unit 11, that is, if there is another interrupt request for which processing has not yet started, or if there is another interrupt request at the same time, the interrupt Since the request counter unit 12 also performs a counting operation for the request, the count value comparing unit 13 compares the value set in the counter unit 12, that is, the priority order, so that the higher priority order is obtained. Execute the process from.
For example, by setting the initial value of the counter unit 12 to 0 for a request that does not need to be prioritized, and setting an initial value to an integer value of 5, 10, 20, or the like for a request that has priority, a count value of 25 is obtained. Processing is started in response to the request. Therefore, the processing is not started until the number reaches 25 even if there is no processing. Thus, when an interrupt request to be processed with priority is received, it can be processed immediately.
Thus, it is not necessary to determine the priority order only by providing the counter unit for counting the time from the occurrence of the interrupt request, and it is possible to execute the interrupt process to be preferentially processed each time.
[0010]
(3) As a third embodiment, a counter is provided, and a priority is determined. If an interrupt request with a high priority is accepted during interrupt processing, the process is interrupted and a higher priority is given. The case where the interrupted processing is resumed after processing the request will be described.
If there is an interrupt request with a higher priority than the currently executing interrupt process while another request is executing the interrupt process, first refer to the value of the interrupt request counter section of the currently executing process and set it to a certain specified value. If it is, the process is continued, and if not, the process is interrupted, the interrupt process with the higher priority is executed, and the interrupted process is executed again after the process is completed. .
For example, it is defined that the processing is interrupted when the value of the counter unit 12 is 10 or less, and the processing is continued when the value is 11 or more.
It is assumed that an interrupt request has been accepted at the moment when the value of the interrupt request counter unit 12 becomes eight. In this case, the count value comparing unit 13 compares the priority of the request being processed with the priority of the interrupt request, and determines that the latter is higher and that the interrupt has occurred when the count value is 8. When each of them is detected, the interrupt request being processed is stored in the interrupt processing interruption storage unit 16 and saved . As a result, the interrupt processing request / interrupt interrupt request generating unit 14 inputs the contents of the transmission order determination register unit 15 and the interrupt processing interrupt storage unit 16, generates and outputs an interrupt processing interrupt request. As a result, the processing being executed is interrupted, and an interrupt processing start request of the newly input interrupt request is output. After this processing is completed, the storage of the interruption processing interruption storage unit 16 is read , and the interruption processing request generation unit 14 outputs the processing restart of the interrupted and waiting request.
[0011]
FIG. 2 is an operation flowchart of an interrupt control method according to a third embodiment of the present invention.
First, normal processing is performed, initialization of the interrupt request counter unit 12 is performed, and a priority order is determined (step 101). Next, it is determined whether or not there is an interrupt request (step 102). If not, the normal processing is performed while repeating the determination. If there is an interrupt request, the request is accepted (step 103). In response to the request, the interrupt request counter 12 starts counting (step 104), and determines whether another interrupt is being processed (step 105). If another interrupt is being processed, the counter value of the interrupt request counter unit 12 is referred to, and the priority comparison is performed by the counter value comparison unit 13 (step 106). It is determined whether or not the interrupt processing being executed is interrupted (step 107). That is, when the counter value is equal to or greater than a predetermined threshold value or when the interrupt processing being executed has a higher priority, the processing is continued without interrupting the interrupt processing being executed. Then, it is determined whether or not the interrupt processing being executed is completed (step 108). Upon completion, the flow returns to step 105 again to determine whether or not another interrupt is being processed.
[0012]
If it is determined in step 105 that other interrupt processing is not being performed, interrupt processing is started (step 109). It is determined whether or not there is an interrupt processing interruption request (step 110). If there is no interruption request, the process ends normally. On the other hand, if there is an interrupt processing interruption request, the processing is interrupted (step 111), and interrupt processing with a high priority is started (step 112). It is determined whether or not the executed processing has been completed (step 113), and if completed, the interrupted processing is resumed (step 114). Then, the processing is terminated.
In step 107, the priority of the interrupt processing being executed and the counter value are referred to, and this is compared with the priority of the newly accepted interrupt request, thereby interrupting the interrupt processing being executed. If determined, it is further determined whether or not there is an interrupt processing interruption request (step 110). If not, the interrupt processing is normally terminated. Further, if there is an interrupt processing interruption request, since an interrupt request with a higher priority has been accepted, the processing is interrupted (step 111), and interrupt processing with a higher priority is started (step 112). When the processing is completed (step 113), the interrupted processing is resumed, and when the processing is completed, the processing which was interrupted first is restarted (step 114).
[0013]
【The invention's effect】
As described above, according to the present invention, the priority can be determined by software even after the interrupt controller is designed, so that the interrupt priority can be changed. Also, by providing a counter that counts the time from the occurrence of the interrupt request and making the initial value different according to the priority, it is possible to quickly process the interrupt request that is to be preferentially processed regardless of the priority. . Furthermore, since the priority is determined by a counter that counts time and software, if there is a high-priority interrupt request during low-priority interrupt processing, the low-priority processing is interrupted and interrupted. High interrupt processing can be executed first.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of an interrupt controller showing one embodiment of the present invention.
FIG. 2 is an operation flowchart of an interrupt control method according to an embodiment of the present invention.
[Explanation of symbols]
Reference Signs List 11 interrupt request receiving unit 12 interrupt request counter unit 13 count value comparing unit 14 interrupt processing request / interrupt processing interrupt request generating unit 15 transmission order determination register unit 16 interrupt processing interrupt storage unit

Claims (4)

ファクシミリ装置における1送信書画情報ブロックごとの送信順序を決定する割込みコントローラにおいて、
各ブロックごとの送信の優先順位を変更して後順位のものを最優先ないし先順位に変更させる割込み要求を受付ける割込み要求受付部と、
該割込み要求のあるブロックごとに変更された順位に従って送信順序を決定し、決定された送信順序を保持する送信順序決定レジスタ部と、
送信順序が決定されると、カウンタ初期値がセットされ、割込み要求が発生してからの時間をカウントする動作を開始する割込み要求カウンタ部と、
該割込み要求カウンタ部における各ブロックごとのカウント値を比較し、後順位のものを先順位に変更させる割込み処理中の優先順位と割込み要求の優先順位を比較するカウント値比較部と、
割込み処理の準備を中断したことを表わす割込み処理中断記憶部と、
該カウント値比較部と送信順序決定レジスタ部と割込み処理中断記憶部の各内容を基にして、割込み処理要求または割込み処理中断要求を発生する発生部と
を具備したことを特徴とする割込みコントローラ。
An interrupt controller for determining a transmission order for each transmission document information block in a facsimile apparatus,
An interrupt request receiving unit that receives an interrupt request for changing the priority of transmission for each block and changing the next priority to the highest priority or the first priority,
A transmission order determination register unit that determines the transmission order according to the order changed for each block having the interrupt request and holds the determined transmission order;
When the transmission order is determined, an initial value of a counter is set, and an interrupt request counter unit that starts an operation of counting a time since an interrupt request is generated;
A count value comparison unit that compares a count value of each block in the interrupt request counter unit, and compares a priority during an interrupt process for changing a subsequent one to a first priority and an interrupt request priority;
An interrupt processing interruption storage unit indicating that preparation for interrupt processing has been interrupted;
An interrupt controller comprising an interrupt processing request or a generating section for generating an interrupt processing interrupt request based on the contents of the count value comparing section, the transmission order determining register section, and the interrupt processing interrupt storage section.
ファクシミリ装置における1送信書画情報ブロックごとの送信順序を決定する割込み制御方法において、
各ブロックごとの送信の優先順位を変更して後順位のものを最優先ないし先順位に変更させる割込み要求が受付けられると、該割込み要求の処理順序をソフトウェアにより設定するとともに、該割込み要求が発生してからの時間をカウントするカウンタに対し、同一の初期値を設定して、カウントを開始させ、
次に処理を開始しようとしている後順位のものを先順位に変更させる割込み処理がある場合、それよりも優先順位の高い割込み要求が受付けられると、割込み要求の処理順序を変更して割込み処理を開始することを特徴とする割込み制御方法。
An interrupt control method for determining a transmission order for each transmission document information block in a facsimile apparatus,
When an interrupt request for changing the priority of transmission for each block and changing the next priority to the highest priority or the highest priority is received, the processing order of the interrupt request is set by software, and the interrupt request is generated. Set the same initial value to the counter that counts the time since the start, and start counting,
Next, if there is an interrupt process that changes the next-priority one that is about to start processing to the first one, and an interrupt request with a higher priority is accepted, the interrupt request processing order is changed and interrupt processing is performed. An interrupt control method characterized by starting.
ファクシミリ装置における1送信書画情報ブロックごとの送信順序を決定する割込み制御方法において、
各ブロックごとの送信の優先順位を変更して後順位のものを最優先ないし先順位に変更させる割込み要求が受付けられると、該割込み要求が発生してからの時間をカウントするカウンタに対し、それぞれ異なる割込みの優先順位に応じたカウント初期値を設定し、かつカウント値が予め定めた値以上になったとき、初めて各ブロックの後順位のものを先順位に変更させる割込み処理を開始することにより、割込みの優先順位に関係なく、その時点で優先的に処理すべき割込み要求を判断して割込み処理を開始することを特徴とする割込み制御方法。
An interrupt control method for determining a transmission order for each transmission document information block in a facsimile apparatus,
When an interrupt request for changing the priority of transmission for each block and changing the next highest priority to the highest priority or the highest priority is received, a counter for counting the time from the generation of the interrupt request is received. By setting an initial count value according to the priority of different interrupts, and when the count value becomes equal to or greater than a predetermined value, an interrupt process for changing a rear-order one of each block to a first-order first is started. An interrupt control method characterized by determining an interrupt request to be processed with priority at that time regardless of the priority of the interrupt and starting interrupt processing.
ファクシミリ装置における1送信書画情報ブロックごとの送信順序を決定する割込み制御方法において、
各ブロックごとの送信の優先順位を変更して後順位のものを最優先ないし先順位に変更させる割込み要求が受付けられると、該割込み要求の送信順序を決定し、
該割込み要求が発生してからの時間をカウントするカウンタに対し、同一のカウント初期値を設定して、カウントを開始させ、後順位のものを先順位に変更させる割込み処理中に優先順位の高い割込み要求が受付けられた場合、該割込み処理中のカウント値が予め定めた値未満であるときには、割込み処理を中断し、後から受付けた割込み要求を先に処理した後、中断された処理を再開し、予め定めた値以上であるときには、そのまま処理を続行することを特徴とする割込み制御方法。
An interrupt control method for determining a transmission order for each transmission document information block in a facsimile apparatus,
When an interrupt request to change the priority of transmission for each block and change the next priority to the highest priority or the highest priority is received, determine the transmission order of the interrupt request,
The same count initial value is set for the counter that counts the time from the occurrence of the interrupt request, the count is started, and the higher priority is set during the interrupt processing for changing the higher priority to the higher priority. When an interrupt request is received, if the count value during the interrupt processing is less than a predetermined value, the interrupt processing is interrupted, the interrupt request received later is processed first, and then the interrupted processing is resumed. An interrupt control method characterized by continuing the processing when the value is equal to or more than a predetermined value.
JP00562194A 1994-01-24 1994-01-24 Interrupt controller and control method thereof Expired - Fee Related JP3572650B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00562194A JP3572650B2 (en) 1994-01-24 1994-01-24 Interrupt controller and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00562194A JP3572650B2 (en) 1994-01-24 1994-01-24 Interrupt controller and control method thereof

Publications (2)

Publication Number Publication Date
JPH07210401A JPH07210401A (en) 1995-08-11
JP3572650B2 true JP3572650B2 (en) 2004-10-06

Family

ID=11616250

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00562194A Expired - Fee Related JP3572650B2 (en) 1994-01-24 1994-01-24 Interrupt controller and control method thereof

Country Status (1)

Country Link
JP (1) JP3572650B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5331451B2 (en) * 2008-11-11 2013-10-30 株式会社メガチップス Microcontroller

Also Published As

Publication number Publication date
JPH07210401A (en) 1995-08-11

Similar Documents

Publication Publication Date Title
KR100810015B1 (en) System, management server, reception server, control method, control program, and recording medium
US4885770A (en) Boot system for distributed digital data processing system
US5706439A (en) Method and system for matching packet size for efficient transmission over a serial bus
US5606681A (en) Method and device implementing software virtual disk in computer RAM that uses a cache of IRPs to increase system performance
JP2004038758A (en) Storage controller, control method for storage controller, and program
RU2134446C1 (en) Method for controlling primitive program overflow by messages in multiprocessor control system (versions)
US7337244B2 (en) Data transfer apparatus, storage device control apparatus and control method using storage device control apparatus
US7177963B2 (en) System and method for low-overhead monitoring of transmit queue empty status
JP4659008B2 (en) Peripheral circuit with host load adjustment function
JP3572650B2 (en) Interrupt controller and control method thereof
US20050190703A1 (en) Data communications system, data communications method, and data communications program
CN111831408A (en) Asynchronous task processing method and device, electronic equipment and medium
JP2002323988A (en) Method and system for processing remote interrupt signal, and network interface system
US5878278A (en) System for controlling connection requests by each IO controllers storing and managing a request queue wherein additional channel addresses can be added
JPH0578925A (en) Communication control method
KR101085393B1 (en) Method and apparatus for executing command to multitasking a plurality of process
JP2005107818A (en) Arbitration device and image forming device using it
JPH11327793A (en) Storage controller
JP2829908B2 (en) Server program execution control method
JPH08111727A (en) Facsimile equipment
JP2002057712A (en) Memory leakage recovery method for packet memory and buffer processing unit
JP2004118334A (en) Failure restoring method
JP2007128396A (en) Interrupt control method and information processor
JPH10133997A (en) Dma controller
JP2010157254A (en) Information accumulation control method to storage device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040319

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040518

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040608

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040621

LAPS Cancellation because of no payment of annual fees