JPH098989A - Parallel data transfer system and electronic device - Google Patents

Parallel data transfer system and electronic device

Info

Publication number
JPH098989A
JPH098989A JP7176671A JP17667195A JPH098989A JP H098989 A JPH098989 A JP H098989A JP 7176671 A JP7176671 A JP 7176671A JP 17667195 A JP17667195 A JP 17667195A JP H098989 A JPH098989 A JP H098989A
Authority
JP
Japan
Prior art keywords
data
transmission buffer
transmission
host computer
read
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.)
Pending
Application number
JP7176671A
Other languages
Japanese (ja)
Inventor
Kimiyoshi Kawaura
公義 川浦
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP7176671A priority Critical patent/JPH098989A/en
Priority to US08/663,873 priority patent/US5923901A/en
Publication of JPH098989A publication Critical patent/JPH098989A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4265Bus transfer protocol, e.g. handshake; Synchronisation on a point to point bus
    • G06F13/4269Bus transfer protocol, e.g. handshake; Synchronisation on a point to point bus using a handshaking protocol, e.g. Centronics connection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Image Input (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimiles In General (AREA)
  • Facsimile Transmission Control (AREA)

Abstract

PURPOSE: To increase the data transfer speed of data to a host computer by repeating write/read of parallel data to/from 1st and 2nd transmission buffers in pairs provided to an image scanner alternately and consecutively. CONSTITUTION: At first a write time to write image data by 8 bytes to a 1st transmission buffer 54 is required and each period from a timing T1 to a timing T2 and from the timing T2 to a timing T3 is an image data transmission time by 8 bytes, the read processing from the 1st transmission buffer 54 and a 2nd transmission buffer 55 is executed consecutively and alternately and no write processing time is included, then the data transmission speed is increased in response to the read processing time.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ホストコンピュータ
と、このホストコンピュータに接続用コードで接続され
た電子機器とを備えたパラレルデータ転送システム及び
電子機器に関し、特にホストコンピュータから送信され
る送信指令信号に応答して、電子機器からホストコンピ
ュータに送信するデータの転送速度を高速化するように
したものに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a parallel data transfer system and an electronic device provided with a host computer and an electronic device connected to the host computer with a connecting cord, and particularly to a transmission command transmitted from the host computer. The present invention relates to a device for increasing the transfer rate of data transmitted from an electronic device to a host computer in response to a signal.

【0002】[0002]

【従来の技術】従来、電子機器としてのイメージスキャ
ナは、原稿に描かれた画像情報を読取り機構により光学
的に読み込んで画像データを作成し、パーソナルコンピ
ュータなどのホストコンピュータにパラレルの画像デー
タを送信するものであり、通常、ホストコンピュータに
接続用コードを介して送信し得るように、セントロニク
ス用コネクタとセントロニクス通信用ポートとを備えて
いる。一方、ホストコンピュータは、接続用コードを介
してイメージスキャナから送信されたパラレルの画像デ
ータを受信し得るように、セントロニクス用コネクタと
セントロニクス通信用ポートとを備えており、更に作成
した画像データや、イメージスキャナから送信された画
像データを、例えば、レーザプリンタなどに送信可能に
構成されている。
2. Description of the Related Art Conventionally, an image scanner as an electronic device optically reads image information drawn on a document by a reading mechanism to create image data, and transmits parallel image data to a host computer such as a personal computer. In general, a Centronics connector and a Centronics communication port are provided so that data can be transmitted to a host computer via a connecting cord. On the other hand, the host computer is provided with a Centronics connector and a Centronics communication port so that the parallel image data transmitted from the image scanner via the connecting cord can be received, and further created image data, The image data transmitted from the image scanner can be transmitted to, for example, a laser printer.

【0003】最近、アメリカ電気電子学会の通信技術で
ある、IEEE1284のパラレルインターフェースを
用いたセントロニクス通信方式が実用化されている。即
ち、例えば、ホストコンピュータとイメージスキャナと
を接続用コードで接続したデータ転送システムにおい
て、イメージスキャナで読取った原稿の画像データを、
そのIEEE1284のパラレルインターフェースを用
いて、1バイト毎にホストコンピュータに送信する場
合、図9に示すように、タイミングT10のときに、ホス
トコンピュータからのホストビジィー信号H.Busyが立下
がると、イメージスキャナは、そのホストビジィー信号
H.Busyの立下がりに応答して、予め読取った1ライン分
の画像データのうちの1バイト分の画像データ(「H」
レベルの第0ビットのデータD0のみを図示)を画像デ
ータメモリから読出して、1バイト分のバッファ容量を
有する送信バッファに一旦書込むと同時に読出してデー
タセットし、タイミングT11において送信回路に出力す
ると同時に、プリンタクロック信号P.CLK を立下げる。
Recently, a Centronics communication system using a parallel interface of IEEE1284, which is a communication technology of the American Institute of Electrical and Electronics Engineers, has been put into practical use. That is, for example, in a data transfer system in which a host computer and an image scanner are connected by a connecting cord, image data of a document read by the image scanner is
When transmitting to the host computer byte by byte using the IEEE1284 parallel interface, as shown in FIG. 9, when the host busy signal H.Busy from the host computer falls at timing T10, the image scanner , Its host busy signal
In response to the fall of H.Busy, one byte of the image data of one line read in advance (“H”)
Only the 0th bit data D0 of the level is read out from the image data memory, once written in the transmission buffer having a buffer capacity of 1 byte, and at the same time read out and data is set, and output to the transmission circuit at timing T11. At the same time, the printer clock signal P.CLK falls.

【0004】そして、ホストコンピュータは、そのプリ
ンタクロック信号P.CLK の立下がりに応答して、イメー
ジスキャナから送信されてくるパラレルの1バイトの画
像データを読込むと同時にデータ処理し、データ処理が
完了したタイミングT12において、次の1バイトのパラ
レルデータの転送を指令する為に、ホストビジィー信号
H.Busyを立下げる。このように、ホストコンピュータ
は、所謂ハンドシェイク方式により、以下同様にして送
信されてくる1バイト毎の画像データを正確に読込むこ
とができる。
Then, in response to the fall of the printer clock signal P.CLK, the host computer reads the parallel 1-byte image data transmitted from the image scanner and simultaneously processes the data, and the data processing is completed. At timing T12, the host busy signal is issued to command the transfer of the next 1-byte parallel data.
Turn off H.Busy. As described above, the host computer can accurately read the image data of each byte transmitted in the same manner hereinafter by the so-called handshake method.

【0005】[0005]

【発明が解決しようとする課題】前述したように、ホス
トコンピュータとイメージスキャナとを接続用コードで
接続したデータ転送システムにおいて、所謂ハンドシェ
イク方式であるIEEE1284のセントロニクス通信
方式を用いて画像データを送信する場合、図9に示すよ
うに、イメージスキャナ側においては、ホストビジィー
信号H.Busyの立下がりのタイミングT10から、データセ
ットが完了してプリンタクロック信号P.CLK を立下げる
タイミングT11までに、画像データメモリから読出した
1バイト分の画像データを送信バッファに書込む書込み
処理時間(例えば、約10μs)と、その書込んだデー
タを読出してデータセットする読出し処理時間(例え
ば、約20μs)とを加算したデータセットの為の処理
時間t10(例えば、約30μs)を要する。即ち、1バ
イト分の画像データを送信する毎に、約30μsを要す
ることから、数メガバイト(MB)のデータ量を有する
グレースケールデータやカラーデータを送信する場合、
送信データの信頼性は高くなるが、多大の送信時間を要
するという問題がある。
As described above, in the data transfer system in which the host computer and the image scanner are connected by the connecting cord, the image data is transmitted by using the so-called handshake method IEEE 1284 Centronics communication method. In this case, as shown in FIG. 9, on the image scanner side, from the timing T10 when the host busy signal H.Busy falls to the timing T11 when the data set is completed and the printer clock signal P.CLK falls, A write processing time (for example, about 10 μs) for writing one byte of image data read from the data memory into the transmission buffer and a read processing time (for example, about 20 μs) for reading the written data and setting the data. Processing time t10 for the added data set (for example, about 30 μ ) It requires. That is, it takes about 30 μs for each image data of 1 byte to be transmitted. Therefore, when transmitting grayscale data or color data having a data amount of several megabytes (MB),
Although the reliability of the transmission data is high, there is a problem that a long transmission time is required.

【0006】本発明の目的は、電子機器に設けた1対の
第1及び第2送信バッファに対するパラレルデータの書
込みと読出しとを交互に連続して行うことで、ホストコ
ンピュータへのデータ転送速度を高速化し得るようにし
たパラレルデータ転送システム及び電子機器を提供する
ことである。
An object of the present invention is to alternately write and read parallel data to and from a pair of first and second transmission buffers provided in an electronic device, thereby increasing the data transfer rate to a host computer. It is an object of the present invention to provide a parallel data transfer system and electronic equipment capable of increasing the speed.

【0007】[0007]

【課題を解決するための手段】請求項1に係るパラレル
データ転送システムは、送信指令信号を送信し、この信
号に応答して送信されてくるパラレルのデータを受信可
能なホストコンピュータと、このホストコンピュータに
接続され、データメモリに格納されたパラレルの転送対
象のデータを送信指令信号に応答して所定量ずつホスト
コンピュータに送信する電子機器とを備えたパラレルデ
ータ転送システムにおいて、電子機器は、データメモリ
から読出されたデータを交互に受ける第1送信バッファ
及び第2送信バッファと、データメモリのデータを所定
量ずつ読出して、第1送信バッファからの読出し中に第
2送信バッファに書込み、第2送信バッファからの読出
し中に第1送信バッファに書込む書込み手段と、送信指
令信号に応答して、第1送信バッファと第2送信バッフ
ァから交互にデータを読出して、ホストコンピュータに
送信する読出し送信手段とを備えたものである。
A parallel data transfer system according to a first aspect of the present invention includes a host computer capable of transmitting a transmission command signal and receiving parallel data transmitted in response to the signal, and the host computer. In a parallel data transfer system, comprising: an electronic device connected to a computer and transmitting parallel data to be transferred, which is stored in a data memory, to a host computer in a predetermined amount in response to a transmission command signal. A first transmission buffer and a second transmission buffer that alternately receive the data read from the memory, and a predetermined amount of data in the data memory are read and written to the second transmission buffer during reading from the first transmission buffer. Write means for writing to the first transmission buffer during reading from the transmission buffer, and in response to the transmission command signal From the first transmission buffer and a second transmission buffer reads out data alternately, in which a reading transmission means for transmitting to the host computer.

【0008】請求項2に係るパラレルデータ転送システ
ムは、請求項1の発明において、前記電子機器は、原稿
の画像を読取るイメージスキャナであり、送信指令信号
としては、ホストコンピュータから送信されるホストビ
ジィー信号の立下がり及び立上がりのタイミングを使用
する。請求項3に係るパラレルデータ転送システムは、
請求項1又は請求項2の発明において、前記第1送信バ
ッファと第2送信バッファは、少なくとも1バイト以上
の等容量の1対のバッファからなるものである。
According to a second aspect of the present invention, there is provided the parallel data transfer system according to the first aspect of the invention, wherein the electronic device is an image scanner for reading an image of an original document, and the transmission command signal is a host busy signal transmitted from a host computer. Use the falling and rising timings of. A parallel data transfer system according to claim 3 is
In the invention of claim 1 or 2, the first transmission buffer and the second transmission buffer are composed of a pair of buffers having an equal capacity of at least 1 byte or more.

【0009】請求項4に係る電子機器は、送信指令信号
を送信し、その信号に応答して送信されるパラレルデー
タを受信可能なホストコンピュータに接続された電子機
器において、ホストコンピュータへ送信する為のデータ
を記憶するデータメモリと、そのデータメモリから読出
されたデータが交互に書込まれ、ホストコンピュータか
らの送信指令信号に応答してデータが交互に読出される
第1送信バッファ及び第2送信バッファと、データメモ
リのデータを所定量ずつ読出して、第1送信バッファか
らの読出し中に第2送信バッファに書込み、第2送信バ
ッファからの読出し中に第1送信バッファに書込む書込
み手段と、送信指令信号に応答して、第1送信バッファ
と第2送信バッファから交互にデータを読出して、ホス
トコンピュータに送信する読出し送信手段とを備えたも
のである。
According to another aspect of the present invention, there is provided an electronic device, which transmits a transmission command signal and transmits parallel data transmitted in response to the signal, to the host computer in the electronic device connected to the host computer capable of receiving the parallel data. Data memory for storing the data of, and data read from the data memory are alternately written, and the data is alternately read in response to a transmission command signal from the host computer. A buffer and writing means for reading a predetermined amount of data from the data memory, writing the data in the second transmission buffer during reading from the first transmission buffer, and writing in the first transmission buffer during reading from the second transmission buffer; In response to the transmission command signal, data is alternately read from the first transmission buffer and the second transmission buffer, and the data is read by the host computer. It is obtained by a reading transmission means for signals.

【0010】[0010]

【作用】請求項1に係るパラレルデータ転送システムに
おいては、電子機器には、データメモリから読出された
データを交互に受ける第1送信バッファ及び第2送信バ
ッファが設けられ、書込み手段は、データメモリのデー
タを所定量ずつ読出して、第1送信バッファからの読出
し中に第2送信バッファに書込み、第2送信バッファか
らの読出し中に第1送信バッファに書込む。更に、読出
し送信手段は、送信指令信号に応答して、第1送信バッ
ファと第2送信バッファから交互にデータを読出して、
ホストコンピュータに送信する。
In the parallel data transfer system according to the first aspect, the electronic device is provided with the first transmission buffer and the second transmission buffer which alternately receive the data read from the data memory, and the writing means is the data memory. Data is read by a predetermined amount, written into the second transmission buffer during reading from the first transmission buffer, and written into the first transmission buffer during reading from the second transmission buffer. Further, the read transmission means, in response to the transmission command signal, alternately reads the data from the first transmission buffer and the second transmission buffer,
Send to host computer.

【0011】即ち、最初、第1送信バッファ又は第2送
信バッファの何れかにデータを書込む書込み時間を要す
るが、その後においては、その書込まれたデータを第1
送信バッファと第2送信バッファとの何れか一方からの
読出し中に、他方の第2送信バッファと第1送信バッフ
ァとの何れか一方にデータの書込みを実行することか
ら、読出しが完了した第1送信バッファ又は第2送信バ
ッファへのデータの書込み処理と、書込みが完了した他
方の第2送信バッファ又は第1送信バッファからのデー
タ読出し処理とが同時に実行されることになる。従って
その読出し処理を、例えばDMAコントローラなどを用
いることにより、ハード的に処理可能となるので、制御
プログラムを必要とせず、データ転送速度を高速化する
ことができる。
That is, at first, it takes a write time to write data in either the first transmission buffer or the second transmission buffer, but after that, the written data is written in the first transmission buffer.
While the data is being read from either the transmission buffer or the second transmission buffer, the data is written to either the second transmission buffer or the first transmission buffer, so that the first reading is completed. The process of writing the data to the transmission buffer or the second transmission buffer and the process of reading the data from the other second transmission buffer or the first transmission buffer, which has been written, are simultaneously executed. Therefore, the read processing can be processed by hardware by using, for example, a DMA controller, and thus the control program is not required and the data transfer speed can be increased.

【0012】請求項2に係るパラレルデータ転送システ
ムにおいては、請求項1と同様の作用を奏するが、前記
電子機器は、原稿の画像を読取るイメージスキャナであ
り、前記送信指令信号として、ホストコンピュータから
送信されるホストビジィー信号の立下がり及び立上がり
のタイミングを使用するので、通常のセントロニクス通
信方式により原稿の画像データをパラレルデータで送信
する場合に、ホストビジィー信号の立下がりだけでな
く、立上がりのタイミングにおいてもホストコンピュー
タにデータ送信でき、イメージスキャナによる原稿の画
像読取り処理や画像データ転送速度をより高速化するこ
とができる。
In the parallel data transfer system according to a second aspect of the present invention, the same operation as that of the first aspect is achieved, but the electronic device is an image scanner for reading an image of an original document, and the electronic device is an image scanner, and the transmission command signal is sent from a host computer. Since the timing of the falling edge and the rising edge of the transmitted host busy signal is used, when the image data of the original is transmitted in parallel data by the normal Centronics communication method, not only at the falling edge of the host busy signal but also at the rising edge timing. Data can be transmitted to the host computer, and the image reading process of an original by an image scanner and the image data transfer speed can be further increased.

【0013】請求項3に係るパラレルデータ転送システ
ムにおいては、請求項1又は請求項2と同様の作用を奏
するが、前記第1送信バッファと第2送信バッファは、
少なくとも1バイト以上の等容量の1対のバッファから
構成されるので、これら第1送信バッファと第2送信バ
ッファに対する1バイトデータの書込み処理時間と、読
出し処理時間とが略等しいときには、第1送信バッファ
と第2送信バッファとに対する書込み処理と読出し処理
とを交互に夫々連続して略同様の処理時間で行うことが
でき、データ送信速度を、書込み処理時間(読出し処理
時間)に応じて高速化することができる。
In the parallel data transfer system according to claim 3, the same operation as that of claim 1 or 2 is achieved, but the first transmission buffer and the second transmission buffer are
Since it is composed of a pair of buffers having an equal capacity of at least 1 byte or more, when the write processing time of 1-byte data to the first transmission buffer and the second transmission buffer is substantially equal to the read processing time, the first transmission The writing process and the reading process for the buffer and the second transmission buffer can be alternately and continuously performed in substantially the same processing time, and the data transmission speed is increased according to the writing processing time (reading processing time). can do.

【0014】また、1バイトデータの書込み処理よりも
読出し処理が遅い場合には、これら第1送信バッファと
第2送信バッファからの読出し処理が連続して交互に実
行されることになり、データ送信速度を、読出し処理時
間に応じて高速化することができる。一方、1バイトデ
ータの読出し処理よりも書込み処理が遅い場合には、こ
れら第1送信バッファと第2送信バッファへの書込み処
理が連続して交互に実行されることになり、データ送信
速度を、書込み処理時間に応じて高速化することができ
る。
Further, when the reading process is slower than the writing process of the 1-byte data, the reading processes from the first transmission buffer and the second transmission buffer are continuously and alternately executed. The speed can be increased according to the read processing time. On the other hand, when the writing process is slower than the reading process of the 1-byte data, the writing processes to the first transmission buffer and the second transmission buffer are continuously executed alternately, and the data transmission speed is The speed can be increased according to the write processing time.

【0015】請求項4に係る電子機器においては、ホス
トコンピュータに送信する為のデータはデータメモリに
記憶され、データメモリから読出されたデータが交互に
書込まれ、その書込まれたデータが交互に読出される第
1送信バッファ及び第2送信バッファが設けられ、書込
み手段は、データメモリのデータを所定量ずつ読出し
て、第1送信バッファからの読出し中に第2送信バッフ
ァに書込み、第2送信バッファからの読出し中に第1送
信バッファに書込む。更に、読出し送信手段は、送信指
令信号に応答して、第1送信バッファと第2送信バッフ
ァから交互にデータを読出して、ホストコンピュータに
送信する。
In the electronic apparatus according to the fourth aspect, the data to be transmitted to the host computer is stored in the data memory, the data read from the data memory is written alternately, and the written data is alternated. A first transmission buffer and a second transmission buffer to be read out are provided, and the writing means reads the data in the data memory by a predetermined amount and writes the data in the second transmission buffer during the reading from the first transmission buffer. Write to the first transmit buffer while reading from the transmit buffer. Further, the read transmission means, in response to the transmission command signal, alternately reads the data from the first transmission buffer and the second transmission buffer and transmits the data to the host computer.

【0016】即ち、最初、第1送信バッファ又は第2送
信バッファの何れかにデータを書込む書込み時間を要す
るが、その後においては、その書込まれたデータを第1
送信バッファと第2送信バッファとの何れか一方からの
読出し中に、他方の第2送信バッファと第1送信バッフ
ァとの何れか一方にデータの書込みを実行することか
ら、読出しが完了した第1送信バッファ又は第2送信バ
ッファへのデータの書込み処理と、書込みが完了した他
方の第2送信バッファ又は第1送信バッファからのデー
タ読出し処理とが同時に実行されることになる。従って
その読出し処理を、例えばDMAコントローラなどを用
いることにより、ハード的に処理可能となるので、制御
プログラムを必要とせず、データ転送速度を高速化する
ことができる。
That is, at first, it takes a write time to write data into either the first transmission buffer or the second transmission buffer, but after that, the written data is written into the first transmission buffer.
While the data is being read from either the transmission buffer or the second transmission buffer, the data is written to either the second transmission buffer or the first transmission buffer, so that the first reading is completed. The process of writing the data to the transmission buffer or the second transmission buffer and the process of reading the data from the other second transmission buffer or the first transmission buffer, which has been written, are simultaneously executed. Therefore, the read processing can be processed by hardware by using, for example, a DMA controller, and thus the control program is not required and the data transfer speed can be increased.

【0017】[0017]

【実施例】以下、本発明の実施例について、図面に基づ
いて説明する。本実施例は、図1に示すように、ホスト
コンピュータ10と、原稿の画像を読取る電子機器とし
てのイメージスキャナ30とを接続用コード2で接続し
た画像データ転送システム1に本発明を適用した場合の
ものである。
Embodiments of the present invention will be described below with reference to the drawings. In this embodiment, as shown in FIG. 1, the present invention is applied to an image data transfer system 1 in which a host computer 10 and an image scanner 30 as an electronic device for reading an image of an original are connected by a connecting cord 2. belongs to.

【0018】先ず、ホストコンピュータ10の制御系
は、基本的には図3のブロック図に示すように構成され
ている。制御装置17の入出力インターフェース22に
は、CRT方式のディスプレイ(CRTD)12に文字
や記号のデータを出力するCRTコントローラ(CRT
C)13と、フロッピィーディスクドライブ装置(FD
D)14を駆動制御する為のフロッピィーディスクコン
トローラ(FDC)15と、キーボード16などが接続
されている。
First, the control system of the host computer 10 is basically constructed as shown in the block diagram of FIG. The input / output interface 22 of the controller 17 is a CRT controller (CRT) that outputs character and symbol data to a CRT type display (CRTD) 12.
C) 13 and floppy disk drive (FD
D) A floppy disk controller (FDC) 15 for driving and controlling the keyboard 14, a keyboard 16 and the like are connected.

【0019】制御装置17は、基本的にCPU18と、
このCPU18に8bit のデータバスなどの制御バス2
3を介して接続された入出力インターフェース22と、
各種のデータ処理制御や、IEEE1284の通信用イ
ンターフェースに基づいて画像データをパラレル転送方
式で送受信処理する制御プログラムなどが格納されたR
OM19と、データ処理に必要な各種のメモリを設けた
RAM20と、データ転送をCPU18の介在なしに高
速に行う為のDMA(ダイレクト・メモリ・アクセス)
コントローラ21とから構成されている。また、その制
御バス23には、イメージスキャナ30との相互間にお
いて、IEEE1284の通信用インターフェースに基
づいて画像データをパラレル転送方式で送受信可能なセ
ントロニクス通信用ポートを有する送受信回路24が接
続されている。そして、この送受信回路24には、セン
トロニクス用コネクタ11が接続され、このコネクタ1
1には、接続用コード2を介してイメージスキャナ30
が接続されている。
The control device 17 basically includes a CPU 18 and
This CPU 18 has a control bus 2 such as an 8-bit data bus.
An input / output interface 22 connected via 3;
An R that stores various data processing controls and a control program that performs transmission / reception processing of image data in a parallel transfer method based on the IEEE 1284 communication interface
OM 19, RAM 20 provided with various memories necessary for data processing, and DMA (Direct Memory Access) for high-speed data transfer without intervention of CPU 18.
It is composed of a controller 21. Further, a transmission / reception circuit 24 having a Centronics communication port capable of transmitting / receiving image data in a parallel transfer system based on an IEEE 1284 communication interface is connected to the control bus 23 between the control bus 23 and the image scanner 30. . The Centronics connector 11 is connected to the transmission / reception circuit 24.
1 to the image scanner 30 via the connecting cord 2.
Is connected.

【0020】一方、イメージスキャナ30は、図2に示
すように、複数枚の原稿を積載して載置可能な原稿台3
2が設けられ、本体フレーム31の内部には、その原稿
台32に積載された複数枚の原稿のうち、下側の原稿か
ら1枚ずつ取り出して、所定の搬送経路を経て排紙する
為の原稿搬送機構(図示略)が設けられ、その搬送経路
の途中部には、原稿の画像を読取る為に、多数のCCD
(電荷結合素子)を列設した読取りセンサ40(図4参
照)が設けられている。更に、本体フレーム31には、
電源スイッチ34が設けられ、本体フレーム31の上面
には、操作パネル33が設けられ、その操作パネル33
には、複写指令スイッチやなどの操作スイッチが設けら
れている。
On the other hand, as shown in FIG. 2, the image scanner 30 includes a document table 3 on which a plurality of documents can be stacked and placed.
2 is provided inside the main body frame 31 for picking up one by one from a lower original among a plurality of originals stacked on the original table 32 and discharging the originals through a predetermined conveyance path. A document transport mechanism (not shown) is provided, and a large number of CCDs are provided in the middle of the transport path for reading the image of the document.
A reading sensor 40 (see FIG. 4) in which (charge coupled devices) are arranged in a row is provided. Furthermore, the body frame 31 has
A power switch 34 is provided, an operation panel 33 is provided on the upper surface of the main body frame 31, and the operation panel 33 is provided.
Is provided with operation switches such as a copy command switch and the like.

【0021】次に、イメージスキャナ30の制御系は、
図4のブロック図に示すように構成されている。制御装
置50の入出力インターフェース55には、操作パネル
33の各スイッチと、読取りセンサ40から出力され、
2値化回路41で2値化(デジタルデータ)されたシリ
アルの画像データをパラレルの画像データに変換するS
/P変換器42、原稿搬送機構を駆動する原稿送りモー
タ43の為の駆動回路44、その他には図示しないが、
原稿を読取る為の光源、カバーオープン検出用スイッチ
などが接続されている。
Next, the control system of the image scanner 30 is
It is configured as shown in the block diagram of FIG. Output from the switches of the operation panel 33 and the reading sensor 40 to the input / output interface 55 of the controller 50,
S for converting the serial image data binarized (digital data) by the binarization circuit 41 into parallel image data
The / P converter 42, the drive circuit 44 for the document feed motor 43 that drives the document transport mechanism, and others are not shown,
A light source for reading a document, a cover open detection switch, etc. are connected.

【0022】制御装置50は、基本的に、CPU51
と、このCPU51にデータバスなどの制御バス58を
介して接続された入出力インターフェース57と、RO
M52及びRAM53と、その画像データメモリ53a
から読出された画像データを交互に受けて、8バイト分
の等容量の画像データを記憶する1対の第1送信バッフ
ァ54及び第2送信バッファ55と、データ転送をCP
U51の介在なしに高速に行う為のDMAコントローラ
56とから構成されている。ここで、これら第1,第2
送信バッファ54,55は、夫々8バイトの等容量を有
するFIFOメモリ(先入れ先出しメモリ)で構成され
ている。
The control device 50 basically has a CPU 51.
An input / output interface 57 connected to the CPU 51 via a control bus 58 such as a data bus;
M52 and RAM53 and its image data memory 53a
A pair of the first transmission buffer 54 and the second transmission buffer 55 which alternately receive the image data read from the memory and store the image data of an equal capacity of 8 bytes;
It is composed of a DMA controller 56 for high speed operation without the intervention of U51. Here, these first and second
The transmission buffers 54 and 55 are each composed of a FIFO memory (first-in first-out memory) having an equal capacity of 8 bytes.

【0023】ここで、DMAコントローラ56には、第
1送信バッファ54及び第2送信バッファ55を交互に
切換えて画像データを読出す為の読出しバッファポイン
タ、ホストビジィー信号H.Busyの立下がり及び立上がり
のタイミング毎に、インクリメントされる読出しアドレ
スポインタなどの各種レジスタが設けられるとともに、
コントローラ制御部が設けられている。また、その制御
バス58には、ホストコンピュータ10との相互間にお
いて、IEEE1284の通信用インターフェースに基
づいて画像データをパラレル転送方式で送受信可能なセ
ントロニクス通信用ポートを有する送受信回路59が接
続されている。そして、この送受信回路59には、セン
トロニクス用コネクタ35が接続され、このコネクタ3
5には、接続用コード2を介してホストコンピュータ1
0が接続されている。
Here, the DMA controller 56 has a read buffer pointer for alternately switching the first transmission buffer 54 and the second transmission buffer 55 to read image data, and a fall and rise of the host busy signal H.Busy. Various registers such as a read address pointer that is incremented at each timing are provided.
A controller control unit is provided. A transmission / reception circuit 59 having a Centronics communication port capable of transmitting / receiving image data in a parallel transfer system based on the IEEE 1284 communication interface is connected to the control bus 58 between the control bus 58 and the host computer 10. . The Centronics connector 35 is connected to the transmission / reception circuit 59.
5 to the host computer 1 via the connecting cord 2.
0 is connected.

【0024】前記ROM52には、原稿搬送機構を駆動
する駆動制御プログラムや、IEEE1284の通信用
インターフェースに基づいて、画像データをパラレル転
送方式で送信する、本願特有の後述の画像データ送信制
御の制御プログラムなどが格納されている。前記RAM
53には、読取りセンサ40で読取られた1ライン分の
画像データを記憶する画像データメモリ53aなど、画
像データの読取りに必要な各種のメモリが設けられてい
る。
In the ROM 52, a drive control program for driving the original feeding mechanism, and a control program for image data transmission control, which will be described later and peculiar to the present application, for transmitting image data in a parallel transfer system based on the communication interface of IEEE1284. Etc. are stored. RAM
The 53 is provided with various memories necessary for reading the image data, such as an image data memory 53a for storing the image data for one line read by the reading sensor 40.

【0025】ここで、前述したIEEE1284の通信
用インターフェースに基づいて、パラレルの1バイト毎
の画像データを接続用コード2を介して、イメージスキ
ャナ30からホストコンピュータ10に送信するときに
用いられる制御信号について簡単に説明する。ホストコ
ンピュータ10からイメージスキャナ30へ出力される
制御信号として、アクティブ信号ACT 、ホストクロック
信号H.CLK 、ホストビジィー信号H.Busyなどが用いら
れ、アクティブ信号ACT は、IEEE1284の通信用
インターフェースを作動させ且つデータバスによるデー
タの転送方向を設定し、ホストクロック信号H.CLK は、
コマンドデータ転送のタイミングを指示し、またホスト
ビジィー信号H.Busyは、データ転送のタイミングを指示
するものである。
Here, based on the IEEE 1284 communication interface described above, a control signal used when transmitting parallel image data of each byte from the image scanner 30 to the host computer 10 via the connection code 2. Will be briefly described. An active signal ACT, a host clock signal H.CLK, a host busy signal H.Busy, etc. are used as control signals output from the host computer 10 to the image scanner 30, and the active signal ACT activates the communication interface of IEEE1284 and Set the data transfer direction by the data bus, and the host clock signal H.CLK is
The command data transfer timing is instructed, and the host busy signal H.Busy is used to instruct the data transfer timing.

【0026】一方、イメージスキャナ30からホストコ
ンピュータ10へ出力される制御信号として、プリンタ
クロック信号P.CLK 、プリンタビジィー信号P.Busy、デ
ータアベイル信号DAV 、セレクト(Xフラグ)信号XFLG
などが用いられ、プリンタクロック信号P.CLK は、デー
タ転送のタイミングを指示し、プリンタビジィー信号P.
Busyは、イメージスキャナ30のビジィー状態を指示
し、データアベイル信号DAV は、転送データが存在する
ことを指示するものである。
On the other hand, as control signals output from the image scanner 30 to the host computer 10, a printer clock signal P.CLK, a printer busy signal P.Busy, a data avail signal DAV, and a select (X flag) signal XFLG.
The printer clock signal P.CLK indicates the timing of data transfer and the printer busy signal P.CLK.
Busy indicates the busy state of the image scanner 30, and the data avail signal DAV indicates that transfer data exists.

【0027】次に、イメージスキャナ30の制御装置5
0で行われる画像データ送信制御のルーチンについて、
図5〜図6のフローチャートに基づいて説明する。尚、
図中符号Si(i=10、11、12・・・)は各ステ
ップである。イメージスキャナ30に電源が投入される
と、各種の初期化処理が実行された後、図5に示す画像
データ送信制御が開始され、先ずアイドル状態におい
て、画像データ送信コマンドを受信したか否か(S10:
No)、が繰り返して判定されている。そして、ホストコ
ンピュータ10から画像データ送信コマンドを受信した
ときには(S10:Yes )、図示しない画像読取り制御に
より、読取りセンサ40から転送された1ライン分の画
像データにヘッダー情報を加えた画像転送データを作成
する作成処理が実行され、その画像転送データがRAM
53の画像データメモリ53aに記憶される(S11)。
Next, the controller 5 of the image scanner 30.
Regarding the image data transmission control routine executed at 0,
This will be described based on the flowcharts of FIGS. still,
Reference numeral Si (i = 10, 11, 12, ...) In the drawing represents each step. When the image scanner 30 is powered on, after various initialization processes are executed, the image data transmission control shown in FIG. 5 is started. First, in the idle state, whether or not an image data transmission command is received ( S10:
No), is repeatedly determined. Then, when the image data transmission command is received from the host computer 10 (S10: Yes), the image transfer data obtained by adding header information to the image data for one line transferred from the reading sensor 40 is subjected to the image reading control (not shown). Creation process is executed, and the image transfer data is created in RAM.
It is stored in the image data memory 53a of 53 (S11).

【0028】次に、その画像データメモリ53aに記憶
された画像転送データのうち、先頭の1バイトのデータ
が読出されて、先ず第1送信バッファ54に書込まれる
(S12)。次に、その第1送信バッファ54がバッファ
フル状態でないときに(S13:No)、その書込んだデー
タが1頁分の画像データの終了を指示するページエンド
コードでないときに(S14:No)、更に画像データメモ
リ53aに送信すべき画像転送データが存在するときに
は(S15:Yes )、S12〜S15が繰り返して実行され
る。
Next, of the image transfer data stored in the image data memory 53a, the first 1-byte data is read and first written in the first transmission buffer 54 (S12). Next, when the first transmission buffer 54 is not in the buffer full state (S13: No), when the written data is not the page end code for instructing the end of the image data for one page (S14: No). If there is further image transfer data to be transmitted to the image data memory 53a (S15: Yes), S12 to S15 are repeatedly executed.

【0029】ところで、画像データメモリ53aの全て
の画像データについて、第1送信バッファ54への書込
みが完了したときには(S15:No)、次の1ライン分の
画像転送データが作成される(S11)。そして、第1送
信バッファ54に8バイト分の画像データが書込まれ
て、第1送信バッファ54がバッファフル状態になった
ときには(S13:Yes )、データ転送を司るDMAコン
トローラ56からのターミナルカウントによるDMA終
了信号に基づいて、第2送信バッファ55から画像デー
タの読出し、つまりデータ送信が完了しているか否かを
判断し(S16)、完了していないときには(S16:N
o)、その送信完了まで待機する。
When all the image data in the image data memory 53a have been written in the first transmission buffer 54 (S15: No), the image transfer data for the next one line is created (S11). . Then, when 8 bytes of image data is written in the first transmission buffer 54 and the first transmission buffer 54 is in the buffer full state (S13: Yes), the terminal count from the DMA controller 56 that controls the data transfer. On the basis of the DMA end signal according to the above, it is judged whether or not the image data read from the second transmission buffer 55, that is, the data transmission is completed (S16), and when it is not completed (S16: N
o), wait until the transmission is completed.

【0030】そして、その送信が完了したときには(S
16:Yes )、DMAコントローラ56のレジスタに、第
1送信バッファ54に書込まれている送信すべき画像デ
ータの読出し先頭アドレスがセットされるとともに、デ
ータ送信が指令される(S17)。その結果、DMAコン
トローラ56により、第1送信バッファ54に書込まれ
た8バイト分の画像データは、ホストコンピュータ10
から送信されるホストビジィー信号H.Busyの立下がり及
び立上がりのタイミング毎に、読出しポインタを1つず
つインクリメントすることで、この読出しポインタで指
示する1バイト毎にホストコンピュータ10に順次送信
される。一方、この送信処理と同時に、次のS18〜S24
により、他方の第2送信バッファ55への画像データの
書込みが実行される。
When the transmission is completed (S
16: Yes), the read start address of the image data to be transmitted written in the first transmission buffer 54 is set in the register of the DMA controller 56, and data transmission is instructed (S17). As a result, the 8-byte image data written in the first transmission buffer 54 by the DMA controller 56 is transferred to the host computer 10.
The read pointer is incremented by one at each falling and rising timing of the host busy signal H.Busy transmitted from the host busy signal H.Busy, so that each byte designated by the read pointer is sequentially transmitted to the host computer 10. On the other hand, at the same time as this transmission processing, the next S18 to S24
Thereby, the writing of the image data to the other second transmission buffer 55 is executed.

【0031】即ち、第1送信バッファ54に書込まれた
最後のデータの次の1バイトのデータが画像データメモ
リ53aから読出されて、第2送信バッファ55に書込
まれる(S18)。次に、同様にして、その第2送信バッ
ファ55がバッファフル状態でないときに(S19:N
o)、その書込んだデータがページエンドコードでない
ときに(S20:No)、更に画像データメモリ53aに送
信すべき画像データが存在するときには(S21:Yes
)、S18〜S21が繰り返して実行される。ところで、
画像データメモリ53aの全ての画像データについて、
第2送信バッファ55への書込みが完了したときには
(S21:No)、次の1ライン分の画像転送データが作成
され(S22)、S18に戻る。
That is, the 1-byte data next to the last data written in the first transmission buffer 54 is read from the image data memory 53a and written in the second transmission buffer 55 (S18). Next, similarly, when the second transmission buffer 55 is not in the buffer full state (S19: N
o), when the written data is not the page end code (S20: No), and when there is image data to be transmitted to the image data memory 53a (S21: Yes).
), S18 to S21 are repeatedly executed. by the way,
For all the image data in the image data memory 53a,
When the writing to the second transmission buffer 55 is completed (S21: No), the image transfer data for the next one line is created (S22), and the process returns to S18.

【0032】そして、第2送信バッファ55に8バイト
分の画像データが書込まれて、第2送信バッファ55が
バッファフル状態になったときには(S19:Yes )、D
MAコントローラ56からのDMA終了信号に基づい
て、第1送信バッファ54の画像データの送信が完了し
ているか否かを判断し(S23)、完了していないときに
は(S23:No)、その送信完了まで待機する。そして、
送信が完了したときには(S23:Yes )、DMAコント
ローラ56のレジスタに、第2送信バッファ55に書込
まれている送信すべき画像データの読出し先頭アドレス
がセットされるとともに、データ送信が指令され(S2
4)、S12以降が繰り返して実行される。
When 8 bytes of image data has been written in the second transmission buffer 55 and the second transmission buffer 55 is in the buffer full state (S19: Yes), D
Based on the DMA end signal from the MA controller 56, it is judged whether or not the transmission of the image data of the first transmission buffer 54 is completed (S23), and when it is not completed (S23: No), the transmission is completed. Wait until. And
When the transmission is completed (S23: Yes), the read start address of the image data to be transmitted written in the second transmission buffer 55 is set in the register of the DMA controller 56 and the data transmission is instructed ( S2
4), S12 and subsequent steps are repeatedly executed.

【0033】その結果、DMAコントローラ56によ
り、第2送信バッファ55に書込まれた8バイト分の画
像データは、ホストコンピュータ10から送信されるホ
ストビジィー信号H.Busyの立下がり及び立上がりのタイ
ミング毎に、読出しポインタを1つずつインクリメント
することで、この読出しポインタで指示する1バイト毎
にホストコンピュータ10に順次送信される。一方、こ
の送信処理と同時に、前のS11〜S15により、第1送信
バッファ54への画像データの書込みが繰り返して実行
される。
As a result, the 8-byte image data written in the second transmission buffer 55 by the DMA controller 56 is generated at every fall and rise timing of the host busy signal H.Busy transmitted from the host computer 10. By incrementing the read pointer by one, each byte designated by the read pointer is sequentially transmitted to the host computer 10. On the other hand, at the same time as this transmission process, the writing of the image data to the first transmission buffer 54 is repeatedly executed by the steps S11 to S15.

【0034】次に、イメージスキャナ30で読取った原
稿の画像データをホストコンピュータ30に送信する画
像データ送信制御の作用について、即ち、第1送信バッ
ファ54及び第2送信バッファ55への書込み処理と、
DMAコントローラ56による読出し処理(送信処理)
との作用について、図7・図8に基づいて説明する。こ
こで、ホストコンピュータ10からのホストビジィー信
号H.Busyの立下がり及び立上がりが送信指令信号として
認識されるのであり、イメージスキャナ30から出力さ
れるプリンタクロック信号P.CLK は、画像データが送信
されるタイミングで反転し、またプリンタビジィー信号
P.Busyは、ホストビジィー信号H.Busyで表される送信指
令信号を受けてから画像データの送信タイミングまでの
期間だけ「H」レベルとなる。
Next, the operation of the image data transmission control for transmitting the image data of the original read by the image scanner 30 to the host computer 30, that is, the writing processing to the first transmission buffer 54 and the second transmission buffer 55,
Read processing (transmission processing) by the DMA controller 56
The operation of and will be described based on FIGS. 7 and 8. Here, the fall and rise of the host busy signal H.Busy from the host computer 10 is recognized as a transmission command signal, and the printer clock signal P.CLK output from the image scanner 30 transmits image data. Inverted at the timing, and printer busy signal
P.Busy becomes "H" level only during the period from the reception of the transmission command signal represented by the host busy signal H.Busy to the transmission timing of the image data.

【0035】先ず、両送信バッファ54,55に対する
書込み処理よりも読出し処理(送信処理)が遅い場合、
図7に示すように、最初の「L」レベルに反転するホス
トビジィー信号H.Busyの送信指令信号を受けたタイミン
グT0から、先ず最初に、第1送信バッファ54に8バ
イト分の画像データの書込み処理が実行され、書込み完
了したタイミングT1から、第1送信バッファ54に書
込まれた画像データの読出し処理が、DMAコントロー
ラ56により実行されるとともに、第2送信バッファ5
5への8バイト分の画像データの書込み処理が実行され
る。
First, when the read processing (transmission processing) is slower than the write processing for both transmission buffers 54 and 55,
As shown in FIG. 7, from the timing T0 when the transmission command signal of the host busy signal H.Busy which is inverted to the first "L" level is received, first, the image data of 8 bytes is written in the first transmission buffer 54. From the timing T1 when the processing is executed and the writing is completed, the read processing of the image data written in the first transmission buffer 54 is executed by the DMA controller 56 and the second transmission buffer 5 is also executed.
The writing process of 8 bytes of image data to 5 is executed.

【0036】同様にして、読出し完了したタイミングT
2から、第2送信バッファ55に書込まれた画像データ
の読出し処理が実行されるとともに、第1送信バッファ
54への8バイト分の画像データの書込み処理が実行さ
れる。即ち、最初に、第1送信バッファ54に8バイト
分の画像データを書込む書込み時間を要するが、その後
においては、タイミングT1からタイミングT2まで、
またタイミングT2からタイミングT3までの各期間
は、8バイト分の画像データ送信時間であり、これら第
1送信バッファ54と第2送信バッファ55からの読出
し処理が連続して交互に実行されることになり、書込み
処理時間が含まれないことから、データ送信速度を、読
出し処理時間に応じて高速化することができる。
Similarly, the timing T at which the reading is completed is completed.
From 2, the reading process of the image data written in the second transmission buffer 55 is executed, and the writing process of the 8-byte image data in the first transmission buffer 54 is executed. That is, first, it takes a writing time to write 8 bytes of image data in the first transmission buffer 54, but after that, from timing T1 to timing T2,
Further, each period from the timing T2 to the timing T3 is an image data transmission time of 8 bytes, and the reading process from the first transmission buffer 54 and the second transmission buffer 55 is continuously and alternately executed. Since the write processing time is not included, the data transmission speed can be increased according to the read processing time.

【0037】一方、両送信バッファ54,55に対する
読出し処理よりも書込み処理が遅い場合、図8に示すよ
うに、「L」レベルに反転するホストビジィー信号H.Bu
syの送信指令信号を受けたタイミングT5から、先ず最
初に、第1送信バッファ54に8バイト分の画像データ
の書込み処理が実行され、書込み完了したタイミングT
6から、第1送信バッファ54に書込まれた画像データ
の読出し処理が、DMAコントローラ56により実行さ
れるとともに、第2送信バッファ55への8バイト分の
画像データの書込み処理が実行される。
On the other hand, when the writing process is slower than the reading process for both transmission buffers 54 and 55, as shown in FIG. 8, the host busy signal H.Bu which is inverted to the "L" level is used.
From the timing T5 when the transmission command signal of sy is received, first, the writing processing of the image data of 8 bytes is executed in the first transmission buffer 54, and the writing is completed at the timing T.
From 6, the read process of the image data written in the first transmission buffer 54 is executed by the DMA controller 56, and the write process of the 8-byte image data in the second transmission buffer 55 is executed.

【0038】同様にして、書込み完了したタイミングT
7から、第2送信バッファ55に書込まれた画像データ
の読出し処理が実行されるとともに、第1送信バッファ
54への8バイト分の画像データの書込み処理が実行さ
れる。即ち、最初に、第1送信バッファ54に8バイト
分の画像データを書込む書込み時間を要するが、その後
においては、タイミングT6からタイミングT7に至る
まで、またタイミングT7からタイミングT8に至るま
での各期間は、8バイト分の画像データ送信時間であ
り、これら第1送信バッファ54と第2送信バッファ5
5への書込み処理が連続して交互に実行されることにな
り、読出し処理時間が含まれないことから、データ送信
速度を、書込み処理時間に応じて高速化することができ
る。
Similarly, the timing T when the writing is completed
From 7, the reading process of the image data written in the second transmission buffer 55 is executed, and the writing process of the 8-byte image data in the first transmission buffer 54 is executed. That is, first, it takes a writing time to write image data of 8 bytes into the first transmission buffer 54, but after that, from timing T6 to timing T7, and from timing T7 to timing T8. The period is an image data transmission time of 8 bytes, and these first transmission buffer 54 and second transmission buffer 5
Since the write processing to 5 is continuously and alternately executed and the read processing time is not included, the data transmission speed can be increased according to the write processing time.

【0039】このように、イメージスキャナ30に、8
バイト分の等容量を有する1対の第1送信バッファ54
及び第2送信バッファ55を設け、最初に、第1送信バ
ッファ54に8バイト分の画像データを書込む書込み時
間を要するが、その後においては、第1送信バッファ5
4からの画像データの読出し中には、画像データメモリ
53aの画像データが第2送信バッファ55に書込ま
れ、第2送信バッファからの画像データの読出し中に
は、画像データメモリ53aの画像データが第1送信バ
ッファ54に書込まれる。よってDMAコントローラ5
6により、第1送信バッファ54と第2送信バッファ5
5から交互に画像データが読出されるので、ホストビジ
ィー信号H.Busyの立下がりのタイミングだけでなく、立
上がりのタイミングにおいても、ホストコンピュータ1
0に画像データを送信でき、画像データ転送速度を高速
化することができる。
In this way, the image scanner 30
A pair of first transmission buffers 54 having an equal capacity for bytes
And the second transmission buffer 55 are provided, and it takes a writing time to first write 8 bytes of image data into the first transmission buffer 54, but after that, the first transmission buffer 5
The image data in the image data memory 53a is written in the second transmission buffer 55 during the reading of the image data from the image data No. 4, and the image data in the image data memory 53a is read during the reading of the image data from the second transmission buffer. Are written in the first transmission buffer 54. Therefore, the DMA controller 5
6, the first transmission buffer 54 and the second transmission buffer 5
Since the image data is read from 5 alternately, the host computer 1 does not only have the timing of the fall of the host busy signal H.Busy but also the timing of the rise thereof.
The image data can be transmitted to 0, and the image data transfer speed can be increased.

【0040】尚、イメージスキャナ30の制御装置50
に設けた第1送信バッファ54と第2送信バッファ55
とを、1バイト以上の等容量の1対のバッファで構成し
たり、イメージスキャナ30からの画像データを、ホス
トコンピュータ30からのホストビジィー信号H.Busyの
立下がり又は立上がりに応答して送信するように構成す
るなど、前記実施例に関し、既存の技術や当業者に自明
の技術に基いて種々の変更を加えることもあり得る。
Incidentally, the control device 50 of the image scanner 30.
First transmission buffer 54 and second transmission buffer 55 provided in
To be composed of a pair of buffers of equal capacity of 1 byte or more, or to transmit the image data from the image scanner 30 in response to the fall or rise of the host busy signal H.Busy from the host computer 30. For example, various modifications may be made to the above-described embodiment based on existing technology or technology obvious to those skilled in the art.

【0041】[0041]

【発明の効果】請求項1に係るパラレルデータ転送シス
テムによれば、ホストコンピュータと電子機器とを備え
たデータ転送システムにおいて、電子機器に、第1及び
第2送信バッファと、書込み手段と、読出し送信手段と
を設け、第1送信バッファからの読出し中に第2送信バ
ッファに書込み、第2送信バッファからの読出し中に第
1送信バッファに書込み、第1送信バッファと第2送信
バッファから交互にデータを読出すので、最初、第1送
信バッファ又は第2送信バッファの何れかにデータを書
込む書込み時間を要するが、その後においては、その書
込まれたデータを第1送信バッファと第2送信バッファ
との何れか一方からの読出し中に、他方の第2送信バッ
ファと第1送信バッファとの何れか一方にデータの書込
みを実行することから、読出しが完了した第1送信バッ
ファ又は第2送信バッファへのデータの書込み処理と、
書込みが完了した他方の第2送信バッファ又は第1送信
バッファからのデータ読出し処理とが同時に実行される
ことになり、その読出し処理を、例えばDMAコントロ
ーラなどを用いることにより、ハード的に処理可能とな
るので、制御プログラムを必要とせず、データ転送速度
を高速化することができる。
According to the parallel data transfer system of the first aspect, in the data transfer system including the host computer and the electronic device, the electronic device is provided with the first and second transmission buffers, the writing means, and the reading means. And transmitting means for writing to the second transmission buffer during reading from the first transmission buffer, writing to the first transmission buffer during reading from the second transmission buffer, and alternating from the first transmission buffer and the second transmission buffer. Since the data is read, a writing time for writing the data into either the first transmission buffer or the second transmission buffer is required at first, but after that, the written data is transmitted to the first transmission buffer and the second transmission buffer. Writing data to either the second transmission buffer or the first transmission buffer of the other while reading from either one of the buffers Et al., The write processing of data to the first transmission buffer or the second transmission buffer read is completed,
The data read processing from the other second transmission buffer or the first transmission buffer on which the writing has been completed is executed at the same time, and the read processing can be processed by hardware by using, for example, a DMA controller. Therefore, the control program is not required and the data transfer rate can be increased.

【0042】請求項2に係るパラレルデータ転送システ
ムによれば、請求項1と同様の効果を奏するが、前記電
子機器は、原稿の画像を読取るイメージスキャナであ
り、前記送信指令信号として、ホストコンピュータから
送信されるホストビジィー信号の立下がり及び立上がり
のタイミングを使用しているので、通常のセントロニク
ス通信方式により原稿の画像データをパラレルデータ通
信する場合に、ホストビジィー信号の立下がりだけでな
く、立上がりのタイミングにおいてもホストコンピュー
タにデータ送信でき、画像データ転送速度をより高速化
することができる。
According to the parallel data transfer system of the second aspect, the same effect as that of the first aspect is obtained, but the electronic device is an image scanner for reading an image of an original document, and the host computer is used as the transmission command signal. Since the fall and rise timings of the host busy signal transmitted from are used, when the image data of the original is parallel data communicated by the normal Centronics communication method, not only the fall and rise timings of the host busy signal In this case, data can be transmitted to the host computer, and the image data transfer speed can be further increased.

【0043】請求項3に係るパラレルデータ転送システ
ムによれば、請求項1又は請求項2と同様の効果を奏す
るが、前記第1送信バッファと第2送信バッファは、少
なくとも1バイト以上の等容量の1対のバッファから構
成されるので、これら第1送信バッファと第2送信バッ
ファに対する1バイトデータの書込み処理時間と、読出
し処理時間とが略等しいときには、第1送信バッファと
第2送信バッファとに対するデータ書込み処理とデータ
読出し処理とを交互に夫々連続して行うことができ、デ
ータ書込み時間を確実に解消することができる。また、
1バイトデータの書込み処理時間が読出し処理時間より
も短いときにも同様に、データ書込み時間を確実に解消
することができる。一方、1バイトデータの書込み処理
時間が読出し処理時間よりも長いときには、書込み完了
するまでの読出し待機時間だけ、読出し処理時間が延長
されるだけである。
According to the parallel data transfer system of the third aspect, the same effect as that of the first or second aspect is obtained, but the first transmission buffer and the second transmission buffer have an equal capacity of at least 1 byte or more. Of the first transmission buffer and the second transmission buffer, the write processing time of the 1-byte data and the read processing time of the 1-byte data are substantially equal to each other. The data writing process and the data reading process can be alternately and continuously performed, and the data writing time can be reliably eliminated. Also,
Similarly, when the writing processing time of 1-byte data is shorter than the reading processing time, the data writing time can be surely eliminated. On the other hand, when the writing processing time of 1-byte data is longer than the reading processing time, the reading processing time is only extended by the reading waiting time until the writing is completed.

【0044】請求項4に係る電子機器によれば、データ
メモリと、第1及び第2送信バッファと、書込み手段
と、読出し送信手段とを設け、第1送信バッファからの
読出し中に第2送信バッファに書込み、第2送信バッフ
ァからの読出し中に第1送信バッファに書込み、第1送
信バッファと第2送信バッファから交互にデータを読出
すので、最初、第1送信バッファ又は第2送信バッファ
の何れかにデータを書込む書込み時間を要するが、その
後においては、その書込まれたデータを第1送信バッフ
ァと第2送信バッファとの何れか一方からの読出し中
に、他方の第2送信バッファと第1送信バッファとの何
れか一方にデータの書込みを実行することから、読出し
が完了した第1送信バッファ又は第2送信バッファへの
データの書込み処理と、書込みが完了した他方の第2送
信バッファ又は第1送信バッファからのデータ読出し処
理とが同時に実行されることになり、その読出し処理
を、例えばDMAコントローラなどを用いることによ
り、ハード的に処理可能となるので、制御プログラムを
必要とせず、データ転送速度を高速化することができ
る。
According to the electronic device of the fourth aspect, the data memory, the first and second transmission buffers, the writing means, and the reading transmission means are provided, and the second transmission is performed during the reading from the first transmission buffer. Since the data is written to the buffer and written to the first transmission buffer during reading from the second transmission buffer, and the data is alternately read from the first transmission buffer and the second transmission buffer, the first transmission buffer or the second transmission buffer is read first. It takes a write time to write data to either one, but after that, while the written data is being read from either the first transmission buffer or the second transmission buffer, the other second transmission buffer is read. And the first transmission buffer, the data writing is executed, so that the data writing process to the first transmission buffer or the second transmission buffer whose reading has been completed is performed. The data read processing from the other second transmission buffer or the first transmission buffer on which the writing has been completed is executed at the same time, and the read processing can be processed by hardware by using, for example, a DMA controller. Therefore, the control program is not required and the data transfer rate can be increased.

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

【図1】本発明の実施例に係る、ホストコンピュータと
イメージスキャナとからなる画像データ転送システムの
構成図である。
FIG. 1 is a configuration diagram of an image data transfer system including a host computer and an image scanner according to an embodiment of the present invention.

【図2】本発明の実施例に係るイメージスキャナの斜視
図である。
FIG. 2 is a perspective view of an image scanner according to an exemplary embodiment of the present invention.

【図3】ホストコンピュータの制御系のブロック図であ
る。
FIG. 3 is a block diagram of a control system of a host computer.

【図4】イメージスキャナの制御系のブロック図であ
る。
FIG. 4 is a block diagram of a control system of the image scanner.

【図5】画像データ送信制御のルーチンの概略フローチ
ャートの一部である。
FIG. 5 is a part of a schematic flowchart of a routine of image data transmission control.

【図6】画像データ送信制御のルーチンの概略フローチ
ャートの一部である。
FIG. 6 is a part of a schematic flowchart of a routine of image data transmission control.

【図7】書込み処理よりも読出し処理(送信処理)が遅
い場合の各種信号のタイムチャートである。
FIG. 7 is a time chart of various signals when the reading process (transmission process) is slower than the writing process.

【図8】読出し処理よりも書込み処理が遅い場合の各種
信号のタイムチャートである。
FIG. 8 is a time chart of various signals when the writing process is slower than the reading process.

【図9】従来技術に係る制御信号及び送信データのタイ
ムチャートである。
FIG. 9 is a time chart of control signals and transmission data according to a conventional technique.

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

1 画像データ転送システム 10 ホストコンピュータ 30 イメージスキャナ 50 制御装置 51 CPU 52 ROM 53 RAM 53a 画像データメモリ 54 第1送信バッファ 55 第2送信バッファ 1 Image Data Transfer System 10 Host Computer 30 Image Scanner 50 Control Device 51 CPU 52 ROM 53 RAM 53a Image Data Memory 54 First Transmission Buffer 55 Second Transmission Buffer

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 送信指令信号を送信し、この信号に応答
して送信されてくるパラレルのデータを受信可能なホス
トコンピュータと、このホストコンピュータに接続さ
れ、データメモリに格納されたパラレルの転送対象のデ
ータを送信指令信号に応答して所定量ずつホストコンピ
ュータに送信する電子機器とを備えたパラレルデータ転
送システムにおいて、 前記電子機器は、 前記データメモリから読出されたデータを交互に受ける
第1送信バッファ及び第2送信バッファと、 前記データメモリのデータを所定量ずつ読出して、第1
送信バッファからの読出し中に第2送信バッファに書込
み、第2送信バッファからの読出し中に第1送信バッフ
ァに書込む書込み手段と、 前記送信指令信号に応答して、第1送信バッファと第2
送信バッファから交互にデータを読出して、ホストコン
ピュータに送信する読出し送信手段と、 を備えたことを特徴とするパラレルデータ転送システ
ム。
1. A host computer capable of transmitting a transmission command signal and receiving parallel data transmitted in response to the signal, and a parallel transfer target connected to the host computer and stored in a data memory. Parallel data transfer system including an electronic device that transmits a predetermined amount of data to a host computer in response to a transmission command signal, the electronic device alternately receiving data read from the data memory. The buffer, the second transmission buffer, and the data in the data memory are read by a predetermined amount each, and the first data is read.
Writing means for writing to the second transmission buffer during reading from the transmission buffer and writing to the first transmission buffer during reading from the second transmission buffer; and a first transmission buffer and a second transmission buffer in response to the transmission command signal.
A parallel data transfer system, comprising: a reading and transmitting means for alternately reading data from a transmission buffer and transmitting the data to a host computer.
【請求項2】 前記電子機器は、原稿の画像を読取るイ
メージスキャナであり、前記送信指令信号として、ホス
トコンピュータから送信されるホストビジィー信号の立
下がり及び立上がりのタイミングを使用することを特徴
とする請求項1に記載のパラレルデータ転送システム。
2. The electronic device is an image scanner for reading an image of a document, and uses the timing of falling and rising of a host busy signal transmitted from a host computer as the transmission command signal. Item 1. The parallel data transfer system according to Item 1.
【請求項3】 前記第1送信バッファと第2送信バッフ
ァは、少なくとも1バイト以上の等容量の1対のバッフ
ァからなることを特徴とする請求項1又は請求項2に記
載のパラレルデータ転送システム。
3. The parallel data transfer system according to claim 1, wherein the first transmission buffer and the second transmission buffer are composed of a pair of buffers having an equal capacity of at least 1 byte or more. .
【請求項4】 送信指令信号を送信し、その信号に応答
して送信されるパラレルデータを受信可能なホストコン
ピュータに接続された電子機器において、 ホストコンピュータへ送信する為のデータを記憶するデ
ータメモリと、 そのデータメモリから読出されたデータが交互に書込ま
れ、ホストコンピュータからの送信指令信号に応答して
データが交互に読出される第1送信バッファ及び第2送
信バッファと、 前記データメモリのデータを所定量ずつ読出して、第1
送信バッファからの読出し中に第2送信バッファに書込
み、第2送信バッファからの読出し中に第1送信バッフ
ァに書込む書込み手段と、 前記送信指令信号に応答して、第1送信バッファと第2
送信バッファから交互にデータを読出して、ホストコン
ピュータに送信する読出し送信手段と、 を備えたことを特徴とする電子機器。
4. An electronic device connected to a host computer capable of transmitting a transmission command signal and receiving parallel data transmitted in response to the signal, the data memory storing data to be transmitted to the host computer. A first transmission buffer and a second transmission buffer in which the data read from the data memory are written alternately, and the data is read alternately in response to a transmission command signal from the host computer; Read the data by a predetermined amount and
Writing means for writing to the second transmission buffer during reading from the transmission buffer and writing to the first transmission buffer during reading from the second transmission buffer; and a first transmission buffer and a second transmission buffer in response to the transmission command signal.
An electronic device, comprising: a reading and transmitting unit that alternately reads data from a transmission buffer and transmits the data to a host computer.
JP7176671A 1995-06-19 1995-06-19 Parallel data transfer system and electronic device Pending JPH098989A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP7176671A JPH098989A (en) 1995-06-19 1995-06-19 Parallel data transfer system and electronic device
US08/663,873 US5923901A (en) 1995-06-19 1996-06-19 System for transferring data in parallel to host computer using both of the rising and falling edges of host busy signals as transfer instruction signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7176671A JPH098989A (en) 1995-06-19 1995-06-19 Parallel data transfer system and electronic device

Publications (1)

Publication Number Publication Date
JPH098989A true JPH098989A (en) 1997-01-10

Family

ID=16017689

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7176671A Pending JPH098989A (en) 1995-06-19 1995-06-19 Parallel data transfer system and electronic device

Country Status (2)

Country Link
US (1) US5923901A (en)
JP (1) JPH098989A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7057762B1 (en) 1999-08-23 2006-06-06 Ricoh Company, Ltd. Image processing method, image processing apparatus and image processing system
JP2014021444A (en) * 2012-07-23 2014-02-03 Canon Inc Information processing system
CN116931842A (en) * 2023-09-12 2023-10-24 合肥康芯威存储技术有限公司 Memory, data processing method, electronic equipment and medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6185640B1 (en) * 1998-06-19 2001-02-06 Philips Electronics North America Corporation Minimal frame buffer manager allowing simultaneous read/write access by alternately filling and emptying a first and second buffer one packet at a time
US6516363B1 (en) * 1999-08-06 2003-02-04 Micron Technology, Inc. Output data path having selectable data rates
US6694416B1 (en) * 1999-09-02 2004-02-17 Micron Technology, Inc. Double data rate scheme for data output

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2733220B2 (en) * 1986-09-30 1998-03-30 シャープ株式会社 Composite image processing device
JP2508673B2 (en) * 1986-12-17 1996-06-19 ソニー株式会社 Display device
US5163132A (en) * 1987-09-24 1992-11-10 Ncr Corporation Integrated controller using alternately filled and emptied buffers for controlling bi-directional data transfer between a processor and a data storage device
JP2572292B2 (en) * 1990-05-14 1997-01-16 株式会社小松製作所 Asynchronous data transmission device
US5210749A (en) * 1990-05-29 1993-05-11 Advanced Micro Devices, Inc. Configuration of srams as logical fifos for transmit and receive of packet data
US5307458A (en) * 1991-12-23 1994-04-26 Xerox Corporation Input/output coprocessor for printing machine
US5396597A (en) * 1992-04-03 1995-03-07 International Business Machines Corporation System for transferring data between processors via dual buffers within system memory with first and second processors accessing system memory directly and indirectly
US5671445A (en) * 1993-07-19 1997-09-23 Oki America, Inc. Interface for transmitting graphics data to a printer from a host computer system in rasterized form

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7057762B1 (en) 1999-08-23 2006-06-06 Ricoh Company, Ltd. Image processing method, image processing apparatus and image processing system
JP2014021444A (en) * 2012-07-23 2014-02-03 Canon Inc Information processing system
CN116931842A (en) * 2023-09-12 2023-10-24 合肥康芯威存储技术有限公司 Memory, data processing method, electronic equipment and medium
CN116931842B (en) * 2023-09-12 2023-12-08 合肥康芯威存储技术有限公司 Memory, data processing method, electronic equipment and medium

Also Published As

Publication number Publication date
US5923901A (en) 1999-07-13

Similar Documents

Publication Publication Date Title
US5404548A (en) Data transfer control system transferring command data and status with identifying code for the type of information
US5864652A (en) Image storage and retrieval for a printer
US5581669A (en) System and method for peripheral data transfer
US7051124B2 (en) Data transfer control device, electronic equipment, and data transfer control method
US5461701A (en) System and method for peripheral data transfer
JPH096723A (en) Method and system for transferring data
JPH0145656B2 (en)
US6618157B2 (en) Interface card for coupling a computer to an external device
US6809832B2 (en) Print control apparatus with decompression, and method and storage medium
JPH098989A (en) Parallel data transfer system and electronic device
WO1995007515A1 (en) Ic card reader/writer and its control method
US5842044A (en) Input buffer device for a printer using an FIFO and data input method
KR100591243B1 (en) On-chip serialized peripheral bus system and operating method thereof
KR930009783B1 (en) Interface circuit for the high-speed transmission of graphic data
JP3605987B2 (en) Image processing device
JP2658887B2 (en) Printer controller
JP3226841B2 (en) Printer device
KR950004510B1 (en) Interfacing unit and its metrhod between personal computer and photo disk
JPH0628301A (en) Direct memory access circuit
JP2882857B2 (en) Data processing device
JP3442099B2 (en) Data transfer storage device
JPH08197788A (en) Image data reading circuit of printer control device
JPH0781153A (en) Printing device
JPH0774881A (en) Image processor
JPH08179893A (en) Information processor

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040105