JP5853375B2 - Image reading apparatus, image reading method, and program - Google Patents
Image reading apparatus, image reading method, and program Download PDFInfo
- Publication number
- JP5853375B2 JP5853375B2 JP2011024277A JP2011024277A JP5853375B2 JP 5853375 B2 JP5853375 B2 JP 5853375B2 JP 2011024277 A JP2011024277 A JP 2011024277A JP 2011024277 A JP2011024277 A JP 2011024277A JP 5853375 B2 JP5853375 B2 JP 5853375B2
- Authority
- JP
- Japan
- Prior art keywords
- shift pulse
- output
- image reading
- shift
- output timing
- 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.)
- Active
Links
Images
Landscapes
- Facsimile Scanning Arrangements (AREA)
- Facsimile Heads (AREA)
Description
本発明は、画像読取装置、画像読取方法、および、プログラムに関する。 The present invention relates to an image reading apparatus, an image reading method, and a program.
一般的なイメージスキャナー(画像読取装置)では、受光部に蓄積された電荷をシフトパルスによりシフトレジスターへシフトさせ、次のシフトパルスまでにシフトレジスターの電荷をコントローラーへ転送する(例えば、特許文献1)。 In a general image scanner (image reading apparatus), the electric charge accumulated in the light receiving unit is shifted to a shift register by a shift pulse, and the electric charge in the shift register is transferred to the controller by the next shift pulse (for example, Patent Document 1). ).
そして、近年のイメージスキャナーでは、高速に画像の読み取りを行うために、シフトパルスの出力間隔について従来よりも短く設定(例えば、「設定値A」とする)される場合がある。 In recent image scanners, in order to read an image at high speed, the output interval of shift pulses may be set shorter than before (for example, “set value A”).
しかし、シフトパルスを出力すべきタイミングになったとしても、他のソフトウェア処理が優先的に実行されていると、そのタイミングでシフトパルスを出力できない場合がある。かかる場合には、その優先的なソフトウェア処理が終了するまでシフトパルスの出力は延期される。 However, even when it is time to output the shift pulse, if other software processing is preferentially executed, the shift pulse may not be output at that timing. In such a case, the output of the shift pulse is postponed until the preferential software processing is completed.
こうして、シフトパルスの出力が予定より遅れると、次にシフトパルスを出力するまでの間隔が短縮されてしまう場合がある(設定値Aよりも短くなる)。このとき、画像データの転送に必要な時間を十分に確保できなくなる。 Thus, if the output of the shift pulse is delayed from the schedule, the interval until the next shift pulse is output may be shortened (becomes shorter than the set value A). At this time, the time required for transferring the image data cannot be secured sufficiently.
本発明は、シフトパルスの出力が予定より遅れた場合でも、画像データの転送に必要な時間をなるべく確保する技術を提供することを目的とする。 It is an object of the present invention to provide a technique for ensuring as much time as possible for transferring image data even when the output of a shift pulse is delayed from the schedule.
上記の課題を解決するための本発明の一態様は、画像読取装置であって、光電変換素子に蓄積された電荷をシフトパルスによってシフトレジスターに転送し、該シフトレジスターに格納された電荷を、読み出しクロックによって、該シフトレジスターの末端の出力部に移動させ、該出力部で、電荷を電気信号に変換して、A/D変換部に送る画像読取部と、前記シフトパルスの出力タイミングを制御するシフトパルス制御部と、を備え、前記シフトパルス制御部は、前記シフトパルスの出力タイミングを、入力された周期割り込み信号の回数に基づいて決定し、前回のシフトパルスの出力が、決定された前回の出力タイミングよりも遅れた場合には、今回のシフトパルスの出力を、決定された今回の出力タイミングより、前記周期割り込み信号の周期単位で遅らせる、ことを特徴とする。
上記の画像読取装置であって、前記シフトパルス制御部は、前回のシフトパルスの出力が、決定された前回の出力タイミングよりも遅れた場合に遅延フラグを有効にし、今回のシフトパルスの出力が、決定された今回の出力タイミングにおいて当該遅延フラグが有効である場合には、当該遅延フラグを無効にし、今回のシフトパルスの出力を、決定された今回の出力タイミングより遅らせる、ことを特徴としてもよい。
上記の課題を解決するための本発明の他の態様は、画像読取方法であって、光電変換素子に蓄積された電荷をシフトパルスによってシフトレジスターに転送し、該シフトレジスターに格納された電荷を、読み出しクロックによって、該シフトレジスターの末端の出力部に移動させ、該出力部で、電荷を電気信号に変換して、A/D変換部に送る画像読取ステップと、前記シフトパルスの出力タイミングを制御するシフトパルス制御ステップと、を行い、前記シフトパルス制御ステップでは、前記シフトパルスの出力タイミングを、入力された周期割り込み信号の回数に基づいて決定し、前回のシフトパルスの出力が、決定された前回の出力タイミングよりも遅れた場合には、今回のシフトパルスの出力を、決定された今回の出力タイミングより、前記周期割り込み信号の周期単位で遅らせる、ことを特徴とする。
上記の課題を解決するための本発明のさらに他の態様は、コンピューターを、画像読取装置として機能させるプログラムであって、光電変換素子に蓄積された電荷をシフトパルスによってシフトレジスターに転送し、該シフトレジスターに格納された電荷を、読み出しクロックによって、該シフトレジスターの末端の出力部に移動させ、該出力部で、電荷を電気信号に変換して、A/D変換部に送る画像読取ステップと、前記シフトパルスの出力タイミングを制御するシフトパルス制御ステップと、を前記コンピューターに実行させ、前記シフトパルス制御ステップでは、前記シフトパルスの出力タイミングを、入力された周期割り込み信号の回数に基づいて決定し、前回のシフトパルスの出力が、決定された前回の出力タイミングよりも遅れた場合には、今回のシフトパルスの出力を、決定された今回の出力タイミングより、前記周期割り込み信号の周期単位で遅らせる、ことを特徴とする。
One embodiment of the present invention for solving the above problem is an image reading device, in which charges accumulated in a photoelectric conversion element are transferred to a shift register by a shift pulse, and the charges stored in the shift register are The output clock is moved to the output unit at the end of the shift register by the readout clock, and the output unit converts the electric charge into an electric signal and sends it to the A / D conversion unit, and the output timing of the shift pulse is controlled. A shift pulse control unit that determines the output timing of the shift pulse based on the number of input periodic interrupt signals, and the output of the previous shift pulse is determined. If it is later than the previous output timing, the current shift pulse is output from the determined current output timing. Delaying in a cycle unit, characterized in that.
In the image reading apparatus, the shift pulse control unit enables the delay flag when the output of the previous shift pulse is delayed from the determined previous output timing, and the output of the current shift pulse is If the delay flag is valid at the determined current output timing, the delay flag is invalidated, and the output of the current shift pulse is delayed from the determined current output timing. Good.
Another aspect of the present invention for solving the above problem is an image reading method, wherein charges accumulated in a photoelectric conversion element are transferred to a shift register by a shift pulse, and the charges stored in the shift register are transferred. The read clock is used to move to the output section at the end of the shift register, where the output section converts the electric charge into an electrical signal and sends it to the A / D conversion section, and the output timing of the shift pulse. A shift pulse control step for controlling, and in the shift pulse control step, the output timing of the shift pulse is determined based on the number of input periodic interrupt signals, and the output of the previous shift pulse is determined. If it is later than the previous output timing, the output of the current shift pulse is compared with the determined current output timing. , Delayed in cycle unit of the periodic interrupt signal, characterized in that.
Still another embodiment of the present invention for solving the above-described problem is a program for causing a computer to function as an image reading device , transferring charges accumulated in a photoelectric conversion element to a shift register by a shift pulse, and An image reading step in which the charge stored in the shift register is moved to the output unit at the end of the shift register by the read clock, and the charge is converted into an electrical signal by the output unit and sent to the A / D conversion unit ; And a shift pulse control step for controlling the output timing of the shift pulse, wherein the shift pulse control step determines the output timing of the shift pulse based on the number of input periodic interrupt signals. The output of the previous shift pulse is later than the determined previous output timing. If the the output of this shift pulse, the output timing of this determined, delayed in cycle unit of the periodic interrupt signal, it is characterized.
以下、本発明の実施形態の一例を図面を参照して説明する。 Hereinafter, an example of an embodiment of the present invention will be described with reference to the drawings.
図1は、本発明の一実施形態が適用された画像読取装置50の概略構成の一例を示すブロック図である。 FIG. 1 is a block diagram illustrating an example of a schematic configuration of an image reading apparatus 50 to which an embodiment of the present invention is applied.
画像読取装置50は、筐体の上面に原稿台(不図示)を備えた、いわゆるフラットベッド型画像読取装置である。画像読取装置50は、イメージセンサー220を走査して、透明板の原稿台に載置された原稿の画像を読み取る。画像読取装置50は、スキャナーに限られず、スキャン機能を有するファクシミリ、コピー機、複合機等であってもよい。
The image reading device 50 is a so-called flat bed type image reading device having a document table (not shown) on the upper surface of a housing. The image reading device 50 scans the
画像読取装置50は、被読取媒体である原稿を載せるための上向きの原稿台(不図示)と、この原稿台の原稿載置面(盤面)およびイメージ読取窓を上からカバーする蓋(不図示)と、を備える。蓋は、原稿台にヒンジ機構を介して結合しており、開閉可能である。 The image reading device 50 has an upward document table (not shown) for placing a document as a read medium, and a cover (not shown) that covers the document placement surface (board surface) and the image reading window of the document table from above. And). The lid is coupled to the document table via a hinge mechanism and can be opened and closed.
また、蓋と一体となって、イメージ読取窓の上側に、ADF(給紙装置)300が設けられている。ADF300は、DCモーター310、給紙トレイ(不図示)、搬送ローラー(不図示)、排紙トレイ(不図示)、等を備える。ここで、搬送ローラーの回転は、DCモーター310によって制御される。ADF300は、給紙トレイ上に載置された原稿を、イメージ読取窓の上面へ送り込んで通過させることができる。なお、DCモーター300には、搬送ローラーの回転量(すなわち、原稿の搬送量)に応じてパルスを出力するエンコーダーが備えられている。
Also, an ADF (paper feeder) 300 is provided on the upper side of the image reading window integrally with the lid. The ADF 300 includes a
また、画像読取装置50は、図示するように、LED光源210及びイメージセンサー(例えば、CCDカラーイメージセンサー)220を搭載したキャリッジ200を原稿台の下に備える。さらに、画像読取装置50は、キャリッジ200の往復移動を制御するキャリッジ駆動機構(不図示)と、画像読取装置50の全体を制御し、画像を読み取るための種々の処理を行うコントローラー100と、を備えている。
Further, as shown in the figure, the image reading apparatus 50 includes a
キャリッジ200は、イメージセンサー220を副走査方向に運搬する。キャリッジ200は、原稿台の盤面およびイメージ読取窓に対し平行なガイド用のシャフト等にスライド自在に取り付けられており、キャリッジ駆動機構のモーターにより回転するベルトにより牽引され、往復移動する。キャリッジ200の移動量は、キャリッジ駆動機構のモーターの回転量に応じてパルスを出力するエンコーダーの出力値により制御される。
The
すなわち、キャリッジ駆動機構は、キャリッジに取り付けられたベルトを回転させるためのモーターと、モーターの回転量に応じてパルスを出力するエンコーダーと、を備えている。 That is, the carriage drive mechanism includes a motor for rotating a belt attached to the carriage and an encoder that outputs a pulse in accordance with the rotation amount of the motor.
なお、ADF300により原稿を搬送させながら読み取りを行う場合、キャリッジ200は、イメージ読取窓の下の所定位置に固定される。
When reading is performed while the original is being conveyed by the ADF 300, the
LED光源210は、赤色(R)LED、緑色(G)LED、青色(B)LEDからなり、RGBの3色の光を所定の順序で発生する。本実施形態では、LED光源210は、通常の原稿の1ライン分の読み取りを行う場合には、赤色LED、緑色LED、青色LEDの順に光を発生する。そして、原稿の画像データの生成に必要なライン数分の読み取りを行うために、同様の発光動作を繰り返す。各色のLEDの発光時間は、色ごとに予め定められており、点灯してからその定められた時間が経過したときに、消灯する。なお、各色のLED光源210の点灯は、所定電流(後述するメイン制御部110からの電流)が供給されて行われる。
The
イメージセンサー220は、原稿に反射した光を受光し、受光量に応じた電荷を蓄積し、画像読取データ(電気信号)として、コントローラー100に送る。
The
イメージセンサー220は、主走査方向に並んだ複数のセンサーチップからなる。各センサーチップは、通常のCIS(Contact Image Sensor)やCCD(Charge Coupled Device)イメージセンサーと同様の構成を備えている。すなわち、各センサーチップは、光電変換素子(フォトダイオード)と、シフトゲートと、シフトレジスターと、を備える。そして、光電変換素子に蓄積された電荷を、シフトゲートを開通させてシフトレジスターへ転送し、シフトレジスターにより電荷を順次移動させながら出力する。
The
シフトゲートの開通(電荷の転送)は、シフトパルス(後述するメイン制御部110からの信号)の印加に応答して行われる。光電変換素子は、常時、光の受光量に応じて電荷を蓄積しているため、電荷のシフトレジスターへの転送タイミングが、次の発光色の光についての電荷を蓄積する開始タイミングとなる。シフトレジスターに転送された電荷は、シフトレジスターの末端の出力部より、電気信号(アナログデータ)に変換されて、A/D変換部120に送られる。
The opening of the shift gate (charge transfer) is performed in response to application of a shift pulse (a signal from the
シフトレジスターに格納された電荷の出力は、所定の読み出しクロック(後述するメイン制御部110からの信号)に応答して行われる。例えば、1クロック毎に1画素の電荷がアナログデータとして出力される。
The output of the charge stored in the shift register is performed in response to a predetermined read clock (a signal from the
コントローラー100は、イメージセンサー220から出力されたアナログデータをデジタルデータに変換するA/D変換部120と、A/D変換部120から出力されたデジタルデータに対して各種補正を行うデータ処理部130と、データ処理部130による各種補正に用いられる補正用データ(白基準データや黒基準データ)や、補正対象の読取データ(画像データ)を記憶する記憶部140と、データ処理部130からのデータをパーソナルコンピューターなどのホストに送るための出力部150と、コントローラー100内の各機能部を全体的に制御するとともに、キャリッジ200内のLED光源210やイメージセンサー220、及び、キャリッジ駆動機構を制御するメイン制御部110と、を備えている。
The
A/D変換部120は、例えば、AFE(Analog Front End)によって実現され、イメージセンサー220から出力されたアナログデータをデジタルデータに変換する。
The A /
データ処理部130は、A/D変換部110から出力されたデジタルデータにシェーディング補正などの各種補正を施して、出力部150に出力する。
The
なお、データ処理部130は、主制御装置であるCPUと、プログラム等が記憶されたROMと、メインメモリーとしてデータ等を一時的に格納するRAMと、を備えたコンピューターで構成することができる。もちろん、データ処理部130は、各種補正処理を専用に行うように設計されたASIC(Application Specific Integrated Circuit)で構成されていてもよい。
The
記憶部140は、例えば、バッファによって実現される。記憶部140は、先入れ先出しのFIFO形式で、A/D変換部120から出力されたデジタルデータを一時的に記憶し、先に記憶したデータから順に出力部150に送る。
The
出力部150は、ネットワーク接続やUSB接続を行うためのインターフェイスにより実現される。出力部150は、ホストの処理能力に応じた転送速度で、記憶部140のデータを、ホストコンピューター(スキャナー制御装置)に送信する。
The
メイン制御部110は、ADF300と、キャリッジ200と、キャリッジ駆動機構(不図示)と、を制御して、画像の読み取りを行う(「画像読取制御」を行う)。具体的には、メイン制御部110は、図示するように、割り込み部111と、ソフトウェア処理部112と、モーター制御部113と、読取制御部114と、を有する。
The
なお、図2は、画像読取制御の概要について説明するためのタイミングチャートである。 FIG. 2 is a timing chart for explaining the outline of the image reading control.
割り込み部111は、後述するモーター制御部113によるDCモーター(駆動モーター)310のPID制御において、図2に示すように所定の周期Tで割り込みを行う。なお、図2に示す数字は、割り込み部111による割り込み回数Nを表す。割り込み回数Nは、シフトパルスが出力されると初期化される(N=0)。
In the PID control of the DC motor (drive motor) 310 by the
ソフトウェア処理部112は、割り込み部111による割り込みをトリガーとして、所定のソフトウェア処理を起動(開始)する。ここで、ソフトウェア処理部112が起動する所定のソフトウェア処理には、シフトパルスを出力する処理(以下では「シフトパルスの出力処理」ともよぶ)等が含まれる。
The
シフトパルスの出力処理では、ソフトウェア処理部112は、割り込み部111による割り込み回数Nに基づいて、イメージセンサー220に対してシフトパルスを出力する。これにより、光電変換素子に蓄積された電荷のシフトレジスターへの転送タイミング(次の電荷蓄積の開始タイミング)を制御する。
In the shift pulse output process, the
また、シフトパルスを出力する間隔は予め設定されており、例えば、割り込み部111による割り込み回数Nに応じて定まる所定時間(例えば、割り込み回数Nが「6回」となるまでにかかる時間「6×T」)に設定されている(図2に示す設定値A)。 The interval for outputting the shift pulse is set in advance. For example, a predetermined time determined according to the number of interrupts N by the interrupt unit 111 (for example, the time “6 × T ”) (set value A shown in FIG. 2).
ただし、ソフトウェア処理部112は、図2に示すように、シフトパルスを出力すべきタイミングαであっても、シフトパルスの出力処理よりも優先的に実行している他の処理(以下では「優先処理」とよぶ)がある場合には、シフトパルスの出力処理を起動(開始)できない。そのため、ソフトウェア処理部112は、他の優先処理が終了したタイミングβでシフトパルスを出力する。すなわち、ソフトウェア処理部112は、シフトパルスを予定よりも遅れて出力する(αからβへ遅延する)。
However, as shown in FIG. 2, the
また、ソフトウェア処理部112は、他の優先処理によって、シフトパルスの出力に遅延が発生した場合には、図2に示すように、遅延フラグを有効にする。なお、この遅延フラグを参照すれば、前回のシフトパルスの出力に遅延が発生したか否か判定することができる。また、遅延フラグは、例えば、有効、無効に切り替え可能なフラグ信号によって保持される。
In addition, when a delay occurs in the output of the shift pulse due to another priority process, the
また、ソフトウェア処理部112は、シフトパルスの出力に遅延が発生した場合には、図2に示すように、次回のシフトパルスの出力を予定よりも遅らせる(γからδに遅らせる)。具体的には、ソフトウェア処理部112は、割り込み部111による割り込み回数Nをカウントし、割り込み回数Nが所定回数(例えば、「6回」)に到達するタイミングγであっても、遅延フラグが有効である場合には、シフトパルスを出力しない。その代わりに、ソフトウェア処理部112は、遅延フラグを無効にして、次に割り込み部111による割り込みが発生するタイミングδでシフトパルスを出力する。
Further, when a delay occurs in the output of the shift pulse, the
なお、シフトパルスの出力に遅延が発生したか否かの判断は、前回にシフトパルスを出力した時刻Toldから、現在時刻Tnewまでの経過時間(図2に示すシフトパルスの出力間隔ΔT)を求めて行われる。 Whether or not a delay has occurred in the output of the shift pulse is determined by determining the elapsed time (the shift pulse output interval ΔT shown in FIG. 2) from the time Told at which the previous shift pulse was output to the current time Tnew. Done.
モーター制御部113は、ADF300のDCモーター(駆動モーター)310を制御(PID制御)して、給紙トレイの原稿を搬送し、イメージ読取窓に通過させる。例えば、モーター制御部113は、DCモーター310を定速で駆動することができる。
The
読取制御部114は、イメージセンサー220による、画像読み取りを制御する。具体的には、読取制御部114は、シフトパルスの出力タイミングでイメージセンサー220に対して読み出しクロックの供給を行い、シフトレジスターに格納されている電荷のコントローラー100(A/D変換部120)への出力を制御する。
The
このとき、イメージセンサー220から出力されたデータ(アナログデータ)は、A/D変換部120でデジタルデータに変換され、データ処理部130によって各種補正が施される。
At this time, data (analog data) output from the
それから、読取制御部114は、データ処理部130に指示信号を通知して、各種補正が施されたデータを記憶部140に格納(バッファリング)する。
Then, the
以上のように、シフトパルスの出力に遅延が発生した場合には、次回のシフトパルスの出力を予定よりも遅らせるため、1ライン分の画像の転送に必要な時間(「転送最短周期」ともいう)を確保できる。そして、光電変換素子に蓄積された電荷をコントローラー100へ確実に転送することができる。
As described above, when a delay occurs in the output of the shift pulse, the time required to transfer the image for one line (also referred to as “the shortest transfer period”) is delayed in order to delay the output of the next shift pulse. ) Can be secured. And the electric charge accumulate | stored in the photoelectric conversion element can be reliably transferred to the
なお、読取制御部114は、ADF300を用いた原稿の読み取り時には、キャリッジ200をイメージ読取窓の下に停止させた状態にしておく。もちろん、ADF300を用いずに原稿台に載置された原稿を読み取る場合には、読取制御部114は、キャリッジ駆動機構のモーターの回転を制御することにより、キャリッジ200の移動を制御することもできる。
The
かかるメイン制御部110は、主制御装置であるCPUと、プログラム等が記憶されたROMと、メインメモリーとしてデータ等を一時的に格納するRAMと、を備えたコンピューターで構成される。ただし、ソフトウェア処理部112以外の各部(111、113、114)については、各処理を専用に行うように設計されたハードウェア(例えば、ASIC)で構成することもできる。
The
本実施形態が適用された画像読取装置50は、以上のような構成からなる。ただし、この構成は、本願発明の特徴を説明するにあたって主要構成を説明したのであって、上記の構成に限られない。また、一般的な画像読取装置が備える他の構成を排除するものではない。また、A/D変換部120は、キャリッジ200内の基板に搭載されていてもよい。
The image reading apparatus 50 to which this embodiment is applied has the above-described configuration. However, this configuration is not limited to the above configuration because the main configuration has been described in describing the features of the present invention. Further, other configurations included in a general image reading apparatus are not excluded. Further, the A /
また、上記した各構成要素は、画像読取装置50の構成を理解容易にするために、主な処理内容に応じて分類したものである。構成要素の分類の仕方や名称によって、本願発明が制限されることはない。画像読取装置50の構成は、処理内容に応じて、さらに多くの構成要素に分類することもできる。また、1つの構成要素がさらに多くの処理を実行するように分類することもできる。また、各構成要素の処理は、1つのハードウェアで実行されてもよいし、複数のハードウェアで実行されてもよい。 Each of the above-described constituent elements is classified according to the main processing contents in order to facilitate understanding of the configuration of the image reading apparatus 50. The present invention is not limited by the way of classification and names of the constituent elements. The configuration of the image reading device 50 can be classified into more components depending on the processing content. Moreover, it can also classify | categorize so that one component may perform more processes. Further, the processing of each component may be executed by one hardware or may be executed by a plurality of hardware.
次に、上記のように構成される画像読取装置50の特徴的な動作について説明する。 Next, a characteristic operation of the image reading apparatus 50 configured as described above will be described.
<シフトパルスの出力処理>
画像読取装置50は、所定のタイミングで図3に示すフローを開始する。例えば、画像読取装置50は、ADF300を用いた画像読取時(モーター制御部113によるDCモーター310のPID制御)において、割り込み部111による割り込みが発生したタイミングで本フローを開始する。
<Shift pulse output processing>
The image reading device 50 starts the flow shown in FIG. 3 at a predetermined timing. For example, the image reading device 50 starts this flow at the timing when the interruption by the
本フローを開始すると、ソフトウェア処理部112は、所定のソフトウェア処理(例えば、シフトパルスの出力処理)を起動(開始)する。
When this flow is started, the
そして、ソフトウェア処理部112は、割り込み回数Nをインクリメントする(ステップS101)。なお、割り込み回数Nは、例えば、所定のカウンターを用いてカウントされる。そして、ステップS101では、ソフトウェア処理部112は、割り込み部111による割り込みが発生する毎に、所定のカウンターのカウント値(割り込み回数Nに相当する値)がインクリメントされる。
Then, the
それから、ソフトウェア処理部112は、割り込み部111による割り込み回数Nが、所定回数(図2に示す例では、「6回」)以上であるか否か判別する(ステップS102)。
Then, the
具体的には、ソフトウェア処理部112は、割り込み回数Nのカウントに用いられるカウンターのカウント値を取得して、取得したカウント値が所定回数以上である場合には、割り込み回数Nが所定回数以上であると判定する。一方、ソフトウェア処理部112は、カウンターから取得したカウント値が所定回数未満である場合には、割り込み回数Nが所定回数以上ではないと判定する。
Specifically, the
ここで、ソフトウェア処理部112は、割り込み回数Nが所定回数以上ではないと判定された場合には(ステップS102;No)、本フローの処理を終了して、割り込み部111による次の割り込みが発生するまで待機する。
Here, when it is determined that the interrupt count N is not equal to or greater than the predetermined count (step S102; No), the
また、ソフトウェア処理部112は、割り込み回数Nが所定回数以上であると判定された場合には(ステップS102;Yes)、シフトパルスを出力すべきタイミングとみなし、処理をステップS103に移行する。
In addition, when it is determined that the interrupt count N is equal to or greater than the predetermined count (step S102; Yes), the
処理がステップS103に移行すると、ソフトウェア処理部112は、シフトパルスの出力に先立って、遅延フラグが有効であるか否か判別する(ステップS103)。
When the process proceeds to step S103, the
そして、ソフトウェア処理部112は、遅延フラグが有効である場合には(ステップS103;Yes)、1ライン分の画像の転送に必要な時間を確保するために、シフトパルスを出力せず、遅延フラグを無効にする(ステップS111)。なお、ステップS111の処理は、図2に示す例では、タイミングγで行われる。
Then, when the delay flag is valid (step S103; Yes), the
その後、ソフトウェア処理部112は、本フローを終了する。
Thereafter, the
一方、ソフトウェア処理部112は、遅延フラグが無効である場合には(ステップS103;No)、シフトパルスを出力する(ステップS104)。なお、ステップS104の処理は、図2に示す例では、タイミングδで行われる。
On the other hand, when the delay flag is invalid (step S103; No), the
シフトパルスを出力後、ソフトウェア処理部112は、割り込み回数Nを初期化する(ステップS105)。
After outputting the shift pulse, the
そして、ソフトウェア処理部112は、現在時刻Tnewと、前回にシフトパルスを出力した時刻Toldと、を取得する(ステップS106)。具体的には、ソフトウェア処理部112は、現在時刻Tnewを、所定のタイマーから取得するとともに、前回にシフトパルスを出力した時刻Toldを、所定の記憶装置から読み出して取得する。
Then, the
それから、ソフトウェア処理部112は、前回にシフトパルスを出力してから現在時刻までに経過した時間(シフトパルスの出力間隔ΔT)を算出する(ステップS107)。具体的には、ソフトウェア処理部112は、ステップS106で取得したTnewから、ステップS106で取得したToldを、減算することによって、シフトパルスの出力間隔ΔTを算出する(ΔT=Tnew−Told)。
Then, the
そして、ソフトウェア処理部112は、前回にシフトパルスを出力してから現在時刻までに経過した時間(シフトパルスの出力間隔ΔT)が、基準値R以上であるか否か判別する(ステップS108)。具体的には、ソフトウェア処理部112は、基準値Rを所定の記憶装置から読み出して、ステップS107で算出されたシフトパルスの出力間隔ΔTが、基準値R以上であるか否か判別する。なお、基準値Rは、例えば、データとして所定の記憶装置に予め格納されているものとし、シフトパルスの出力に遅延が発生したとみなすことができる値(例えば、割り込み周期T×6.5)とする。
Then, the
ここで、ソフトウェア処理部112は、シフトパルスの出力間隔ΔTが基準値R以上である場合には(ステップS108;Yes)、シフトパルスの出力に遅延が発生したものとみなし、遅延フラグを有効にする(ステップS109)。それから、ソフトウェア処理部112は、処理をステップS110に移行する。なお、ステップS109の処理は、図2に示す例では、タイミングβで行われる。
Here, when the output interval ΔT of the shift pulse is greater than or equal to the reference value R (step S108; Yes), the
一方、ソフトウェア処理部112は、ステップS108で、シフトパルスの出力間隔ΔTが基準値R未満である場合には(ステップS108;No)、シフトパルスの出力に遅延は発生していないものとみなし、遅延フラグを有効にせずに、処理をステップS110に移行する。
On the other hand, when the output interval ΔT of the shift pulse is less than the reference value R in step S108 (step S108; No), the
処理がステップS110に移行すると、ソフトウェア処理部112は、現在時刻Tnewを、前回にシフトパルスを出力した時刻Toldとして記憶する(ステップS110)。
When the process proceeds to step S110, the
その後、ソフトウェア処理部112は、本フローを終了する。
Thereafter, the
以上のようなシフトパルスの出力処理を行うことにより、本実施形態の画像読取装置50では、シフトパルスの出力に遅延が発生した場合に、次回のシフトパルスの出力を予定よりも遅らせることができる。そのため、1ライン分の画像の転送に必要な時間(「転送最短周期」)を確実に確保できる。 By performing the shift pulse output process as described above, in the image reading apparatus 50 of the present embodiment, when a delay occurs in the output of the shift pulse, the output of the next shift pulse can be delayed from the schedule. . For this reason, it is possible to reliably secure the time required for transferring the image for one line (“transfer shortest cycle”).
なお、上記実施形態におけるフローの各処理単位は、画像読取装置50を理解容易にするために、主な処理内容に応じて分割したものである。処理ステップの分類の仕方やその名称によって、本願発明が制限されることはない。画像読取装置50が行う処理は、さらに多くの処理ステップに分割することもできる。また、1つの処理ステップが、さらに多くの処理を実行してもよい。また、処理ステップの順序についても、これに制限されるものではなく、可能な限り変更することができる。 Note that each processing unit of the flow in the above embodiment is divided according to main processing contents in order to make the image reading device 50 easy to understand. The invention of the present application is not limited by the method of classification of the processing steps and the names thereof. The processing performed by the image reading device 50 can be divided into more processing steps. One processing step may execute more processes. Further, the order of the processing steps is not limited to this, and can be changed as much as possible.
また、上記の実施形態は、本発明の要旨を例示することを意図し、本発明を限定するものではない。多くの代替物、修正、変形例は当業者にとって明らかである。 Moreover, said embodiment intends to illustrate the summary of this invention, and does not limit this invention. Many alternatives, modifications, and variations will be apparent to those skilled in the art.
例えば、上記実施形態では、前回にシフトパルスを出力してから現在時刻までの経過時間が基準値Rを超えた場合に、シフトパルスの出力に遅延が発生したとみなされる。しかし、本発明は、これに限定されない、例えば、割り込み部111による割り込み毎に、その割り込みからの経過時間を計測しておき、その経過時間がシフトパルスの出力タイミングで所定の基準値を超えている場合に、シフトパルスの出力に遅延が発生したとみなすようにしてもよい。
For example, in the above embodiment, when the elapsed time from the last output of the shift pulse to the current time exceeds the reference value R, it is considered that a delay has occurred in the output of the shift pulse. However, the present invention is not limited to this. For example, for each interrupt by the interrupt
なお、以下では、参考までに、従来の画像読取制御について説明する。図4は、従来の画像読取制御の概要について説明するためのタイミングチャートである。 In the following, conventional image reading control will be described for reference. FIG. 4 is a timing chart for explaining an outline of conventional image reading control.
図示するように、従来の画像読取制御では、本願の上記実施形態の画像読取制御と同様に、他の優先処理によって、予定通りのタイミングαでシフトパルスを出力できない場合がある。この場合には、その優先処理が終了したタイミングβでシフトパルスが出力される。 As shown in the figure, in the conventional image reading control, as in the image reading control of the above-described embodiment of the present application, there are cases where the shift pulse cannot be output at the scheduled timing α by other priority processing. In this case, a shift pulse is output at the timing β when the priority processing is completed.
このようにシフトパルスの出力に遅延(αからβへの遅延)が発生した場合であっても、従来の画像読取制御では、次回のシフトパルスは、予定通りのタイミングγで出力される。 Thus, even when a delay (a delay from α to β) occurs in the output of the shift pulse, in the conventional image reading control, the next shift pulse is output at the scheduled timing γ.
そのため、従来の画像読取制御では、光電変換素子に蓄積された電荷を転送している途中で次のシフトパルスが出力されてしまう場合がある。これでは、1ライン分の画像の転送に必要な時間(「転送最短周期」)を確保できない。 For this reason, in the conventional image reading control, the next shift pulse may be output during the transfer of the charge accumulated in the photoelectric conversion element. This makes it impossible to secure the time required for transferring an image for one line (“transfer shortest cycle”).
これに対し、本願の上記実施形態の画像読取制御では、シフトパルスの出力に遅延が発生した場合には、次回のシフトパルスの出力を予定よりも遅らせるため、1ライン分の画像の転送に必要な時間を十分に確保できる。 On the other hand, in the image reading control according to the above-described embodiment of the present application, if a delay occurs in the output of the shift pulse, the output of the next shift pulse is delayed from the schedule. Sufficient time can be secured.
50・・・画像読取装置、100・・・コントローラー、110・・・メイン制御部、111・・・割り込み部、112・・・ソフトウェア処理部、113・・・モーター制御部、114・・・読取制御部、120・・・A/D変換部、130・・・データ処理部、140・・・記憶部、150・・・出力部、200・・・キャリッジ、210・・・LED光源、220・・・イメージセンサー、300・・・ADF、310・・・DCモーター DESCRIPTION OF SYMBOLS 50 ... Image reading apparatus, 100 ... Controller, 110 ... Main control part, 111 ... Interrupting part, 112 ... Software processing part, 113 ... Motor control part, 114 ... Reading Control unit, 120 ... A / D conversion unit, 130 ... data processing unit, 140 ... storage unit, 150 ... output unit, 200 ... carriage, 210 ... LED light source, 220. ..Image sensor, 300 ... ADF, 310 ... DC motor
Claims (4)
光電変換素子に蓄積された電荷をシフトパルスによってシフトレジスターに転送し、該シフトレジスターに格納された電荷を、読み出しクロックによって、該シフトレジスターの末端の出力部に移動させ、該出力部で、電荷を電気信号に変換して、A/D変換部に送る画像読取部と、
前記シフトパルスの出力タイミングを制御するシフトパルス制御部と、を備え、
前記シフトパルス制御部は、
前記シフトパルスの出力タイミングを、入力された周期割り込み信号の回数に基づいて決定し、
前回のシフトパルスの出力が、決定された前回の出力タイミングよりも遅れた場合には、今回のシフトパルスの出力を、決定された今回の出力タイミングより、前記周期割り込み信号の周期単位で遅らせる、
ことを特徴とする画像読取装置。 An image reading device,
The charge accumulated in the photoelectric conversion element is transferred to the shift register by a shift pulse, and the charge stored in the shift register is moved to the output part at the end of the shift register by the read clock, An image reading unit that converts the signal into an electrical signal and sends the signal to an A / D conversion unit ;
A shift pulse control unit for controlling the output timing of the shift pulse,
The shift pulse controller is
The output timing of the shift pulse is determined based on the number of input periodic interrupt signals,
When the output of the previous shift pulse is delayed from the determined previous output timing, the output of the current shift pulse is delayed by the period unit of the periodic interrupt signal from the determined current output timing.
An image reading apparatus.
前記シフトパルス制御部は、
前回のシフトパルスの出力が、決定された前回の出力タイミングよりも遅れた場合に遅延フラグを有効にし、今回のシフトパルスの出力が、決定された今回の出力タイミングにおいて当該遅延フラグが有効である場合には、当該遅延フラグを無効にし、今回のシフトパルスの出力を、決定された今回の出力タイミングより遅らせる、
ことを特徴とする画像読取装置。 The image reading apparatus according to claim 1,
The shift pulse controller is
The delay flag is enabled when the output of the previous shift pulse is later than the determined previous output timing, and the delay flag is effective at the determined current output timing of the current shift pulse. In this case, the delay flag is invalidated, and the output of the current shift pulse is delayed from the determined current output timing.
An image reading apparatus.
光電変換素子に蓄積された電荷をシフトパルスによってシフトレジスターに転送し、該シフトレジスターに格納された電荷を、読み出しクロックによって、該シフトレジスターの末端の出力部に移動させ、該出力部で、電荷を電気信号に変換して、A/D変換部に送る画像読取ステップと、
前記シフトパルスの出力タイミングを制御するシフトパルス制御ステップと、を行い、
前記シフトパルス制御ステップでは、
前記シフトパルスの出力タイミングを、入力された周期割り込み信号の回数に基づいて決定し、
前回のシフトパルスの出力が、決定された前回の出力タイミングよりも遅れた場合には、今回のシフトパルスの出力を、決定された今回の出力タイミングより、前記周期割り込み信号の周期単位で遅らせる、
ことを特徴とする画像読取方法。 An image reading method comprising:
The charge accumulated in the photoelectric conversion element is transferred to the shift register by a shift pulse, and the charge stored in the shift register is moved to the output part at the end of the shift register by the read clock, An image reading step of converting the signal into an electrical signal and sending it to an A / D converter ;
A shift pulse control step for controlling the output timing of the shift pulse, and
In the shift pulse control step,
The output timing of the shift pulse is determined based on the number of input periodic interrupt signals,
When the output of the previous shift pulse is delayed from the determined previous output timing, the output of the current shift pulse is delayed by the period unit of the periodic interrupt signal from the determined current output timing.
An image reading method.
光電変換素子に蓄積された電荷をシフトパルスによってシフトレジスターに転送し、該シフトレジスターに格納された電荷を、読み出しクロックによって、該シフトレジスターの末端の出力部に移動させ、該出力部で、電荷を電気信号に変換して、A/D変換部に送る画像読取ステップと、
前記シフトパルスの出力タイミングを制御するシフトパルス制御ステップと、を前記コンピューターに実行させ、
前記シフトパルス制御ステップでは、
前記シフトパルスの出力タイミングを、入力された周期割り込み信号の回数に基づいて決定し、
前回のシフトパルスの出力が、決定された前回の出力タイミングよりも遅れた場合には、今回のシフトパルスの出力を、決定された今回の出力タイミングより、前記周期割り込み信号の周期単位で遅らせる、
ことを特徴とするプログラム。 A program for causing a computer to function as an image reading device,
The charge accumulated in the photoelectric conversion element is transferred to the shift register by a shift pulse, and the charge stored in the shift register is moved to the output part at the end of the shift register by the read clock, An image reading step of converting the signal into an electrical signal and sending it to an A / D converter ;
A shift pulse control step for controlling the output timing of the shift pulse;
In the shift pulse control step,
The output timing of the shift pulse is determined based on the number of input periodic interrupt signals,
When the output of the previous shift pulse is delayed from the determined previous output timing, the output of the current shift pulse is delayed by the period unit of the periodic interrupt signal from the determined current output timing.
A program characterized by that.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011024277A JP5853375B2 (en) | 2011-02-07 | 2011-02-07 | Image reading apparatus, image reading method, and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011024277A JP5853375B2 (en) | 2011-02-07 | 2011-02-07 | Image reading apparatus, image reading method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2012165194A JP2012165194A (en) | 2012-08-30 |
| JP5853375B2 true JP5853375B2 (en) | 2016-02-09 |
Family
ID=46844160
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2011024277A Active JP5853375B2 (en) | 2011-02-07 | 2011-02-07 | Image reading apparatus, image reading method, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5853375B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0738673B2 (en) * | 1985-07-05 | 1995-04-26 | インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション | Image scanner control method |
| JPH0662199A (en) * | 1992-08-04 | 1994-03-04 | Fujitsu Ltd | Reading device |
-
2011
- 2011-02-07 JP JP2011024277A patent/JP5853375B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2012165194A (en) | 2012-08-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2760191B1 (en) | Image reading apparatus, image forming apparatus, and image reading method | |
| JP4858407B2 (en) | Image reading device | |
| JP4752605B2 (en) | Image reading device | |
| US8547585B2 (en) | Apparatus, program, and method for high speed image reading using a sheet feeding device | |
| US9578204B2 (en) | Image reading device | |
| JP2009065650A (en) | Image reading apparatus, method for controlling the apparatus, and control program | |
| JP5793829B2 (en) | Image reading device | |
| JP2011044783A (en) | Image reading apparatus, and image reading method | |
| JP5853375B2 (en) | Image reading apparatus, image reading method, and program | |
| JP7009155B2 (en) | Image readers, image reader control methods, image sensors, and programs | |
| CN102905046A (en) | Image reading device and image reading method | |
| JP2009272891A (en) | Image reader, image forming apparatus, image reading method, and image formation method | |
| JP2012165227A (en) | Image reader and image reading control method | |
| JP7353899B2 (en) | Image reading device and method of controlling the image reading device | |
| JP2006013833A (en) | Image reader, image processing apparatus, and image processing method | |
| JP2023181508A (en) | Media transport device, control method and control program | |
| US8514466B2 (en) | Image reader and image reading method | |
| JP2012169963A (en) | Image reading device, image reading method, and program | |
| JP5585121B2 (en) | Image reading device | |
| JP2009200556A (en) | Image reader and image reading method | |
| JP2010199945A (en) | Device for reading image, and method of controlling the same | |
| JP2006080941A (en) | Image reading apparatus | |
| JP5789990B2 (en) | Image reading apparatus and image reading control method | |
| JP5742197B2 (en) | Image reading apparatus, image reading method, and program | |
| JP4320568B2 (en) | Image reading apparatus and image processing apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20140124 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20141222 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150120 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150319 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150901 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20151020 |
|
| 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: 20151110 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20151123 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5853375 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |