JPH0831950B2 - Facsimile transmitter - Google Patents

Facsimile transmitter

Info

Publication number
JPH0831950B2
JPH0831950B2 JP24392884A JP24392884A JPH0831950B2 JP H0831950 B2 JPH0831950 B2 JP H0831950B2 JP 24392884 A JP24392884 A JP 24392884A JP 24392884 A JP24392884 A JP 24392884A JP H0831950 B2 JPH0831950 B2 JP H0831950B2
Authority
JP
Japan
Prior art keywords
line
buffer
image data
pulse
transfer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP24392884A
Other languages
Japanese (ja)
Other versions
JPS61121662A (en
Inventor
祐司 石川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP24392884A priority Critical patent/JPH0831950B2/en
Priority to CN 85103886 priority patent/CN1012251B/en
Publication of JPS61121662A publication Critical patent/JPS61121662A/en
Publication of JPH0831950B2 publication Critical patent/JPH0831950B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Facsimile Scanning Arrangements (AREA)
  • Storing Facsimile Image Data (AREA)

Description

【発明の詳細な説明】 〈技術分野〉 本発明は原稿画像を電気信号に変換して伝送するフア
クシミリ送信装置に係り、特に蓄積型の光ラインセンサ
を用いたフアクシミリ送信装置に関する。
Description: TECHNICAL FIELD The present invention relates to a facsimile transmitter for converting an original image into an electric signal and transmitting the electrical signal, and more particularly to a facsimile transmitter using a storage type optical line sensor.

〈従来技術〉 フアクシミリ装置においてはメモリ容量の低減や、相
手機との伝送のマツチングをとる為に原稿の間欠的な移
動を行ない、原稿を読取る光センサへの電荷の蓄積を非
同期に行なっていた。しかしこの様に構成すると光セン
サによる読取範囲、あるいは読取間隔が一定とならず解
像度が劣化してしまう。
<Prior Art> In a facsimile machine, a document is intermittently moved in order to reduce the memory capacity and to match the transmission with the other device, and charges are asynchronously stored in an optical sensor for reading the document. . However, with such a configuration, the reading range by the optical sensor or the reading interval is not constant and the resolution deteriorates.

そこで、従来においては第1図に示すように原稿が移
動中に光にセンサに蓄積されたデータは読取らないよう
に原稿の移動と、光センサからの読出しに周期関係を持
たせる方法や、あるいは光センサの蓄積時間中に占める
原稿の移動時間の割合を小さくする方法が採用されてい
た。
Therefore, in the prior art, as shown in FIG. 1, there is a method in which there is a periodic relationship between the movement of the original and the reading from the optical sensor so that the data accumulated in the sensor by the light is not read while the original is moving. Alternatively, a method has been adopted in which the ratio of the moving time of the document in the storage time of the optical sensor is reduced.

第1図において時間T1は原稿の移動時間、T2は光セン
サの蓄積時間である。
In FIG. 1, time T 1 is the moving time of the document and T 2 is the storage time of the optical sensor.

ところでこのような方法で高速の読取を行なう場合に
は原稿の移動時間T1の短縮、あるいは光センサの蓄積時
間T2の短縮が必要となる。原稿の移動時間T1を短縮させ
ようとするとトルクが大きい高価なステツピングモータ
が必要となり、装置の重量も重くなり騒音も大きくな
る。
By the way, in the case of performing high-speed reading by such a method, it is necessary to shorten the document moving time T 1 or the photosensor storage time T 2 . In order to reduce the moving time T 1 of the document, an expensive stepping motor with a large torque is required, which increases the weight of the device and increases the noise.

また、光センサの蓄積時間T2を短縮させるには光セン
サの受光量を増大させれば良いがそのためには高輝度の
光源が必要となり電力消費の点を含めてコスト高となっ
てしまう。
Further, in order to shorten the accumulation time T 2 of the optical sensor, it is sufficient to increase the amount of light received by the optical sensor, but for that purpose, a light source with high brightness is required, which results in a high cost including power consumption.

〈目的〉 本発明は、上述の問題点に鑑み、原稿画像を読み取る
際に、原稿とラインセンサの相対移動、ラインセンサに
蓄積されている画像データのバッファへの転送、バッフ
ァに記憶された画像データの符号化を効率的に行うこと
ができるファクシミリ送信装置を提供することを目的
し、 詳しくは、 一定周期でパルスを発生する手段と、 前記パルスの1周期にわたって、原稿と前記ラインセ
ンサの1ライン分の相対移動を定速度で行う移動手段
と、 前記パルスに応じて、1ライン分の画像データの蓄積
を繰り返し実行するラインセンサと、 前記ラインセンサで蓄積された画像データを3ライン
以上複数ライン分記憶するバッファと、 前記ラインセンサに蓄積された画像データを前記バッ
ファに転送する転送手段と、 前記バッファに記憶された画像データをメインプログ
ラムに従ったメインルーチン処理により符号化し、且
つ、前記パルスの発生に応じて起動する割り込みプログ
ラムに従った割り込み処理により前記移動手段および前
記転送手段の動作を制御するプログラム制御手段とを有
し、 前記割り込み処理において、前記パルスの発生時に、
前記符号化が終了していない画像データを記憶しておら
ず、且つ、前記ラインセンサに蓄積されているデータが
転送されるべく割り当てられた状態にない1ライン分の
バッファが存在する場合は、前記移動手段に前記1ライ
ン分の定速度の相対移動を実行させるとともに、当該パ
ルスの発生直前の1周期に前記移動手段による前記1ラ
イン分の定速度の相対移動を実行させた場合には、前記
転送手段に前記ラインセンサに蓄積されている1ライン
の画像データの転送を実行させることを特徴とするファ
クシミリ送信装置 を提供することを目的とする。
<Purpose> In view of the above-mentioned problems, the present invention, when reading a document image, makes a relative movement between the document and the line sensor, transfers image data accumulated in the line sensor to a buffer, and stores an image stored in the buffer. An object of the present invention is to provide a facsimile transmission device capable of efficiently encoding data, and more specifically, a means for generating a pulse at a constant cycle, and a document and a line sensor which are arranged in one cycle for one cycle of the pulse. Moving means for performing relative movement of lines at a constant speed, a line sensor for repeatedly executing the accumulation of image data for one line in response to the pulse, and a plurality of lines of image data accumulated by the line sensor for three or more lines. A buffer for storing lines, a transfer unit for transferring the image data accumulated in the line sensor to the buffer, and a storage in the buffer Program control for encoding the generated image data by a main routine process according to a main program, and controlling the operation of the moving means and the transfer means by an interrupt process according to an interrupt program activated in response to the generation of the pulse. In the interrupt processing, when the pulse is generated,
If the image data that has not been encoded is not stored and there is a buffer for one line that is not in a state in which the data accumulated in the line sensor is transferred, When the moving means is caused to perform the relative movement of the constant speed for one line, and the relative movement of the constant speed for the one line is performed by the moving means in one cycle immediately before the generation of the pulse, It is an object of the present invention to provide a facsimile transmission device characterized by causing the transfer means to execute transfer of image data of one line accumulated in the line sensor.

〈実施例〉 以下、図面に示す実施例に基づいて本発明の詳細を説
明する。
<Examples> Hereinafter, the present invention will be described in detail based on Examples shown in the drawings.

第2図は本発明の一実施例を説明するもので、図にお
いて符号1は主制御装置(CPU)で、装置の各部の制御
を行なう。
FIG. 2 illustrates one embodiment of the present invention. In the figure, reference numeral 1 is a main control unit (CPU), which controls each part of the apparatus.

符号2で示すのはモータ制御部で、CPU1の指令に基づ
いて原稿10を移動させるモータ4の回転制御を行なう。
Reference numeral 2 denotes a motor control unit that controls the rotation of the motor 4 that moves the document 10 based on a command from the CPU 1.

また、符号3で示すものは原稿10からの反射光を蓄積
する光ラインセンサを有する読取部で、光源9によって
照射された原稿から反射光をレンズ11によって集光して
原稿の読取を行なう。
Reference numeral 3 denotes a reading unit having an optical line sensor for accumulating the reflected light from the original 10, and the reflected light from the original illuminated by the light source 9 is condensed by the lens 11 to read the original.

読取部3は読取った原稿1ライン分のデータが入る容
量を持つバツフア5,6を介して演算部7に接続され、演
算部7にはメモリ8が接続されている。
The reading unit 3 is connected to the calculation unit 7 via buffers 5 and 6 having a capacity to store the data of one line of the read document, and the calculation unit 7 is connected to the memory 8.

演算部7にはバツフア5,6内のデータをCCITT(国際電
信電話諮問委員会)の勧告T3により一次元符号化あるい
は二次元符号化等による冗長度抑圧処理を行なう。処理
された読取データはメモリ8に記憶される。
The data in the buffer 5 and 6 to the operation unit 7 by Recommendation T 3 of CCITT (International Telegraph and Telephone Consultative Committee) performs redundancy reduction processing by the one-dimensional encoding or two dimensional coding like. The processed read data is stored in the memory 8.

以上のような回路構成のもとにバツフア5,6にデータ
が入っていない時、CPU1は1ラインの読取のためモータ
制御部2に対し原稿10に1ライン分の移動開始を指示す
る移動要求信号aを出す。
When no data is stored in the buffers 5 and 6 based on the above circuit configuration, the CPU 1 requests the motor control unit 2 to start moving one line of the original 10 for reading one line for reading one line. Issue signal a.

同時にCPU1は読取部3に対し今までの蓄積データを消
去し、新たな蓄積を開始させる蓄積開始信号bを出す。
At the same time, the CPU 1 erases the accumulated data up to now to the reading unit 3 and outputs an accumulation start signal b for starting a new accumulation.

信号aを受けたモータ制御部は、読取部3内の光セン
サが必要とする蓄積時間T3内に徐々に1ライン分の原稿
移動を実行する。
Upon receiving the signal a, the motor control unit gradually moves the document for one line within the accumulation time T 3 required by the optical sensor in the reading unit 3.

読取部3により反射光の蓄積が開始されてからT3時間
経過するとCPU1は読取部3に対し、読取ったデータをバ
ツフア5,6に転送させる転送要求信号cを出す。
When T 3 has elapsed since the reading unit 3 started to store the reflected light, the CPU 1 issues a transfer request signal c to the reading unit 3 to transfer the read data to the buffers 5 and 6.

バツフア5への転送が完了すると、演算部7はバツフ
ア内のデータの冗長度抑圧処理を行ないメモリ8に貯え
る。
When the transfer to the buffer 5 is completed, the calculation unit 7 performs the redundancy suppression processing of the data in the buffer and stores it in the memory 8.

バツフア5,6は読取部3及び演算部7がそれぞれ交互
に使用する。
The buffers 5 and 6 are alternately used by the reading unit 3 and the computing unit 7.

蓄積された読取データをバツフア5あるいはバツフア
6へ転送を開始する際、すでにもう一方のバツフア内の
データが演算部7により全て処理済であれば、読取デー
タのバツフアへの転送と同時に次のラインの読取、すな
わち原稿10の移動と読取部3の光センサへの原稿像の蓄
積を開始する。又、バツフア5,6の一方への転送の際、
もう一方のバツフア内のデータが演算部7により処理中
であれば原稿10の移動は行わない。
When the stored read data is started to be transferred to the buffer 5 or buffer 6, if the data in the other buffer has already been processed by the arithmetic unit 7, the next line is transferred at the same time as the transfer of the read data to the buffer. Reading, that is, the movement of the original 10 and the accumulation of the original image on the optical sensor of the reading unit 3 are started. Also, when transferring to one of the buffers 5 and 6,
If the data in the other buffer is being processed by the arithmetic unit 7, the original 10 is not moved.

そして原稿10が移動しなかった期間(例えば期間T3
に光センサに蓄積された情報はバツフア5,6へは転送さ
れない。
And the period during which the manuscript 10 has not moved (for example, period T 3 )
The information stored in the optical sensor at 1 is not transferred to buffers 5 and 6.

従ってバツフア5,6へは原稿10が移動した期間に光セ
ンサに蓄積された情報のみが転送される。
Therefore, only the information stored in the optical sensor is transferred to the buffers 5 and 6 during the period when the document 10 moves.

第3図に原稿変位量と各信号のタイミングチヤートが
示されている。
FIG. 3 shows the amount of document displacement and the timing chart of each signal.

第3図においてバツフアA,Bはそれぞれバツフア5,6を
示し、斜線を施こした部分は当該バツフア内に有効なデ
ータが存在することを示している。
In FIG. 3, buffers A and B indicate buffers 5 and 6, respectively, and hatched portions indicate that valid data exists in the buffers.

第3図のタイミングチヤート図をもとに実際の動作を
説明すると次の如くである。
The actual operation will be described below with reference to the timing chart of FIG.

まず、P0の時点においてはバツフア5内には有効なデ
ータがないため原稿の1ライン分の移動が開始される。
First, at the time of P 0 , since there is no valid data in the buffer 5, the movement of one line of the document is started.

一方、P1の時点においては時間t1の期間に蓄積された
データのバツフア5への転送が開始される。この状態を
斜線部分l1で示す。
On the other hand, at the point of P 1 , the transfer of the data accumulated in the period of time t 1 to the buffer 5 is started. This state is shown by the shaded portion l 1 .

また、バツフア6内にはこの時には有効なデータがな
いため原稿の1ライン分の移動も同時に開始される。
Further, since there is no valid data in the buffer 6 at this time, the movement of one line of the document is simultaneously started.

さらに、P2の時点においては時間t2の期間に蓄積され
たデータのバツフア6への転送が開始される。この状態
を斜線l2で示す。
Furthermore, at the time of P 2 , transfer of the data accumulated during the period of time t 2 to the buffer 6 is started. This state is indicated by the diagonal line l 2 .

しかしこの時にはバツフア5内のデータが演算部7に
よって全て処理されていないので原稿の移動は行なわな
い。
However, at this time, since the data in the buffer 5 has not been completely processed by the arithmetic unit 7, the document is not moved.

一方、P3の時点において時間t3の期間、原稿の移動が
行なわれなかったのでこの期間の光センサの蓄積データ
は使われない。
On the other hand, the stored data of the optical sensor of this period is not used a period of time t 3 at the time of P 3, since the movement of the original is not performed.

この時バツフイ5内には有効なデータがなくなつてい
るため、原稿の1ライン分の移動を開始する。
At this time, since there is no valid data in the buffer 5, the movement of one line of the document is started.

以下同様の動作を繰返し、原稿の読取が行なわれる。 The same operation is repeated thereafter to read the original.

このように、第3図の光センサの蓄積開始信号bが原
稿の移動、光センサの蓄積開始、及びバツフアへの画像
信号の転送の基準信号、即ちシステムクロツクとなって
いる。そしてこのシステムクロツクの周期t1,t2,t3,t4
(全て等しい)はCCITTのT30規格に定められる一ライン
分の画像データの最小伝送時間に設定されている。
As described above, the accumulation start signal b of the optical sensor shown in FIG. 3 is a reference signal for moving the document, the accumulation start of the optical sensor, and the transfer of the image signal to the buffer, that is, a system clock. And the cycle of this system clock t 1 , t 2 , t 3 , t 4
(All equal) is set to the minimum transmission time of one line of image data defined in the CCITT T30 standard.

ここでこ上記最小伝送時間はフアクシミリ装置に於い
て、その装置が符号化の処理、原稿の一ライン分の移動
に要する時間、若しくは記録紙の一ライン分の移動に要
する最小の時間を規定している。本実施例では上記シス
テムクロツクの周期t1〜t4を最小電送時間と一致させて
いる。従って符号化が既に終了しているにも拘らず、光
センサの一ライン分の蓄積が終了していない、或は原稿
の移動が完了しているのに光センサの一ライン分の蓄積
が完了していないということがなくなる。即ち、無駄時
間がなくなり、効率的な原稿読取が可能となる。
Here, the above-mentioned minimum transmission time defines the minimum time required for the facsimile apparatus to perform encoding processing, move one line of the document, or move one line of recording paper. ing. In this embodiment, the system clock cycles t 1 to t 4 are made to coincide with the minimum transmission time. Therefore, even though the encoding has already been completed, the accumulation of one line of the optical sensor has not been completed, or the accumulation of one line of the optical sensor has been completed even though the movement of the document has been completed. It doesn't mean you haven't. That is, the dead time is eliminated and the original can be efficiently read.

なお、上述した例では原稿の1ライン送りに必要な時
間と、光センサの蓄積時間を等しくしているが、両者が
30%ほど異なっていてもほぼ同様に効果が得られる。
In the above example, the time required to feed the original by one line is equal to the accumulation time of the optical sensor.
Even if the difference is about 30%, the same effect can be obtained.

以上、第1の実施例では1ライン分のデータが入るバ
ツフアを2つ用いた例を説明したが、以下に3ライン分
のバツフアを用いて、マイクロプロセツサで制御する第
2実施例を説明する。第2実施例は、フアクシミリ装置
でその制御ブロツク図を第4図に示す。
As described above, in the first embodiment, an example in which two buffers each containing one line of data are used has been described. However, a second embodiment in which the buffers for three lines are used to control by the microprocessor will be described below. To do. The second embodiment is a facsimile machine and its control block diagram is shown in FIG.

図において11は符号化処理、読取制御等を行なうメイ
ンCPU,12はメインCPU11の制御プログラムを格納したリ
ードオンリーメモリ(ROM),13は3ライン分の画像デー
タを一時記憶するバツフアメモリ、FiFo(Fast in Fast
out)メモリ,及びCPU11の制御に必要なフラグ等を一
時記憶するランダムアクセスメモリ(RAM)、14はダイ
レクトメモリアクセス(DMA)のコントローラ(DMAC),
15は原稿を送る原稿搬送モータ17を駆動するドライバ回
路16を制御するサブCPU,19は最小伝送時間10msec毎にパ
ルス信号を発生するタイマ回路,20は読取用のCCDで原稿
からの反射光に応じた電荷が蓄積される露光部21と外部
へ転送する為の転送部22に分かれている。
In the figure, 11 is a main CPU that performs encoding processing and reading control, 12 is a read-only memory (ROM) that stores the control program of the main CPU 11, 13 is a buffer memory that temporarily stores image data for 3 lines, and FiFo (Fast in Fast
out) memory and random access memory (RAM) for temporarily storing flags and the like necessary for controlling the CPU 11, 14 is a direct memory access (DMA) controller (DMAC),
15 is a sub CPU that controls the driver circuit 16 that drives the document feeding motor 17 that sends the document, 19 is a timer circuit that generates a pulse signal at a minimum transmission time of 10 msec, and 20 is a CCD for reading that reflects light from the document. It is divided into an exposure unit 21 for accumulating corresponding charges and a transfer unit 22 for transferring to the outside.

23はCCD20の出力を増幅するアンプ、24はアンプ23の
出力を白黒2値に2値化する2値化回路、25は2値化回
路24の出力シリアル信号をCPU11の処理ビツト数(例え
ば8ビツト)のパラレル(信号に変換するシリアル−パ
ラレル変換器、26は送信信号を変調し、受信信号を復調
するモデム、モデム26の出力は電話回線を通じて他のフ
アクシミリ装置へ伝送される。
23 is an amplifier that amplifies the output of the CCD 20, 24 is a binarization circuit that binarizes the output of the amplifier 23 into black and white binary, and 25 is the output serial signal of the binarization circuit 24. A bit-to-serial (parallel-to-signal converter) 26 is a modem that modulates a transmitted signal and a received signal is demodulated. The output of the modem 26 is transmitted to another facsimile device through a telephone line.

10mSタイマー回路19の出力パルスはメインCPU11の割
込端子に入力されると同時にCCD20に入力される。CPU11
は割込入力に応じて後述する割込処理を行う。又CCD20
は露光部21に蓄積された電荷をタイマ回路19の出力パル
スで転送部22に転送し、露光部21は転送と同時に蓄積を
開始する。
The output pulse of the 10 mS timer circuit 19 is input to the interrupt terminal of the main CPU 11 and the CCD 20 at the same time. CPU11
Performs an interrupt process described later according to an interrupt input. CCD20
Transfers the electric charge accumulated in the exposure unit 21 to the transfer unit 22 by the output pulse of the timer circuit 19, and the exposure unit 21 starts the accumulation simultaneously with the transfer.

第5図にメインCPU11の処理分担を示す。メインCPU11
の割込処理により、CCDを含む読取系30で読み取った画
像信号をバツフア32〜34に転送する動作と、原稿搬送モ
ータ17を駆動する駆動系31の動作を制御する。
FIG. 5 shows the processing share of the main CPU 11. Main CPU 11
By the interrupt processing of (1), the operation of transferring the image signal read by the reading system 30 including the CCD to the buffers 32 to 34 and the operation of the drive system 31 for driving the document conveying motor 17 are controlled.

又、CPU11はメインルーチにより、バツフア32〜34の
画像データを符号化処理(35)し、FiFoメモリ36に移す
処理を行う。
Further, the CPU 11 performs the encoding process (35) on the image data of the buffers 32 to 34 by the main routine and transfers the image data to the FiFo memory 36.

ここで原稿搬送モータ17は低速駆動され、読取中は常
に一ラインを最小伝送時間の10mSで搬送している。
Here, the document conveyance motor 17 is driven at a low speed, and during reading, one line is always conveyed with a minimum transmission time of 10 mS.

また、CCD20の蓄積時間も10mSに設計されており、読
取線密度を均一にするため、読取データとして使うの
は、モータ駆動中の10mS間にCCD20に蓄積されたものの
みとする。
Also, the storage time of the CCD 20 is designed to be 10 mS, and in order to make the read line density uniform, only the data stored in the CCD 20 during 10 mS during driving the motor is used.

CCDについて、さらに説明すると、蓄積動作は、10mS
ごとに無条件に行なわれている。一方モータ駆動は、ソ
フトにより判定され、間欠的に1ライン駆動(10mS)が
行なわれている。この両者の10mS単位の動作はタイマ回
路19の出力パルスにより同期している。
To further explain the CCD, the accumulation operation is 10 mS
Each is unconditionally performed. On the other hand, the motor drive is judged by software, and one line drive (10 mS) is intermittently performed. The operations of both units in units of 10 mS are synchronized by the output pulse of the timer circuit 19.

モーターと、CCDを周期的に制御するため、ソフトウ
エアには、10mSごとに割込が発生する。このインタラプ
ト3回で、1ラインの読取(ラインバツフアへの格納ま
で)が完結する。
Since the motor and CCD are controlled periodically, the software generates an interrupt every 10 mS. The reading of one line (up to the storage in the line buffer) is completed by three times of this interrupt.

(1回目の割込) 格納先のラインバツフアが空状態になっていたら、モー
タの1ライン駆動を開始する。
(First interrupt) If the storage destination line buffer is empty, the motor starts driving one line.

(2回目の割込) CCD20の露光部21に蓄積されたデータを転送部22にラツ
チし、DMA動作を起動する。
(Second interrupt) The data stored in the exposure unit 21 of the CCD 20 is latched in the transfer unit 22, and the DMA operation is activated.

(3回目の割込) ラインバツフア内のデータが有効であることをメインル
ーチンに伝えるためのフラグをセツトする。
(Third interrupt) Set a flag to notify the main routine that the data in the line buffer is valid.

ここで本実施例を説明する前にラインバツフアが1つ
の場合について、その動作を第6図に示す。
Before explaining the present embodiment, FIG. 6 shows the operation in the case of one line buffer.

10mSパルスnでは、ラインバツフアが「空」であるか
ら、モータの1ライン分駆動開始を、モータ制御用のサ
ブCPU15に指示する。
With the 10 mS pulse n, the line buffer is "empty", so the sub CPU 15 for motor control is instructed to start driving the motor for one line.

10mSパルスn+1では、DMAC14に対し、CCDのデータ
をラインバツフアへ転送開始するようセツトする。この
DMAは必ず10mS以内に完了する。
At the 10 mS pulse n + 1, the DMAC 14 is set to start transferring the CCD data to the line buffer. this
DMA is always completed within 10mS.

10mSパルスn+2では、前回のn+1で起動したDMA
が終了しているので、ラインバツフアがFullであること
を符号化処理のメインルーチンに通知する。
With 10mS pulse n + 2, DMA started at the previous n + 1
Since the above has been completed, the main routine of the encoding process is notified that the line buffer is Full.

10mSパルスn+3では、ラインバツフアがすでに
「空」となったので、また10mSパルスnと同じ処理を行
なう。
At 10 mS pulse n + 3, the line buffer has already become "empty", and therefore the same processing as 10 mS pulse n is performed again.

こうして1ラインの読取が終るが、このラインバツフ
アが1つの場合には1ラインの読取に最短でも、30mSが
かかることになる。
In this way, reading of one line is completed, but if this line buffer is one, reading of one line requires at least 30 mS.

ところで、符号化処理に10mS以上要した場合には一ラ
インの読取に40ms或はそれ以上かかる。
By the way, if 10 mS or more is required for the encoding process, it takes 40 ms or more to read one line.

即ち、ラインバツフアを1つしか用いない場合には1
ライン30mSの読取速度が限度である。これを、1ライン
10mSにするため本実施例ではラインバツフアを3つにし
た。この動作を第7図に示す。第7図は、各インタラプ
トで行なう各バツフアに対する処理内容の表と、データ
フローである。
That is, if only one line buffer is used, 1
The reading speed of the line 30mS is the limit. This is one line
In this embodiment, the number of line buffers is three in order to obtain 10 mS. This operation is shown in FIG. FIG. 7 is a table of processing contents for each buffer performed in each interrupt and a data flow.

インタラプトの処理内容で「0」というのは、目的と
するバツフアが「空」でなかった場合であり、この時は
なにもしない。
“0” in the processing content of the interrupt means that the target buffer is not “empty”, and nothing is done at this time.

第7図に示す如く、前記したの3つの動作が各
ラインバツフアに対して並列に行なわれる。従って符号
化処理が最小伝送時間10mS以内に行なわれた場合には、
原稿を常時移動することが可能となり、全く待時間を必
要としない。
As shown in FIG. 7, the above-mentioned three operations are performed in parallel for each line buffer. Therefore, if the encoding process is performed within the minimum transmission time of 10 mS,
The manuscript can be moved at all times and no waiting time is required.

第8図に第4図のメインCPU11の符号化処理の為のメ
インルーチンの制御フローを示し、第9図にCPU11の割
込処理ルーチンの制御フローを示している。第8図,第
9図の処理プログラムは第4図のROM12内に格納されて
いる。
FIG. 8 shows the control flow of the main routine for the encoding processing of the main CPU 11 of FIG. 4, and FIG. 9 shows the control flow of the interrupt processing routine of the CPU 11. The processing programs shown in FIGS. 8 and 9 are stored in the ROM 12 shown in FIG.

以上の様に最小伝送時間内でCCDの蓄積、原稿の一ラ
イン分の移動、及びバツフアへの転送が行なわれるの
で、極めて効率の良い原稿読取が可能となる。
As described above, since the CCD is accumulated, the original is moved by one line, and the original is transferred to the buffer within the minimum transmission time, it is possible to read the original very efficiently.

尚、本実施例では最小伝送時間TMinとしてCCDの蓄積
時間TS及び原稿の一ライン分の移動時間TMを一致させて
いるが、TMin≧TS,TMならば良い。勿論DMAに要する時間
TDはTMin≧TDであることが望ましい。
In the present embodiment, the CCD transmission time T S and the moving time T M for one line of the original are matched as the minimum transmission time T Min , but it is sufficient if T Min ≧ T S , T M. Of course the time required for DMA
T D is preferably T Min ≧ T D.

このようにラインバツフアを3つ用いることにより、
符号化処理が最小伝送時間内で終了した場合、原稿を停
止することなく原稿読取が可能となる。又、バツフアメ
モリに原稿が移動している期間に読取った画像データが
蓄えられるので原稿を均一な密度で読取ることができ
る。更に原稿の1ラインの移動に要する時間と光センサ
の蓄積時間をほぼ一致させ、原稿の移動時に蓄積された
データのみを読出すため、原稿の移動は低速で良く小型
で安価なモータの使用が可能となる。
By using three line buffers like this,
When the encoding process is completed within the minimum transmission time, the document can be read without stopping the document. Further, since the image data read while the document is moving is stored in the buffer memory, the document can be read at a uniform density. Furthermore, since the time required to move one line of the original is almost equal to the storage time of the optical sensor and only the data accumulated when the original is moved is read out, the original can be moved at a low speed and a small and inexpensive motor can be used. It will be possible.

また、光センサの蓄積時間をある程度長くすることが
できるので光源のパワーも小さくでき、小型の光源を使
用できる。従って装置の小型化及び省力化を実現でき
る。
Moreover, since the accumulation time of the optical sensor can be lengthened to some extent, the power of the light source can be reduced and a small light source can be used. Therefore, downsizing and labor saving of the device can be realized.

〈効果〉 以上説明した如く、本発明は、原稿画像を読み取る際
に、一定周期で発生するパルスに応じてラインセンサの
画像データの蓄積を行う。そして、前記パルスの発生に
応じて、ソフトウェアの割り込みプログラムを起動し、
前記パルスの発生時に、符号化が終了していない画像デ
ータを記憶しておらず、且つ、ラインセンサに蓄積され
ているデータが転送されるべく割り当てられた状態にな
い1ライン分のバッファが存在する場合は、移動手段に
前記1ライン分の定速度の相対移動を実行させるととも
に、当該パルスの発生直前の1周期に移動手段による1
ライン分の定速度の相対移動を実行させた場合には、転
送手段にラインセンサに蓄積されている1ラインの画像
データの転送を実行させる。そして、バッファに蓄積さ
れた画像データは、メインプログラムに従ったメインル
ーチン処理で符号化される。
<Effect> As described above, according to the present invention, when reading a document image, the image data of the line sensor is accumulated according to the pulse generated at a constant cycle. Then, in response to the generation of the pulse, start the software interrupt program,
There is a buffer for one line that does not store image data that has not been encoded when the pulse is generated, and is not in a state in which the data accumulated in the line sensor is transferred. In this case, the moving means is caused to perform the relative movement at a constant speed for the one line, and the moving means performs one movement in one cycle immediately before the generation of the pulse.
When the relative movement at the constant speed for the line is executed, the transfer means is caused to transfer the image data of one line accumulated in the line sensor. Then, the image data accumulated in the buffer is encoded by the main routine processing according to the main program.

このような本発明によれば、メインプログラムによる
メインルーチンは、画像データの符号化処理に専従で
き、ラインセンサの蓄積動作と同期して処理する必要が
ある原稿とラインセンサの相対移動およびラインセンサ
に蓄積されている画像データのバッファへの転送は、一
定周期のパルスの発生時に起動する割り込みプログラム
の割り込み処理により制御するので、原稿とラインセン
サの相対移動およびラインセンサに蓄積されている画像
データのバッファへの転送の処理の進行状況を確認しな
がら画像データの符号化処理を実行する複雑な制御を行
わずに、前記パルスの発生時に割り込み処理を行うとい
う簡単な制御で効率的な読み取り動作を行うことができ
る。
According to the present invention as described above, the main routine by the main program can be dedicated to the encoding process of the image data, and the relative movement between the document and the line sensor and the line sensor which need to be processed in synchronization with the accumulation operation of the line sensor. Since the transfer of the image data stored in the buffer to the buffer is controlled by the interrupt processing of the interrupt program that starts when a pulse with a fixed cycle is generated, the relative movement between the document and the line sensor and the image data stored in the line sensor are controlled. Efficient reading operation with simple control that interrupt processing is performed when the pulse is generated, without performing complicated control that executes image data encoding processing while checking the progress of transfer processing to the buffer It can be performed.

また、本発明によれば、原稿とラインセンサの1ライ
ン分の相対移動中に原稿を読み取り、一定周期で発生す
るパルスに応じて、ラインセンサの蓄積動作、原稿とラ
インセンサの定速度の相対移動およびラインセンサに蓄
積されている画像データのバッファへの転送を行うの
で、1ライン毎の相対移動中の読み取り動作を一定周期
で連続して繰り返すことができ、連続性のある滑らかな
動作で画像データの読み取りができる。これにより、本
発明は、1ライン毎の相対移動中の読み取り動作を一定
周期で連続して繰り返すものではない不連続な読み取り
動作で読み取った画像データと比べて、歪みのない画像
データを読み取ることができる。
Further, according to the present invention, the original is read while the original and the line sensor are moving relative to each other by one line, and the accumulation operation of the line sensor and the relative speed of the original and the line sensor are adjusted in response to a pulse generated at a constant cycle. Since the movement and transfer of the image data accumulated in the line sensor to the buffer are performed, the reading operation during the relative movement of each line can be continuously repeated at a constant cycle, and the smooth operation with continuity can be performed. Image data can be read. As a result, the present invention can read image data that is not distorted as compared with image data that is read by a discontinuous reading operation that does not repeat the reading operation during relative movement line by line in a fixed cycle. You can

また、通常、原稿上の1ラインの画像データを読み取
り符号化するためには、原稿とラインセンサを1ライン
分相対移動させる移動期間(1周期必要)、1ライン分
の画像データをラインセンサからバッファに転送する転
送期間(1周期必要)、バッファに記憶された1ライン
の画像データを符号化する符号化期間(1周期以上必要
な場合がある)の3つの処理期間が必要である。したが
って、バッファが少なくとも1ライン分空いていること
を確認した上で、原稿とラインセンサの相対移動を開始
するものにおいては、1ラインのバッファが相対移動の
開始から符号化の終了までの3周期以上に渡って占有さ
れてしまう。そこで、本願のようにバッファの記憶容量
を3ライン以上にすることにより、原稿上で連続する位
置にある3ラインの画像データを、それぞれ異なるバッ
ファを使用して、各ラインの上記3つの処理期間が順に
シフトするように処理すれば、上記3つの処理期間を同
時に並行処理することができるので、原稿上の1ライン
の処理を、見かけ上、1周期で実行しているとみなすこ
とができ、前述の一定周期のパルスに応じた連続性のあ
る読み取り動作をバッファが空くのを待つ待ち時間を極
力少なくして実行できる効率の良い読み取り動作ができ
る。
Further, normally, in order to read and encode image data of one line on a document, a moving period (one cycle is required) in which the document and the line sensor are relatively moved by one line, one line of image data is read from the line sensor. Three processing periods are required: a transfer period for transferring to the buffer (one cycle is required) and an encoding period for encoding one line of image data stored in the buffer (one cycle or more may be required). Therefore, in the case where the relative movement of the original and the line sensor is started after confirming that the buffer is empty for at least one line, the buffer of one line has three cycles from the start of the relative movement to the end of the encoding. It will be occupied over the above. Therefore, by setting the storage capacity of the buffer to 3 lines or more as in the present application, the image data of 3 lines at consecutive positions on the original are read by using different buffers and the above-mentioned 3 processing periods of each line are used. , The three processing periods can be simultaneously processed in parallel, so that it can be considered that one line of the document is apparently executed in one cycle. It is possible to perform an efficient reading operation in which the waiting operation for waiting for the buffer to become empty can be performed for the reading operation having continuity according to the pulse of the constant cycle described above as much as possible.

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

第1図は従来方法を説明する原稿の移動と光センサの蓄
積、読出しの関係を示すタイミングチヤート、第2図は
本発明の一実施例を説明するブロツク図、第3図は本実
施例における原稿移動と光センサの蓄積、読出しの関係
を示すタイミングチヤート図、第4図は本発明の第2の
実施例のフアクシミリ装置の制御ブロツク図、第5図は
第4図のメインCPUの処理分担を示す図、第6図はライ
ンバツフアを1つ用いた場合のタイムチヤート図、第7
図は第2の実施例の動作を説明するタイムチヤート図、
第8図は第4図のメインCPUの符号処理の為の制御フロ
ーチヤート図、第9図は割込処理ルーチンの制御フロー
チヤート図を示している。
FIG. 1 is a timing chart showing the relationship between movement of a document and accumulation / readout of an optical sensor for explaining a conventional method, FIG. 2 is a block diagram for explaining one embodiment of the present invention, and FIG. 3 is for this embodiment. FIG. 4 is a timing chart showing the relationship between document movement and accumulation / readout of the optical sensor, FIG. 4 is a control block diagram of the facsimile machine according to the second embodiment of the present invention, and FIG. 5 is a processing share of the main CPU of FIG. Fig. 6 shows the time chart when one line buffer is used, Fig. 7
The figure is a time chart for explaining the operation of the second embodiment.
FIG. 8 shows a control flow chart for the code processing of the main CPU of FIG. 4, and FIG. 9 shows a control flow chart of the interrupt processing routine.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】一定周期でパルスを発生する手段と、 前記パルスの1周期にわたって、原稿と前記ラインセン
サの1ライン分の相対移動を定速度で行う移動手段と、 前記パルスに応じて、1ライン分の画像データの蓄積を
繰り返し実行するラインセンサと、 前記ラインセンサで蓄積された画像データを3ライン以
上複数ライン分記憶するバッファと、 前記ラインセンサに蓄積された画像データを前記バッフ
ァに転送する転送手段と、 前記バッファに記憶された画像データをメインプログラ
ムに従ったメインルーチン処理により符号化し、且つ、
前記パルスの発生に応じて起動する割り込みプログラム
に従った割り込み処理により前記移動手段および前記転
送手段の動作を制御するプログラム制御手段とを有し、 前記割り込み処理において、前記パルスの発生時に、前
記符号化が終了していない画像データを記憶しておら
ず、且つ、前記ラインセンサに蓄積されているデータが
転送されるべく割り当てられた状態にない1ライン分の
バッファが存在する場合は、前記移動手段に前記1ライ
ン分の定速度の相対移動を実行させるとともに、当該パ
ルスの発生直前の1周期に前記移動手段による前記1ラ
イン分の定速度の相対移動を実行させた場合には、前記
転送手段に前記ラインセンサに蓄積されている1ライン
の画像データの転送を実行させることを特徴とするファ
クシミリ送信装置。
1. A means for generating a pulse at a constant cycle, a moving means for performing relative movement of the original and the line sensor for one line at a constant speed over one cycle of the pulse, and 1 according to the pulse. A line sensor that repeatedly executes the accumulation of image data for a line, a buffer that stores the image data accumulated by the line sensor for a plurality of lines of three lines, and the image data accumulated in the line sensor to the buffer Transfer means for encoding the image data stored in the buffer by a main routine process according to a main program, and
Program control means for controlling the operation of the moving means and the transfer means by interrupt processing according to an interrupt program activated in response to the generation of the pulse, and in the interrupt processing, when the pulse occurs, the code If there is a buffer for one line that does not store image data that has not been converted and that is not in a state allocated to transfer the data accumulated in the line sensor, move the line. In the case where the means performs the relative movement of the constant speed for one line and the relative movement of the constant speed for the one line is performed by the moving means in one cycle immediately before the generation of the pulse, the transfer is performed. A facsimile transmitting apparatus, characterized in that it causes the means to transfer the image data of one line accumulated in the line sensor.
JP24392884A 1984-11-19 1984-11-19 Facsimile transmitter Expired - Lifetime JPH0831950B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP24392884A JPH0831950B2 (en) 1984-11-19 1984-11-19 Facsimile transmitter
CN 85103886 CN1012251B (en) 1984-11-19 1985-05-10 Method and apparatus fur sensing picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24392884A JPH0831950B2 (en) 1984-11-19 1984-11-19 Facsimile transmitter

Publications (2)

Publication Number Publication Date
JPS61121662A JPS61121662A (en) 1986-06-09
JPH0831950B2 true JPH0831950B2 (en) 1996-03-27

Family

ID=17111104

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24392884A Expired - Lifetime JPH0831950B2 (en) 1984-11-19 1984-11-19 Facsimile transmitter

Country Status (2)

Country Link
JP (1) JPH0831950B2 (en)
CN (1) CN1012251B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3629462C2 (en) * 1986-08-29 1996-05-15 Agfa Gevaert Ag Method and device for electronic image processing with intermediate storage

Also Published As

Publication number Publication date
CN1012251B (en) 1991-03-27
CN85103886A (en) 1986-10-29
JPS61121662A (en) 1986-06-09

Similar Documents

Publication Publication Date Title
EP0576226B1 (en) Method and apparatus for reading image of image scanner-reader
US4887224A (en) Image data processing apparatus capable of high-speed data encoding and/or decoding
JPS63173458A (en) Method and apparatus for variable speed scanning control
JP3372748B2 (en) Image processing device
JPH05328059A (en) Image reader
JPH10210250A (en) Image reader
US4864416A (en) Method and apparatus for reading original
US6388777B1 (en) Digital image reading apparatus
JPH0831950B2 (en) Facsimile transmitter
US5446554A (en) Reader for a facsimile apparatus which carries out the read apparatus in accordance with a vacant capacity of a buffer
KR950000284B1 (en) Data size changing device for fax
JPH0614159A (en) Image scanner reading method
JPH1146295A (en) Digital image reader
JP2861459B2 (en) Facsimile copy control method
JP3299061B2 (en) Control method for facsimile machine
JPH0787515B2 (en) Image reader
JP2717282B2 (en) Document reading device control method
JP2941836B2 (en) Image processing device
JP2946614B2 (en) Image reading device
KR920008893B1 (en) Image data passing and printing method for fax
JPH0646763B2 (en) Image reader
JPS6252983B2 (en)
JP2886300B2 (en) Image reading device
JPH0732448B2 (en) Image processing device
JPH06205223A (en) Picture processor

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term