JPH11252318A - Image reader - Google Patents

Image reader

Info

Publication number
JPH11252318A
JPH11252318A JP10053214A JP5321498A JPH11252318A JP H11252318 A JPH11252318 A JP H11252318A JP 10053214 A JP10053214 A JP 10053214A JP 5321498 A JP5321498 A JP 5321498A JP H11252318 A JPH11252318 A JP H11252318A
Authority
JP
Japan
Prior art keywords
reading
position information
signal
buffer
image
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.)
Granted
Application number
JP10053214A
Other languages
Japanese (ja)
Other versions
JP3882316B2 (en
Inventor
Satoko Shinohara
郷子 篠原
Yuji Toyomura
祐司 豊村
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP05321498A priority Critical patent/JP3882316B2/en
Publication of JPH11252318A publication Critical patent/JPH11252318A/en
Application granted granted Critical
Publication of JP3882316B2 publication Critical patent/JP3882316B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To highly accurately reproduce the phase relation of a position information signal and a line synchronizing signal at the restarting by resetting the line synchronizing signal when a read means arrives at a read restarting position, through the use of position information of one precision in rough position information and fine position information. SOLUTION: When a buffer becomes full, an image reader main body temporarily stops a picture read operation and waits for a host device to absorb image data held by a buffer 24 via an interface 25. When a CPU 26 detects that the buffer becomes full, it drives a carriage in a direction opposite to a read direction by fine quantity and it prepares for the resumption of reading. A CPU 26 periodically checks a buffer monitor signal, drives the carriage at speed corresponding to read resolution designated by a host device in the read direction, when it detects the release of a buffer full state and resumes reading from a line which is next to the line where the buffer becomes full.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、CCDなどのイメ
ージセンサから画像を読み取るスキャナ等の画像読み取
り装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image reading apparatus such as a scanner for reading an image from an image sensor such as a CCD.

【0002】[0002]

【従来の技術】従来から、画像読み取り装置は、スキャ
ナ、ファクシミリ、複写機等の画像入力部として用いら
れており、最近では、低価格化に対する要求が高まって
いる。
2. Description of the Related Art Conventionally, an image reading apparatus has been used as an image input section of a scanner, a facsimile, a copying machine, and the like.

【0003】ホストPCの処理速度により、SCSI等
のインターフェースによる画像データ転送速度より、イ
メージセンサからの画像データ読み取り速度の方が高速
になる場合があるため、インターフェース転送をスムー
ズに行う様にするためには、読み取った後の画像データ
をインターフェースに転送する前に一時保管するメモリ
(以下、バッファと略記)に保管しなければならない。
Depending on the processing speed of the host PC, the speed of reading image data from the image sensor may be higher than the speed of transferring image data through an interface such as SCSI, so that the interface transfer is performed smoothly. In this case, the read image data must be temporarily stored in a memory (hereinafter, abbreviated as a buffer) before being transferred to the interface.

【0004】そこで、画像読み取り装置が読み取り可能
な一画面分の画像データが入る容量のバッファが必要に
なるが、その容量のメモリを導入するとコストが高くな
るため、低価格化という要求にはそぐわなくなってしま
う。以上の理由で、バッファの容量を削減させる必要が
ある。
Therefore, a buffer having a capacity for storing image data for one screen which can be read by the image reading apparatus is required. However, introduction of a memory having such a capacity increases the cost, so that the demand for lowering the price is met. Will be gone. For the above reasons, it is necessary to reduce the capacity of the buffer.

【0005】その際、バッファが末転送の画像データで
満杯になった状態(以下、バッファフルと略記)になっ
た時に、イメージセンサ等が搭載された画像読み取り手
段(以下、キャリッジと略記)をバッファ内の画像デー
タが全部転送されるまで一時停止させて画像読み取り動
作を中止し、その後、キャリッジを動かして読み取り動
作を再開させる仕組みを組みこまなければならない。以
上の一連の動作をリスタートと称する。
At this time, when the buffer becomes full (hereinafter abbreviated as “buffer full”) with image data of the last transfer, image reading means (hereinafter abbreviated as “carriage”) equipped with an image sensor or the like is mounted. It is necessary to incorporate a mechanism in which the image reading operation is suspended and stopped until all the image data in the buffer is transferred, and then the carriage is moved to restart the reading operation. The above series of operations is called a restart.

【0006】以降図6を用いて従来の技術を説明する。
図6は従来の画像読み取り装置の概略を示す図である。
図6において1は画像読み取り装置本体である。2は読
み取らせる原稿を載置する原稿ガラスである。3は原稿
を走査して読み取るキャリッジである。キャリッジ3は
図示しないシャフト、レール等の支持部材により支持さ
れ、移動方向を一方向に規制されている。4はキャリッ
ジを駆動する駆動源でありステッピングモータが採用さ
れている。5は駆動プーリ、6はタイミングベルトであ
り、駆動源4で発生した動力は、タイミングベルト6に
よって駆動プーリ5に伝達される。7はベルト、8は従
動プーリであり、ベルト7は駆動プーリ5と従動プーリ
8の間に張られ、駆動プーリ5の回転に伴ってキャリッ
ジ3を方向d1及びその逆方向に移動させる。9は原稿
ガラス2上に載置された原稿であり、原稿9はキャリッ
ジ3の移動によりライン単位に読み取られる。10は原
稿カバーであり、支持部11によって開閉可能に支持さ
れている。12は基準データ取得位置であり、この位置
の原稿ガラス上には白色の基準板が張り付けられてい
る。polはキャリッジ3のホームポジションであり、
画像読み取り装置が待機中の場合は、キャリッジ3は必
ずホームポジションpo1に位置している。
Hereinafter, the conventional technique will be described with reference to FIG.
FIG. 6 is a diagram schematically showing a conventional image reading apparatus.
In FIG. 6, reference numeral 1 denotes an image reading apparatus main body. Reference numeral 2 denotes a document glass on which a document to be read is placed. Reference numeral 3 denotes a carriage for scanning and reading a document. The carriage 3 is supported by support members (not shown) such as a shaft and a rail, and the movement direction is restricted to one direction. A driving source 4 drives the carriage, and employs a stepping motor. 5 is a drive pulley, 6 is a timing belt, and the power generated by the drive source 4 is transmitted to the drive pulley 5 by the timing belt 6. Reference numeral 7 denotes a belt, and 8 denotes a driven pulley. The belt 7 is stretched between the driving pulley 5 and the driven pulley 8, and moves the carriage 3 in the direction d1 and in the opposite direction as the driving pulley 5 rotates. Reference numeral 9 denotes a document placed on the document glass 2, and the document 9 is read line by line by moving the carriage 3. Reference numeral 10 denotes a document cover, which is supported by a support unit 11 so as to be openable and closable. Reference numeral 12 denotes a reference data acquisition position, and a white reference plate is stuck on the document glass at this position. pol is the home position of the carriage 3,
When the image reading device is on standby, the carriage 3 is always located at the home position po1.

【0007】次に図7は従来の画像読み取り装置のキャ
リッジの内部構造を示す図である。図7において13は
原稿を照射するランプ、14は実質的に画像読み取り位
置を特定するアパーチャ、15−1、15−2、15−
3は原稿からの反射光を反射する反射ミラー、16は光
学情報を電気信号に変換するイメージセンサ、17はイ
メージセンサ16上にイメージを結像させる結像レンズ
である。イメージセンサ16はキャリッジ3の内部に固
定されており、原稿9から反射され、反射ミラー15及
びレンズ17により縮小されて結像した光学情報を、原
稿面と一対一の関係で読み取る。
FIG. 7 is a view showing the internal structure of a carriage of a conventional image reading apparatus. In FIG. 7, 13 is a lamp for irradiating the original, 14 is an aperture for substantially specifying the image reading position, 15-1, 15-2, 15-
Reference numeral 3 denotes a reflection mirror that reflects light reflected from a document, 16 denotes an image sensor that converts optical information into an electric signal, and 17 denotes an imaging lens that forms an image on the image sensor 16. The image sensor 16 is fixed inside the carriage 3, and reads optical information reflected from the document 9, reduced and imaged by the reflection mirror 15 and the lens 17 in a one-to-one relationship with the document surface.

【0008】以上の様に構成された画像読み取り装置に
ついて、図6及び図7を用いて、以下にその動作を説明
する。
The operation of the image reading apparatus configured as described above will be described below with reference to FIGS. 6 and 7.

【0009】装置の電源が投入されると、キャリッジ3
は初期位置にかかわらず、ホームポジションpo1に復
帰する。その後、アパーチャ14が基準板の直下となる
基準取得位置12に移動し、ランプ13を点灯して基準
板を実際に読み取り、イメージセンサ16から出力され
るアナログ信号に対する増幅率の決定、及び白黒レベル
の補正(シェーディング補正)等を行なう。その後再度
ホームポジションpo1に復帰し、待機状態となる。
When the power of the apparatus is turned on, the carriage 3
Returns to the home position po1 regardless of the initial position. Thereafter, the aperture 14 moves to the reference acquisition position 12 immediately below the reference plate, turns on the lamp 13 to actually read the reference plate, determines the amplification factor for the analog signal output from the image sensor 16, and determines the black and white level. Correction (shading correction). Thereafter, it returns to the home position po1 again, and enters a standby state.

【0010】次に従来の画像読み取り装置の読み取り動
作について説明する。例えばパーソナルコンピュータな
どの外部ホスト(図示せず。以降単にPCと略称する)
より、読み取り解像度、読み取り範囲等の設定を行なっ
た後、原稿の読み取り命令が出されると、ランプ13を
点灯すると共に駆動源4を回転し、タイミングベルト
6、駆動プーリ5、ベルト7及び従動プーリ8を介して
駆動力をキャリッジ3に伝達し、キャリッジ3を方向d
1に移動させる。PCから設定された読み取り範囲に対
応した領域の先頭にキャリッジ3が到達する直前に、P
Cから予め設定された読み取り解像度に対応した速度に
駆動速度を変更し、原稿ガラス2上に載置された原稿の
読み取りを開始する。原稿9は、原稿ガラス2を通して
ランプ13により照射され、原稿からの反射光は反射ミ
ラー15−1、15−2、15−3により反射され、結
像レンズ17によりイメージセンサ16上に縮小して結
像され、電気信号に変換される。指定された読み取り範
囲に対する読み取り動作が終了すると、キャリッジ3を
方向d1とは逆方向に移動させ、ホームポジションpo
1に復帰させる。
Next, the reading operation of the conventional image reading apparatus will be described. For example, an external host such as a personal computer (not shown; hereinafter simply referred to as PC)
After setting the reading resolution, reading range, etc., when an instruction to read a document is issued, the lamp 13 is turned on and the driving source 4 is rotated, and the timing belt 6, the driving pulley 5, the belt 7, the driven pulley 8, the driving force is transmitted to the carriage 3, and the carriage 3 is moved in the direction d.
Move to 1. Immediately before the carriage 3 arrives at the head of the area corresponding to the reading range set from the PC, P
The drive speed is changed from C to a speed corresponding to a preset reading resolution, and reading of the original placed on the original glass 2 is started. The original 9 is illuminated by the lamp 13 through the original glass 2, and the reflected light from the original is reflected by the reflection mirrors 15-1, 15-2 and 15-3 and reduced on the image sensor 16 by the imaging lens 17. An image is formed and converted into an electric signal. When the reading operation for the specified reading range is completed, the carriage 3 is moved in the direction opposite to the direction d1, and the home position po is moved.
Return to 1.

【0011】以下に、リスタート位置を再現する方法に
ついて説明する。図8は、従来の画像読み取り装置のキ
ャリッジ駆動モータの動作を示す図である。
A method for reproducing the restart position will be described below. FIG. 8 is a diagram illustrating an operation of a carriage drive motor of a conventional image reading apparatus.

【0012】(a)は、読み取り中にバッファフルが発
生する時のタイミングであり、(b)は、リスタート時
のタイミングである。
FIG. 3A shows a timing when a buffer full occurs during reading, and FIG. 3B shows a timing at the time of restart.

【0013】18は、キャリッジ駆動に用いる励磁パル
ス第1相、19は、キャリッジ駆動に用いる励磁パルス
第2相である。20は、ライン同期信号、つまりHsy
nc信号である。
Reference numeral 18 denotes a first phase of the excitation pulse used for driving the carriage, and 19 denotes a second phase of the excitation pulse used for driving the carriage. 20 is a line synchronization signal, that is, Hsy
nc signal.

【0014】バッファフル発生時に、励磁パルスはそれ
ぞれ停止し、同時に読み取り動作も停止させる。バッフ
ァフル解除時に、励磁パルスを発生させ、同時にHsy
nc信号20をリセットさせる。すると、リスタート後
の読み取り動作が開始される。
When a buffer full occurs, the excitation pulse is stopped, and the reading operation is stopped at the same time. At the time of buffer full release, an excitation pulse is generated and at the same time, Hsy
The nc signal 20 is reset. Then, the reading operation after the restart is started.

【0015】[0015]

【発明が解決しようとする課題】しかし、バッファフル
発生時と解除時との間で、励磁パルス第1相18、励磁
パルス第2相19はHsync20との位相のずれが生
じる。
However, the phase of the excitation pulse first phase 18 and the excitation pulse second phase 19 is shifted from Hsync 20 between the time when the buffer full occurs and the time when the buffer is released.

【0016】つまり、リスタートの際、位置情報信号と
ライン同期信号との位相関係の計測と再現を高精度に行
っていないため、リスタート前後で、上記の様に位相関
係のずれが生じているのである。そのため、読み取り画
像がリスタートした箇所を境に、明らかな段差を生じる
という問題点を有していた。
That is, since the measurement and reproduction of the phase relationship between the position information signal and the line synchronizing signal are not performed with high accuracy at the time of restart, the phase relationship shifts before and after restart as described above. It is. For this reason, there is a problem that a clear step is generated at a position where the read image is restarted.

【0017】そこで本発明では、前記リスタート開始時
において位置情報信号とライン同期信号との位相関係を
高精度に再現させることを目的とする。
Therefore, an object of the present invention is to reproduce the phase relationship between the position information signal and the line synchronization signal at the start of the restart with high accuracy.

【0018】[0018]

【課題を解決するための手段】本発明は、上記の課題を
解決するために、ライン単位で画像を読み取るために、
光電変換素子等で構成された読み取り手段を規定の方向
に駆動させる読み取り手段駆動信号に基づく粗位置情報
と、前記粗位置情報よりも微小な微小位置情報とで構成
される位置情報を、上記ライン単位で画像を読み取る際
に使用されるライン同期信号入力時に検出する読み取り
再開位置検出手段と、前記粗位置情報、微小位置情報の
うち少なくとも片方の精度の位置情報を用い、前記読み
取り手段が読み取り再開位置に到達した時にライン同期
信号をリセットさせることにより、読み取り再開位置を
再現させる読み取り再開位置再現手段とで構成されるこ
とを特徴とする画像読み取り装置である。
SUMMARY OF THE INVENTION According to the present invention, there is provided a method for reading an image line by line.
The position information composed of coarse position information based on a reading device drive signal for driving a reading device constituted by a photoelectric conversion element or the like in a prescribed direction and minute position information finer than the coarse position information, Reading restart position detecting means for detecting when a line synchronizing signal used for reading an image in units is input, and using the position information of at least one of the coarse position information and the minute position information, the reading means restarts reading. An image reading apparatus comprising: a reading restart position reproducing unit that reproduces a reading restart position by resetting a line synchronization signal when a position is reached.

【0019】上記の構成により、前記リスタート開始時
において位置情報信号とライン同期信号との位相関係を
高精度に再現させることができる。
With the above arrangement, the phase relationship between the position information signal and the line synchronizing signal can be reproduced with high accuracy at the start of the restart.

【0020】[0020]

【発明の実施の形態】本発明の請求項1に記載の発明
は、ライン単位で画像を読み取るために、光電変換素子
等で構成された読み取り手段を規定の方向に駆動させる
読み取り手段駆動信号に基づく粗位置情報と、前記粗位
置情報よりも微小な微小位置情報とで構成される位置情
報を、上記ライン単位で画像を読み取る際に使用される
ライン同期信号入力時に検出する読み取り再開位置検出
手段と、前記粗位置情報、微小位置情報のうち少なくと
も片方の精度の位置情報を用い、前記読み取り手段が読
み取り再開位置に到達した時にライン同期信号をリセッ
トさせることにより、読み取り再開位置を再現させる読
み取り再開位置再現手段とで構成されることを特徴とす
る画像読み取り装置であり、位置情報信号とライン同期
信号との位相関係の再現を高精度に行うことができる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS According to the first aspect of the present invention, in order to read an image line by line, a reading unit drive signal for driving a reading unit composed of a photoelectric conversion element or the like in a predetermined direction is provided. Reading restart position detecting means for detecting position information composed of coarse position information based on the position information and fine position information finer than the coarse position information at the time of inputting a line synchronization signal used for reading an image in line units. Reading restart that reproduces the reading restart position by resetting the line synchronization signal when the reading unit reaches the reading restart position, using the position information of at least one of the coarse position information and the minute position information. An image reading apparatus characterized by comprising a position reproducing means, wherein a phase relationship between a position information signal and a line synchronization signal is obtained. It is possible to carry out the current with high accuracy.

【0021】本発明の請求項2に記載の発明は、前記読
み取り手段駆動信号の位相をシフトさせることにより形
成される多相の前記読み取り手段駆動信号を粗位置情報
検出手段に入力することを特徴とする請求項1記載の画
像読み取り装置であり、上記粗位置情報の精度を向上さ
せることができる。
The invention according to a second aspect of the present invention is characterized in that the multi-phase reading means driving signal formed by shifting the phase of the reading means driving signal is input to a coarse position information detecting means. 2. The accuracy of the coarse position information can be improved.

【0022】本発明の請求項3に記載の発明は、前記読
み取り手段駆動信号の周期の中で、粗位置情報検出手段
で計測している間隔より細かい間隔を計測することによ
り、読み取り再開位置を検出することを特徴とする請求
項1記載の画像読み取り装置であり、上記微小位置情報
の精度を向上させることができる。
According to a third aspect of the present invention, the reading restart position is determined by measuring an interval smaller than the interval measured by the coarse position information detecting unit in the period of the reading unit drive signal. 2. The image reading device according to claim 1, wherein the accuracy of the minute position information can be improved.

【0023】以下、本説明の一実施の形態について図面
を参照しながら説明する。図6、図7における構成要素
は従来例と同等であるため説明を省略する。
Hereinafter, an embodiment of the present description will be described with reference to the drawings. The components in FIGS. 6 and 7 are the same as those in the conventional example, and the description is omitted.

【0024】次に図1を用いて本発明にかかる画像読み
取り装置のハードウェア構成について説明する。
Next, the hardware configuration of the image reading apparatus according to the present invention will be described with reference to FIG.

【0025】図1は本発明の画像読み取り装置のハード
ウェア構成を示す図であり、図1において、21は増幅
器及びA/D変換器であり、イメージセンサ16から出
力されたアナログ信号RGBを規定の増幅率で増幅し、
ディジタルデータRGBに変換する。22はシェーディ
ング補正部であり、ディジタル化された画像データを白
及び黒レベルの間で正規化する。23は画像処理部であ
り、色補正処理や解像度変換処理などを行う。24はバ
ッファであり、画像データは一旦このバッファに蓄えら
れた後に、画像読み取り装置から出力される。25はイ
ンタフェースであり、バッファ24に蓄えられた画像デ
ータを外部の装置とネゴシエーションを取りながら出力
する。26はCPUであり画像読み取り装置の全体動作
を制御している。
FIG. 1 is a diagram showing a hardware configuration of an image reading apparatus according to the present invention. In FIG. 1, reference numeral 21 denotes an amplifier and an A / D converter, which define an analog signal RGB output from the image sensor 16. Amplification at the amplification rate of
The data is converted into digital data RGB. A shading correction unit 22 normalizes the digitized image data between white and black levels. An image processing unit 23 performs a color correction process, a resolution conversion process, and the like. Reference numeral 24 denotes a buffer, and the image data is temporarily stored in the buffer and then output from the image reading device. An interface 25 outputs the image data stored in the buffer 24 while negotiating with an external device. A CPU 26 controls the overall operation of the image reading apparatus.

【0026】27は読み取り基準信号生成部であり、C
PU26によって予め書き込まれた値に応じて規定の周
期でパルスを出力する。28は読み取り基準信号生成部
27で生成されたパルス信号を示し、以降Hsync2
8と記述する。Hsync28は1ライン周期を与え、
本画像読み取り装置では画像データ処理の1ライン開始
信号として様々なモジュールで利用される。29はバッ
ファ状態管理部であり、バッファ24の使用状況、即ち
フルかエンプティかを監視し、CPU26に通知する。
30はモータ制御部であり、ステッピングモータ31の
駆動速度及び駆動にともなう位置(モータ駆動位置=キ
ャリッジ3の位置)の管理を行っている。
Reference numeral 27 denotes a reading reference signal generation unit,
The pulse is output at a prescribed cycle according to the value written in advance by the PU 26. Reference numeral 28 denotes a pulse signal generated by the read reference signal generation unit 27, and hereinafter Hsync2
Described as 8. Hsync 28 gives one line cycle,
In this image reading apparatus, it is used by various modules as a one-line start signal of image data processing. Reference numeral 29 denotes a buffer status management unit which monitors the use status of the buffer 24, that is, whether the buffer 24 is full or empty, and notifies the CPU 26 of the status.
Reference numeral 30 denotes a motor control unit which manages the driving speed of the stepping motor 31 and the position associated with the driving (motor driving position = position of the carriage 3).

【0027】次にCPU26は読み取り基準信号生成部
27にHsync28の生成周期を書き込む。その後読
み取り基準信号生成部27の動作を開始する。これによ
りHsync28の生成が開始される。一方CPU26
はHsync28を割り込みにより検出しており、Hs
ync28を検出したら、直ちにHsyncカウンタ変
数のインクリメントを行う。
Next, the CPU 26 writes the generation cycle of the Hsync 28 in the read reference signal generation section 27. Thereafter, the operation of the reading reference signal generation unit 27 is started. As a result, generation of Hsync 28 is started. On the other hand, CPU 26
Is detecting Hsync28 by interruption, and Hs
Upon detecting the sync 28, the Hsync counter variable is immediately incremented.

【0028】次に図1と図6と図2で画像読み取りに際
して先頭行(読み取り開始ライン)を読み取る際にキャ
リッジ位置を管理する方法について説明する。図2は本
発明にかかる画像読み取り装置とこれを制御する外部ホ
スト装置(PC)を示す図である。
Next, a method of managing the carriage position when reading the first line (reading start line) when reading an image will be described with reference to FIGS. 1, 6 and 2. FIG. FIG. 2 is a diagram showing an image reading apparatus according to the present invention and an external host device (PC) for controlling the image reading apparatus.

【0029】まず図2を用いて、一般的な画像読み取り
装置の使用形態について説明する。図2において1は画
像読み取り装置本体である。32は画像読み取り装置を
制御し、画像データを受け取るホスト装置(PC)であ
る。また33は画像読み取り装置本体1とホスト装置3
2を接続するケーブルである。
First, the use of a general image reading apparatus will be described with reference to FIG. In FIG. 2, reference numeral 1 denotes an image reading apparatus main body. A host device (PC) 32 controls the image reading device and receives image data. Reference numeral 33 denotes the image reading device main body 1 and the host device 3
2 is a cable connecting the two.

【0030】画像読み取り装置とホスト装置の間は、一
般にはSCSI(Small Computer Sy
stem Interface)を用いて接続されるこ
とが多い。SCSIでは、ホスト装置32は画像読み取
り装置本体1に対して、主走査並びに副走査方向の読み
取り解像度、主走査並びに副走査方向の読み取り開始位
置、主走査並びに副走査方向の読み取り長などを指定す
ることができる(これらは一般にSet Window
コマンドによって指定される)。そしてホスト装置32
が読み取り開始指令(Scanコマンド)を画像読み取
り装置本体1に対して発行すると、画像読み取り装置本
体1は、図6に示すキャリッジ3を方向d1に駆動を開
始し、予め指定された、主走査並びに副走査方向の読み
取り解像度、主走査並びに副走査方向の読み取り開始位
置、主走査並びに副走査方向の読み取り長などの設定パ
ラメータに従って画像を読み取る。
Generally, a SCSI (Small Computer Sy) is provided between the image reading apparatus and the host apparatus.
In many cases, the connection is made using a “Stem Interface”. In the SCSI, the host device 32 specifies the reading resolution in the main scanning direction and the sub-scanning direction, the reading start position in the main scanning direction and the sub-scanning direction, the reading length in the main scanning direction and the sub-scanning direction, and the like for the image reading device main body 1. (These are generally Set Window
Command). And the host device 32
Issues a reading start command (Scan command) to the image reading apparatus main body 1, the image reading apparatus main body 1 starts driving the carriage 3 shown in FIG. An image is read according to setting parameters such as a reading resolution in the sub-scanning direction, a reading start position in the main scanning and sub-scanning directions, and a reading length in the main scanning and sub-scanning directions.

【0031】一般にホスト装置32では、最終的に取得
したい画像データを得る前に、低解像度(表示装置の解
像度を考慮し、およそ30dpi〜60dpi程度が指
定されることが多い)で画像を読み取り(プレスキャ
ン)、プレスキャン後に、領域や読み取り解像度を指定
して、最終的な画像データを読み取る。(本スキャ
ン)。
In general, the host device 32 reads an image at low resolution (about 30 dpi to 60 dpi is often specified in consideration of the resolution of the display device) before obtaining the image data to be finally obtained ( After the pre-scan) and the pre-scan, the final image data is read by designating the area and the reading resolution. (Main scan).

【0032】次に図1を用いて、画像読み取り装置が、
指定された読み取り開始位置から画像を読み取る過程を
説明する。CPU26はインタフェース25(より具体
的にはSCSI)を経由して、副走査方向の読み取り開
始位置情報を入手する。CPU26は、読み取り開始位
置情報をモータ31の駆動ステップ数に変換する。本発
明にかかる画像読み取り装置では、図6に示すキャリッ
ジ3の駆動源はステッピングモータであるから、移動距
離をステッピングモータに出力するパルス数に簡単に置
き換えることができる。CPU26はモータ制御部30
に対して、ステッピングモータを駆動する励磁パルス周
期を設定し、モータの駆動を開始する。モータ制御部3
0はモータ31に対して励磁パルスを発行する毎にCP
U26に対して励磁パルス出力通知信号を出力する。こ
の通知信号はCPU26の割り込み要因となっておりC
PU26は、割り込み処理において、通知信号を計数す
ることで、モータ31の回転量、即ち図6のキャリッジ
3の移動量を正確に把握することができる。従ってCP
U26は、ホスト装置から指定された、副走査方向の読
み取り開始位置をステッピングモータの励磁信号を計数
することで把握できる。
Next, referring to FIG. 1, the image reading apparatus
A process of reading an image from a designated reading start position will be described. The CPU 26 obtains reading start position information in the sub-scanning direction via the interface 25 (more specifically, SCSI). The CPU 26 converts the reading start position information into the number of driving steps of the motor 31. In the image reading apparatus according to the present invention, since the driving source of the carriage 3 shown in FIG. 6 is a stepping motor, the moving distance can be easily replaced with the number of pulses output to the stepping motor. The CPU 26 is a motor control unit 30
, An excitation pulse cycle for driving the stepping motor is set, and driving of the motor is started. Motor control unit 3
0 is set to CP each time an excitation pulse is issued to the motor 31.
An excitation pulse output notification signal is output to U26. This notification signal is an interrupt factor of the CPU 26, and C
The PU 26 can accurately grasp the amount of rotation of the motor 31, that is, the amount of movement of the carriage 3 in FIG. 6 by counting the notification signal in the interrupt processing. Therefore CP
U26 can grasp the reading start position in the sub-scanning direction specified by the host device by counting the excitation signal of the stepping motor.

【0033】次に読み取り動作中に画像読み取りが中断
するケースについて、図6、図1、図2を用いて説明す
る。
Next, a case where the image reading is interrupted during the reading operation will be described with reference to FIGS. 6, 1 and 2. FIG.

【0034】画像読み取り装置本体1はホスト装置32
と接続することで、初めて画像を読み取る機能を発揮す
ることができるが、ホスト装置32の性能は様々であ
り、ホスト装置32の性能によって、画像読み取り装置
本体1からホスト装置32へ画像データを転送する時間
も大きく変化する。
The image reading apparatus main body 1 includes a host device 32
Although the function of reading an image can be exhibited for the first time by connecting to the host device 32, the performance of the host device 32 varies, and the image data is transferred from the image reading device main body 1 to the host device 32 depending on the performance of the host device 32. The time to do it also varies greatly.

【0035】ホスト装置側の処理速度が遅く、画像デー
タを出力することができなくなった場合、画像読み取り
装置本体1は、画像をそれ以上読み取ることができず、
画像読み取り動作を中断することになる。通常はこの中
断を極力少なくするため、画像読み取り装置本体1に
は、図1に示すバッファ24が設けられており、ホスト
装置32が側が画像データを受け取れなくっても(即ち
インタフェース25において画像データの転送が停止し
ていても)、画像読み取り装置本体1は画像を読み取り
続けることができる。
If the processing speed of the host device side is slow and it becomes impossible to output image data, the image reading device main body 1 cannot read the image any more.
The image reading operation is interrupted. Normally, in order to minimize this interruption, the image reading apparatus main body 1 is provided with a buffer 24 shown in FIG. 1 so that even if the host apparatus 32 cannot receive image data (that is, the image data is Even if the transfer is stopped), the image reading apparatus main body 1 can continue reading the image.

【0036】しかしながら、コストの制約上、バッファ
24の容量にも限界があるため、バッファ24の容量を
越えて画像データを保持し続けることは不可能である。
このように画像読み取り装置1のバッファ24が満杯状
態になることをバッファフルと呼称する。バッファフル
が発生すると、画像読み取り装置本体1は、画像読み取
り動作を一時的に中断し、ホスト装置32がバッファ2
4に保持された画像データをインタフェース25を介し
て吸い上げるのを待つ。即ち、バッファ24に多量の画
像データが残っている間は、読み取り動作を中断してお
き、バッファ24がある程度空になると(バッファエン
プティ)、画像読み取り動作を再開する。この動作をリ
スタート動作と呼称する。
However, since the capacity of the buffer 24 is limited due to cost restrictions, it is impossible to keep the image data beyond the capacity of the buffer 24.
Such a state in which the buffer 24 of the image reading device 1 becomes full is referred to as a buffer full. When the buffer full occurs, the image reading device main body 1 temporarily suspends the image reading operation, and the host device 32
4 waits for the image data held in 4 to be downloaded via the interface 25. That is, while a large amount of image data remains in the buffer 24, the reading operation is suspended, and when the buffer 24 becomes empty to some extent (buffer empty), the image reading operation is restarted. This operation is called a restart operation.

【0037】CPU26はバッファフル状態への移行
を、バッファ24の状態を管理するバッファ状態管理部
29が発生する割り込み信号(バッファモニタ信号)に
よって検出することができる。CPU26はバッファフ
ルを検出すると、キャリッジ3を微小量、読み取り方向
と逆方向に駆動し、読み取り再開に備える。その後CP
U26はバッファモニタ信号を定期的にチェックし、バ
ッファフル状態の解除(バッファエンプティ)を検出す
ると、キャリッジを読み取り方向に、ホスト装置32か
ら指定された読み取り解像度に応じた速度で駆動し、バ
ッファフルが発生した次のラインから読み取りを再開す
る。
The CPU 26 can detect the transition to the buffer full state by an interrupt signal (buffer monitor signal) generated by the buffer state management unit 29 for managing the state of the buffer 24. When the CPU 26 detects that the buffer is full, it drives the carriage 3 by a small amount in the direction opposite to the reading direction to prepare for resuming reading. Then CP
The U26 periodically checks the buffer monitor signal, and upon detecting the release of the buffer full state (buffer empty), drives the carriage in the reading direction at a speed according to the reading resolution designated by the host device 32, and the buffer full state is detected. Resume reading from the line following the occurrence of.

【0038】次に図1と図3を用いてリスタート発生時
点のキャリッジ位置の制御について説明する。
Next, the control of the carriage position at the time when the restart occurs will be described with reference to FIGS.

【0039】図3は、図1におけるモータ制御部30の
詳細を示す図である。図3において、34はカウンタ1
であり、予め定められた周期のクロック信号をカウント
する。
FIG. 3 is a diagram showing details of the motor control unit 30 in FIG. In FIG. 3, 34 is a counter 1
And counts clock signals having a predetermined cycle.

【0040】35はレジスタ1aであり、CPU26か
ら値が書き込まれる。36はレジスタ1bであり、CP
U26から値が書き込まれる。
Reference numeral 35 denotes a register 1a to which a value is written from the CPU 26. 36 is a register 1b, CP
The value is written from U26.

【0041】37はカウンタ2であり、カウンタ1と同
様に予め定められた周期のクロック信号をカウントす
る。
Reference numeral 37 denotes a counter 2 which counts clock signals having a predetermined period, similarly to the counter 1.

【0042】38はレジスタ2aであり、CPU26か
ら値が書き込まれる。39はレジスタ2bであり、CP
U26から値が書き込まれる。
Reference numeral 38 denotes a register 2a to which a value is written from the CPU 26. 39 is a register 2b, and CP
The value is written from U26.

【0043】40はカウンタ3であり、予め定められた
周期のクロック信号をカウントする。
Reference numeral 40 denotes a counter 3, which counts clock signals having a predetermined period.

【0044】41はレジスタ3aであり、Hsync2
8が発生する毎にカウンタ3(40)のカウント値を読
み込んで保持する。レジスタ3aはCPU26からリー
ド可能であり、CPU26はHsync28による割り
込みが発生する毎に、レジスタ3aに保持されたカウン
タ3のカウント値を入手することができる。
Reference numeral 41 denotes a register 3a, Hsync2
Every time 8 occurs, the count value of the counter 3 (40) is read and held. The register 3a can be read from the CPU 26, and the CPU 26 can obtain the count value of the counter 3 held in the register 3a every time an interrupt by the Hsync 28 occurs.

【0045】42はレジスタ3bであり、CPU26か
ら値が書き込まれる。43はクロック信号発生器であ
り、予め定められた周期のクロック信号を発生する。ク
ロック信号発生器43の出力は、カウンタ1、カウンタ
2、カウンタ3に入力されており、これらのカウンタ
は、クロック信号発生器43で発生されたクロック信号
をカウントする。
Reference numeral 42 denotes a register 3b to which a value is written from the CPU 26. A clock signal generator 43 generates a clock signal having a predetermined cycle. The output of the clock signal generator 43 is input to the counter 1, the counter 2, and the counter 3, which count the clock signal generated by the clock signal generator 43.

【0046】44は比較器1aであり、カウンタ1(3
4)のカウント値とレジスタ1a(35)の値を比較
し、両者が一致した場合は(コンペアマッチ)一致信号
を発生する。また比較器1a(44)から出力される一
致信号はCPU26に割り込みとして通知され、CPU
26は一致信号の発生回数をカウントする(より詳しく
説明すれば、CPU26は比較器1a(44)から出力
される一致信号をモータの励磁パルスとみなして、この
計数値をキャリッジの位置情報として使用する)。また
比較器1a(44)の一致信号はカウンタ1、カウンタ
2、カウンタ3に入力され、各カウンタは一致信号の入
力により0にリセットされる。即ちカウンタ1、カウン
タ2、カウンタ3はカウンタ1が特定の値に達したら一
斉にリセットされる、いわゆる同期動作を行っている。
Reference numeral 44 denotes a comparator 1a, which is a counter 1 (3
The count value of 4) is compared with the value of the register 1a (35), and if they match, a match signal is generated (compare match). The coincidence signal output from the comparator 1a (44) is notified to the CPU 26 as an interrupt,
26 counts the number of occurrences of the coincidence signal (more specifically, the CPU 26 regards the coincidence signal output from the comparator 1a (44) as an excitation pulse of the motor, and uses the counted value as position information of the carriage. Do). The coincidence signal of the comparator 1a (44) is input to the counter 1, counter 2, and counter 3, and each counter is reset to 0 by the input of the coincidence signal. That is, the counter 1, the counter 2, and the counter 3 perform a so-called synchronous operation in which the counter 1 is reset all at once when the counter 1 reaches a specific value.

【0047】45は比較器1bであり、カウンタ1(3
4)のカウント値とレジスタ1b(36)の値を比較
し、両者が一致した場合は(コンペアマッチ)一致信号
を発生する。
Reference numeral 45 denotes a comparator 1b, which is a counter 1 (3
The count value of 4) is compared with the value of the register 1b (36), and if they match, a match signal is generated (compare match).

【0048】46は比較器2aであり、カウンタ2(3
7)のカウント値とレジスタ2a(38)の値を比較
し、両者が一致した場合は(コンペアマッチ)一致信号
を発生する。
Reference numeral 46 denotes a comparator 2a, which is a counter 2 (3
The count value of 7) is compared with the value of the register 2a (38), and if they match, a match signal is generated (compare match).

【0049】47は比較器2bであり、カウンタ2(3
7)のカウント値とレジスタ2a(39)の値を比較
し、両者が一致した場合は(コンペアマッチ)一致信号
を発生する。
Reference numeral 47 denotes a comparator 2b, which is a counter 2 (3
The count value of 7) is compared with the value of the register 2a (39), and if they match, a match signal is generated (compare match).

【0050】48は比較器3であり、カウンタ3(4
0)のカウント値とレジスタ3b(42)の値を比較
し、両者が一致した場合は(コンペアマッチ)一致信号
を発生する。
Reference numeral 48 denotes a comparator 3, which is a counter 3 (4
The count value of (0) is compared with the value of the register 3b (42), and if they match, a match signal is generated (compare match).

【0051】49h出力制御部1であり、比較器1a
(44)から出力された一致信号と、比較器1b(4
5)から出力された一致信号に基づき、モータ励磁信号
(1相)を生成する。
49h Output control unit 1 and comparator 1a
The match signal output from (44) and the comparator 1b (4
Based on the coincidence signal output from 5), a motor excitation signal (one phase) is generated.

【0052】50はモータドライバであり、出力制御部
1(49)から出力された1相の励磁信号に基づきステ
ッピングモータ31を駆動する。
A motor driver 50 drives the stepping motor 31 based on the one-phase excitation signal output from the output controller 1 (49).

【0053】51は出力制御部2であり、比較器2a
(46)から出力された一致信号と、比較器2b(4
7)から出力された一致信号に基づき、出力制御部1
(49)の出力と位相が90°ずれた信号を発生する。
Reference numeral 51 denotes an output control unit 2, which is a comparator 2a.
The coincidence signal output from (46) and the comparator 2b (4
7) Based on the coincidence signal output from 7), the output control unit 1
A signal whose phase is shifted by 90 ° from the output of (49) is generated.

【0054】52は出力制御部3であり、比較器3(4
8)から一致信号が入力される毎にHighとLowを
交互に反転する、いわゆるトグル出力を行う。
Reference numeral 52 denotes an output control unit 3, which is a comparator 3 (4
From 8), so-called toggle output is performed in which High and Low are alternately inverted each time a match signal is input.

【0055】53はカウンタ4であり、出力制御部1
(49)から出力された励磁信号と、出力制御部2(5
1)から出力された、出力制御部1(49)の出力と位
相が90°ずれた信号を2相入力とする位相計数カウン
タである。カウンタ4(53)では、CPU26の介在
なしに、モータの回転量、即ちキャリッジの移動量が計
測される。
Reference numeral 53 denotes a counter 4 which is an output control unit 1
The excitation signal output from (49) and the output control unit 2 (5
This is a phase counting counter that uses a signal output from 1), which is 90 ° out of phase with the output of the output control unit 1 (49), as a two-phase input. The counter 4 (53) measures the amount of rotation of the motor, that is, the amount of movement of the carriage, without the intervention of the CPU 26.

【0056】54はレジスタ4aであり、Hsync2
8が発生する毎にカウンタ4(53)のカウント値を読
み込んで保持する。レジスタ4aはCPU26からリー
ド可能であり、CPU26はHsync28による割り
込みが発生する毎に、レジスタ4aに保持されたカウン
タ4(53)のカウント値、即ちキャリッジの位置情報
を入手することができる。
Reference numeral 54 denotes a register 4a, which is Hsync2
Every time 8 occurs, the count value of the counter 4 (53) is read and held. The register 4a can be read from the CPU 26, and the CPU 26 can obtain the count value of the counter 4 (53) held in the register 4a, that is, information on the position of the carriage, every time an interrupt is generated by the Hsync 28.

【0057】55はレジスタ4bであり、CPU26か
ら値が書き込まれる。56は比較器4であり、カウンタ
4(53)のカウント値とレジスタ4b(55)の値を
比較し、両者が一致した場合は(コンペアマッチ)一致
信号を発生する。
Reference numeral 55 denotes a register 4b to which a value is written from the CPU 26. Reference numeral 56 denotes a comparator 4, which compares the count value of the counter 4 (53) with the value of the register 4b (55), and generates a match signal (compare match) when they match.

【0058】57は両エッジ検出部であり、出力制御部
3(52)から出力されるトグル信号の両エッジを検出
し、両エッジ位置に対応したパルス信号を生成する。5
8はゲート回路であり、比較器4(56)が一致信号を
発生した場合には両エッジ検出部57の信号に基づき規
定の幅を持つパルス信号を出力する。ゲート回路58の
出力はCPU26に入力される。CPU26はゲート回
路58の出力を割り込みとして認識する。
Numeral 57 denotes a double edge detection unit which detects both edges of the toggle signal output from the output control unit 3 (52) and generates a pulse signal corresponding to both edge positions. 5
Reference numeral 8 denotes a gate circuit, which outputs a pulse signal having a specified width based on the signals from the two edge detectors 57 when the comparator 4 (56) generates a coincidence signal. The output of the gate circuit 58 is input to the CPU 26. The CPU 26 recognizes the output of the gate circuit 58 as an interrupt.

【0059】以上のように構成されるモータ制御部30
の動作を、以降図3と図4を用いて詳細に説明する。
The motor control unit 30 configured as described above
Will be described in detail with reference to FIGS. 3 and 4.

【0060】図4はバッファフル発生前から発生時にお
けるモータ制御部30の動作を示す図である。
FIG. 4 is a diagram showing the operation of the motor control unit 30 from before the occurrence of buffer full to when it occurs.

【0061】カウンタ1(34)、カウンタ2(3
7)、カウンタ3(40)はクロック信号発生器43が
発生する、予め定められたクロック信号によってカウン
トアップされている。レジスタ1a(35)には設定値
59が設定されており、カウンタ1(34)のカウント
値は設定値59に達すると0にクリアされる。また比較
器1a(44)から出力される一致信号により、カウン
タ1(34)と同時にカウンタ2(37)、カウンタ3
(40)も同時に0にクリアされる。一方レジスタ1b
(55)には設定値60が設定されている。設定値60
の値は、設定値59の1/2の値が設定されている。
The counter 1 (34) and the counter 2 (3
7) The counter 3 (40) is counted up by a predetermined clock signal generated by the clock signal generator 43. A set value 59 is set in the register 1a (35), and when the count value of the counter 1 (34) reaches the set value 59, it is cleared to zero. Further, the coincidence signal output from the comparator 1a (44) allows the counter 2 (37), the counter 3
(40) is also cleared to 0 at the same time. On the other hand, register 1b
The set value 60 is set in (55). Set value 60
Is set to 1/2 of the set value 59.

【0062】比較器1a(44)はカウンタ1(34)
のカウント値と設定値59を比較し、値が一致すると一
致信号を出力し、比較器1b(45)はカウンタ1(3
4)のカウント値と設定値60を比較し、値が一致する
と一致信号を出力するが、これらは出力制御部1(4
9)に入力されており、出力制御部1(49)では、比
較器1a(44)から一致信号を検出すると出力をHi
ghにし、比較器1b(45)から一致信号を検出する
と出力をLowにする。こうして出力制御部1出力61
が得られる。出力制御部1出力61はモータドライバ5
0に入力されており、モータドライバ50は、出力制御
部1出力61に基づいてモータ31の回転を制御する。
さてレジスタ2a(38)には設定値62が設定されて
おり、レジスタ2b(39)には設定値63が設定され
ている。設定値62は 設定値62=(設定値59+設定値60)/2・・・(数1) に、設定値63は 設定値63=設定値60/2・・・(数2) にそれぞれ設定されている。
The comparator 1a (44) is a counter 1 (34)
Is compared with the set value 59, and when the values match, a match signal is output, and the comparator 1b (45) outputs the counter 1 (3
The count value of 4) is compared with the set value 60, and when the values match, a match signal is output.
9), and when the output control unit 1 (49) detects a coincidence signal from the comparator 1a (44), the output is switched to Hi.
gh, and when a coincidence signal is detected from the comparator 1b (45), the output is set to Low. Thus, the output control unit 1 output 61
Is obtained. The output control unit 1 output 61 is the motor driver 5
0, the motor driver 50 controls the rotation of the motor 31 based on the output 61 of the output control unit 1.
The setting value 62 is set in the register 2a (38), and the setting value 63 is set in the register 2b (39). The set value 62 is set as set value 62 = (set value 59 + set value 60) / 2... (Equation 1), and the set value 63 is set as set value 63 = set value 60/2. Have been.

【0063】比較器2a(46)はカウンタ2(37)
のカウント値と設定値62を比較し、値が一致すると一
致信号を出力し、比較器2b(47)はカウンタ2(3
7)のカウント値と設定値63を比較し、値が一致する
と一致信号を出力するが、これらは出力制御部2(5
1)に入力されており、出力制御部2(51)では、比
較器2a(46)から一致信号を検出すると出力をHi
ghにし、比較器2b(47)から一致信号を検出する
と出力をLowにする。こうして出力制御部2出力64
が得られる。
The comparator 2a (46) is the counter 2 (37)
Is compared with the set value 62, and when the values match, a match signal is output, and the comparator 2b (47) sets the counter 2 (3
7) is compared with the set value 63, and when the values match, a match signal is output.
1). When the output control unit 2 (51) detects a coincidence signal from the comparator 2a (46), it outputs Hi.
gh, and when a coincidence signal is detected from the comparator 2b (47), the output is set to Low. Thus, the output control unit 2 output 64
Is obtained.

【0064】設定値59、設定値60、設定値62、設
定値63を上述のように設定することで、出力制御部2
出力64と出力制御部1出力61の位相差を制御するこ
とができる(本発明にかかる画像読み取り装置では90
°の位相差を設けている)。
By setting the set value 59, the set value 60, the set value 62, and the set value 63 as described above, the output control unit 2
The phase difference between the output 64 and the output 61 of the output control unit 1 can be controlled.
° phase difference).

【0065】出力制御部1出力61と出力制御部2出力
64はカウンタ4(53)に入力されており、位相計数
カウンタであるカウンタ4(53)は2つの入力の位相
差に基づきアップまたはダウンカウンタとして機能す
る。カウンタ4(53)の計数値はHsync28の入
力の度にレジスタ4a(54)に保持されており、CP
U26はHsync28により割り込みが発生すると、
レジスタ4a(54)の値を読み取り、記憶している
(Po1H:粗位置情報65)。
The output 61 of the output control unit 1 and the output 64 of the output control unit 2 are input to the counter 4 (53), and the counter 4 (53), which is a phase counting counter, goes up or down based on the phase difference between the two inputs. Functions as a counter. The count value of the counter 4 (53) is held in the register 4a (54) every time the Hsync 28 is input, and
When U26 is interrupted by Hsync28,
The value of the register 4a (54) is read and stored (Po1H: coarse position information 65).

【0066】Po1Hの値は、モータ駆動ステップ毎に
カウンタアップされる計数値であるから、Hsync2
8が発生した時のキャリッジ位置を粗く計測しているこ
とになる。一方カウンタ3(40)ではHsync28
の入力の度にカウント値がレジスタ3a(41)に保持
されており、CPU26はHsync28により割り込
みが発生すると、レジスタ3a(41)の値を読み取
り、記憶している(PO1L:微小位置情報66)。
Since the value of Po1H is a count value which is counted up every motor driving step, Hsync2
This means that the carriage position when 8 occurs is roughly measured. On the other hand, in counter 3 (40), Hsync28
Each time is input, the count value is held in the register 3a (41), and when an interrupt is generated by the Hsync 28, the CPU 26 reads and stores the value of the register 3a (41) (PO1L: minute position information 66). .

【0067】微小位置情報66はモータの駆動状況を直
接反映するものではないが、駆動パルス間でモータは略
等速で駆動され、モータの動力はベルト等を介在して伝
達され、最終的に駆動されるキャリッジに至っては、ほ
ぼ等速で駆動されているとみなせるので、微小位置情報
66はモータ励磁パルス間のキャリッジ位置補間情報と
みなすことができる。
Although the minute position information 66 does not directly reflect the driving state of the motor, the motor is driven at a substantially constant speed between the driving pulses, and the power of the motor is transmitted via a belt or the like. Since the driven carriage can be regarded as being driven at substantially constant speed, the minute position information 66 can be regarded as carriage position interpolation information between motor excitation pulses.

【0068】即ちPO1LはHsync28が発生した
時のキャリッジ位置を微小に計測していることになる。
That is, PO1L minutely measures the carriage position when Hsync 28 occurs.

【0069】さて本発明にかかる画像読み取り装置で
は、バッファフルの直前のHsync28まで画像デー
タは有効となるように、ハードウェアは設計されてい
る。バッファフル発生は、バッファ状態管理部29から
CPU26に入力されるが、ハードウェアはバッファフ
ルが発生するとCPU26の介在なしに、画像データの
読み取り、即ちデータ処理を停止している。
The hardware of the image reading apparatus according to the present invention is designed so that the image data is valid up to Hsync 28 immediately before the buffer is full. The occurrence of the buffer full is input from the buffer state management unit 29 to the CPU 26. However, when the buffer full occurs, the reading of the image data, that is, the data processing is stopped without the intervention of the CPU 26.

【0070】CPU26はバッファフルを検出すると、
直ちにモータ31を停止し、出力制御部2(51)の信
号発生ルールを変更し、カウンタ2(37)と設定値6
2が一致することで出力される一致信号によりLow
を、カウンタ2と設定値63とが一致することで出力さ
れる一致信号によりHighが出力されるようにした上
で、モータ31を読み取り方向とは逆の方向に回転させ
る。出力制御部1出力61と出力制御部2出力64の位
相のずれ方向が逆になっているので、位相計数カウンタ
であるカウンタ4はダウンカウンタとして機能する。
When the CPU 26 detects that the buffer is full,
Immediately, the motor 31 is stopped, the signal generation rule of the output control unit 2 (51) is changed, and the counter 2 (37) and the set value 6 are set.
2 is Low due to the match signal output when 2 matches.
Is set to output High by a match signal output when the counter 2 matches the set value 63, and then the motor 31 is rotated in the direction opposite to the reading direction. Since the phase shift direction of the output control unit 1 output 61 and the output control unit 2 output 64 is opposite, the counter 4 which is a phase counting counter functions as a down counter.

【0071】CPU26はバッファフルが発生した際の
Hsyncカウンタの値を記憶する。また、そのHsy
ncカウンタ値の1つ前の時点における、粗位置情報6
5(即ちPO1H)と微小位置情報66(即ちPO1
L)を、バッファフルが解除された時のリスタート位置
として記憶する。そしてCPU26は、読み取り方向と
は逆方向にモータを駆動し、キャリッジ位置がPO1H
とPO1Lを検出した位置よりも、上流(読み取り方向
とは逆方向)になるまでキャリッジを駆動し、その後モ
ータを停止してバッファフルが解除されるのを待つ。
(モータ逆転による、カウンタ4のダウンカウントは、
図4に図示された数値より小さくなるまで行なわれる)
次にバッファフルが解除された時の動作について図3と
図5を用いて説明する。
The CPU 26 stores the value of the Hsync counter when a buffer full occurs. Also, the Hsy
coarse position information 6 immediately before the nc counter value
5 (ie, PO1H) and the minute position information 66 (ie, PO1H).
L) is stored as the restart position when the buffer full is released. Then, the CPU 26 drives the motor in a direction opposite to the reading direction so that the carriage position is PO1H.
Then, the carriage is driven until it is upstream (in the direction opposite to the reading direction) from the position at which the buffer full is detected, and then the motor is stopped to wait until the buffer full is released.
(The down count of the counter 4 due to the motor reverse rotation is
This is performed until the value becomes smaller than the value shown in FIG. 4).
Next, the operation when the buffer full is released will be described with reference to FIGS.

【0072】図5はバッファフル解除時点のモータ制御
部30の動作を示す図である。バッファフルの解除はバ
ッファ状態管理部29からCPU26に伝えられる。バ
ッファフル解除をCPU26が認識すると、CPU26
はレジスタ4b(55)にPO1Hを設定値67として
書き込み、更にレジスタ3b(42)にPO1Lを設定
値69として書き込む。
FIG. 5 is a diagram showing the operation of the motor control unit 30 at the time of buffer full release. The release of the buffer full is transmitted from the buffer state management unit 29 to the CPU 26. When the CPU 26 recognizes the buffer full release, the CPU 26
Writes PO1H as the set value 67 in the register 4b (55), and further writes PO1L as the set value 69 in the register 3b (42).

【0073】そして読み取り方向とは逆の方向に戻って
いるモータを、読み取り方向に駆動する。
Then, the motor returning in the direction opposite to the reading direction is driven in the reading direction.

【0074】レジスタ3b(42)に設定値69として
PO1Lを書き込むことにより、比較器3(48)はモ
ータ(31)の駆動と共にアップカウントとリセットを
繰り返すカウンタ3(40)とレジスタ3b(42)の
値を比較し、一致が発生すると一致信号を出力制御部3
(52)に出力する。出力制御部3(52)は一致信号
を受け取る度に、LowとHighを交互に繰り返す、
いわゆるトグル信号を出力する(出力制御部3(52)
出力70)。更に両エッジ検出部(57)ではトグル信
号の両エッジを検出し、両エッジ位置に応じたパルス信
号を出力する(両エッジ検出部(57)出力71)。
By writing PO1L as the set value 69 in the register 3b (42), the comparator 3 (48) causes the counter 3 (40) and the register 3b (42) to repeat up-counting and reset together with driving of the motor (31). Are compared, and when a match occurs, a match signal is output to the output control unit 3.
Output to (52). Each time the output control unit 3 (52) receives the coincidence signal, the output control unit 3 (52) alternately repeats Low and High.
Output a so-called toggle signal (output control unit 3 (52)
Output 70). Further, the both-edge detecting section (57) detects both edges of the toggle signal and outputs a pulse signal corresponding to both-edge positions (both-edge detecting section (57) output 71).

【0075】一方レジスタ4b(55)に設定値67と
してPO1Hを書き込むことにより、比較器4(56)
はモータ(31)の駆動と共にアップカウントされるカ
ウンタ4(53)とレジスタ4b(55)に設定された
値を比較し、一致が発生すると一致信号をゲート回路
(58)に出力する(比較器4(56)出力68)。
On the other hand, by writing PO1H as the set value 67 in the register 4b (55), the comparator 4 (56)
Compares the value of the counter 4 (53), which is counted up with the driving of the motor (31), with the value set in the register 4b (55), and outputs a match signal to the gate circuit (58) when a match occurs (comparator) 4 (56) output 68).

【0076】ゲート回路(58)では比較器4(56)
出力68が入力されると、次に発生した両エッジ検出部
(57)出力71に基づきCPU26に対して割り込み
信号を生成する(ゲート回路(58)出力72)。CP
U26は位置73に示す位置で、この割り込み信号を検
出すると、Hsync28をリセットする。
In the gate circuit (58), the comparator 4 (56)
When the output 68 is input, an interrupt signal is generated for the CPU 26 based on the output 71 of the both-edge detector (57) that has occurred next (the output 72 of the gate circuit (58)). CP
U26 is at the position indicated by position 73, and upon detecting this interrupt signal, resets Hsync28.

【0077】さて前述したように、CPU26はバッフ
ァフル発生位置を、Hsyncカウント値に基づき位置
74として記憶している。バッファフルは有効な最後の
ラインで発生するから、次に読み取るべきラインは位置
73の次のHsyncからである。従ってCPU26は
位置73のHsyncを検出した直後に、ハードウェア
の動作を開始すればバッファフル発生ラインの次のライ
ンから正確に画像データを読み取ることができる。
As described above, the CPU 26 stores the buffer full occurrence position as the position 74 based on the Hsync count value. Since buffer full occurs on the last valid line, the next line to read is from the next Hsync after position 73. Therefore, if the CPU 26 starts the operation of the hardware immediately after detecting Hsync at the position 73, the CPU 26 can accurately read the image data from the line next to the line where the buffer full occurs.

【0078】以上のようにして、画像を読み取りなが
ら、Hsyncカウント値の基準となる値に基づいて、
キャリッジの正確な位置情報を測定しておき、バッファ
フル発生時には、キャリッジを微小距離リターンして停
止させ、バッファフル解除後に読み取るべきライン位置
にキャリッジが到達した時点で、測定したキャリッジ位
置情報に基づき、Hsyncをリセットすることによ
り、キャリッジ位置情報とHsync信号との位相関係
を読み取り前の状態に復元できる。
As described above, while reading the image, based on the reference value of the Hsync count value,
Precise position information of the carriage is measured, and when a buffer full occurs, the carriage returns a minute distance and stops, and when the carriage reaches the line position to be read after the buffer full is released, based on the measured carriage position information , Hsync, the phase relationship between the carriage position information and the Hsync signal can be restored to the state before reading.

【0079】[0079]

【発明の効果】以上のように、本発明によると、CPU
が読み取り開始指定位置に到達すると、更に画像を読み
取りながら、Hsyncカウント値に基づいて、キャリ
ッジの正確な位置情報を測定しておき、バッファフル発
生時には、キャリッジを微小距離リターンして停止さ
せ、バッファフル解除後に読み取るべきライン位置にキ
ャリッジが到達した時点で、測定したキャリッジ位置情
報に基づき、Hsync信号をリセットすることによ
り、キャリッジ位置情報とHsync信号の位相関係を
読み取り前の状態に復元することができる。
As described above, according to the present invention, the CPU
Reaches the reading start designated position, the accurate position information of the carriage is measured based on the Hsync count value while reading the image, and when the buffer is full, the carriage is returned by a small distance and stopped, and the buffer is stopped. When the carriage reaches the line position to be read after the full release, the Hsync signal is reset based on the measured carriage position information, so that the phase relationship between the carriage position information and the Hsync signal can be restored to the state before reading. it can.

【0080】これによりバッファフルが発生しても常に
画像の明らかな段差を生じることなく、画像を読み続け
ることが可能となる。
As a result, even if a buffer full occurs, it is possible to keep reading the image without any apparent step difference.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の画像読み取り装置のハードウェア構成
を示す図
FIG. 1 is a diagram illustrating a hardware configuration of an image reading apparatus according to the present invention.

【図2】画像読み取り装置とこれを制御する外部ホスト
装置(PC)を示す図
FIG. 2 is a diagram illustrating an image reading device and an external host device (PC) that controls the image reading device.

【図3】モータ制御部の詳細を示す図FIG. 3 is a diagram showing details of a motor control unit.

【図4】バッファフル発生前から発生時におけるモータ
制御部の動作を示す図
FIG. 4 is a diagram showing an operation of a motor control unit before and after a buffer full occurs.

【図5】バッファフル解除時点のモータ制御部の動作を
示す図
FIG. 5 is a diagram showing the operation of the motor control unit at the time of buffer full release.

【図6】従来の画像読み取り装置の概略を示す図FIG. 6 is a diagram schematically showing a conventional image reading apparatus.

【図7】従来の画像読み取り装置のキャリッジの内部構
造を示す図
FIG. 7 is a diagram showing an internal structure of a carriage of a conventional image reading apparatus.

【図8】従来の画像読み取り装置のキャリッジ駆動モー
タの動作を示す図
FIG. 8 is a diagram showing an operation of a carriage drive motor of a conventional image reading apparatus.

【符号の説明】[Explanation of symbols]

1 画像読み取り装置本体 3 キャリッジ 4 駆動源 16 イメージセンサ 24 バッファ 25 インタフェース 27 読み取り基準信号生成部 28 Hsync(信号名) 29 バッファ状態管理部 30 モータ制御部 31 モータ 32 ホスト装置(PC) DESCRIPTION OF SYMBOLS 1 Image reading apparatus main body 3 Carriage 4 Drive source 16 Image sensor 24 Buffer 25 Interface 27 Reading reference signal generation part 28 Hsync (signal name) 29 Buffer state management part 30 Motor control part 31 Motor 32 Host device (PC)

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】ライン単位で画像を読み取るために、光電
変換素子等で構成された読み取り手段を規定の方向に駆
動させる読み取り手段駆動信号に基づく粗位置情報と、
前記粗位置情報よりも微小な微小位置情報とで構成され
る位置情報を、上記ライン単位で画像を読み取る際に使
用されるライン同期信号入力時に検出する読み取り再開
位置検出手段と、前記粗位置情報、微小位置情報のうち
少なくとも片方の精度の位置情報を用い、前記読み取り
手段が読み取り再開位置に到達した時にライン同期信号
をリセットさせることにより、読み取り再開位置を再現
させる読み取り再開位置再現手段とで構成されることを
特徴とする画像読み取り装置。
1. A coarse position information based on a reading unit drive signal for driving a reading unit constituted by a photoelectric conversion element or the like in a prescribed direction to read an image in line units.
Reading restart position detecting means for detecting position information composed of minute position information finer than the coarse position information at the time of inputting a line synchronization signal used for reading an image in line units; A read restart position reproducing unit that reproduces the read restart position by resetting the line synchronization signal when the reading unit reaches the read restart position by using position information of at least one of the minute position information. An image reading device characterized by being performed.
【請求項2】前記読み取り手段駆動信号の位相をシフト
させることにより形成される多相の前記読み取り手段駆
動信号を粗位置情報検出手段に入力することを特徴とす
る請求項1記載の画像読み取り装置
2. The image reading apparatus according to claim 1, wherein the multi-phase reading means driving signal formed by shifting the phase of the reading means driving signal is input to a coarse position information detecting means.
【請求項3】前記読み取り手段駆動信号の周期の中で、
粗位置情報検出手段で計測している間隔より細かい間隔
を計測することにより、読み取り再開位置を検出するこ
とを特徴とする請求項1記載の画像読み取り装置。
3. The method according to claim 2, wherein:
2. The image reading apparatus according to claim 1, wherein the reading restart position is detected by measuring a smaller interval than the interval measured by the coarse position information detecting means.
JP05321498A 1998-03-05 1998-03-05 Image reading device Expired - Fee Related JP3882316B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05321498A JP3882316B2 (en) 1998-03-05 1998-03-05 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05321498A JP3882316B2 (en) 1998-03-05 1998-03-05 Image reading device

Publications (2)

Publication Number Publication Date
JPH11252318A true JPH11252318A (en) 1999-09-17
JP3882316B2 JP3882316B2 (en) 2007-02-14

Family

ID=12936592

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05321498A Expired - Fee Related JP3882316B2 (en) 1998-03-05 1998-03-05 Image reading device

Country Status (1)

Country Link
JP (1) JP3882316B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007235852A (en) * 2006-03-03 2007-09-13 Ricoh Co Ltd Image reading apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007235852A (en) * 2006-03-03 2007-09-13 Ricoh Co Ltd Image reading apparatus

Also Published As

Publication number Publication date
JP3882316B2 (en) 2007-02-14

Similar Documents

Publication Publication Date Title
US5047871A (en) Direction scaling method and apparatus for image scanning resolution control
JP3585976B2 (en) Image reading device
JP3882316B2 (en) Image reading device
US4635129A (en) Image scanning apparatus
JPH1023226A (en) Image reader
US5703455A (en) Control device for a stepping motor included in an electronic apparatus
JP2000270162A (en) Image reader
JPH08340421A (en) Image reader
JPH11103371A (en) Image scanner having center position detection function and method for detecting center position of the image scanner
JPH06169379A (en) Image reader
JP2000125116A (en) Picture reader
JPH11285294A (en) Motor controller, and motor controlling method and storing medium thereof
US5790164A (en) Image scanning and writing apparatus which uses different synchronizing signals for scanning and writing
JP2735566B2 (en) Sub-scanning method of image reading device
JP2625765B2 (en) Resolution measuring device
JP2003057578A (en) Picture recorder
JP3752821B2 (en) Image reading device
JP2780182B2 (en) Document scanning device
JP2908803B2 (en) Exposure equipment
JPS63287167A (en) Original reader
JPH11146144A (en) Scanner drive controller
JP2857167B2 (en) Document reading device
JP2001008029A (en) Image reader
JPS61173574A (en) Digital copying machine
JPS63204870A (en) Original scanner

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040116

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040116

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20040213

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050322

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050405

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050428

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050627

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050802

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050921

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051227

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060203

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: 20061024

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061106

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091124

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101124

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101124

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111124

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121124

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees