JP2005332032A - Data transfer system - Google Patents
Data transfer system Download PDFInfo
- Publication number
- JP2005332032A JP2005332032A JP2004147551A JP2004147551A JP2005332032A JP 2005332032 A JP2005332032 A JP 2005332032A JP 2004147551 A JP2004147551 A JP 2004147551A JP 2004147551 A JP2004147551 A JP 2004147551A JP 2005332032 A JP2005332032 A JP 2005332032A
- Authority
- JP
- Japan
- Prior art keywords
- data
- transferred
- memory
- dpram
- processing device
- 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
Links
Images
Landscapes
- Information Transfer Systems (AREA)
- Record Information Processing For Printing (AREA)
Abstract
Description
本発明は、データ転送システムに関し、詳しくは画像処理装置と、該装置に接続されたDPRAM(Dual Port Random Access Memory)を備えるデータ処理装置と、からなるデータ転送システムに関するものである。 The present invention relates to a data transfer system, and more particularly to a data transfer system including an image processing apparatus and a data processing apparatus including a DPRAM (Dual Port Random Access Memory) connected to the apparatus.
近年、複数のCPU(Central Processing Unit)の間でデータ転送を行うために、前記複数のCPUがデータの書込み又は読出しを行うことができる共用メモリとしてDPRAMが使用されている。このDPRAMを使用してデータ転送を行うデータ転送システムには、例えば特許文献1に開示されているデータ転送システムがある。
In recent years, in order to perform data transfer between a plurality of CPUs (Central Processing Units), a DPRAM is used as a shared memory in which the plurality of CPUs can write or read data. As a data transfer system that performs data transfer using this DPRAM, for example, there is a data transfer system disclosed in
特許文献1に開示されているデータ転送システムでは、図9に示すように、転送元であるデータ処理装置50のCPU51は、ROM52に記憶されているプログラムに従ってデータメモリ53に格納されているデータを転送先であるデータ処理装置54のDPRAM55に転送する。そして、データ処理装置54のCPU56は、データ処理装置50のCPU51によってDPRAM55に転送されたデータをデータメモリ57に転送し、ROM58に記憶されているプログラムに従ってデータメモリ57に転送されたデータの演算処理等を行っている。また、逆にデータ処理装置54のCPU56がDPRAM55に書込んだデータをデータ処理装置50のCPU51が読み出すことにより、データ処理装置54からデータ処理装置50へデータを転送することも当然可能である。
In the data transfer system disclosed in
このように、データ処理装置50とデータ処理装置54の共用メモリとして使用されるデータ処理装置54のDPRAM55は、図10に示すように、データ処理装置50のCPU51によって転送されたデータを複数の記憶領域に分割して格納するデータ領域59と、該データ領域59の各記憶領域に格納されているデータが更新されたか否かを示すフラグを各記憶領域毎に格納するデータ更新フラグ格納領域60とから構成されている。データ処理装置50のCPU51は、このように構成されたDPRAM55にデータを転送した際に、転送したデータをデータ領域59の複数の記憶領域に分割して格納するとともに、格納した記憶領域に対応するデータ更新フラグ格納領域60のフラグを「1」に更新する。そして、データ処理装置54のCPU56は、データ更新フラグ格納領域60のフラグ「1」に基づいてデータ領域59においてデータが更新された記憶領域を判断し、その判断結果に基づいてデータ領域59から更新されたデータを読み出してデータメモリ57に転送し、データの演算処理等を行う。
As described above, the DPRAM 55 of the
したがって、データ処理装置50のCPU51は、例えば、一度転送したデータの一部を変更してデータ処理装置54に転送する場合に、その変更したデータの全てをDPRAM55に転送する必要はなく、変更を加えた部分のデータのみを転送することにより、効率の良いデータ転送を行うことができる。
Therefore, for example, when the
また、データ処理装置54のCPU56は、例えば、一度DPRAM55に書込んでデータ処理装置50のCPU51が読み出すことによってデータ処理装置50に転送したデータの一部を変更してデータ処理装置50に転送する場合、その変更したデータの全てをDPRAM55に書込む必要はなく、変更を加えた部分のデータのみを書込むことにより、効率の良いデータ転送を行うことができる。
しかしながら、データサイズの小さいデータを転送する場合や、データの一部のみを変更して転送する場合には、上記の特許文献1のデータ転送システムで行われるデータ転送は有効であるが、例えばカラー画像データのようにDPRAMのメモリ容量を大きく超えるようなデータサイズのデータを転送する場合には、データ転送に時間がかかるという問題がある。
However, when transferring data with a small data size, or when transferring only a part of the data, the data transfer performed by the data transfer system of
これに対し、従来は大容量のDPRAMを使用して上記の問題を解決していたが、大容量のDPRAMは高価であるため、短時間で高速なデータ転送を行うにはどうしても装置コストが高くなるという別の問題があった。 On the other hand, the above problem has been solved by using a large-capacity DPRAM. However, since the large-capacity DPRAM is expensive, the apparatus cost is inevitably high for high-speed data transfer in a short time. There was another problem of becoming.
本発明は、かかる課題に鑑みてなされたものであり、2つの装置間で一方の装置に設けられたDPRAMを使用してデータ転送を行うデータ転送システムにおいて、DPRAMを大容量のものとして装置コストを増大させることなくデータの転送速度を向上させることができるデータ転送システムを提供することを目的とする。 The present invention has been made in view of such a problem, and in a data transfer system for transferring data between two devices using a DPRAM provided in one device, the DPRAM has a large capacity and the device cost. An object of the present invention is to provide a data transfer system capable of improving the data transfer speed without increasing the data transfer rate.
上記目的を達成するために、請求項1記載のデータ転送システムは、画像処理装置と、該装置に接続されたDPRAM及びFIFOメモリを備えるデータ処理装置と、からなるデータ転送システムであって、前記データ処理装置は、前記画像処理装置に転送すべきデータ及びその取扱いに関するコマンドを前記DPRAMに書込むとともに前記画像処理装置に割り込みをかける第1の処理手段と、前記取扱いに関するコマンドを前記DPRAMに書込むとともに前記画像処理装置に割り込みをかけた後に前記転送すべきデータを前記FIFOメモリにDMA転送する第2の処理手段と、転送すべきデータの種類毎に前記第1又は前記第2の処理手段を設定する設定手段と、前記画像処理装置にデータを転送する場合に、前記設定手段の設定に基づいて前記第1又は前記第2の処理手段のいずれか一方に処理を行わせる制御手段と、を備え、前記画像処理装置は、前記第1又は前記第2の処理手段による前記割り込みを受けた場合に、前記DPRAMの前記コマンドに基づいて前記転送すべきデータが前記DPRAMに書込まれるのか、又は前記FIFOメモリにDMA転送されるのかを判断する判断手段と、該判断手段の判断結果に基づいて、前記転送すべきデータを前記DPRAMから読み出す処理又は前記転送すべきデータを前記FIFOメモリから読み出して自装置が備えるメモリにDMA転送する処理のいずれかの処理を行う手段と、を備えることを特徴としている。
In order to achieve the above object, a data transfer system according to
請求項2記載のデータ転送システムは、画像処理装置と、該装置に接続されたDPRAM及びFIFOメモリを備えるデータ処理装置と、からなるデータ転送システムであって、前記データ処理装置は、前記画像処理装置に転送すべきデータのデータサイズが前記DPRAMにおいて自装置が書込み可能な領域の領域サイズ以下であるか否かを判断する判断手段と、前記データサイズが前記領域サイズ以下であると前記判断手段が判断した場合に前記転送すべきデータ及びその取扱いに関するコマンドを前記書込み可能な領域に書込むとともに前記画像処理装置に割り込みをかける第1の処理手段と、前記データサイズが前記領域サイズを超えると前記判断手段が判断した場合に前記転送すべきデータの取扱いに関するコマンドを前記書込み可能な領域に書込むとともに前記画像処理装置に割り込みをかけた後に前記転送すべきデータを前記FIFOメモリにDMA転送する第2の処理手段と、前記画像処理装置にデータを転送する場合に、前記判断手段の判断結果に基づいて前記第1又は前記第2の処理手段のいずれか一方に処理を行わせる制御手段と、を備え、前記画像処理装置は、前記第1又は前記第2の処理手段による前記割り込みを受けた場合に、前記DPRAMの前記コマンドに基づいて前記転送すべきデータが前記DPRAMに書込まれるのか、又は前記FIFOメモリにDMA転送されるのかを判断する判断手段と、該判断手段の判断結果に基づいて、前記転送すべきデータを前記DPRAMから読み出す処理又は前記転送すべきデータを前記FIFOメモリから読み出して自装置が備えるメモリにDMA転送する処理のいずれかの処理を行う手段と、を備えることを特徴としている。 The data transfer system according to claim 2, wherein the data transfer system includes an image processing device and a data processing device including a DPRAM and a FIFO memory connected to the device, wherein the data processing device includes the image processing device. Determining means for determining whether or not the data size of data to be transferred to the apparatus is equal to or smaller than the area size of the writable area in the DPRAM; and the determining means that the data size is equal to or smaller than the area size The first processing means for writing the data to be transferred and a command relating to the handling thereof in the writable area and interrupting the image processing apparatus when the data size exceeds the area size. Write the command regarding the handling of the data to be transferred when the determination means determines A second processing means for DMA-transferring the data to be transferred to the FIFO memory after the data processing area is interrupted and the image processing apparatus is interrupted, and when transferring the data to the image processing apparatus, Control means for causing either one of the first or second processing means to perform processing based on a determination result of the determination means, and the image processing apparatus includes the first or second processing means. Determining means for determining whether the data to be transferred is written to the DPRAM or DMA-transferred to the FIFO memory based on the command of the DPRAM when receiving the interrupt by Based on the determination result of the means, the process of reading the data to be transferred from the DPRAM or the data to be transferred from the FIFO memory It is characterized by comprising means for performing any of the processes of the process of the DMA transfer to the memory provided in the look out the own device.
請求項3記載のデータ転送システムは、画像処理装置と、該装置に接続されたDPRAM及びFIFOメモリを備えるデータ処理装置と、からなるデータ転送システムであって、前記画像処理装置は、前記データ処理装置に転送すべきデータ及びその取扱いに関するコマンドを前記DPRAMに書込むとともに前記データ処理装置に割り込みをかけるための処理を行う第1の処理手段と、前記データ処理装置に転送すべきデータの取扱いに関するコマンドを前記DPRAMに書込むとともに前記データ処理装置に割り込みをかけるための処理を行った後に前記転送すべきデータを前記FIFOメモリにDMA転送する第2の処理手段と、転送すべきデータの種類毎に前記第1又は前記第2の処理手段を設定する設定手段と、前記データ処理装置にデータを転送する場合に、前記設定手段の設定に基づいて前記第1又は前記第2の処理手段のいずれか一方に処理を行わせる制御手段と、を備え、前記データ処理装置は、前記第1又は前記第2の処理手段によって前記割り込みをかける処理が行われた場合に、前記DPRAMの前記コマンドに基づいて前記転送すべきデータが前記DPRAMに書込まれるのか、又は前記FIFOメモリにDMA転送されるのかを判断する判断手段を備えることを特徴としている。
The data transfer system according to
請求項4記載のデータ転送システムは、画像処理装置と、該装置に接続されたDPRAM及びFIFOメモリを備えるデータ処理装置と、からなるデータ転送システムであって、前記画像処理装置は、前記データ処理装置に転送すべきデータのデータサイズが前記DPRAMにおいて自装置が書込み可能な領域サイズ以下であるか否かを判断する第1の判断手段と、該手段が前記転送すべきデータのデータサイズが前記領域サイズ以下であると判断した場合に前記転送すべきデータ及びその取扱いに関するコマンドを前記書込み可能な領域に書込むとともに前記データ処理装置に割り込みをかけるための処理を行う第1の処理手段と、前記判断手段が前記転送すべきデータのデータサイズが前記領域サイズを超えると判断した場合に前記転送すべきデータの取扱いに関するコマンドを前記DPRAMに書込むとともに前記データ処理装置に割り込みをかけるための処理を行った後に前記転送すべきデータを前記FIFOメモリにDMA転送する第2の処理手段と、前記データ処理装置にデータを転送する場合に、前記第1の判断手段の判断結果に基づいて前記第1又は前記第2の処理手段のいずれか一方に処理を行わせる制御手段、とを備え、前記データ処理装置は、前記第1又は前記第2の処理手段によって前記割り込みをかける処理が行われた場合に、前記DPRAMの前記コマンドに基づいて前記転送すべきデータが前記DPRAMに書込まれるのか、又は前記FIFOメモリにDMA転送されるのかを判断する第2の判断手段を備えることを特徴としている。
5. The data transfer system according to
請求項1に記載のデータ転送システムによれば、データ処理装置は、例えば、DPRAMのメモリ容量以下のデータを画像処理装置に転送する場合やパラメータのみを与えて画像処理装置に所定の処理を行わせるような場合にはDPRAMのみを使用するように設定しておくことにより、簡単にデータ転送を行ったりデータを転送せず所定の処理を行わせることができる。また、逆にカラー画像データのように、DPRAMのメモリ容量を大きく超えるデータサイズのデータを画像処理装置に転送する場合には、更にFIFOメモリを使用してそのデータをDMA転送することにより、高速なデータ転送を行うことができる。したがって、効率の良いデータ転送を行うことができる。また、DPRAMのみを使用してデータ転送を行う従来のデータ転送システムのように、使用するDPRAMを大容量のものにする必要がなく、高速なデータ転送を行うことができるデータ転送システムを安価で製造することができる。 According to the data transfer system of the first aspect, for example, when the data processing apparatus transfers data less than the memory capacity of the DPRAM to the image processing apparatus or gives only parameters, the data processing apparatus performs predetermined processing on the image processing apparatus. In such a case, by setting so that only the DPRAM is used, it is possible to easily perform a predetermined process without transferring data or transferring data. Conversely, when transferring data having a data size that greatly exceeds the memory capacity of the DPRAM, such as color image data, to the image processing apparatus, the data is further transferred by DMA transfer using a FIFO memory. Data transfer can be performed. Therefore, efficient data transfer can be performed. Further, unlike a conventional data transfer system that uses only DPRAM to transfer data, there is no need to use a large capacity DPRAM, and a data transfer system that can perform high-speed data transfer is inexpensive. Can be manufactured.
請求項2に記載のデータ転送システムによれば、データ処理装置は、画像処理装置に転送すべきデータのデータサイズに基づいて、DPRAMとFIFOメモリの両方を使用して画像処理装置にデータを転送するか、或いはDPRAMのみを使用して画像処理装置にデータを転送するかを判断してその判断結果に基づいてデータ転送を行う。例えば、DPRAMのメモリ容量以下のデータを画像処理装置に転送する場合やパラメータのみを与えて画像処理装置に所定の処理を行わせるような場合にはDPRAMのみを使用し、カラー画像データのように、DPRAMのメモリ容量を大きく超えるようなデータサイズのデータを画像処理装置に転送する場合には、更にFIFOメモリを使用してそのデータをDMA転送することにより、効率の良いデータ転送を行うことができる。また、DPRAMのみを使用してデータ転送を行う従来のデータ転送システムのように、使用するDPRAMを大容量のものにする必要がなく、高速なデータ転送を行うことができるデータ転送システムを安価で製造することができる。 According to the data transfer system of claim 2, the data processing device transfers data to the image processing device using both DPRAM and FIFO memory based on the data size of the data to be transferred to the image processing device. Whether to transfer data to the image processing apparatus using only DPRAM is determined, and data transfer is performed based on the determination result. For example, when transferring data less than the memory capacity of DPRAM to the image processing apparatus, or when only giving parameters and causing the image processing apparatus to perform predetermined processing, only DPRAM is used, as in color image data. When transferring data having a data size that greatly exceeds the memory capacity of the DPRAM to the image processing apparatus, it is possible to perform efficient data transfer by further DMA-transferring the data using a FIFO memory. it can. Further, unlike a conventional data transfer system that uses only DPRAM to transfer data, there is no need to use a large capacity DPRAM, and a data transfer system that can perform high-speed data transfer is inexpensive. Can be manufactured.
請求項3に記載のデータ処理システムによれば、画像処理装置は、例えば、DPRAMのメモリ容量以下のデータをデータ処理装置に転送する場合やパラメータのみを与えてデータ処理装置に所定の処理を行わせるような場合にはDPRAMのみを使用するように設定しておくことにより、簡単にデータ転送を行ったりデータを転送せず所定の処理を行わせることができる。また、逆にカラー画像データのように、DPRAMのメモリ容量を大きく超えるデータサイズのデータをデータ処理装置に転送する場合には、更にFIFOメモリを使用してそのデータをDMA転送することにより、高速なデータ転送を行うことができる。したがって、効率の良いデータ転送を行うことができる。また、DPRAMのみを使用してデータ転送を行う従来のデータ転送システムのように、使用するDPRAMを大容量のものにする必要がなく、高速なデータ転送を行うことができるデータ転送システムを安価で製造することができる。
According to the data processing system of
請求項4に記載のデータ転送システムによれば、画像処理装置は、データ処理装置に転送すべきデータのデータサイズに基づいて、DPRAMとFIFOメモリの両方を使用してデータ処理装置にデータを転送するか、或いはDPRAMのみを使用してデータ処理装置にデータを転送するかを判断してその判断結果に基づいてデータ転送を行う。例えば、DPRAMのメモリ容量以下のデータをデータ処理装置に転送する場合やパラメータのみを与えてデータ処理装置に所定の処理を行わせるような場合にはDPRAMのみを使用し、カラー画像データのように、DPRAMのメモリ容量を大きく超えるようなデータサイズのデータをデータ処理装置に転送する場合には、更にFIFOメモリを使用してそのデータをDMA転送することにより、効率の良いデータ転送を行うことができる。また、DPRAMのみを使用してデータ転送を行う従来のデータ転送システムのように、使用するDPRAMを大容量のものにする必要がなく、高速なデータ転送を行うことができるデータ転送システムを安価で製造することができる。
According to the data transfer system of
以下、本発明の実施の形態に係るデータ転送システムについて図面に基づき説明する。図1に例示するように、このデータ転送システムAは、データ処理装置1と該データ処理装置1と通信可能に接続された画像処理装置2とから構成されている。なお、本実施形態においては、データ処理装置1と画像処理装置2とがそれぞれ別個の装置であって、これら2つの装置が通信可能に接続されたデータ転送システムAについて説明するが、データ転送システムAの構成はこれに限定されるものではなく、例えばデータ処理装置1が画像処理装置2に予め組込まれた一体型の装置により構成されたものであってもよい。
Hereinafter, a data transfer system according to an embodiment of the present invention will be described with reference to the drawings. As illustrated in FIG. 1, the data transfer system A includes a
データ処理装置1は、LAN(Local Area Network)3上のクライアントPC(Personal Computer)4と通信可能に接続されており、画像処理装置2のネットワーク インターフェース コントローラとして機能する。具体的には、クライアントPC4から送信されたデータを受信して画像処理装置2に転送し、画像処理装置2から転送されたデータをLAN3上のクライアントPC4に送信する処理等を行う。
The
データ処理装置1は、図示するように、制御部(CPU:Central Processing Unit)5、LAN I/F(Local Area Network Interface)6、Flash ROM(Read Only Memory)7、SDRAM(Synchronous Dynamic Random Access Memory)8、及びインターフェース部9を備えたものであって、各部5乃至9は、バス10によって通信可能に接続されている。
As shown in the figure, the
制御部5は、Flash ROM7に記憶されているファームウェアに従って、このデータ処理装置1を構成する各部を制御するものである。この制御部5は、DMAコントローラ(Direct Memory Access Controler)11を内蔵している。DMAコントローラ11は、各種データのDMA転送(Direct Memory Access Transfer)を行うものであり、具体的にはデータ処理装置1がクライアントPC4から受信してSDRAM8に格納されたデータをFIFOメモリ14にDMA転送する処理や、画像処理装置2によってFIFOメモリ14に書込まれたデータを該FIFOメモリ14から読み出してSDRAM8にDMA転送する処理を行う。
The
LAN I/F6は、LAN3とのインターフェースを備えており、データ処理装置1はこのLAN I/F6を介してLAN3に接続されているクライアントPC4との通信を行う。Flash ROM7は、制御部5によってデータ処理装置1の各部が制御されるためのファームウェアを記憶するフラッシュメモリであり、このFlash ROM7に記憶されているファームウェアは、例えばクライアントPC4からその書換データを受信してアップデートすることができる。SDRAM8は、制御部5の主メモリ、ワークエリア等として機能し、システム起動時にFlash ROM7からロードされたファームウェアや、画像処理装置2に転送すべきクライアントPC4から送信されたプリントデータ等のデータや、逆に画像処理装置2から転送されたクライアントPC4へ転送すべきデータを一時的に格納する。
The LAN I /
なお、SDRAM8には、画像処理装置2に転送すべきデータ及びその取扱いに関するコマンドをインターフェース部9のDPRAM12に書込むとともに画像処理装置2に割り込みをかける第1の処理と、前記取扱いに関するコマンドをDPRAM12に書込むとともに画像処理装置2に割り込みをかけた後に転送すべきデータをインターフェース部9のFIFOメモリ14にDMA転送する第2の処理と、のいずれの処理を行うかが転送すべきデータの種類毎に設定されている。データ処理装置1は、画像処理装置2にデータを転送する場合に、このSDRAM8の設定に基づいて前記第1又は前記第2の処理のいずれか一方を行うように構成されている。
Note that the
インターフェース部9は、画像処理装置2とのインターフェースを備えており、DPRAM(Dual Port Random Access Memory)12、レジスタ(Register)13、及びFIFO(First In First Out)メモリ14から構成されている。
The
DPRAM12は、データ処理装置1と画像処理装置2の共用メモリとして機能するものであり、データ処理装置1の制御部5とバス10を介して通信可能に接続されるとともに、画像処理装置2の制御部(CPU)15と画像処理装置2が備えるバス16を介して通信可能に接続されている。このDPRAM12は、図2に示すように、アップロードメモリ(Upload Memory)17とダウンロードメモリ(Download Memory)18から構成されている。アップロードメモリ17は、データ処理装置1の制御部5が各種データの書込みを行うメモリであり、ここでは20バイトのヘッダ領域19と44バイトのデータ領域20に論理的に分割されている。このアップロードメモリ17のヘッダ領域19には、メモリ情報とコマンド(コマンド番号)等の情報が制御部5によって書込まれる。
The
ここで、ヘッダ領域19に書込まれるメモリ情報は、制御部5によるアップロードメモリ17の使用状況を示す情報である。具体的には、アップロードメモリ17が未使用であることを示す情報、アップロードメモリ17が画像処理装置2に対するコマンドによって使用中であることを示す情報、又はアップロードメモリ17が画像処理装置2に対するレスポンスによって使用中であることを示す情報のいずれかの情報である。したがって、画像処理装置2の制御部15は、バス16を介してアップロードメモリ17にアクセスし、このヘッダ領域19のメモリ情報に基づいてデータ処理装置1の制御部5によるアップロードメモリ17の使用状況を判断することができる。
Here, the memory information written in the
ヘッダ領域19に書込まれるコマンドは、画像処理装置2に対する命令が例えば数値によって示されたものであり、画像処理装置2に所定の処理を実行させる場合のその所定の処理に対応するコマンド、画像処理装置2にデータを転送するために制御部5によってアップロードメモリ17のデータ領域20に書込まれたデータの取扱いに関するコマンド、又はFIFOメモリ14を使用して画像処理装置2にデータを転送する場合にそのデータの取扱いに関するコマンド、のいずれかである。なお、これらのコマンドに対応する処理は、データ処理装置1と画像処理装置2の間で予め設定されており、画像処理装置2の制御部15は、このヘッダ領域19に書込まれたコマンドに基づいて、データ処理装置1が画像処理装置2に転送すべきデータがデータ領域20に書込まれるのか、又はFIFOメモリ14にDMA転送されるのかを判断するとともに、データ処理装置1からデータを受信した後にそのデータに対して行うべき処理が何であるかを判断することができる。また、アップロードメモリ17が画像処理装置2に対するレスポンスにより使用中である場合には、レスポンスによって使用中であることを示す情報とコマンドに代えてレスポンスが制御部5によってこのヘッダ領域19に書込まれる。そして、制御部15がヘッダ領域19のコマンド又はレスポンスを読み出してこれらの情報が不用になると、ヘッダ領域19にはアップロードメモリ17が未使用である旨の情報が制御部5によって書込まれる。
The command written in the
データ領域20は、各種データを一時的に格納する領域であり、上記の通り画像処理装置2に転送すべきデータが制御部5によって書込まれる。なお、データ領域20の領域サイズは44バイトであるため、画像処理装置2へ転送すべきデータのデータサイズがデータ領域20の領域サイズを大きく超えるデータについては、DMAコントローラ11によってSDRAM8からFIFOメモリ14にDMA転送されるようになっている。また、画像処理装置2の制御部15は、このアップロードメモリ17に対するデータの書込みを行うことはできず、ヘッダ領域19に書込まれたメモリ情報に基づいてデータ処理装置1の制御部5によるアップロードメモリ17の使用状況を判断し、コマンドによって使用中であると判断した場合にはヘッダ領域19からコマンドを読み出して自身が行うべき処理が何であるかを判断する。
The
一方、DPRAM12のダウンロードメモリ18は、画像処理装置2の制御部15が各種データの書込みを行うメモリであり、ここでは20バイトのヘッダ領域21と44バイトのデータ領域22に論理的に分割されている。このダウンロードメモリ18のヘッダ領域21には、メモリ情報とコマンド(コマンド番号)等の情報が画像処理装置2の制御部15によって書込まれる。
On the other hand, the download memory 18 of the
ここで、ヘッダ領域21に書込まれるメモリ情報は、制御部15によるダウンロードメモリ18の使用状況を示す情報である。具体的には、ダウンロードメモリ18が未使用であることを示す情報、ダウンロードメモリ18がデータ処理装置1に対するコマンドによって使用中であることを示す情報、又はダウンロードメモリ18がデータ処理装置1に対するレスポンスによって使用中であることを示す情報のいずれかの情報である。したがって、データ処理装置1の制御部5は、バス10を介してダウンロードメモリ18にアクセスし、このヘッダ領域21のメモリ情報に基づいて画像処理装置2の制御部15によるダウンロードメモリ18の使用状況を判断することができる。
Here, the memory information written in the header area 21 is information indicating the usage status of the download memory 18 by the
ヘッダ領域21に書込まれるコマンドは、データ処理装置1に対する命令が例えば数値によって示されたものであり、データ処理装置1に所定の処理を実行させる場合のその所定の処理に対応するコマンド、データ処理装置1にデータを転送するために制御部15によってダウンロードメモリ18のデータ領域22に書込まれたデータの取扱いに関するコマンド、又はFIFOメモリ14に対してデータをDMA転送する場合にそのデータの取扱いに関するコマンド、のいずれかである。なお、これらのコマンドに対応する処理は、データ処理装置1と画像処理装置2の間で予め設定されており、データ処理装置1の制御部5は、このヘッダ領域21に書込まれたコマンドに基づいて、画像処理装置2がデータ処理装置1に転送すべきデータがデータ領域22に書込まれるのか、又はFIFOメモリ14にDMA転送されるのかを判断するとともに、画像処理装置2からデータを受信した後にそのデータに対して行うべき処理が何であるかを判断することができる。また、ダウンロードメモリ18がデータ処理装置1に対するレスポンスにより使用中である場合には、レスポンスによって使用中であることを示す情報とコマンドに代えてレスポンスが制御部15によってこのヘッダ領域21に書込まれる。そして、制御部5がヘッダ領域21のコマンド又はレスポンスを読み出してこれらの情報が不用になると、ヘッダ領域21にはダウンロードメモリ18が未使用である旨の情報が制御部15によって書込まれる。
The command written in the header area 21 is an instruction for the
データ領域22は、各種データを一時的に格納する領域であり、データ処理装置1に転送すべきデータが制御部15によって書込まれる。なお、データ領域22の領域サイズはデータ領域20と同様に44バイトであるため、データ処理装置1へ転送すべきデータのデータサイズがデータ領域22の領域サイズを大きく超えるデータについては、DMAコントローラ23によってデータ領域22ではなくFIFOメモリ14にDMA転送されるようになっている。また、データ処理装置1の制御部5は、このダウンロードメモリ18に対するデータの書込みを行うことはできず、ヘッダ領域21に書込まれたメモリ情報に基づいて画像処理装置2の制御部15によるダウンロードメモリ18の使用状況を判断し、コマンドによって使用中であると判断した場合にはヘッダ領域21からコマンドを読み出して自身が行うべき処理が何であるかを判断する。
The
レジスタ13は、DPRAM12と同様にバス10を介してデータ処理装置1の制御部5と、バス16を介して画像処理装置2の制御部15と通信可能に接続されており、制御部5又は制御部15によって、割り込みを要求するためのデータや自身が受けた割り込み要求を解除するためのデータが書込まれる。
Similarly to the
図3は、このレジスタ13を示した概略図である。レジスタ13は、図示するように、スレーブレジスタ25とマスターレジスタ26を備えている。スレーブレジスタ25は、データ処理装置1の制御部5が画像処理装置2の制御部15に対して割り込みを要求するためのデータを書込み、割り込みを受けた制御部15が制御部5からの割り込みを解除するためのデータを書込むレジスタであり、SINT0領域とSINT1領域を有している。SINT0領域には、制御部5がアップロードメモリ17のヘッダ領域19にコマンド/レスポンスを書込んで制御部15に割り込みをかける場合に、制御部5によって割り込みを要求するためのデータ「1」が書込まれる。SINT1領域には、制御部15によってダウンロードメモリ18のヘッダ領域21に書込まれたコマンド/レスポンスを制御部5が解釈してその情報が不要となったことにより制御部15に対して割り込みをかける場合に、制御部5によって割り込みを要求するためのデータ「1」が書込まれる。
FIG. 3 is a schematic diagram showing the
ところで、レジスタ13を内蔵するインターフェース部9は、カスタムLSI(Large Scale Integrated Circuit)によって構成されており、上記の通り制御部5によって割り込みを要求するためのデータがスレーブレジスタ25のSINT0領域又はSINT1領域に書込まれた場合に、制御部15に対して割り込み要求信号を出力して画像処理装置2に割り込みをかける。なお、割り込み要求信号を受信した制御部15は、このSINT0領域又はSINT1領域に書込まれた「1」を割り込み要求を解除するためのデータ「0」に書換えることにより、制御部5から受けた割り込み要求を解除することができる。また、割り込みの要求元である制御部5は、このSINT0領域又はSINT1領域を「0」に書換えることはできず、制御部15に対する割り込み要求の解除は、割り込み要求を受けた制御部15のみが行うことができる。
By the way, the
マスターレジスタ26は、画像処理装置2の制御部15がデータ処理装置1の制御部5に対して割り込みを要求するためのデータを書込み、割り込みを受けた制御部5が制御部15からの割り込みを解除するためのデータを書込むレジスタであり、MINT0領域とMINT1領域を有している。MINT0領域には、制御部15がダウンロードメモリ18のヘッダ領域21にコマンド/レスポンスを書込んで制御部5に割り込みをかける場合に、制御部15によって割り込みを要求するためのデータ「1」が書込まれる。MINT1領域には、制御部5によってアップロードメモリ17のヘッダ領域19に書込まれたコマンド/レスポンスを制御部15が解釈してその情報が不用となったことにより制御部5に割り込みをかける場合に、制御部15によって割り込みを要求するためのデータ「1」が書込まれる。
The
インターフェース部9は、上記の通り制御部15によって割り込みを要求するためのデータがマスターレジスタ26のMINT0領域又はMINT1領域に書込まれた場合に、制御部5に対して割り込み要求信号を出力してデータ処理装置1に対して割り込みをかける。なお、割り込み要求信号を受信した制御部5は、このMINT0領域又はMINT1領域に書込まれた「1」を割り込み要求を解除するためのデータ「0」に書換えることにより、制御部15からの割り込み要求を解除することができる。また、割り込みの要求元である制御部15は、このMINT0領域又はMINT1領域を「0」に書換えることはできず、制御部5に対する割り込み要求の解除は、割り込み要求を受けた制御部5のみが行うことができる。
The
なお、SINT0領域とMINT0領域に「1」が書込まれたことには、データ転送元の装置がDMA転送を開始したことを意味する関連づけがなされており、データ転送先の装置は、このSINT0領域とMINT0領域の値に基づいて、データ転送元の装置がDMA転送を開始したことを判断することができるようになっている。また、SINT1領域とMINT1領域に「1」が書込まれたことには、データ転送先の装置がDMA転送を終了したことを意味する関連づけがなされており、データ転送元の装置は、このSINT1領域とMINT1領域の値に基づいて、データ転送先の装置がDMA転送を終了したことを判断することができるようになっている。 It should be noted that the fact that “1” is written in the SINT0 area and the MINT0 area is associated with the fact that the data transfer source device has started DMA transfer, and the data transfer destination device is the SINT0 area. Based on the values of the area and the MINT0 area, it can be determined that the data transfer source device has started the DMA transfer. The fact that “1” is written in the SINT1 area and the MINT1 area is associated with the fact that the data transfer destination apparatus has completed the DMA transfer. Based on the values of the area and the MINT1 area, it can be determined that the data transfer destination device has completed the DMA transfer.
FIFOメモリ14は、DMAコントローラ11とバス10を介して通信可能に接続されるとともに、DMAコントローラ23とバス16を介して通信可能に接続されており、データ処理装置1が画像処理装置2に転送すべきデータ又は画像処理装置2がデータ処理装置1に転送すべきデータを一時的に格納するメモリである。なお、このFIFOメモリ14に格納されたデータは、先入れ先出し方式(FIFO方式)で処理されるようになっている。このように、データ転送システムAは、画像処理装置2と、該装置2に接続されたDPRAM12及びFIFOメモリ14を備えるデータ処理装置と、から構成されており、データ処理装置1から画像処理装置2へのデータ転送、画像処理装置2からデータ処理装置1へのデータ転送、及び一方の装置からデータを転送せずコマンドと他方の装置が当該コマンドに基づいて処理を行うためのパラメータのみを与えて所定の処理を行わせること、が可能である。
The
データ処理装置1がこのFIFOメモリ14を使用して画像処理装置2にデータを転送する場合、データ処理装置1のDMAコントローラ11は、転送すべきデータをSDRAM8から読み出してFIFOメモリ14にDMA転送する送信DMAを行い、画像処理装置2のDMAコントローラ23は、DMAコントローラ11によって書き込まれた前記転送すべきデータをFIFOメモリ14から読み出して自装置2が備えるSDRAM34にDMA転送する受信DMAを行う。なお、DMAコントローラ11の送信DMAによって画像処理装置2に転送すべきデータがFIFOメモリ14に書込まれた場合に、インターフェース部9から画像処理装置2のDMAコントローラ23に転送要求信号が出力されるようになっており、これを受けたDMAコントローラ23は、受信DMAを行って転送すべきデータをFIFOメモリ14からSDRAM34にDMA転送する。
When the
逆に、画像処理装置2がFIFOメモリ14を使用してデータ処理装置1にデータを転送する場合、画像処理装置2のDMAコントローラ23は、転送すべきデータをSDRAM34から読み出してFIFOメモリ14にDMA転送する送信DMAを行い、データ処理装置1のDMAコントローラ11は、DMAコントローラ23によって書き込まれた転送すべきデータをFIFOメモリ14から読み出して自装置1が備えるSDRAM8にDMA転送する受信DMAを行う。なお、DMAコントローラ23の送信DMAによって画像処理装置2からデータ処理装置1に転送すべきデータがFIFOメモリ14に書込まれた場合に、インターフェース部9からデータ処理装置1のDMAコントローラ11に転送要求信号が出力されるようになっており、これを受けたDMAコントローラ11は、受信DMAを行って前記転送すべきデータをFIFOメモリ14からSDRAM8にDMA転送する。
Conversely, when the image processing apparatus 2 uses the
ところで、データ処理装置1は、あるタスクにより上記のように画像処理装置2にデータを転送する場合、すなわち、制御部5がスレーブレジスタ25のSINT0領域に「1」を書込んでから制御部15がMINT1領域に「1」を書込むまでの間、他のタスクのデータ転送を排他制御する必要がある。そこで、SDRAM8の所定領域には、アップロードメモリ17の使用権とFIFOメモリ14の使用権、すなわちアップロードメモリ17のヘッダ領域19とデータ領域20のセマフォ、及び送信DMAのセマフォ、を獲得しているか否かに関する情報が制御部5によって書込まれるようになっている。具体的には、制御部5は、FIFOメモリ14にデータをDMA転送する場合、アップロードメモリ17とFIFOメモリ14の両方を使用するため、アップロードメモリ17のヘッダ領域19とデータ領域20のセマフォ、及びFIFOメモリ14のセマフォの両方のセマフォを獲得するための情報をSDRAM8に書込むことにより、他のタスクによってアップロードメモリ17とFIFOメモリ14が使用されるのを禁止してDMA転送を行う。また、FIFOメモリ14を使用せずアップロードメモリ17のみを使用して画像処理装置2にデータを転送する場合、FIFOメモリ14のセマフォは獲得せずアップロードメモリ17のヘッダ領域19とデータ領域20のセマフォを獲得するための情報をSDRAM8に書込むことにより、他のタスクによってアップロードメモリ17が使用されるのを禁止してデータ転送を行う。なお、この転送では、FIFOメモリ14は使用されないので、FIFOメモリ14を別の機能により使用することが可能である。
By the way, when the
一方、画像処理装置2は、データ処理装置1から転送されたプリントデータを受信してその画像を用紙に記録する処理やクライアントPC4に転送すべき読取った原稿の画像データ(スキャンデータ)等をデータ処理装置1に転送する処理を行う。この画像処理装置2は、前記制御部15、該制御部15が内蔵する前記DMAコントローラ23、ROM(Read Only Memory)30、RAM(Random Access Memory)31、原稿読取部32、コーデック(CODEC:Coder and Decoder)33、SDRAM34、記録部35、操作部36、及び表示部37を備えたものであって、これらの各部は前記バス16によって通信可能に接続されている。なお、上記の通り、データ処理装置1が備えるインターフェース部9のDPRAM12、レジスタ13、及びFIFOメモリ14もこのバス16に接続されている。
On the other hand, the image processing apparatus 2 receives the print data transferred from the
制御部15は、ROM30に記憶されているプログラムに従って、この画像処理装置2を構成する各部を制御する。この制御部15は、図1に示すように、バス16を介してデータ処理装置1のDPRAM12とレジスタ13に通信可能に接続されており、上記の通りDPRAM12のダウンロードメモリ18に転送すべきデータやその取扱いに関するコマンドを書込んだり、制御部5に対して割り込みを要求するためのデータや制御部5からの割り込み要求を解除するためのデータをレジスタ13に書込むことができる。DMAコントローラ23は、各種データのDMA転送を行うものであり、バス16を介してデータ処理装置1のFIFOメモリ14と通信可能に接続されている。このDMAコントローラ23は、具体的には、画像処理装置2のSDRAM34に格納されているデータをバス16を介してFIFOメモリ14にDMA転送する処理、又はDMAコントローラ11によってFIFOメモリ14にDMA転送されたデータを該FIFOメモリ14から読み出してSDRAM34にDMA転送する処理を行う。
The
ROM30は、制御部15によってこの画像処理装置2の各部が制御されるためのプログラムを記憶している。RAM31は、制御部15の主メモリ、ワークエリア等として機能し、予め登録された各種設定情報等を記憶している。また、このRAM31には、データ処理装置1に転送すべきデータ及びその取扱いに関するコマンドをインターフェース部9のDPRAM12に書込むとともにデータ処理装置1に割り込みをかけるための処理と、データ処理装置1に転送すべきデータの取扱いに関するコマンドをDPRAM12に書込むとともにデータ処理装置1に割り込みをかけるための処理を行った後に転送すべきデータをインターフェース部9のFIFOメモリ14にDMA転送する処理と、のいずれの処理を行うかが転送すべきデータの種類毎に設定されている。画像処理装置2は、データ処理装置1にデータを転送する場合に、このRAM31の設定に基づいて上記のいずれか一方の処理を行うように構成されている。原稿読取部32は、例えば、CCD(Charge Coupled Device)等のイメージセンサによって原稿の画像データを読取る。
The
コーデック33は、画像データの符号化(エンコード)及び復号(デコード)を行うものであり、原稿読取部32で読取られた原稿の画像データをMH(Modified Huffman)、MR(Modified Read)、MMR(Modified Modified Read)、JBIG(Joint Bi-level Image Group)、JPEG(Joint Photographic Experts Group)方式等により符号化し、符号化されている画像データを復号する。SDRAM34は、原稿読取部32で読取られた後にコーデック33において符号化された原稿の画像データやデータ処理装置1から転送されたプリントデータ等のデータを格納する画像メモリとして機能する。制御部15がアップロードメモリ17のデータ領域20から読み出したデータや、DMAコントローラ23がFIFOメモリ14からDMA転送したデータは、このSDRAM34に格納される。記録部35は、原稿読取部32において読取られた原稿の画像データ、データ処理装置1から転送されたプリントデータ等の画像を用紙に記録するものであり、この記録部35における記録方式としては、例えば、電子写真方式を用いることができる。
The
操作部36は、図示しないが原稿読取部32に原稿の読取開始を指示するためのスタートキー、コピー部数等を入力するためのテンキー、各種設定を行うためのカーソルキーなど、表示部37と連動した各種操作キーを備えている。表示部37は、各種の設定状態や画像処理装置2の動作状態などを文字や図形などで表示する液晶表示装置(LCD:Liquid Crystal Display)や、点灯又は消灯で表示するLEDランプなどを備えている。
Although not shown, the
ところで、画像処理装置2は、あるタスクにより上記のようにデータ処理装置1にデータを転送する場合、すなわち、マスターレジスタ26のMINT0領域に「1」を書込んでからデータ処理装置1の制御部5がSINT1領域に「1」を書き込むまでの間、他のタスクのデータ転送を排他制御する必要がある。そこで、RAM31の所定領域には、ダウンロードメモリ18の使用権とFIFOメモリ14の使用権、すなわちダウンロードメモリ18のヘッダ領域21とデータ領域22のセマフォ、及び送信DMAのセマフォ、を獲得しているか否かに関する情報が制御部15によって書込まれるようになっている。具体的には、制御部15は、FIFOメモリ14を使用してデータをDMA転送する場合、ダウンロードメモリ18とFIFOメモリ14の両方を使用するため、ダウンロードメモリ18のセマフォとFIFOメモリ14のセマフォの両方のセマフォを獲得するための情報をRAM31に書込むことにより、他のタスクによってダウンロードメモリ18とFIFOメモリ14が使用されるのを禁止している。また、FIFOメモリ14を使用せずダウンロードメモリ18のみを使用してデータ処理装置1にデータを転送する場合、ダウンロードメモリ18のセマフォを獲得するための情報をRAM31に書込むことにより、他のタスクによってダウンロードメモリ18が使用されるのを禁止している。なお、この場合、FIFOメモリ14は使用されないので、FIFOメモリ14を他の機能により使用することが可能である。
When the image processing apparatus 2 transfers data to the
上記構成を備えたデータ処理装置1と画像処理装置2とから構成されるデータ転送システムAでは、データ処理装置1が最初のコマンドを発行してコマンド受付側の画像処理装置2へのデータ転送を行ったり、逆に画像処理装置2が最初のコマンドを発行してコマンド受付側のデータ処理装置1へのデータ転送を行うことが可能である。以下、データ処理装置1をコマンド発行側、画像処理装置2をコマンド受信側とし、DPRAM12のみを使用してデータ転送を行う場合やDPRAM12とFIFOメモリ14の両方を使用してデータ転送を行う場合に両装置で行われる処理動作について、図4乃至図7に示すシーケンス図に基づいて以下に説明する。
In the data transfer system A composed of the
図4に示すように、FIFOメモリ14を使用せずコマンド発行側のデータ処理装置1がコマンド受付側の画像処理装置2にデータを転送する場合、まず、データ処理装置1の制御部5は、SDRAM8の所定領域にアップロードメモリ17の使用権を獲得するための情報を書込んでアップロードメモリ17のヘッダ領域19とデータ領域20のセマフォを獲得する。そして、アップロードメモリ17が画像処理装置2に対するコマンドによって使用中であることを示すメモリ情報と転送すべきデータの取扱いに関するコマンドをヘッダ領域19に書込むとともに転送すべきデータをデータ領域20に書込み、スレーブレジスタ25のSINT0領域に「1」を書込む。これに対し、インターフェース部9は、制御部15に対して割り込み要求信号(Interrupt)を出力する。
As shown in FIG. 4, when the
一方、割り込み要求を受けた画像処理装置2の制御部15は、アップロードメモリ17にアクセスしてヘッダ領域19のコマンドを読み出した後、そのコマンドに基づいてデータ領域20に転送すべきデータが書込まれたと判断し、データ領域20から転送すべきデータを読み出してSDRAM34に格納する。そして、制御部15は、これらの処理によって制御部5がアップロードメモリ17に書込んだ情報が不用になると、マスターレジスタ26のMINT1領域に「1」を書込む。これに対し、インターフェース部9は、制御部5に対して割り込み要求信号を出力する。
On the other hand, the
割り込み要求を受けたデータ処理装置1の制御部5は、アップロードメモリ17が未使用であることを示すメモリ情報をヘッダ領域19に書込み、SDRAM8の所定領域にアップロードメモリ17の使用権を返却するための情報を書込んでアップロードメモリ17のヘッダ領域19とデータ領域20のセマフォを返却する。
The
コマンド発行側のデータ処理装置1がコマンド受付側の画像処理装置2からのレスポンスを必要としない場合には、ここで両装置1及び2の処理が終了するが、画像処理装置2からのレスポンスを必要とする場合には、画像処理装置2の制御部15は、データ領域20のデータを読み出した後、RAM31の所定領域にダウンロードメモリ18の使用権を獲得するための情報を書込んでダウンロードメモリ18のヘッダ領域21とデータ領域22のセマフォを獲得する。そして、ダウンロードメモリ18がデータ処理装置1に対するレスポンスによって使用中であることを示すメモリ情報とレスポンスをヘッダ領域21に書込み、マスターレジスタ26のMINT0領域に「1」を書込む。これに対し、インターフェース部9は、制御部5に対して割り込み要求信号を出力する。
When the command processing side
割り込み要求を受けたデータ処理装置1の制御部5は、ダウンロードメモリ18のヘッダ領域21に書込まれている画像処理装置2からのレスポンスを読み出し、そのレスポンスが不用になるとスレーブレジスタ25のSINT1領域に「1」を書込む。これに対し、インターフェース部9は、画像処理装置2の制御部15に対して割り込み要求信号を出力する。割り込み要求を受けた制御部15は、ダウンロードメモリ18のヘッダ領域21にダウンロードメモリ18が未使用であることを示す情報を書込み、RAM31の所定領域にダウンロードメモリ18の使用権を返却するための情報を書込んでダウンロードメモリ18のヘッダ領域21とデータ領域22のセマフォを返却して処理を終了する。
Upon receiving the interrupt request, the
このように、データ処理装置1から画像処理装置2に対してデータ転送が行われた後、画像処理装置2の制御部15は、アップロードメモリ17のデータ領域20から読み出したデータに対してヘッダ領域19から読み出したコマンドに基づいて所定の処理を行う。なお、ここではFIFOメモリ14を使用せずDPRAM12を使用してデータ処理装置1から画像処理装置2にデータを転送する場合について説明したが、データ処理装置1から画像処理装置2に対してデータを転送することなくコマンドのみ或いはコマンドとそれに使用するパラメータのみを与えて画像処理装置2に所定の処理を行わせることも可能であり、その場合も図4に基づいて説明した処理動作と同様の処理動作が両装置1及び2において行われる。但し、その場合、アップロードメモリ17のデータ領域20には、転送すべきデータの代わりにヘッダ領域19に書込まれたコマンドを画像処理装置2が実行する際に使用する前記パラメータ等が書込まれる。
As described above, after the data transfer from the
次に、FIFOメモリ14を使用してコマンド発行側のデータ処理装置1がコマンド受付側の画像処理装置2にデータを転送する場合に、両装置1及び2で行われる処理動作について図5に基づいて説明する。まず、コマンド発行側のデータ処理装置1の制御部5は、SDRAM8の所定領域にアップロードメモリ17の使用権を獲得するための情報とFIFOメモリ14の使用権を獲得するための情報を書込んでアップロードメモリ17のヘッダ領域19とデータ領域20のセマフォ、及び送信DMAのセマフォを獲得する。そして、アップロードメモリ17が画像処理装置2に対するコマンドによって使用中であることを示すメモリ情報と転送すべきデータの取扱いに関するコマンドをヘッダ領域19に書込み、送信DMAを起動する。具体的には、制御部5は、DMAコントローラ11が前記送信DMAを行って転送すべきデータをSDRAM8からFIFOメモリ14にDMA転送するための準備を行う。次に、制御部5は、スレーブレジスタ25のSINT0領域に「1」を書込む。これに対し、インターフェース部9は、画像処理装置2の制御部15に対して割り込み要求信号(Interrupt)を出力する。
Next, when the
割り込み要求を受けた画像処理装置2の制御部15は、アップロードメモリ17にアクセスしてヘッダ領域19のコマンドを読み出した後、該コマンドに基づいてDMAコントローラ11によってFIFOメモリ14へSDRAM8のデータがDMA転送されることを判断して受信DMAを起動する。ここで、受信DMAの起動は、DMAコントローラ23が受信DMAを行ってFIFOメモリ14の転送すべきデータを自装置2が備えるSDRAM34にDMA転送するための待受け状態に移行する処理である。
Upon receiving the interrupt request, the
このように、データ処理装置1が送信DMAを起動して画像処理装置2が受信DMAを起動すると、インターフェース部9は、制御部15に割り込み要求信号を出力した後に、FIFOメモリ14に空き領域があるか否かを判断し、空き領域があると判断した場合にはDMAコントローラ11に対して転送要求信号を出力する。これに対し、転送要求を受けたDMAコントローラ11は、送信DMAを行ってSDRAM8の転送すべきデータをFIFOメモリ14にDMA転送する。このように、DMAコントローラ11による送信DMAが開始されて画像処理装置2に転送すべきデータがFIFOメモリ14に格納されると、インターフェース部9は、DMAコントローラ23に対して転送要求信号を出力する。これに対し、転送要求を受けたDMAコントローラ23は、受信DMAを行ってFIFOメモリ14の転送すべきデータをFIFO方式により順次読み出してバス16を介してSDRAM34へDMA転送する。
As described above, when the
このように、DMAコントローラ11による送信DMAと、DMAコントローラ23による受信DMAと、が並行して行われることにより、データ処理装置1のSDRAM8から画像処理装置2のSDRAM34へデータが転送されるようになっている。そして、画像処理装置2の制御部15は、データ処理装置1の制御部5がアップロードメモリ17に書込んだ情報が不要になり、且つDMAコントローラ11がFIFOメモリ14に対してDMA転送したデータをDMAコントローラ23が読み出してSDRAM34にDMA転送する受信DMAが全て完了すると、マスターレジスタ26のMINT1領域に「1」を書込む。これに対し、インターフェース部9は、制御部5に対して割り込み要求信号を出力する。
As described above, transmission DMA by the
そして、割り込み要求を受けたデータ処理装置1の制御部5は、アップロードメモリ17が未使用であることを示すメモリ情報をヘッダ領域19に書込み、SDRAM8の所定領域にアップロードメモリ17とFIFOメモリ14の使用権を返却するための情報を書込んでアップロードメモリ17のヘッダ領域19及びデータ領域20のセマフォと送信DMAのセマフォを返却する。
Upon receiving the interrupt request, the
コマンド発行側のデータ処理装置1がコマンド受付側の画像処理装置2からのレスポンスを必要としない場合には、ここで両装置1及び2の処理が終了するが、画像処理装置2からのレスポンスを必要とする場合には、画像処理装置2の制御部15は、RAM31の所定領域にダウンロードメモリ18の使用権を獲得するための情報を書込んでダウンロードメモリ18のヘッダ領域21とデータ領域22のセマフォを獲得する。そして、ダウンロードメモリ18がデータ処理装置1に対するレスポンスによって使用中であることを示すメモリ情報とレスポンスをヘッダ領域21に書込み、マスターレジスタ26のMINT0領域に「1」を書込む。これに対し、インターフェース部9は、制御部5に対して割り込み要求信号を出力する。
When the command processing side
割り込み要求を受けたデータ処理装置1の制御部5は、ダウンロードメモリ18のヘッダ領域21に書込まれているレスポンスを読み出し、画像処理装置2の制御部15がダウンロードメモリ18に書込んだ情報(ここでは、レスポンス)が不用になると、スレーブレジスタ25のSINT1領域に「1」を書込む。これに対し、インターフェース部9は、制御部15に対して割り込み要求信号を出力する。そして、割り込み要求を受けた画像処理装置2の制御部15は、ダウンロードメモリ18のヘッダ領域21にダウンロードメモリ18が未使用であることを示す情報を書込み、RAM31の所定領域にダウンロードメモリ18の使用権を返却するための情報を書込んでダウンロードメモリ18のヘッダ領域21とデータ領域22のセマフォを返却して処理を終了する。
Upon receiving the interrupt request, the
このように、データ処理装置1から画像処理装置2へのデータ転送が完了した後、画像処理装置2の制御部15は、SDRAM34に格納されたデータに対してアップロードメモリ17のヘッダ領域19から読み出したコマンドに基づいて所定の処理を行う。例えば、SDRAM34に格納されたデータの画像を記録部35にて用紙に記録する処理等を行う。なお、このようにしてデータ処理装置1から画像処理装置2にFIFOメモリ14を使用してデータを転送する場合について説明したが、この転送すべきデータをFIFOメモリ14を使用せずDPRAM12のみを使用して転送することも可能ではある。しかしながら、転送すべきデータのデータサイズが、データ領域20のメモリ容量を大きく超える場合には、制御部5が転送すべきデータの一部をデータ領域20に書込む処理と、制御部15がその転送すべきデータの一部をデータ領域20から読み出す処理と、が転送すべきデータのデータサイズに応じて複数回行われなければならず、結果としてデータ転送に時間がかかるという問題がある。したがって、ここで説明したように、データサイズがDPRAM12のメモリ容量(データ領域20の領域サイズ)を超えるようなデータについては、その取扱いに関するコマンドをヘッダ領域19に書込むとともにFIFOメモリ14を使用して転送する方が好適であり、DPRAM12のみを使用した場合に比べて高速なデータ転送を行うことができる。よって、データサイズの大きいデータを転送するために、DPRAM12のメモリ容量を増大させる必要がないため、装置コストが増大するのを防止することができる。
As described above, after the data transfer from the
次に、FIFOメモリ14を使用してコマンド発行側のデータ処理装置1がコマンド受付側の画像処理装置2からデータを受信する場合に両装置1及び2で行われる処理動作について図6に基づいて説明する。まず、データ処理装置1の制御部5は、SDRAM8の所定領域にアップロードメモリ17の使用権を獲得するための情報を書込んでアップロードメモリ17のヘッダ領域19とデータ領域20のセマフォを獲得する。そして、アップロードメモリ17が画像処理装置2に対するコマンドによって使用中であることを示すメモリ情報と画像処理装置2に自装置1に対するデータのDMA転送を行わせるためのコマンドをヘッダ領域19に書込み、スレーブレジスタ25のSINT0領域に「1」を書込む。これに対し、インターフェース部9は、制御部15に対して割り込み要求信号を出力する。
Next, based on FIG. 6, processing operations performed by both the
割り込み要求を受けた画像処理装置2の制御部15は、アップロードメモリ17にアクセスしてヘッダ領域19のコマンドを読み出し、SDRAM34のデータをデータ処理装置1に対してFIFOメモリ14を使用して転送する命令を受けたことを判断する。そして、そのコマンドの情報が不用になると、マスターレジスタ26のMINT1領域に「1」を書込む。これに対し、インターフェース部9は、制御部5に対して割り込み要求信号を出力する。
Upon receiving the interrupt request, the
割り込み要求を受けたデータ処理装置1の制御部5は、アップロードメモリ17が未使用であることを示すメモリ情報をヘッダ領域19に書込み、SDRAM8の所定領域にアップロードメモリ17の使用権を返却するための情報を書込んでアップロードメモリ17のヘッダ領域19とデータ領域20のセマフォを返却する。
The
画像処理装置2の制御部15は、上記の通りアップロードメモリ17のヘッダ領域19から読み出したコマンドに基づいてデータのDMA転送を行わなければならないことを判断した後、RAM31の所定領域にダウンロードメモリ18の使用権を獲得するための情報とFIFOメモリ14の使用権を獲得するための情報を書込んでダウンロードメモリ18のヘッダ領域21とデータ領域22のセマフォ、及び送信DMAのセマフォを獲得する。そして、ダウンロードメモリ18がデータ処理装置1に対するレスポンスによって使用中であることを示すメモリ情報とDMA転送を行うことを示すレスポンスをヘッダ領域21に書込み、送信DMAを起動する。具体的には、DMAコントローラ23がSDRAM34のデータをバス16を介してFIFOメモリ14へDMA転送する送信DMAを実行するための準備を行う。次に、制御部15は、マスターレジスタ26のMINT0領域に「1」を書込む。これに対し、インターフェース部9は、制御部5に対して割り込み要求信号を出力する。
The
割り込み要求を受けたデータ処理装置1の制御部5は、ダウンロードメモリ18のヘッダ領域21に書込まれている画像処理装置2からのレスポンスを読み出し、受信DMAを起動する。具体的には、画像処理装置2からFIFOメモリ14に転送されたデータを読み出してSDRAM8へDMA転送する受信DMAをDMAコントローラ11が開始するための準備を行う。
Upon receiving the interrupt request, the
このように、画像処理装置2が送信DMAを起動してデータ処理装置1が受信DMAを起動すると、インターフェース部9は、制御部5に割り込み要求信号を出力した後に、FIFOメモリ14に空き領域があるか否かを判断し、空き領域があると判断した場合にはDMAコントローラ23に対して転送要求信号を出力する。これに対し、転送要求を受けたDMAコントローラ23は、送信DMAを行ってSDRAM34の転送すべきデータを読み出してバス16を介してFIFOメモリ14へDMA転送する。このように、DMAコントローラ23による送信DMAが開始されてデータ処理装置1に転送すべきデータがFIFOメモリ14に格納されると、インターフェース部9は、DMAコントローラ11に対して転送要求信号を出力する。これに対し、転送要求を受けたDMAコントローラ11は、受信DMAを行ってFIFOメモリ14の転送すべきデータをFIFO方式により順次読み出してバス10を介してSDRAM8へDMA転送する。
As described above, when the image processing apparatus 2 activates the transmission DMA and the
このように、DMAコントローラ23による送信DMAと、DMAコントローラ11による受信DMAと、が並行して行われることにより、画像処理装置2のSDRAM34からデータ処理装置1のSDRAM8へデータが転送されるようになっている。そして、データ処理装置1の制御部5は、画像処理装置2の制御部15がダウンロードメモリ18に書込んだ情報が不要になり、且つDMAコントローラ23がFIFOメモリ14に対してDMA転送したデータをDMAコントローラ11が読み出してSDRAM8にDMA転送する受信DMAが全て完了すると、スレーブレジスタ25のSINT1領域に「1」を書込む。これに対し、インターフェース部9は、制御部15に対して割り込み要求信号を出力する。
As described above, transmission DMA by the
割り込み要求を受けた画像処理装置2の制御部15は、ダウンロードメモリ18が未使用であることを示すメモリ情報をヘッダ領域21に書込み、RAM31の所定領域にダウンロードメモリ18とFIFOメモリ14の使用権を返却するための情報を書込んでダウンロードメモリ18のヘッダ領域21とデータ領域22のセマフォ、及び送信DMAのセマフォを返却して処理を終了する。
Upon receiving the interrupt request, the
次に、FIFOメモリ14を使用してコマンド発行側のデータ処理装置1がコマンド受付側の画像処理装置2との間でデータを送受信する場合に両装置1及び2で行われる処理動作について図7に基づいて説明する。なお、この図7に基づいて説明する両装置1及び2の処理動作は、図5のFIFOメモリ14を使用したデータ処理装置1から画像処理装置2へのデータ転送と、図6のFIFOメモリ14を使用した画像処理装置2からデータ処理装置1へのデータ転送と、が1つのジョブにおいて行われるものであるため、詳細な説明は省略し、主に処理の流れについて説明する。
Next, processing operations performed by both the
まず、コマンド発行側のデータ処理装置1の制御部5は、SDRAM8の所定領域にアップロードメモリ17の使用権を獲得するための情報とFIFOメモリ14の使用権を獲得するための情報を書込んでアップロードメモリ17のヘッダ領域19とデータ領域20のセマフォ、及び送信DMAのセマフォを獲得する。そして、アップロードメモリ17が画像処理装置2に対するコマンドによって使用中であることを示すメモリ情報と画像処理装置2に転送すべきデータの取扱いに関するコマンドをヘッダ領域19に書込み、DMAコントローラ11の送信DMAを起動する。次に、制御部5は、スレーブレジスタ25のSINT0領域に「1」を書込む。これに対し、インターフェース部9は、画像処理装置2の制御部15に対して割り込み要求信号を出力する。
First, the
割り込み要求を受けた画像処理装置2の制御部15は、アップロードメモリ17にアクセスしてヘッダ領域19のコマンドを読み出し、該コマンドに基づいてDMAコントローラ11によってSDRAM8からFIFOメモリ14へデータがDMA転送されること及びこのDMA転送が完了した後に逆にSDRAM34のデータをFIFOメモリ14にDMA転送しなければならないことを判断する。そして、制御部15は、まずDMAコントローラ23の受信DMAを起動する。
Upon receiving the interrupt request, the
インターフェース部9は、FIFOメモリ14に空き領域があるか否かを判断し、空き領域があると判断した場合には、DMAコントローラ11に対して転送要求信号を出力する。転送要求を受けたDMAコントローラ11は、送信DMAを行ってSDRAM8のデータをFIFOメモリ14へDMA転送する。このようにしてDMAコントローラ11によって送信DMA転送が開始されると、インターフェース部9は、DMAコントローラ23に対して転送要求信号を出力する。転送要求を受けたDMAコントローラ23は、受信DMAを行ってFIFOメモリ14から転送すべきデータをSDRAM34にDMA転送する受信DMAを行う。
The
そして、画像処理装置2の制御部15は、データ処理装置1の制御部5がアップロードメモリ17に書込んだ情報が不要になり且つDMAコントローラ23による受信DMAが完了すると、マスターレジスタ26のMINT1領域に「1」を書込む。これに対し、インターフェース部9は、制御部5に対して割り込み要求信号を出力する。
Then, when the
割り込み要求を受けたデータ処理装置1の制御部5は、アップロードメモリ17が未使用であることを示すメモリ情報をヘッダ領域19に書込み、SDRAM8の所定領域にアップロードメモリ17の使用権とFIFOメモリ14の使用権を返却するための情報を書込んでアップロードメモリ17のヘッダ領域19及びデータ領域20のセマフォと送信DMAのセマフォを返却する。
Upon receiving the interrupt request, the
このようにして、データ処理装置1から画像処理装置2へのデータ転送が完了すると、画像処理装置2の制御部15は、逆にデータ処理装置1へのデータの転送を行うために、RAM31の所定領域にダウンロードメモリ18の使用権を獲得するための情報とFIFOメモリ14の使用権を獲得するための情報を書込んでダウンロードメモリ18のヘッダ領域21とデータ領域22、及び送信DMAのセマフォを獲得する。そして、ダウンロードメモリ18がデータ処理装置1に対するレスポンスによって使用中であることを示すメモリ情報とデータのDMA転送を行うことを示すレスポンスをヘッダ領域21に書込み、DMAコントローラ23の送信DMAを起動し、マスターレジスタ26のMINT0領域に「1」を書込む。これに対し、インターフェース部9は、制御部5に対して割り込み要求信号を出力する。
When the data transfer from the
割り込み要求を受けたデータ処理装置1の制御部5は、ダウンロードメモリ18のヘッダ領域21に書込まれているレスポンスを読み出し、FIFOメモリ14を使用して画像処理装置2からデータ処理装置1へデータ転送が行われることを判断してDMAコントローラ11の受信DMAを起動する。
Upon receiving the interrupt request, the
インターフェース部9は、FIFOメモリ14に空き領域があるか否かを判断し、空き領域があると判断した場合には、DMAコントローラ23に対して転送要求信号を出力する。転送要求を受けたDMAコントローラ23は、送信DMAを行ってSDRAM34の転送すべきデータを読み出してバス16を介してFIFOメモリ14へDMA転送する。このようにしてFIFOメモリ14に画像処理装置2からのデータが格納されると、インターフェース部9は、DMAコントローラ11に対して転送要求信号を出力する。転送要求を受けたDMAコントローラ11は、受信DMAを行ってFIFOメモリ14のデータをFIFO方式により順次読み出してバス10を介してSDRAM8へDMA転送する。
The
そして、データ処理装置1の制御部5は、画像処理装置2の制御部15がダウンロードメモリ18に書込んだ情報が不要になり且つDMAコントローラ11による受信DMAが完了すると、スレーブレジスタ25のSINT1領域に「1」を書込み、インターフェース部9は、制御部15に対して割り込み要求信号を出力する。
Then, when the
割り込み要求を受けた画像処理装置2の制御部15は、ダウンロードメモリ18が未使用であることを示すメモリ情報をヘッダ領域21に書込み、RAM31の所定領域にダウンロードメモリ18の使用権とFIFOメモリ14の使用権を返却するための情報を書込んでダウンロードメモリ18のヘッダ領域21とデータ領域22のセマフォ、及び送信DMAのセマフォを返却して処理を終了する。
Upon receiving the interrupt request, the
なお、図4乃至図7では、コマンド発行側がデータ処理装置1でコマンド受付側が画像処理装置2である場合の両装置1及び2で行われる処理動作について説明したが、逆にコマンド発行側が画像処理装置2でコマンド受付側がデータ処理装置1であっても同様にデータ転送を行うことができるため、その詳細な説明はここでは省略する。
4 to 7, the processing operation performed by both
ところで、図4乃至図7に基づいて説明したデータ処理装置1と画像処理装置2の間で行われるデータ転送では、DPRAM12のみを使用してデータ転送を行うか、又はDPRAM12とFIFOメモリ14の両方を使用してデータ転送を行うか、が転送すべきデータの種類毎に予め両装置間で設定されている。例えば、クライアントPC4から画像処理装置2において用紙に記録すべきプリントデータが画像処理装置2に対して転送すべきデータとして送信された場合には、DPRAM12とFIFOメモリ14の両方を使用してプリントデータがデータ処理装置1から画像処理装置2へ転送されることがSDRAM8の設定情報により予め設定されている。
By the way, in the data transfer performed between the
しかしながら、画像処理装置2において用紙に記録すべきプリントデータであっても、そのデータ量が小さく、DPRAM12のアップロードメモリ17のデータ領域20のメモリ容量以下であるデータは、FIFOメモリ14を使用することなくアップロードメモリ17のデータ領域20に書込むことにより画像処理装置2へ転送されるようにしてもよい。すなわち、転送すべきデータのデータサイズがDPRAM12において転送すべきデータを書込み可能な領域の領域サイズ以下であるか否かをデータ転送の前に判断し、その判断結果に基づいてFIFOメモリ14を使用したDMA転送を行うか否かを決定してデータ転送を行うようにしてもよい。
However, even the print data to be recorded on the paper in the image processing apparatus 2 has a small data amount and uses the
以下、データ処理装置1から画像処理装置2にデータを転送する場合を例として、転送すべきデータのデータサイズに基づいてFIFOメモリ14を使用したDMA転送を行うか否かを判断してその判断結果に基づいてデータ転送を行うデータ処理装置1において行われる処理動作について、図8に示すフローチャートに基づいて説明する。なお、図8のフローチャートに基づいて説明するデータ処理装置1の処理動作は、Flash ROM7に記憶されているファームウェアに基づいて制御部5が発行する命令に従って行われる。また、本実施の形態においては、データ領域20の領域サイズが44バイトであるため、FIFOメモリ14において転送すべきデータを書込み可能な領域の領域サイズをこれと等しい44バイトとして説明するが、この領域サイズは、データ領域20の領域サイズに合せて変更することは当然可能である。
Hereinafter, taking as an example the case of transferring data from the
データ処理装置1の制御部5は、画像処理装置2に転送すべきデータがあるか否かを判断する(S1)。具体的には、画像処理装置2に転送すべきデータをクライアントPC4から受信してSDRAM8に書込んだか否かを判断する。ここで、転送すべきデータがあると判断した場合には(S1:YES)、SDRAM8に書込んだ転送すべきデータのデータサイズがDPRAM12のメモリ容量以下であるか否かを判断する(S2)。すなわち、転送すべきデータのデータサイズがDPRAM12において自装置1が転送すべきデータを書込み可能な領域、ここではデータ領域20の領域サイズ(44バイト)以下であるか否かを判断する。
The
制御部5は、転送すべきデータのデータサイズがDPRAM12のメモリ容量以下であると判断した場合には(S2:YES)、転送すべきデータとその取扱いに関するコマンドをDPRAM12に書込む(S3)。具体的には、転送すべきデータをアップロードメモリ17のデータ領域20に書込み、その転送すべきデータの取扱いに関するコマンドを同メモリ17のヘッダ領域19に書込む。そして、スレーブレジスタ25のSINT0領域に「1」を書込む。これに対し、インターフェース部9は、画像処理装置2の制御部15に対して割り込み要求信号を出力する。
When the
これに対し、制御部15は、バス16を介してDPRAM12のアップロードメモリ17にアクセスし、まずヘッダ領域19からコマンドを読み出して転送すべきデータがデータ領域20に書込まれること及びそのデータの取扱いを判断する。そして、データ領域20からデータ処理装置1が転送すべきデータを読み出してSDRAM34に格納することによってデータを受信する。そして、受信したデータに対してコマンドに対応する処理を行う。
On the other hand, the
一方、データ処理装置1の制御部5は、転送すべきデータのデータサイズがDPRAM12のメモリ容量以下ではないと判断した場合(S2:NO)、すなわち、SDRAM8に書込んだ転送すべきデータのデータサイズがDPRAM12のデータ領域20のメモリ容量である44バイトを超えていると判断した場合には、まず、転送すべきデータの取扱いに関するコマンドをDPRAM12のアップロードメモリ17に書込む(S4)。例えば、FIFOメモリ14を使用してデータをDMA転送すること及び転送するデータが記録処理を行うべきプリントデータであることを示すコマンドをアップロードメモリ17のヘッダ領域19に書き込む。そして、画像処理装置2に転送すべきデータをSDRAM8からFIFOメモリ14へDMA転送する(S5)。これに対し、画像処理装置2のDMAコントローラ23が受信DMAを行ってFIFOメモリ14からSDRAM34へデータをDMA転送することによって、データ処理装置1のSDRAM8から画像処理装置2のSDRAM34へのデータ転送が行われる。
On the other hand, when the
このように、データ処理装置1では、転送すべきデータのデータサイズがDPRAM12の領域サイズ以下である場合にはFIFOメモリ14を使用せず転送すべきデータとともにその取扱いに関するコマンドをDPRAM12に書込む処理を行い、転送すべきデータのデータサイズが前記領域サイズを超えると判断した場合にはDPRAM12とFIFOメモリ14の両方を使用して画像処理装置2へデータを転送する。
As described above, in the
以上説明したように、データ転送システムAにおいて、データ処理装置1から画像処理装置2へデータを転送する場合に、その転送すべきデータのデータサイズとDPRAM12において書込み可能な領域の領域サイズに基づいて、FIFOメモリ14を使用するか否かを判断してデータ転送を行うことも可能である。また、逆に画像処理装置2からデータ処理装置1へデータを転送する場合にもこれと同様に、転送すべきデータのデータサイズに基づいてFIFOメモリ14を使用するか否かを判断してデータ転送を行うことが可能である。
As described above, in the data transfer system A, when data is transferred from the
なお、本発明の実施の形態においては、データ処理装置1とクライアントPC4をLAN3を介して接続した場合を例に挙げて説明したが、クライアントPC4とデータ処理装置1との間で各種データを送受信することができれば接続手段はこれに限定されるものではなく、例えばクライアントPC4とデータ処理装置1をUSB(Universal Serial Bus)を介して接続するようにしてもよい。
In the embodiment of the present invention, the case where the
また、本実施の形態で示したデータ処理システムAの構成は、本発明に係るデータ処理システムAの一態様にすぎず、本発明の趣旨を逸脱しない範囲内で適宜設計変更できることは勿論であり、例えばデータ処理装置1との間でデータを送受信する画像処理装置2は、ファクシミリ装置、プリンタ装置、或いはこれらの複合機等であってもよい。
The configuration of the data processing system A shown in the present embodiment is only one aspect of the data processing system A according to the present invention, and it is needless to say that the design can be changed as appropriate without departing from the gist of the present invention. For example, the image processing apparatus 2 that transmits / receives data to / from the
本発明は、例えば、画像データのプリント処理等を行う画像処理装置と、該画像処理装置にクライアント装置(PC)から転送されたデータを画像処理装置に転送するデータ処理装置とから構成されるデータ転送システムに適用可能である。 The present invention is, for example, data composed of an image processing apparatus that performs print processing of image data and the like, and a data processing apparatus that transfers data transferred from the client apparatus (PC) to the image processing apparatus to the image processing apparatus Applicable to transfer system.
A データ転送システム
1 データ処理装置
2 画像処理装置
5、15 制御部(CPU)
11、23 DMAコントローラ
12 DPRAM
13 レジスタ
14 FIFOメモリ
10、16 バス
17 アップロードメモリ
18 ダウンロードメモリ
19、21 ヘッダ領域
20、22 データ領域
A
11, 23
13
Claims (4)
前記データ処理装置は、前記画像処理装置に転送すべきデータ及びその取扱いに関するコマンドを前記DPRAMに書込むとともに前記画像処理装置に割り込みをかける第1の処理手段と、前記取扱いに関するコマンドを前記DPRAMに書込むとともに前記画像処理装置に割り込みをかけた後に前記転送すべきデータを前記FIFOメモリにDMA転送する第2の処理手段と、転送すべきデータの種類毎に前記第1又は前記第2の処理手段を設定する設定手段と、前記画像処理装置にデータを転送する場合に、前記設定手段の設定に基づいて前記第1又は前記第2の処理手段のいずれか一方に処理を行わせる制御手段と、を備え、
前記画像処理装置は、前記第1又は前記第2の処理手段による前記割り込みを受けた場合に、前記DPRAMの前記コマンドに基づいて前記転送すべきデータが前記DPRAMに書込まれるのか、又は前記FIFOメモリにDMA転送されるのかを判断する判断手段と、該判断手段の判断結果に基づいて、前記転送すべきデータを前記DPRAMから読み出す処理又は前記転送すべきデータを前記FIFOメモリから読み出して自装置が備えるメモリにDMA転送する処理のいずれかの処理を行う手段と、を備えることを特徴とするデータ転送システム。 A data transfer system comprising an image processing device and a data processing device including a DPRAM and a FIFO memory connected to the device,
The data processing device writes data to be transferred to the image processing device and a command relating to the handling to the DPRAM, and also interrupts the image processing device, and a command relating to the handling to the DPRAM. A second processing means for DMA-transferring the data to be transferred to the FIFO memory after writing and interrupting the image processing apparatus; and the first or second processing for each type of data to be transferred Setting means for setting means, and control means for causing either one of the first or second processing means to perform processing based on the setting of the setting means when transferring data to the image processing apparatus. With
When the image processing apparatus receives the interrupt from the first or second processing means, the data to be transferred is written to the DPRAM based on the command of the DPRAM, or the FIFO A determination means for determining whether the data is to be DMA-transferred to the memory, and a process for reading the data to be transferred from the DPRAM or reading the data to be transferred from the FIFO memory based on the determination result of the determination means; Means for performing any one of the processes of DMA transfer to a memory included in the data transfer system.
前記データ処理装置は、前記画像処理装置に転送すべきデータのデータサイズが前記DPRAMにおいて自装置が書込み可能な領域の領域サイズ以下であるか否かを判断する判断手段と、前記データサイズが前記領域サイズ以下であると前記判断手段が判断した場合に前記転送すべきデータ及びその取扱いに関するコマンドを前記書込み可能な領域に書込むとともに前記画像処理装置に割り込みをかける第1の処理手段と、前記データサイズが前記領域サイズを超えると前記判断手段が判断した場合に前記転送すべきデータの取扱いに関するコマンドを前記書込み可能な領域に書込むとともに前記画像処理装置に割り込みをかけた後に前記転送すべきデータを前記FIFOメモリにDMA転送する第2の処理手段と、前記画像処理装置にデータを転送する場合に、前記判断手段の判断結果に基づいて前記第1又は前記第2の処理手段のいずれか一方に処理を行わせる制御手段と、を備え、
前記画像処理装置は、前記第1又は前記第2の処理手段による前記割り込みを受けた場合に、前記DPRAMの前記コマンドに基づいて前記転送すべきデータが前記DPRAMに書込まれるのか、又は前記FIFOメモリにDMA転送されるのかを判断する判断手段と、該判断手段の判断結果に基づいて、前記転送すべきデータを前記DPRAMから読み出す処理又は前記転送すべきデータを前記FIFOメモリから読み出して自装置が備えるメモリにDMA転送する処理のいずれかの処理を行う手段と、を備えることを特徴とするデータ転送システム。 A data transfer system comprising an image processing device and a data processing device including a DPRAM and a FIFO memory connected to the device,
The data processing device is configured to determine whether or not a data size of data to be transferred to the image processing device is equal to or smaller than an area size of an area writable by the device in the DPRAM; A first processing unit that writes the data to be transferred and a command relating to the handling thereof in the writable region and interrupts the image processing apparatus when the determination unit determines that the size is equal to or smaller than an area size; When the determination means determines that the data size exceeds the area size, the command relating to the handling of the data to be transferred is written to the writable area and the image processing apparatus is interrupted to transfer the data. Second processing means for DMA-transferring the data to the FIFO memory, and data to the image processing apparatus; When transferring, and control means for causing the process to one of said first or said second processing means on the basis of the determination result of said determination means,
When the image processing apparatus receives the interrupt from the first or second processing means, the data to be transferred is written to the DPRAM based on the command of the DPRAM, or the FIFO A determination means for determining whether the data is to be DMA-transferred to the memory, and a process for reading the data to be transferred from the DPRAM or reading the data to be transferred from the FIFO memory based on the determination result of the determination means Means for performing any one of the processes of DMA transfer to a memory included in the data transfer system.
前記画像処理装置は、前記データ処理装置に転送すべきデータ及びその取扱いに関するコマンドを前記DPRAMに書込むとともに前記データ処理装置に割り込みをかけるための処理を行う第1の処理手段と、前記データ処理装置に転送すべきデータの取扱いに関するコマンドを前記DPRAMに書込むとともに前記データ処理装置に割り込みをかけるための処理を行った後に前記転送すべきデータを前記FIFOメモリにDMA転送する第2の処理手段と、転送すべきデータの種類毎に前記第1又は前記第2の処理手段を設定する設定手段と、前記データ処理装置にデータを転送する場合に、前記設定手段の設定に基づいて前記第1又は前記第2の処理手段のいずれか一方に処理を行わせる制御手段と、を備え、
前記データ処理装置は、前記第1又は前記第2の処理手段によって前記割り込みをかける処理が行われた場合に、前記DPRAMの前記コマンドに基づいて前記転送すべきデータが前記DPRAMに書込まれるのか、又は前記FIFOメモリにDMA転送されるのかを判断する判断手段を備えることを特徴とするデータ転送システム。 A data transfer system comprising an image processing device and a data processing device including a DPRAM and a FIFO memory connected to the device,
The image processing device includes a first processing means for writing data to be transferred to the data processing device and a command relating to the handling thereof into the DPRAM and performing processing for interrupting the data processing device; and the data processing Second processing means for writing a command relating to handling of data to be transferred to a device to the DPRAM and performing DMA transfer to the FIFO memory after performing processing for interrupting the data processing device And setting means for setting the first or second processing means for each type of data to be transferred, and when transferring data to the data processing device, the first means based on the setting of the setting means Or control means for causing either one of the second processing means to perform processing,
Whether the data to be transferred is written to the DPRAM based on the command of the DPRAM when the interrupt processing is performed by the first or second processing means. Or a data transfer system comprising: determination means for determining whether the data is DMA-transferred to the FIFO memory.
前記画像処理装置は、前記データ処理装置に転送すべきデータのデータサイズが前記DPRAMにおいて自装置が書込み可能な領域サイズ以下であるか否かを判断する第1の判断手段と、該手段が前記転送すべきデータのデータサイズが前記領域サイズ以下であると判断した場合に前記転送すべきデータ及びその取扱いに関するコマンドを前記書込み可能な領域に書込むとともに前記データ処理装置に割り込みをかけるための処理を行う第1の処理手段と、前記判断手段が前記転送すべきデータのデータサイズが前記領域サイズを超えると判断した場合に前記転送すべきデータの取扱いに関するコマンドを前記DPRAMに書込むとともに前記データ処理装置に割り込みをかけるための処理を行った後に前記転送すべきデータを前記FIFOメモリにDMA転送する第2の処理手段と、前記データ処理装置にデータを転送する場合に、前記第1の判断手段の判断結果に基づいて前記第1又は前記第2の処理手段のいずれか一方に処理を行わせる制御手段、とを備え、
前記データ処理装置は、前記第1又は前記第2の処理手段によって前記割り込みをかける処理が行われた場合に、前記DPRAMの前記コマンドに基づいて前記転送すべきデータが前記DPRAMに書込まれるのか、又は前記FIFOメモリにDMA転送されるのかを判断する第2の判断手段を備えることを特徴とするデータ転送システム。 A data transfer system comprising an image processing device and a data processing device including a DPRAM and a FIFO memory connected to the device,
The image processing apparatus includes: a first determination unit configured to determine whether or not a data size of data to be transferred to the data processing device is equal to or smaller than an area size writable by the own device in the DPRAM; Processing for writing the data to be transferred and a command relating to the handling to the writable area and interrupting the data processing device when it is determined that the data size of the data to be transferred is equal to or smaller than the area size And a command relating to handling of the data to be transferred is written to the DPRAM when the determination unit determines that the data size of the data to be transferred exceeds the area size. After performing processing for interrupting the processing device, the data to be transferred is transferred to the FIFO. A second processing unit that performs DMA transfer to memory, and one of the first and second processing units based on a determination result of the first determination unit when transferring data to the data processing device. And a control means for performing processing.
Whether the data to be transferred is written to the DPRAM based on the command of the DPRAM when the interrupt processing is performed by the first or second processing means. Or a data transfer system comprising second determination means for determining whether the data is DMA-transferred to the FIFO memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004147551A JP2005332032A (en) | 2004-05-18 | 2004-05-18 | Data transfer system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004147551A JP2005332032A (en) | 2004-05-18 | 2004-05-18 | Data transfer system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005332032A true JP2005332032A (en) | 2005-12-02 |
Family
ID=35486678
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004147551A Pending JP2005332032A (en) | 2004-05-18 | 2004-05-18 | Data transfer system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005332032A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007172628A (en) * | 2005-12-22 | 2007-07-05 | Thomson Licensing | Serial data transfer in numerically controlled control system to update output value of the control system |
WO2012108393A1 (en) * | 2011-02-09 | 2012-08-16 | ソニー株式会社 | Electronic device, method for transmitting stereoscopic image information in electronic device, and method for receiving stereoscopic image information in electronic device |
-
2004
- 2004-05-18 JP JP2004147551A patent/JP2005332032A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007172628A (en) * | 2005-12-22 | 2007-07-05 | Thomson Licensing | Serial data transfer in numerically controlled control system to update output value of the control system |
WO2012108393A1 (en) * | 2011-02-09 | 2012-08-16 | ソニー株式会社 | Electronic device, method for transmitting stereoscopic image information in electronic device, and method for receiving stereoscopic image information in electronic device |
JP2012169702A (en) * | 2011-02-09 | 2012-09-06 | Sony Corp | Electronic apparatus, stereoscopic image information transmission method in electronic apparatus, and stereoscopic image information reception method in electronic apparatus |
US9628872B2 (en) | 2011-02-09 | 2017-04-18 | Sony Corporation | Electronic device, stereoscopic image information transmission method of electronic device and stereoscopic information receiving method of electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH10143340A (en) | Printer | |
JP2005041127A (en) | Status information notification system, network terminal device and communication processing device | |
JP2016012339A (en) | Information processor, printer and control method | |
JP2009081742A (en) | Image forming device | |
JP2005332032A (en) | Data transfer system | |
JPH10334037A (en) | Communication dma device | |
US7457943B2 (en) | Controller, image processing apparatus, and method of controlling execution of program | |
JP2008046977A (en) | Image processing system and image forming apparatus | |
JP2004127039A (en) | Task exclusive control method and task exclusive control device | |
JP7009866B2 (en) | Electronic devices, communication processing methods and programs | |
JP2004094493A (en) | Storage medium processor and its control method | |
JP4848188B2 (en) | Unit having memory device having a plurality of memory areas and memory control system | |
JP2008105321A (en) | Image forming device | |
JP2010098426A (en) | Controller, image forming apparatus, and program | |
JP2006195888A (en) | Print system | |
JP5575064B2 (en) | Controller and image processing device | |
JP2007328737A (en) | Host device, data processor, and data processing system | |
JP2001111741A (en) | Communication terminal | |
JP2008219303A (en) | Communication controller, image processor, communication control method and communication control program | |
JP2024136210A (en) | Image processing device and program | |
JP2007160584A (en) | Interruption print controller and control program | |
JP2000332924A (en) | Image forming device | |
JP2006056170A (en) | Image forming device | |
JP2009064341A (en) | Data transfer system | |
JP4241569B2 (en) | Image forming apparatus and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080220 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080226 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20080904 |