JP5588951B2 - Interrupt control circuit - Google Patents
Interrupt control circuit Download PDFInfo
- Publication number
- JP5588951B2 JP5588951B2 JP2011237423A JP2011237423A JP5588951B2 JP 5588951 B2 JP5588951 B2 JP 5588951B2 JP 2011237423 A JP2011237423 A JP 2011237423A JP 2011237423 A JP2011237423 A JP 2011237423A JP 5588951 B2 JP5588951 B2 JP 5588951B2
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- signal
- unit
- loss
- lost
- 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
Links
Images
Description
本発明は、割り込み制御回路に関する。 The present invention relates to an interrupt control circuit.
従来から、SoC(System On Chip)ICの内部に配置されるIRQC(Interrupt ReQuest Controller)に用いられる割り込み制御回路として、例えば下記特許文献1に記載のように、割り込み供給側に設けたパルス発生回路と、複数のパルス発生回路を排他制御するためのコントロール信号線と、CPU側に設けた割り込み認識回路、とを備え、CPUと複数の割り込み供給源の間を2本の信号線で接続した割り込み制御回路が知られている。
Conventionally, as an interrupt control circuit used in an IRQC (Interrupt ReQuest Controller) disposed inside a SoC (System On Chip) IC, for example, a pulse generation circuit provided on the interrupt supply side as described in
このような割り込み制御回路は、割り込み供給源の1つから割り込みが発生すると、CPUに割り込みを発生させる。また、その割り込み供給源の1つからその供給源独自のパルスが発生し、CPUで当該パルスをカウント、ラッチすることにより、それをCPUが取り込んで何れの供給源からの割り込みであるかを認識する。 Such an interrupt control circuit causes the CPU to generate an interrupt when an interrupt is generated from one of the interrupt supply sources. Also, a unique pulse is generated from one of the interrupt supply sources, and the CPU counts and latches the pulse, so that the CPU captures it and recognizes from which supply source it is an interrupt. To do.
また、1箇所の割り込み供給源から割り込みが発生した場合に、当該割り込みとは異なる別の割り込みが割り込み供給源で発生したとしても、当該先に発生した割り込みに対応する割込処理が終了するまでの間、CPUに割り込みを発生させないように排他制御が行われている。 In addition, when an interrupt is generated from one interrupt supply source, even if another interrupt different from the interrupt is generated at the interrupt supply source, the interrupt processing corresponding to the interrupt that occurred earlier is completed. During this period, exclusive control is performed so that the CPU does not generate an interrupt.
しかしながら、上記従来の割り込み制御回路では、上記のように排他制御が行われているため、1箇所で割り込みが発生して当該割り込みに対応する割込処理が終了するまでの間に、新たな割り込みが発生したとしても、当該新たな割り込みの発生を検知することができず、また、当該新たな割り込みの発生を検知できなかったことを知ることもできなかった。 However, in the conventional interrupt control circuit, since the exclusive control is performed as described above, a new interrupt is generated between the time when an interrupt is generated at one place and the interrupt processing corresponding to the interrupt is completed. Even if this occurred, it was not possible to detect the occurrence of the new interrupt, and it was impossible to know that the occurrence of the new interrupt could not be detected.
本発明は、このような事情に鑑みてなされたものであり、ある割り込みに対応する割込処理が終了するまでの間に新たな割り込みが発生した場合に、当該新たな割り込みが発生したことを検知することができる割り込み制御回路を提供することを目的とする。 The present invention has been made in view of such circumstances. When a new interrupt is generated before the interrupt processing corresponding to a certain interrupt is completed, the fact that the new interrupt has occurred is described. An object of the present invention is to provide an interrupt control circuit capable of detecting.
本発明に係る割り込み制御回路は、割り込みの発生を示す割込発生信号を受信する割込信号受信部と、前記割込信号受信部によって前記割込発生信号が受信されたとき、割り込みの発生を示す割込発生情報を記憶する割込記憶部と、前記割り込みに対応する処理である割込処理の実行を許可することを示すハイレベルの割込許可信号、又は、前記割込処理の実行を許可しないことを示すローレベルの割込許可信号を受信する許可信号受信部と、前記許可信号受信部によって前記ハイレベルの割込許可信号が受信され、かつ前記割込記憶部に前記割込発生情報が記憶されているとき、前記割込処理の実行を要求する割込処理要求信号を出力する割込処理要求部と、前記割込記憶部に前記割込発生情報が記憶されている状態で、更に新たな前記割込発生信号が前記割込信号受信部によって受信されたとき、前記新たな割込発生信号の紛失を検知する割込紛失検知部と、前記割込紛失検知部によって前記新たな割込発生信号の紛失が検知されたとき、前記新たな割込発生信号の紛失を示す情報を記憶し、前記新たな割込発生信号の紛失を示す情報を記憶している期間、前記新たな割込発生信号の紛失を示すハイレベルの信号を出力する紛失記憶部と、前記許可信号受信部によって受信された前記割込許可信号が一端に入力され、前記一端に入力された前記割込許可信号と他端に入力された信号との論理積に対応する第一論理積信号を出力する第一論理積回路と、前記紛失記憶部から出力された信号と前記第一論理積回路から出力された前記第一論理積信号との論理積に対応する第二論理積信号を出力する論理積回路であり、前記第二論理積信号がローレベルのときは、前記第二論理積信号を前記新たな割込発生信号の紛失がないことを示す割込紛失信号として出力し、前記第二論理積信号がハイレベルのときは、前記第二論理積信号を前記新たな割込発生信号の紛失を示す割込紛失信号として出力する第二論理積回路と、を備える。 An interrupt control circuit according to the present invention includes an interrupt signal receiving unit that receives an interrupt generation signal indicating the occurrence of an interrupt, and generates an interrupt when the interrupt signal reception unit receives the interrupt generation signal. An interrupt storage unit for storing the interrupt generation information shown, and a high-level interrupt permission signal indicating that the execution of the interrupt process that is a process corresponding to the interrupt is permitted, or the execution of the interrupt process. A permission signal receiving unit that receives a low-level interrupt permission signal indicating that permission is not permitted, and the permission signal receiving unit receives the high-level interrupt permission signal, and the interrupt storage unit generates the interrupt. When information is stored, an interrupt process request unit that outputs an interrupt process request signal that requests execution of the interrupt process, and the interrupt generation information is stored in the interrupt storage unit , The new discount When the evolution signal is received by said interrupt signal receiving unit, and an interrupt lost detecting section for detecting the loss of the new interrupt generation signal, loss of the new interrupt generation signal by said interrupt lost detection unit Is detected, the information indicating the loss of the new interrupt generation signal is stored, and the information indicating the loss of the new interrupt generation signal is stored for a period of time during which the information indicating the loss of the new interrupt generation signal is stored. The lost storage unit that outputs a high level signal indicating that the interrupt enable signal received by the enable signal receiver is input to one end, the interrupt enable signal input to the one end, and the other end A first logical product circuit that outputs a first logical product signal corresponding to a logical product of the received signal, the signal output from the lost storage unit, and the first logical product output from the first logical product circuit. Second AND corresponding to the logical AND with the signal And outputs the second logical product signal as an interrupt lost signal indicating that the new interrupt generation signal is not lost when the second logical product signal is at a low level. And a second AND circuit that outputs the second AND signal as an interrupt lost signal indicating the loss of the new interrupt generation signal when the second AND signal is at a high level .
この構成によれば、割込記憶部に割込発生情報が記憶されている状態で、更に新たな割込発生信号が割込信号受信部によって受信されたとき、割込紛失検知部によって当該新たな割込発生信号の紛失が検知される。そして、割込紛失検知部によって当該新たな割込発生信号の紛失が検知されたとき、紛失記憶部によって新たな割込発生信号の紛失を示す情報が記憶されている期間、紛失記憶部によって当該新たな割込発生信号の紛失を示すハイレベルの信号が出力される。 According to this configuration, when a new interrupt generation signal is received by the interrupt signal receiving unit in a state where the interrupt generation information is stored in the interrupt storage unit, the new loss detection unit detects the new interrupt generation information. Loss of the interrupt generation signal is detected. When the loss of the new interrupt occurrence signal is detected by the lost loss detection unit, the loss storage unit stores the information indicating the loss of the new interrupt occurrence signal during the period in which information indicating the loss of the new interrupt occurrence signal is stored. A high level signal indicating the loss of a new interrupt generation signal is output.
このため、当該出力されたハイレベルの信号によって紛失したことが示された新たな割込発生信号に対応する割り込みが、ある割り込みに対応する割込処理が終了するまでの間に発生していたことを検知することができ、当該ハイレベルの信号に対する対処を当該期間における任意のタイミングで実施することができる。
許可信号受信部によって受信された割込許可信号が割込処理の実行を許可しないことを示す場合、割込処理要求部が割込処理の実行を要求することはない。つまり、この場合、割込処理が実行されないので、割込処理が終了するまでの間に新たな割り込みが発生することはない。
この構成によれば、割込許可信号が割込処理の実行を許可しないことを示す場合に、割込処理が終了するまでの間に新たな割り込みが発生することがないことに合わせて、新たな割込発生信号の紛失を示すハイレベルの割込紛失信号の出力を禁止することができる。
For this reason, an interrupt corresponding to a new interrupt generation signal indicated to be lost by the output high level signal was generated until the interrupt processing corresponding to a certain interrupt is completed. This can be detected , and the high-level signal can be dealt with at an arbitrary timing in the period.
When the interrupt permission signal received by the permission signal receiving unit indicates that the execution of the interrupt process is not permitted, the interrupt process requesting unit does not request the execution of the interrupt process. That is, in this case, the interrupt process is not executed, so that no new interrupt is generated until the interrupt process ends.
According to this configuration, when the interrupt permission signal indicates that execution of the interrupt process is not permitted, a new interrupt is not generated until the interrupt process is completed. It is possible to prohibit the output of a high-level interrupt loss signal indicating the loss of an interrupt generation signal.
また、前記割込発生信号の紛失の検知を禁止することを示すハイレベルの紛失検知禁止信号、又は、前記割込発生信号の紛失の検知を許可することを示すローレベルの紛失検知禁止信号を受信し、受信した前記紛失検知禁止信号の論理否定を示す信号を、前記第一論理積回路の前記他端へ出力する検知禁止受信部を更に備えることが好ましい。 Further, a high level loss detection prohibition signal indicating prohibition of detection of loss of the interrupt generation signal , or a low level loss detection prohibition signal indicating permission of detection of loss of the interrupt generation signal. It is preferable to further include a detection prohibition receiving unit that receives and outputs a signal indicating the logical negation of the received loss detection prohibition signal to the other end of the first AND circuit .
この構成によれば、検知禁止受信部にハイレベルの紛失検知禁止信号を受信させるか否かによって、第二論理積回路によるハイレベルの割込紛失信号の出力を禁止するか否かを切り替えることができる。 According to this configuration, whether to prohibit the output of the high-level interrupt loss signal by the second AND circuit is switched depending on whether the detection prohibition receiving unit receives the high-level loss detection prohibition signal. Can do.
本発明によれば、ある割り込みに対応する割込処理が終了するまでの間に新たな割り込みが発生した場合に、当該新たな割り込みが発生したことを検知することができる割り込み制御回路を提供することが可能になる。 According to the present invention, there is provided an interrupt control circuit capable of detecting that a new interrupt has occurred when a new interrupt occurs before the interrupt processing corresponding to a certain interrupt is completed. It becomes possible.
以下、本発明に係る割り込み制御回路を備えた、例えば、コピー、プリンタ、スキャナ及びファクシミリの機能を有する複合機を図面に基づいて説明する。 DESCRIPTION OF THE PREFERRED EMBODIMENTS A multifunction device having an interrupt control circuit according to the present invention and having functions of, for example, a copy, a printer, a scanner, and a facsimile will be described below with reference to the drawings.
図1に示すように、複合機1は、本体部100、原稿読取部200、原稿給送部300、操作部400、及び用紙後処理部500を備えている。
As shown in FIG. 1, the
原稿給送部300は、原稿載置部301、給紙ローラ303、原稿搬送部305及び原稿排出部307を備えている。
The
給紙ローラ303は、原稿載置部301にセットされた原稿を1枚ずつ繰り出す。原稿搬送部305は、繰り出された原稿を原稿読取部200に搬送する。原稿は、原稿読取部200で読み取られて原稿排出部307に排出される。
The
原稿読取部200は、CCD(Charge Coupled Device)センサ及び露光ランプ等を搭載したキャリッジ201、ガラス等の透明部材により構成された原稿台203、及び原稿読取スリット205を備えている。
The
原稿台203に載置された原稿を読み取る場合、キャリッジ201を原稿台203の長手方向に移動させながらCCDセンサにより原稿を読み取る。これに対して、原稿給送部300から給送された原稿を読み取る場合、キャリッジ201を原稿読取スリット205と対向する位置に移動させて、原稿給送部300から送られてきた原稿を、原稿読取スリット205を通してCCDセンサにより読み取る。CCDセンサは読み取った原稿を画像データとして出力する。
When reading a document placed on the document table 203, the document is read by the CCD sensor while moving the
本体部100は、用紙貯留部101、画像形成部103及び定着部105を備えている。
The
用紙貯留部101は、本体部100の最下部に配置され、用紙の束を貯留する用紙トレイ107を備えている。用紙トレイ107に貯留された用紙の束において、最上位の用紙がピックアップローラ109の駆動により、用紙搬送部111へ向けて繰り出される。用紙は、用紙搬送部111を通って、画像形成部103へ搬送される。
The
画像形成部103は、搬送されてきた用紙にトナー画像を形成する。画像形成部103は、感光体ドラム113、露光部115、現像部117及び転写部119を備えている。
The
露光部115は、画像データ(原稿読取部200から出力された画像データ、パソコンから送信された画像データ、ファクシミリ受信の画像データ等)に対応する光を生成し、一様に帯電された感光体ドラム113の周面に照射する。これにより、感光体ドラム113の周面には画像データに対応する静電潜像が形成される。
The
この状態で感光体ドラム113の周面に現像部117からトナーを供給することにより、感光体ドラム113の周面には、画像データに対応するトナー画像が形成される。このトナー画像は、転写部119によって上記の用紙貯留部101から搬送されてきた用紙に転写される。
In this state, toner is supplied from the developing
トナー画像が転写された用紙は、定着部105に送られる。定着部105において、トナー画像と用紙に熱と圧力が加えられて、トナー画像を用紙に定着させる。これにより、用紙への画像の印刷が完了する。この印刷済用紙に対して後処理がされる場合、印刷済用紙は本体部100の用紙排出口121から用紙後処理部500へ送られる。これに対して後処理がされない場合、印刷済用紙は排紙トレイ123に排紙される。
The sheet on which the toner image is transferred is sent to the
用紙後処理部500では、印刷済用紙に対して、ソート、ステープル、パンチ、中綴じ等の後処理がされる。用紙後処理部500は、用紙搬入口501、用紙搬送部503、用紙搬出口505及びスタックトレイ507等を備える。用紙搬送部503は用紙排出口121から用紙搬入口501に搬入された印刷済用紙を順次搬送し、後処理がされた印刷済用紙を用紙搬出口505からスタックトレイ507へ搬出する。スタックトレイ507は用紙搬出口505から搬出された上記用紙の集積枚数に応じて矢印方向に上下動可能な構成を有する。
The
操作部400は、操作キー部401と表示部403を備える。表示部403はタッチパネル機能を有しており、ソフトキーを含む画面が表示される。ユーザは画面を見ながらソフトキーを操作することによって、コピー等の機能の実行に必要な設定等をする。
The
操作キー部401は、ハードキーからなる操作キーを備えており、具体的にはヘルプキー405、スタートキー407、テンキー409及び機能切換キー411等を備える。
The operation
ヘルプキー405は、ヘルプ画面を表示部403に表示させるキーである。ヘルプ画面とはスキャナ、ファクシミリ、プリンタ、コピー等の機能に関する操作方法が表示された画面である。スタートキー407は、コピー、ファクシミリ送信等の動作を開始させるキーである。テンキー409は、コピー部数、ファクシミリ番号等の数字を入力するキーである。機能切換キー411は、コピーキー及び送信キー等を備えており、コピー機能、送信機能等を相互に切り替えるキーである。コピーキーを操作すれば、コピーの初期画面が表示部403に表示される。送信キーを操作すれば、ファクシミリ送信及びメール送信の初期画面が表示部403に表示される。
A
続いて、複合機1の電気的構成について説明する。図2に示すように、複合機1は、本体部100、原稿読取部200、原稿給送部300、操作部400、用紙後処理部500、USBメモリー等の記憶媒体6を複合機1に接続するための外部インターフェイス(外部I/F)600、通信部700、及び制御部2が、バスによって接続された構成を有する。
Next, the electrical configuration of the
制御部2は、ROM(Read Only Memory)21、RAM(Random Access Memory)22、CPU(Central Processing Unit)23、及び、割り込み制御回路24がバスによって接続されたマイクロコンピュータとして構成されている。
The
CPU23は、RAM22を作業領域として利用しつつ、ROM21に記憶されている制御プログラムを実行することによって、装置各部100,200,300,400,500,600,700に必要な制御を行う。
The
割り込み制御回路24は、装置各部100,200,300,400,500,600,700から割り込みの発生を示す割込信号を受信し、当該割込信号によって示される割り込みに対応する処理(割込処理)の実行要求を、CPU23に向けて出力する制御を行う。
The interrupt
続いて、割り込み制御回路24の構成について詳述する。例えば、図3に示すように、割り込み制御回路24は、割込信号受信部31、割込記憶部32、許可信号受信部33、割込処理要求部34、割込紛失検知部35、検知禁止受信部36、及び紛失信号出力部37を備えている。
Next, the configuration of the interrupt
また、割り込み制御回路24は、割込クリア信号受信部41、及び紛失クリア信号受信部42を備えている。割込クリア信号受信部41は、後述のDフリップフロップ回路322に記憶されている割込発生フラグの値を「0」に設定(クリア)させるか否かの指示を示す割込クリア信号を受信するための入力端子である。紛失クリア信号受信部42は、後述のDフリップフロップ回路382に記憶されている割込紛失フラグの値を「0」に設定(クリア)させるか否かの指示を示す紛失クリア信号を受信するための入力端子である。尚、割込クリア信号受信部41及び紛失クリア信号受信部42は、コネクタや、ICの信号ピン、又は、配線パターンであってもよい。
The interrupt
割込信号受信部31は、装置各部100,200,300,400,500,600,700から出力された割込発生信号を受信するための入力端子である。尚、以下では、割込発生信号は、ハイレベル又はローレベルの2つのレベルを示す信号であり、ハイレベルの場合に割り込みの発生を示し、ローレベルの場合に割り込みが発生していないことを示すものとして説明する。また、割込信号受信部31は、コネクタや、ICの信号ピン、又は、配線パターンであってもよい。
The interrupt
割込記憶部32は、割込信号受信部31によって受信された割込発生信号のレベルに応じた、割り込みが発生したか否かを示す割込発生フラグ(割込発生情報)を記憶し、記憶している割込発生フラグの値に対応するレベルの信号を割込紛失検知部35に向けて出力する。
The interrupt
例えば、割込信号受信部31によって受信された割込発生信号がハイレベルである場合、割込記憶部32は、ハイレベルに応じた、割り込みの発生を示す例えば値が「1」の割込発生フラグを記憶し、記憶している割込発生フラグの値「1」に対応するハイレベルの信号を割込紛失検知部35に向けて出力する。尚、以下では、割込発生フラグは、値が「1」の場合に割り込みの発生を示すものとし、値が「0」の場合に割り込みが発生していないことを示すものとする。
For example, when the interrupt generation signal received by the interrupt
具体的には、割込記憶部32は、例えば、図3に示すように、論理和回路321、及びDフリップフロップ回路322を備えている。
Specifically, the interrupt
論理和回路321は、割込信号受信部31によって受信された割込発生信号がハイレベルである場合、Dフリップフロップ回路322のD端子に向けてハイレベルの信号を出力する。
The OR
Dフリップフロップ回路322のクロック端子には、例えば図略の発振回路によって生成されたクロック信号CLKが入力される。尚、クロック信号CLKの周期は、割込発生信号のパルス幅よりも短くされている。Dフリップフロップ回路322は、論理和回路321から入力された信号のレベルに応じた値を、クロック信号CLKのポジティブエッジ(立ち上がりエッジ)と同期して、割込発生フラグとして記憶する。Dフリップフロップ回路322は、当該記憶している割込発生フラグの値に対応するレベルの信号を割込紛失検知部35、論理和回路321及び後述の割込処理要求部34に向けて出力する。
For example, a clock signal CLK generated by an oscillation circuit (not shown) is input to the clock terminal of the D flip-
Dフリップフロップ回路322の出力信号は、論理和回路321を介してフィードバックされてDフリップフロップ回路322のD端子に入力される。その結果、Dフリップフロップ回路322の割込発生フラグの値が一旦「1」になると、割込発生信号のレベルにかかわらず、割込発生フラグの値が「1」に保持される。
The output signal of the D flip-
Dフリップフロップ回路322には、記憶している割込発生フラグの値を「0」に設定(クリア)するためのクリア端子が設けられている。具体的には、CPU23によって割込処理の実行が終了した場合等に、割込クリア信号受信部41によって、割込発生フラグの削除を指示することを示すローレベルの割込クリア信号が受信され、当該ローレベルの割込クリア信号が当該クリア端子に入力されると、Dフリップフロップ回路322は、記憶している割込発生フラグの値を「0」に設定する。
The D flip-
許可信号受信部33は、割込処理の実行を許可するか否かを示す割込許可信号を受信するための入力端子である。尚、以下では、割込許可信号は、ハイレベル又はローレベルの2つのレベルを示す信号であり、ハイレベルの場合に割込処理の実行を許可することを示し、ローレベルの場合に割込処理の実行を禁止することを示すものとして説明する。また、許可信号受信部33は、コネクタや、ICの信号ピン、又は、配線パターンであってもよい。
The permission
割込処理要求部34は、許可信号受信部33によって割込処理の実行を許可することを示すハイレベルの割込許可信号が受信され、かつ割込記憶部32に割り込みの発生を示す値が「1」の割込発生フラグが記憶されているときに、割込処理の実行を要求するハイレベルの割込処理要求信号を出力する。
The interrupt
尚、以下では、割込処理要求信号は、ハイレベル又はローレベルの2つのレベルを示す信号であり、ハイレベルの場合に割込処理の実行を要求することを示し、ローレベルの場合に割込処理の実行を要求しないことを示すものとして説明する。 In the following, the interrupt processing request signal is a signal indicating two levels, high level and low level, and indicates that execution of interrupt processing is requested when the level is high, and interrupted when the level is low. In the following description, it is assumed that execution of the loading process is not requested.
具体的には、割込処理要求部34は、許可信号受信部33によって受信された割込許可信号と、割込記憶部32から出力された信号、つまり、割込記憶部32に記憶されている割込発生フラグの値に対応するレベルの信号と、の論理積に対応する信号を、割込処理要求信号として出力する論理積回路によって構成されている。
Specifically, the interrupt
例えば、割込処理要求部34は、許可信号受信部33によって受信された割込許可信号がハイレベルの信号であり、かつ、割込記憶部32に値が「1」の割込発生フラグが記憶されており、割込記憶部32から出力された信号が当該割込発生フラグの値に対応したハイレベルの信号である場合に、当該2つの信号の論理積に対応するハイレベルの信号を、割込処理要求信号として出力する。
For example, the interrupt
一方、割込処理要求部34は、許可信号受信部33によって受信された割込許可信号と割込記憶部32から出力された信号のうちの、少なくとも何れか一つの信号がローレベルである場合は、当該2つの信号の論理積に対応するローレベルの信号を、割込処理要求信号として出力する。
On the other hand, when the interrupt
割込紛失検知部35は、割込記憶部32に割り込みの発生を示す値が「1」の割込発生フラグが記憶されている状態で、更に新たな割込発生信号が割込信号受信部31によって受信されたとき、当該新たな割込発生信号の紛失を検知したことを示すハイレベルの紛失検知信号を紛失信号出力部37に向けて出力する。
The interrupt loss detection unit 35 is a state in which an interrupt generation flag whose value indicating the occurrence of an interrupt is “1” is stored in the interrupt
尚、以下では、紛失検知信号は、ハイレベル又はローレベルの2つのレベルを示す信号であり、ハイレベルの場合に新たな割込発生信号の紛失を検知したことを示し、ローレベルの場合に新たな割込発生信号の紛失を検知していないことを示すものとして説明する。 In the following, the loss detection signal is a signal indicating two levels of high level or low level. When the loss detection signal is high level, it indicates that the loss of a new interrupt occurrence signal has been detected. A description will be given assuming that the loss of a new interrupt occurrence signal is not detected.
具体的には、割込紛失検知部35は、割込信号受信部31によって受信された割込発生信号と、割込記憶部32から出力された信号、つまり、割込記憶部32に記憶されている割込発生フラグの値に対応するレベルの信号と、の論理積に対応する信号を、紛失検知信号として出力する論理積回路によって構成されている。
Specifically, the interrupt loss detection unit 35 is stored in the interrupt generation signal received by the interrupt
例えば、割込紛失検知部35は、割込記憶部32に値が「1」の割込発生フラグが記憶されており、割込記憶部32から出力された信号が当該割込発生フラグの値に対応したハイレベルの信号である場合に、割込信号受信部31によってハイレベルの割込発生信号が受信されると、当該2つの信号の論理積に対応するハイレベルの信号を、紛失検知信号として出力する。
For example, the interrupt loss detection unit 35 stores an interrupt generation flag whose value is “1” in the interrupt
一方、割込紛失検知部35は、割込記憶部32から出力された信号と割込信号受信部31によって受信された割込発生信号のうちの、少なくとも何れか一つの信号がローレベルである場合は、当該2つの信号の論理積に対応するローレベルの信号を、紛失検知信号として出力する。
On the other hand, the interrupt loss detection unit 35 has at least one of the signal output from the interrupt
検知禁止受信部36は、割込発生信号の紛失の検知を禁止するか否かを示す紛失検知禁止信号を受信する。尚、以下では、紛失検知禁止信号は、ハイレベル又はローレベルの2つのレベルを示す信号であり、ハイレベルの場合に割込発生信号の紛失の検知を禁止することを示し、ローレベルの場合に割込発生信号の紛失の検知を許可することを示すものとして説明する。
The detection
具体的には、検知禁止受信部36は、紛失検知禁止信号を受信するための入力端子361、及び、入力端子361で受信した信号の論理否定を示す信号を出力する論理否定回路362を備えている。
Specifically, the detection
つまり、検知禁止受信部36は、入力端子361によってハイレベルを示す紛失検知禁止信号が受信された場合には、論理否定回路362によってローレベルを示す信号を紛失信号出力禁止部39に向けて出力し、入力端子361によってローレベルを示す紛失検知禁止信号が受信された場合には、論理否定回路362によってハイレベルを示す信号を紛失信号出力禁止部39に向けて出力する。尚、入力端子361は、コネクタや、ICの信号ピン、又は、配線パターンであってもよい。
That is, when the loss detection prohibition signal indicating the high level is received by the
紛失信号出力部37は、割込紛失検知部35から出力された紛失検知信号、許可信号受信部33によって受信された割込許可信号、及び、検知禁止受信部36から出力された紛失検知禁止信号の論理否定を示す信号のレベルに応じて、新たな割込発生信号の紛失を示すか否かを示す割込紛失信号を出力する。
The lost
尚、以下では、割込紛失信号は、ハイレベル又はローレベルの2つのレベルを示す信号であり、ハイレベルの場合に新たな割込発生信号の紛失を示し、ローレベルの場合に新たな割込発生信号の紛失がないことを示すものとして説明する。 In the following description, the lost interrupt signal is a signal indicating two levels of high level or low level. When it is high level, it indicates that a new interrupt occurrence signal is lost, and when it is low level, it indicates a new interrupt level. In the following description, it is assumed that there is no loss of the occurrence signal.
具体的には、紛失信号出力部37は、紛失記憶部38、及び紛失信号出力禁止部39を備えている。
Specifically, the lost
紛失記憶部38は、割込紛失検知部35によって出力された紛失検知信号のレベルに応じた、新たな割込発生信号を紛失したか否かを示す割込紛失フラグ(新たな割込発生信号の紛失を示す情報)を記憶し、記憶している割込紛失フラグに対応するレベルの信号を紛失信号出力禁止部39に向けて出力する。
The lost
例えば、割込紛失検知部35によって出力された紛失検知信号がハイレベルである場合、紛失記憶部38は、ハイレベルに応じた、新たな割込発生信号の紛失を示す例えば値が「1」の割込紛失フラグを記憶し、記憶している割込紛失フラグの値「1」に対応するハイレベルの信号を紛失信号出力禁止部39に向けて出力する。尚、以下では、割込紛失フラグは、値が「1」の場合に新たな割込発生信号の紛失を示すものとし、値が「0」の場合に新たな割込発生信号を紛失していないことを示すものとする。
For example, if the loss detection signal output by the interrupt loss detection unit 35 is at a high level, the
具体的には、紛失記憶部38は、例えば、図3に示すように、論理和回路381、Dフリップフロップ回路382を備えている。
Specifically, the lost
論理和回路381は、割込紛失検知部35によって出力された紛失検知信号がハイレベルである場合、Dフリップフロップ回路382のD端子に向けてハイレベルの信号を出力する。
The
Dフリップフロップ回路382のクロック端子には、例えば図略の発振回路によって生成されたクロック信号CLKが入力される。尚、クロック信号CLKの周期は、割込発生信号のパルス幅よりも短くされている。Dフリップフロップ回路382は、論理和回路381から入力された信号のレベルに応じた値を、クロック信号CLKのポジティブエッジ(立ち上がりエッジ)と同期して、割込紛失フラグとして記憶する。Dフリップフロップ回路382は、当該記憶している割込紛失フラグの値に対応するレベルの信号を紛失信号出力禁止部39、及び論理和回路381に向けて出力する。
For example, a clock signal CLK generated by an oscillation circuit (not shown) is input to the clock terminal of the D flip-
Dフリップフロップ回路382の出力信号は、論理和回路381を介してフィードバックされてDフリップフロップ回路382のD端子に入力される。その結果、Dフリップフロップ回路382の割込紛失フラグの値が一旦「1」になると、紛失検知信号のレベルにかかわらず、割込紛失フラグの値が「1」に保持される。
The output signal of the D flip-
Dフリップフロップ回路382には、記憶している割込紛失フラグの値を「0」に設定(クリア)するためのクリア端子が設けられている。具体的には、CPU23によって割込処理の実行が終了した場合等に、紛失クリア信号受信部42によって、割込紛失フラグの削除を指示することを示すローレベルの紛失クリア信号が受信され、当該ローレベルの紛失クリア信号が当該クリア端子に入力されると、Dフリップフロップ回路382は、記憶している割込発生フラグの値を「0」に設定する。
The D flip-
紛失信号出力禁止部39は、検知禁止受信部36によって割込発生信号の紛失の検知を禁止することを示すハイレベルの紛失検知禁止信号が受信されたとき、割込紛失信号をローレベルにして出力する。これにより、紛失信号出力部37から新たな割込発生信号の紛失を示すハイレベルの割込紛失信号が出力されることを禁止する。また、紛失信号出力禁止部39は、許可信号受信部33によって割込処理の実行を許可しないことを示すローレベルの割込許可信号が受信されたときも、割込紛失信号をローレベルにして出力する。これにより、紛失信号出力部37からハイレベルの割込紛失信号が出力されることを禁止する。
The lost signal
具体的には、紛失信号出力禁止部39は、2つの論理積回路391,392を備えて構成されている。
Specifically, the lost signal
論理積回路391は、許可信号受信部33によって受信された割込許可信号と、検知禁止受信部36から出力された信号と、の論理積に対応する信号を、論理積回路392に向けて出力する。
The
論理積回路392は、紛失記憶部38から出力された信号と、論理積回路391から出力された信号と、の論理積に対応する信号を、割込紛失信号として出力する。
The
例えば、論理積回路391は、許可信号受信部33によって受信された割込許可信号がハイレベルの信号であり、検知禁止受信部36の入力端子361にハイレベルの紛失検知禁止信号が入力されることによって、論理否定回路362からローレベルを示す信号が出力された場合に、当該2つの信号の論理積に対応するローレベルの信号を、論理積回路392に向けて出力する。
For example, in the AND
また、論理積回路391は、許可信号受信部33によって受信された割込許可信号がローレベルの信号である場合には、検知禁止受信部36から出力された信号がハイレベルであるかローレベルであるかによらず、当該2つの信号の論理積に対応するローレベルの信号を、論理積回路392に向けて出力する。
The AND
このように、論理積回路391からローレベルの信号が出力されると、論理積回路392は、紛失記憶部38から出力された信号のレベルがハイレベルであるかローレベルであるかによらず、当該2つの信号の論理積に対応するローレベルの信号を、割込紛失信号として出力する。
As described above, when a low level signal is output from the AND
つまり、本実施形態の構成によれば、検知禁止受信部36にハイレベルの紛失検知禁止信号を受信させるか否かによって、紛失信号出力部37による割込紛失信号の出力を禁止するか否かを切り替えることができる。また、許可信号受信部33にローレベルの割込許可信号を受信させるか否かによっても、紛失信号出力部37による割込紛失信号の出力を禁止するか否かを切り替えることができる。
That is, according to the configuration of the present embodiment, whether or not the lost
許可信号受信部33によって受信された割込許可信号が割込処理の実行を許可しないことを示すローレベルである場合は、割込処理要求部34が割込処理の実行を要求することを示すハイレベルの割込処理要求信号を出力しない。つまり、この場合、割込処理が実行されないので、割込処理が終了するまでの間に新たな割り込みが発生することはない。
If the interrupt permission signal received by the permission
したがって、本実施形態の構成によれば、割込許可信号が割込処理の実行を許可しないことを示す場合に、割込処理が終了するまでの間に新たな割り込みが発生することがないことに合わせて、紛失信号出力部37によって新たな割込発生信号の紛失を示すハイレベルの割込紛失信号が出力されることを禁止することができる。
Therefore, according to the configuration of the present embodiment, when the interrupt permission signal indicates that the execution of the interrupt process is not permitted, no new interrupt is generated until the interrupt process is completed. Accordingly, it is possible to prohibit the loss
尚、紛失信号出力禁止部39は、論理積回路391を備えることなく、論理積回路392のみを備えるように構成し、当該論理積回路392には、紛失記憶部38から出力された信号と、検知禁止受信部36から出力された信号と、が入力されるように構成してもよい。当該構成であっても、検知禁止受信部36にローレベルの紛失検知禁止信号を受信させるか否かによって、紛失信号出力部37による割込紛失信号の出力を禁止するか否かを切り替えることができる。
The lost signal
また、紛失信号出力部37は、紛失信号出力禁止部39を備えることなく、紛失記憶部38のみを備えるように構成し、当該紛失記憶部38から出力される割込紛失フラグの値に対応するレベルの信号をそのまま、紛失信号出力部37から出力される割込紛失信号として出力するように構成してもよい。
In addition, the lost
当該構成では、割込紛失検知部35によって新たな割込発生信号の紛失が検知され、紛失記憶部38によって新たな割込発生信号の紛失を示す値が「1」の割込紛失フラグが記憶されている期間、紛失信号出力部37によって新たな割込発生信号の紛失を示すハイレベルの割込紛失信号が出力される。このため、当該割込紛失信号に対する対処を、CPU23は、当該期間における任意のタイミングで実施することができる。
In this configuration, the lost loss detection unit 35 detects the loss of a new interrupt occurrence signal, and the
更に、紛失信号出力部37は、紛失記憶部38及び紛失信号出力禁止部39を備えることなく、割込紛失検知部35から出力された紛失検知信号をそのまま、紛失信号出力部37から出力される割込紛失信号として出力するように構成してもよい。
Further, the lost
当該構成では、割込記憶部32に割り込みの発生を示す値が「1」の割込発生フラグが記憶されている状態で、更に新たな割込発生信号が割込信号受信部31によって受信されたとき、割込紛失検知部35によって当該新たな割込発生信号の紛失が検知される。そして、割込紛失検知部35によって当該新たな割込発生信号の紛失の検知を示すハイレベルの紛失検知信号が出力されたとき、当該ハイレベルの信号が新たな割込発生信号の紛失を示すハイレベルの割込紛失信号として、そのまま出力される。
In this configuration, a new interrupt generation signal is received by the interrupt
このため、当該出力された割込紛失信号によって紛失したことが示された新たな割込発生信号に対応する割り込みが、ある割り込みに対応する割込処理が終了するまでの間に発生していたことを検知することができる。 For this reason, an interrupt corresponding to a new interrupt generation signal indicated as lost due to the output lost interrupt signal was generated until the interrupt processing corresponding to a certain interrupt ended. Can be detected.
尚、本発明は上記実施の形態の構成に限られず種々の変形が可能である。例えば、上記実施形態では、本発明に係る制御装置を複合機1に適用する例について説明したが、これに限らず、本発明に係る割り込み制御回路は、カラー画像形成用のカラープリンタや、スキャナ装置、ファクシミリ装置、プリンタ装置及びコピー装置等の画像形成装置に適用してもよい。
The present invention is not limited to the configuration of the above embodiment, and various modifications can be made. For example, in the above-described embodiment, an example in which the control device according to the present invention is applied to the
また、上記実施形態において図1乃至図3に示した構成及び設定は単なる一例に過ぎず、本発明を当該実施形態に限定する趣旨ではない。例えば、各種信号がハイレベル又はローレベルである場合に示される情報が、上記実施形態とは反対の意味を示すように構成してもよい。そして、各種信号の論理レベルの意味付けに応じて、割り込み制御回路24と同様の機能が得られるように、割り込み制御回路24の構成を変更してもよい。
In the above embodiment, the configurations and settings shown in FIGS. 1 to 3 are merely examples, and the present invention is not limited to the embodiment. For example, information indicated when various signals are at a high level or a low level may be configured to have a meaning opposite to that in the above embodiment. Then, the configuration of the interrupt
具体的には、例えば、紛失信号出力禁止部39に入力される紛失検知禁止信号がハイレベルの場合に割込発生信号の紛失の検知を許可することを示し、ローレベルの場合に割込発生信号の紛失の検知を禁止することを示すように構成してもよい。そして、これに合わせて、当該紛失検知禁止信号の論理否定を示す信号を出力する論理否定回路(NOT回路)を論理否定回路362(図3)と入力端子361(図3)との間に設けるように構成する、又は、これと等価な構成として、論理否定回路362(図3)を削除するように構成してもよい。
Specifically, for example, when the loss detection prohibition signal input to the lost signal
1 複合機
2 制御部
21 ROM
22 RAM
23 CPU
24 割り込み制御回路
31 割込信号受信部
32 割込記憶部
321 論理和回路
322 Dフリップフロップ回路
33 許可信号受信部
34 割込処理要求部
35 割込紛失検知部
36 検知禁止受信部
361 入力端子
362 論理否定回路
37 紛失信号出力部
38 紛失記憶部
381 論理和回路
382 Dフリップフロップ回路
39 紛失信号出力禁止部
391 論理積回路
392 論理積回路
41 割込クリア信号受信部
42 紛失クリア信号受信部
1
22 RAM
23 CPU
24 interrupt
Claims (2)
前記割込信号受信部によって前記割込発生信号が受信されたとき、割り込みの発生を示す割込発生情報を記憶する割込記憶部と、
前記割り込みに対応する処理である割込処理の実行を許可することを示すハイレベルの割込許可信号、又は、前記割込処理の実行を許可しないことを示すローレベルの割込許可信号を受信する許可信号受信部と、
前記許可信号受信部によって前記ハイレベルの割込許可信号が受信され、かつ前記割込記憶部に前記割込発生情報が記憶されているとき、前記割込処理の実行を要求する割込処理要求信号を出力する割込処理要求部と、
前記割込記憶部に前記割込発生情報が記憶されている状態で、更に新たな前記割込発生信号が前記割込信号受信部によって受信されたとき、前記新たな割込発生信号の紛失を検知する割込紛失検知部と、
前記割込紛失検知部によって前記新たな割込発生信号の紛失が検知されたとき、前記新たな割込発生信号の紛失を示す情報を記憶し、前記新たな割込発生信号の紛失を示す情報を記憶している期間、前記新たな割込発生信号の紛失を示すハイレベルの信号を出力する紛失記憶部と、
前記許可信号受信部によって受信された前記割込許可信号が一端に入力され、前記一端に入力された前記割込許可信号と他端に入力された信号との論理積に対応する第一論理積信号を出力する第一論理積回路と、
前記紛失記憶部から出力された信号と前記第一論理積回路から出力された前記第一論理積信号との論理積に対応する第二論理積信号を出力する論理積回路であり、前記第二論理積信号がローレベルのときは、前記第二論理積信号を前記新たな割込発生信号の紛失がないことを示す割込紛失信号として出力し、前記第二論理積信号がハイレベルのときは、前記第二論理積信号を前記新たな割込発生信号の紛失を示す割込紛失信号として出力する第二論理積回路と、
を備える割り込み制御回路。 An interrupt signal receiver for receiving an interrupt generation signal indicating the occurrence of an interrupt;
When the interrupt signal is received by the interrupt signal receiver, an interrupt storage unit that stores interrupt generation information indicating the occurrence of an interrupt;
Receives a high-level interrupt permission signal indicating that the execution of the interrupt process corresponding to the interrupt is permitted or a low-level interrupt permission signal indicating that the execution of the interrupt process is not permitted. An enabling signal receiving unit,
An interrupt processing request for requesting execution of the interrupt processing when the high-level interrupt permission signal is received by the permission signal receiving unit and the interrupt generation information is stored in the interrupt storage unit An interrupt processing request unit for outputting a signal;
When the interrupt generation information is stored in the interrupt storage unit and a new interrupt generation signal is received by the interrupt signal reception unit, the new interrupt generation signal is lost. An interrupt loss detection unit to detect,
When loss of the new interrupt occurrence signal is detected by the lost loss detection unit, information indicating the loss of the new interrupt occurrence signal is stored, and information indicating the loss of the new interrupt occurrence signal is stored. A lost storage unit that outputs a high-level signal indicating the loss of the new interrupt generation signal,
The interrupt permission signal received by the permission signal receiving unit is input to one end, and a first logical product corresponding to a logical product of the interrupt permission signal input to the one end and a signal input to the other end A first AND circuit for outputting a signal;
An AND circuit that outputs a second AND signal corresponding to an AND of the signal output from the lost storage unit and the first AND signal output from the first AND circuit; When the logical product signal is at a low level, the second logical product signal is output as an interrupt lost signal indicating that the new interrupt generation signal is not lost, and when the second logical product signal is at a high level A second AND circuit that outputs the second AND signal as an interrupt lost signal indicating the loss of the new interrupt generation signal;
An interrupt control circuit comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011237423A JP5588951B2 (en) | 2011-10-28 | 2011-10-28 | Interrupt control circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011237423A JP5588951B2 (en) | 2011-10-28 | 2011-10-28 | Interrupt control circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2013097442A JP2013097442A (en) | 2013-05-20 |
JP5588951B2 true JP5588951B2 (en) | 2014-09-10 |
Family
ID=48619351
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011237423A Expired - Fee Related JP5588951B2 (en) | 2011-10-28 | 2011-10-28 | Interrupt control circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5588951B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102500914B1 (en) * | 2014-10-24 | 2023-02-17 | 스미토모 파마 가부시키가이샤 | Production method for nerve tissue |
EP3868873A1 (en) * | 2014-10-24 | 2021-08-25 | Sumitomo Dainippon Pharma Co., Ltd. | Production method for retinal tissue |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0743653B2 (en) * | 1990-07-25 | 1995-05-15 | 株式会社東芝 | Interrupt controller |
JPH05120031A (en) * | 1991-10-30 | 1993-05-18 | Nec Ic Microcomput Syst Ltd | Micro computer |
JP2001075819A (en) * | 1999-09-02 | 2001-03-23 | Nec Eng Ltd | Interruption request control circuit |
JP2006155048A (en) * | 2004-11-26 | 2006-06-15 | Matsushita Electric Ind Co Ltd | Interrupt controller |
JP2007219837A (en) * | 2006-02-16 | 2007-08-30 | Kyocera Mita Corp | Interrupt control method, arithmetic unit, and image processor |
-
2011
- 2011-10-28 JP JP2011237423A patent/JP5588951B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2013097442A (en) | 2013-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5051052B2 (en) | Image forming apparatus | |
JP5847560B2 (en) | PRINT CONTROL DEVICE, ITS CONTROL METHOD, AND PROGRAM | |
CN109327639B (en) | Image forming apparatus with a toner supply device | |
JP2009246970A (en) | Device for forming image and accounting method | |
JP5588951B2 (en) | Interrupt control circuit | |
US8305623B2 (en) | Image forming apparatus provided with function of detecting errors in printing process | |
JP6081426B2 (en) | Image forming apparatus and blank paper output confirmation method | |
JP2008230760A (en) | Inserter apparatus, printing device and printing system | |
JP2008246812A (en) | Image forming system | |
JP5370550B2 (en) | Image forming apparatus, program, and method executed in image forming apparatus | |
JP7077789B2 (en) | Image forming device | |
JP6561947B2 (en) | Image forming apparatus | |
US9773199B2 (en) | Image forming apparatus and non-transitory computer-readable recording medium storing test print page insertion program | |
JP5558417B2 (en) | Information processing apparatus and information processing method | |
JP2008292921A (en) | Image forming apparatus | |
US20120201548A1 (en) | Image forming apparatus, control method therefor and storage medium | |
JP6225865B2 (en) | Image forming apparatus and cassette open / close detection method | |
WO2022030277A1 (en) | Image formation device | |
JP2008173878A (en) | Image forming apparatus | |
CN111787175B (en) | Information processing apparatus | |
US11323587B2 (en) | Image forming apparatus with a common output scanner output path and printer output path, wherein the output scanned sheet is in a position different from the printed page in the same common output area | |
JP6038852B2 (en) | Image forming apparatus | |
JP5747965B2 (en) | Image forming apparatus, program, and method executed in image forming apparatus | |
JP6365343B2 (en) | Billing management apparatus and billing management method | |
JP5934264B2 (en) | Image forming apparatus and image forming method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130924 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140411 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140415 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140609 |
|
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: 20140701 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140728 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5588951 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |