JP2005153186A - Printing apparatus - Google Patents

Printing apparatus Download PDF

Info

Publication number
JP2005153186A
JP2005153186A JP2003391369A JP2003391369A JP2005153186A JP 2005153186 A JP2005153186 A JP 2005153186A JP 2003391369 A JP2003391369 A JP 2003391369A JP 2003391369 A JP2003391369 A JP 2003391369A JP 2005153186 A JP2005153186 A JP 2005153186A
Authority
JP
Japan
Prior art keywords
packet
data
input
packet size
memory
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.)
Withdrawn
Application number
JP2003391369A
Other languages
Japanese (ja)
Inventor
Satoshi Kataoka
智 片岡
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.)
Casio Computer Co Ltd
Casio Electronics Co Ltd
Original Assignee
Casio Computer Co Ltd
Casio Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd, Casio Electronics Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2003391369A priority Critical patent/JP2005153186A/en
Publication of JP2005153186A publication Critical patent/JP2005153186A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Bus Control (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printing apparatus which has a memory/IO control part with the function of receiving packets of the same system in a plurality of simultaneously coming received data by one channel together, and at the same time measuring and setting a packet size. <P>SOLUTION: The printing apparatus is equipped with a CPU 11, the memory/IO control part 12 and a memory 13, and receives by controlling input systems of 3 chs of a USB connecting part 19, a LAN connecting part 20 and a parallel connecting part 14. The memory/IO control part 12 consists of an IO control part 27 and a memory control part 28. The IO control part 27 receives data by an 8-bit bus, gathers the data into 64 bits and writes into the memory 13 by DMA by controlling of the memory control part 28. When the packet size is not set yet, a negate time interval of a data reception request signal DREQ1 is measured by a timer counter. It is judged as the reception end of one packet when a timer setting value 11 of not smaller than an intrinsic time and smaller than a time between packet receptions is measured. A value of a packet size counter at the time is set as the packet size. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、印刷装置のデータ受信におけるDMA受信の制御に関するものである。   The present invention relates to control of DMA reception in data reception of a printing apparatus.

従来の印刷装置においては、LAN、セントロニクス、USB等から画像データが同時に入力した時、そのデータ受信は複数のDMAで行われていた。DMAは、Direct Memory Accessの略称であり、DMAはCPUの代わりにデータ転送制御をDMAコントローラで行い、高速にデータ転送を行うものである。
複数の入力系統から同時に画像データが入力した場合、各DMAが画像データの一部を割り振り、順番にアクセスし均等に受信する制御を行っている。つまり、複数のDMAが多数の画像データを扱う制御を行っている。ひとつの画像データパケットをメモリの空き容量等の転送状況などによるそれぞれのデータ量分ずつ複数のDMAで処理する方法である。例えば、これらをバルク転送などにより行っている。
In a conventional printing apparatus, when image data is simultaneously input from a LAN, Centronics, USB or the like, the data reception is performed by a plurality of DMAs. DMA is an abbreviation for Direct Memory Access, and DMA performs data transfer control by a DMA controller instead of a CPU, and performs data transfer at high speed.
When image data is input simultaneously from a plurality of input systems, each DMA allocates a part of the image data, and performs control to access in order and receive evenly. That is, a plurality of DMAs perform control to handle a large number of image data. This is a method in which one image data packet is processed by a plurality of DMAs for each data amount depending on the transfer status such as the free capacity of the memory. For example, these are performed by bulk transfer or the like.

特許文献1は、USBパケットデータのDMA転送において、バルクインエンドポイントの空き容量が通知されるとDMAはUSBパケットデータの転送量に応じて転送し、USBバルクインエンドポイントに書き込むDMA制御装置であり、パケットサイズを転送量に応じたものにして転送する発明である。   Patent Document 1 is a DMA control device that transfers the USB packet data according to the transfer amount of the USB packet data when the free space of the bulk-in endpoint is notified in the DMA transfer of the USB packet data, and writes to the USB bulk-in endpoint. In this invention, the packet size is transferred according to the transfer amount.

また、特許文献2は、USBインタフェースのデータ転送において、DMAの終了割り込みが先に発生した時DMAの受信サイズを大きくし、データ要求が先に発生した時受信サイズを小さくし、受信バッファの利用効率向上を図る。また、複数のデバイスに効率よく転送するため、パケット数、パケットサイズを設定する。
特開2003−256152号公報 特開2001−211227号公報
Further, in Patent Document 2, in USB interface data transfer, the DMA reception size is increased when a DMA end interrupt occurs first, and the reception size is decreased when a data request occurs first. Increase efficiency. In addition, the number of packets and the packet size are set for efficient transfer to a plurality of devices.
Japanese Patent Laid-Open No. 2003-256152 Japanese Patent Laid-Open No. 2001-211227

しかしながら、複数の画像データが同時に来たときに均等に順番に複数のDMAでデータ受信が行われていた為、USBやLANなどのある決まったパケットサイズでデータが送られてくるものでは必ずしも効率がよいわけではなかった。USBの最大パケットサイズは、USB1.1仕様では64バイト、USB2.0仕様では512バイトとなっている。よって、複数のDMAで受信していると効率よく受信できるわけでもなく、印刷が速くなるわけでもないという問題があった。
また、特許文献1、2ともデータ転送量のデータ量、パケットサイズをメモリの空き容量やフレーム内の空き時間などに応じて調整して転送する方法である。つまり、パケットサイズを柔軟に変更するものである。
However, since a plurality of DMAs receive data evenly in order when a plurality of image data arrives at the same time, it is not always efficient if data is sent with a certain packet size such as USB or LAN. Was not good. The maximum USB packet size is 64 bytes in the USB 1.1 specification and 512 bytes in the USB 2.0 specification. Therefore, there is a problem in that when data is received by a plurality of DMAs, it cannot be received efficiently and printing is not accelerated.
Further, both Patent Documents 1 and 2 are methods in which the data amount and the packet size of the data transfer amount are adjusted and transferred in accordance with the free capacity of the memory or the free time in the frame. That is, the packet size is changed flexibly.

本発明は、同時に来た複数の受信データの内の同系統のパケットを1つのチャンネルでまとめて効率よく連続で受信するとともに、パケットサイズを測定して設定するメモリ/IO制御部を有する印刷装置を提供する。   The present invention relates to a printing apparatus having a memory / IO control unit that measures and sets a packet size while efficiently and continuously receiving packets of the same system among a plurality of received data that come simultaneously through one channel. I will provide a.

上記課題は本発明によれば、画像データの複数の外部入力接続手段と、パケットサイズカウンタと入力カウンタでそれぞれ入力データの計数をしながら前記画像データを受信する複数の前記外部入力に対応したチャンネルを持つ受信部を備えるとともに、前記入力カウンタが所定値に達すると前記所定値の前記画像データをDMA転送する複数のチャネルごとの送信部を備え、前記パケットサイズカウンタがパケットサイズの設定値に達すれば、前記画像データの1パケットの受信と前記DMA転送を完了し、次又は他のチャンネルの受信部で他の画像データを受信するもしくは他のチャンネルを停止して同一チャンネルの受信を継続する入出力制御手段と、複数の前記外部入力に対応したチャンネルを備え、前記入出力制御手段の前記送信部からと同じチャンネルで前記画像データの前記DMA転送を記憶手段へ行うメモリ制御手段と、前記DMA転送を受信して画像データを記憶する前記記憶手段とを有する印刷装置により提供される。   According to the present invention, there is provided a plurality of external input connection means for image data, and a plurality of channels corresponding to the plurality of external inputs for receiving the image data while counting the input data by a packet size counter and an input counter, respectively. And a transmission unit for each of a plurality of channels that DMA-transfers the image data of the predetermined value when the input counter reaches a predetermined value, and the packet size counter reaches a set value of the packet size. For example, the reception of one packet of the image data and the DMA transfer are completed, and the next or other channel receiving unit receives another image data or stops another channel and continues receiving the same channel. An output control means; and a plurality of channels corresponding to the external inputs, the transmission of the input / output control means A memory control means for performing the DMA transfer of the image data in the same channel as the color to the storage means is provided by a printing apparatus having said storage means for storing image data to receive the DMA transfer.

入出力制御手段とメモリ制御手段は、メモリ/IO制御部を構成するものであり、画像データを受信して記憶手段にDMA転送する。メモリ/IO制御部内のデータ受信とDMA転送は同じチャンネル(ch)の信号で行われる。例えば1バイトでの受信や64ビットのDMA転送を繰り返しながら、1パケット単位でデータの受信及び転送の制御を行う。   The input / output control means and the memory control means constitute a memory / IO control unit, which receives image data and DMA-transfers it to the storage means. Data reception and DMA transfer in the memory / IO control unit are performed by signals of the same channel (ch). For example, data reception and transfer are controlled in units of one packet while repeating reception by 1 byte and 64-bit DMA transfer.

入力データの計数は外部入力接続手段からのデータ受信要求信号入力の計数で行う入出力制御手段とを有するとする。データ受信要求信号入力はバイト単位で送られてくるのでこれを計数する。
パケットサイズカウンタが比較するパケットサイズの設定値は、あらかじめ設定されている入出力制御手段を有する上記の印刷装置によっても提供される。
Assume that the input data is counted by an input / output control unit that counts data reception request signal inputs from the external input connection unit. Since the data reception request signal input is sent in bytes, it is counted.
The set value of the packet size to be compared by the packet size counter is also provided by the printing apparatus having the preset input / output control means.

また、パケットサイズの設定値は、データ受信要求信号入力の非アクティブ状態の時間を測定するチャンネルに対応したタイマカウンタを備え、タイマカウンタが1パケット受信後の固有の時間以上パケット受信間の時間未満の設定値を計測したときのパケットサイズカウンタの値をパケットサイズの設定値として設定する入出力制御手段を有する上記の印刷装置でも提供される。   The set value of the packet size includes a timer counter corresponding to the channel for measuring the time of inactive state of the data reception request signal input, and the timer counter is a specific time after receiving one packet or more and less than the time between packet reception. Also provided is the above-described printing apparatus having input / output control means for setting the value of the packet size counter when the set value is measured as the set value of the packet size.

タイマカウンタが比較するパケット受信後の固有の時間以上パケット受信間の時間未満の設定値は、あらかじめタイマカウンタに設定されている入出力制御手段を有するとする。パケット受信後にデータ入力ができない固有の時間をタイマカウンタで検出して1パケットの受信完了を判断する。   It is assumed that a setting value that is greater than a specific time after packet reception compared by the timer counter and less than the time between packet receptions has input / output control means set in advance in the timer counter. A unique time during which data cannot be input after receiving a packet is detected by a timer counter to determine the completion of reception of one packet.

本発明によれば、複数の接続部にデータが来ていても1パケットサイズ分のデータを1つのアクセス信号系統でまとめて1つのDMAの1chで連続で受信できるようにしたことにより高速に効率よくデータ受信できる。
また、タイマカウンタによる設定値との比較から1パケットの受信終了時を判断し、このときのパケットサイズカウンタの値を1パケットのサイズとした。よって、自動でパケットサイズを測定し、設定できるようにしたので、予めパケットサイズを設定していなくてもパケット単位の効率よいデータ受信を行うことができる。
According to the present invention, even if data comes to a plurality of connection parts, data for one packet size can be collected by one access signal system and continuously received by one channel of one DMA. Can receive data well.
Also, the end of reception of one packet is determined from comparison with the set value by the timer counter, and the value of the packet size counter at this time is set as the size of one packet. Accordingly, since the packet size can be automatically measured and set, it is possible to efficiently receive data in units of packets even if the packet size is not set in advance.

以下、本発明の実施の形態を図面を参照しながら説明する。
(実施形態1)
図1に本実施形態の印刷装置の構成図を示す。印刷装置は、IFコントローラ10とプリンタエンジン22から構成されている。IFコントローラ10は、プリンタエンジン22と接続している。プリンタエンジン22はオペレーションパネル23と接続している。IFコントローラ10内部には以下のものがある。CPU11は、メモリ/IO制御部12と接続しており、IFコントローラ10内の制御と外部とのインタフェースの制御を行う。メモリ/IO制御部12は、メモリ13、フラッシュROM15、マスクROM16、EEPROM17、EMボード(拡張メモリボード)部18の各メモリと接続しており制御を行う。
Embodiments of the present invention will be described below with reference to the drawings.
(Embodiment 1)
FIG. 1 shows a configuration diagram of a printing apparatus according to the present embodiment. The printing apparatus includes an IF controller 10 and a printer engine 22. The IF controller 10 is connected to the printer engine 22. The printer engine 22 is connected to the operation panel 23. The IF controller 10 includes the following. The CPU 11 is connected to the memory / IO control unit 12 and performs control in the IF controller 10 and interface with the outside. The memory / IO control unit 12 is connected to each memory of the memory 13, the flash ROM 15, the mask ROM 16, the EEPROM 17, and the EM board (expansion memory board) unit 18 to perform control.

また、メモリ/IO制御部12は、パラレル接続部14、USB接続部19、LAN接続部20のI/Oにも接続し画像データの入出力を行う。パラレル接続部14はPC24と接続しセントロニクスでパラレルに入出力を行う。USB接続部19はPC25と接続しUSBで入出力を行う。LAN接続部20はPC26と接続し入出力を行う。パラレル接続部14、USB接続部19、LAN接続部20は、それぞれ外部入力接続手段を構成する。   The memory / IO control unit 12 is also connected to I / Os of the parallel connection unit 14, the USB connection unit 19, and the LAN connection unit 20 to input / output image data. The parallel connection unit 14 is connected to the PC 24 and performs input / output in parallel using Centronics. The USB connection unit 19 is connected to the PC 25 and performs input / output via USB. The LAN connection unit 20 is connected to the PC 26 and performs input / output. The parallel connection unit 14, the USB connection unit 19, and the LAN connection unit 20 each constitute an external input connection unit.

さらに、メモリ/IO制御部12はビデオ制御部21と接続しメモリ13からの画像データの送信の制御を行う。ビデオ制御部21は、メモリ/IO制御部12から画像データを受信しこれをプリンタエンジン22に送信する制御を行う。
よって、IFコントローラ10は、例えば外部のPC24、25、26よりUSBならUSB接続部19、LANならLAN接続部20、セントロニクスならパラレル接続部14を介して画像データを入力される。IFコントローラ10のCPU11は入力された画像データを印刷データとしてメモリ/IO制御部12でメモリ13上に展開する。CPU11は画像データを1ページ分を生成したところでメモリ/IO制御部12でビデオ制御部21に送信しプリンタエンジン22に出力して印刷する。
Further, the memory / IO control unit 12 is connected to the video control unit 21 and controls transmission of image data from the memory 13. The video control unit 21 performs control to receive image data from the memory / IO control unit 12 and transmit it to the printer engine 22.
Accordingly, the IF controller 10 receives image data from the external PCs 24, 25, and 26 via the USB connection unit 19 for USB, the LAN connection unit 20 for LAN, and the parallel connection unit 14 for Centronics, for example. The CPU 11 of the IF controller 10 develops the input image data as print data on the memory 13 by the memory / IO control unit 12. When the CPU 11 generates one page of image data, the CPU 11 transmits the image data to the video control unit 21 through the memory / IO control unit 12 and outputs it to the printer engine 22 for printing.

次に、図2に詳細構成図を示す。詳細構成図は、CPU11とメモリ/IO制御部12、メモリ13、USB接続部19、LAN接続部20、パラレル接続部14の構成を詳しく示したものである。メモリ/IO制御部12は内部をIO制御部27とメモリ制御部28に分けて示す。   Next, FIG. 2 shows a detailed configuration diagram. The detailed configuration diagram shows the configuration of the CPU 11, the memory / IO control unit 12, the memory 13, the USB connection unit 19, the LAN connection unit 20, and the parallel connection unit 14 in detail. The memory / IO control unit 12 is divided into an IO control unit 27 and a memory control unit 28.

IO制御部27から1つの64ビットのDMAデータバスがメモリ制御部28に接続されている。64ビットデータバスは、3つのch(チャンネル)のDMAアクセスの信号で共有して使用する。IO制御部27の内部は、不図示のバイトデータ貯蔵用のバッファ等を3つのchを持つとする。3つのchのDMAアクセスの信号は、それぞれのバッファに対応する。また、不図示の3つのchのパケットサイズカウンタ、パケットサイズの設定値1、設定値2、設定値3を設定するレジスタを有する。データの8ビット入力を計数する3つのchのバイトデータカウンタも備える。バイトデータカウンタは入力カウンタを構成する。   One 64-bit DMA data bus is connected to the memory control unit 28 from the IO control unit 27. The 64-bit data bus is shared by three channels (channels) of DMA access signals. It is assumed that the IO control unit 27 has a buffer for storing byte data (not shown) having three channels. The three channels of DMA access signals correspond to the respective buffers. In addition, it has a packet size counter for three channels (not shown), a register for setting a packet size setting value 1, a setting value 2, and a setting value 3. There is also a 3ch byte data counter that counts 8-bit input of data. The byte data counter constitutes an input counter.

IO制御部27は、USB接続部19、LAN接続部20、パラレル接続部14の信号、データバスの対応部分とパケットサイズカウンタとバイトデータカウンタとバッファで受信部を構成する。バイトデータカウンタとメモリ制御部28に対応する信号、データバスの対応部分で送信部を構成する。   The I / O control unit 27 constitutes a reception unit with signals of the USB connection unit 19, the LAN connection unit 20, and the parallel connection unit 14, corresponding portions of the data bus, a packet size counter, a byte data counter, and a buffer. A transmission unit is constituted by a corresponding part of the data bus corresponding to the byte data counter and the memory control unit 28.

メモリ制御部28は、3つのchのアクセス信号を持つDMAコントローラのはたらきをするものである。IO制御部27のバッファとメモリ13の間をDMAコントローラの制御で高速に転送する。
CPU11は、メモリ/IO制御部12内のメモリ制御部28と64ビットのバスで接続されている。メモリ13は、メモリ/IO制御部12内のメモリ制御部28と64ビットのバスで接続されている。
The memory control unit 28 functions as a DMA controller having three channel access signals. Data is transferred between the buffer of the IO controller 27 and the memory 13 at high speed under the control of the DMA controller.
The CPU 11 is connected to the memory control unit 28 in the memory / IO control unit 12 by a 64-bit bus. The memory 13 is connected to the memory control unit 28 in the memory / IO control unit 12 by a 64-bit bus.

USB接続部19、LAN接続部20、パラレル接続部14からはそれぞれ8ビットのデータバスが出ており合流してメモリ/IO制御部12内のIO制御部27と接続されている。8ビットデータバスは共有する。
USB接続部19、LAN接続部20、パラレル接続部14からはそれぞれデータ受信要求信号を出力し、IO制御部27からは受け入れ可能であればアクノリッジ信号がそれぞれ返される。IO制御部27は、DREQ信号を受け付けない機能も持つ。USB接続部19はデータ受信要求信号が“DREQ1”、アクノリッジ信号が“DACK1”である。LAN接続部20はデータ受信要求信号が“DREQ2”、アクノリッジ信号が“DACK2”である。パラレル接続部14はデータ要求信号が“DREQ3”、アクノリッジ信号が“DACK3”である。
An 8-bit data bus is provided from each of the USB connection unit 19, the LAN connection unit 20, and the parallel connection unit 14, and is joined to the IO control unit 27 in the memory / IO control unit 12. The 8-bit data bus is shared.
The USB connection unit 19, the LAN connection unit 20, and the parallel connection unit 14 each output a data reception request signal, and the IO control unit 27 returns an acknowledge signal if it is acceptable. The IO control unit 27 also has a function of not accepting the DREQ signal. The USB connection unit 19 has a data reception request signal “DREQ1” and an acknowledge signal “DACK1”. The LAN connection unit 20 has a data reception request signal “DREQ2” and an acknowledge signal “DACK2”. The parallel connection unit 14 has a data request signal “DREQ3” and an acknowledge signal “DACK3”.

次にメモリ/IO制御部12内のIO制御部27とメモリ制御部28間の信号を示す。3つのchのDMAアクセスの信号は、IO制御部27への外部からのアクセスと信号が1対1で対応している。DMAデータ受信要求信号とそのアクノリッジ信号が3組ある。これらは、データ受信要求信号とは独立している。DMAデータ受信要求信号とそのアクノリッジ信号は、“DMAREQ1”と“DMAACK1”、“DMAREQ2”と“DMAACK2”と“DMAREQ3”と“DMAACK3”の3組である。   Next, signals between the IO control unit 27 and the memory control unit 28 in the memory / IO control unit 12 are shown. The three channels of DMA access signals have a one-to-one correspondence with external access to the IO control unit 27. There are three sets of DMA data reception request signals and their acknowledge signals. These are independent of the data reception request signal. The DMA data reception request signal and its acknowledge signal are three sets of “DMAREQ1” and “DMAACK1”, “DMAREQ2”, “DMAACK2”, “DMAREQ3”, and “DMAACK3”.

3つのchの信号系統は1系、2系、3系で系が分かれている。1系はUSB接続部19からの入力を扱い、DREQ1信号、DACK1信号、DMAREQ1信号、DMAACK1信号である。2系はLAN接続部20からの入力を扱い、DREQ2信号、DACK2信号、DMAREQ2信号、DMAACK2信号である。3系はパラレル接続部14からの入力を扱い、DREQ3信号、DACK3信号、DMAREQ3信号、DMAACK3信号である。   The three ch signal systems are divided into 1 system, 2 system, and 3 system. System 1 handles input from the USB connection unit 19 and includes a DREQ1 signal, a DACK1 signal, a DMAREQ1 signal, and a DMAACK1 signal. System 2 handles input from the LAN connection unit 20 and includes a DREQ2 signal, a DACK2 signal, a DMAREQ2 signal, and a DMAACK2 signal. The third system handles input from the parallel connection unit 14 and includes a DREQ3 signal, a DACK3 signal, a DMAREQ3 signal, and a DMAACK3 signal.

よって、同じ系の番号の信号で1つのパケットの受信を扱う。DREQ1信号で受信したものはDMAREQ1信号で転送する。DREQ1信号で受信したものはDMAREQ2信号で転送しない。3つのchともデータ入力されている場合は、パケットごとにchを変えて処理していくかもしくは連続して同chのパケットを処理する。   Therefore, reception of one packet is handled with signals of the same system number. What is received by the DREQ1 signal is transferred by the DMAREQ1 signal. What is received with the DREQ1 signal is not transferred with the DMAREQ2 signal. When data is input to all three channels, processing is performed by changing the channel for each packet, or packets of the same channel are processed continuously.

図2の詳細構成図の動作をUSB接続部19を例に説明する。USB機能を持つPC25が接続されデータ送信を受けるとUSB接続部19は、8ビットずつの画像データを受信するようにメモリ/IO制御部12内のIO制御部27に対してデータ受信要求信号DREQ1をLにアサートする。IO制御部27はデータ受信が可能であればアクノリッジ信号DACK1をLにアサートして返す。USB接続部19は、データバスで画像データをまず8ビットデータで8回、IO制御部27に送信する。IO制御部27は、8ビットデータを8回受信する。   The operation of the detailed configuration diagram of FIG. 2 will be described using the USB connection unit 19 as an example. When a PC 25 having a USB function is connected and receives data transmission, the USB connection unit 19 sends a data reception request signal DREQ1 to the IO control unit 27 in the memory / IO control unit 12 so as to receive 8-bit image data. Is asserted L. If the data can be received, the IO control unit 27 asserts and returns an acknowledge signal DACK1 to L. The USB connection unit 19 first transmits image data to the IO control unit 27 eight times as 8-bit data on the data bus. The IO control unit 27 receives 8-bit data eight times.

USB接続部19は1回の8ビットデータ送信ごとにDREQ1信号をアサートしてデータ送信後ネゲートし、IO制御部27もDREQ1信号を受けてDACK1信号をアサートしデータ受信後にDREQ1のネゲートを受けてDACK1信号をネゲートする。次にIO制御部27は、64ビットのデータがそろったところでメモリ制御部28に対してDMAデータ受信要求信号DMAREQ1をLにアサートして64ビットデータを引き取るように要求する。メモリ制御部28は、データ受信可能であればアクノリッジ信号DMAACK1をLにアサートしてIO制御部27に返す。IO制御部27は64ビットバスで64ビットデータをDMAで送信する。メモリ制御部28は受信した64ビットデータを引き続きDMAで64ビットバスを使ってメモリ13に書き込む。IO制御部27は、DMAREQ1信号をネゲートし、メモリ制御部28もDMAACK1信号をネゲートする。このようにして、画像データはメモリ13に保存される。これが繰り返され1パケットの画像データ受信が行われる。   The USB connection unit 19 asserts the DREQ1 signal every time 8-bit data transmission and negates it after data transmission. The IO control unit 27 also receives the DREQ1 signal, asserts the DACK1 signal, and receives the DREQ1 negation after receiving the data. Negates the DACK1 signal. Next, when the 64-bit data is ready, the IO control unit 27 requests the memory control unit 28 to assert the DMA data reception request signal DMAREQ1 to L and take the 64-bit data. If the data can be received, the memory control unit 28 asserts the acknowledge signal DMAACK 1 to L and returns it to the IO control unit 27. The IO control unit 27 transmits 64-bit data by DMA using a 64-bit bus. The memory control unit 28 continuously writes the received 64-bit data in the memory 13 by DMA using a 64-bit bus. The IO control unit 27 negates the DMAREQ1 signal, and the memory control unit 28 also negates the DMAACK1 signal. In this way, the image data is stored in the memory 13. This is repeated to receive one packet of image data.

次に、図3〜図5に外部との各接続部からメモリ/IO制御部12内のIO制御部27でのデータの受信とそのデータのIO制御部27及びメモリ制御部28からメモリ13へのDMA転送のフローチャートを示す。
これはCPU11及びメモリ/IO制御部12の制御である。1つのパケットを1つのchのDMAアクセスの信号で担当して1パケット分単位で処理する。DMAのchを変えるときは1パケット単位で行う。つまり、パケットの途中ではchの変更は行わない。1つの外部入力接続手段から連続してパケットデータを受信するときは、他のchのデータ受信要求信号を受け付けないことにより行う。
Next, in FIG. 3 to FIG. 5, data is received by the IO control unit 27 in the memory / IO control unit 12 from each connection unit to the outside, and the data from the IO control unit 27 and the memory control unit 28 to the memory 13. 2 shows a flowchart of DMA transfer.
This is the control of the CPU 11 and the memory / IO control unit 12. One packet is handled by one channel DMA access signal and processed in units of one packet. When changing the DMA channel, it is performed in units of one packet. That is, ch is not changed in the middle of the packet. When continuously receiving packet data from one external input connection means, it is performed by not accepting data reception request signals of other channels.

まず、電源が入る(S10)。パケットサイズカウンタCOUNT1、COUNT2、COUNT3に初期値0をセットする。また、パケットサイズカウンタと比較するパケットサイズの設定値をchごとに設定値1、設定値2、設定値3を設定する。入力されるパケットサイズはすでに分かっているとする。あるいはオペレーションパネルからオペレータが値を入力したときにその値がセットされる。さらに、データを64ビットにそろえるため8ビットデータを8回受信することをカウントするバイトデータカウンタCUN1、CUN2、CUN3に初期値0をセットする(S11)。   First, the power is turned on (S10). An initial value 0 is set in the packet size counters COUNT1, COUNT2, and COUNT3. Also, the setting value 1, the setting value 2, and the setting value 3 are set for each channel as the setting value of the packet size to be compared with the packet size counter. Assume that the input packet size is already known. Alternatively, the value is set when the operator inputs a value from the operation panel. Further, in order to align the data to 64 bits, an initial value 0 is set in the byte data counters CUN1, CUN2, and CUN3 that count the reception of 8 bits of data 8 times (S11).

USB接続部19のデータ受信要求信号DREQ1信号の入力を受け付けるかを判断する。メモリ/IO制御部12内のchの入力の制御のためにDREQ信号の入力を受け付けなくすることができる。DREQ1信号の入力を受け付けない場合つまり、DREQ1信号をストップする場合はS14に行く。(S13)DREQ1信号を受け付ける場合つまりDREQ1をストップしない場合は、DREQ1信号がLになりアサートされ、データ入力が要求されたか判断する。DREQ1信号がLでない場合はS14に行く。つまり、他系の接続部の処理に行く。DREQ1信号がLであればAを通してS18に行く(S13)。   It is determined whether or not the input of the data reception request signal DREQ1 signal of the USB connection unit 19 is accepted. In order to control the input of the ch in the memory / IO control unit 12, the input of the DREQ signal can be disabled. When the input of the DREQ1 signal is not accepted, that is, when the DREQ1 signal is stopped, the process goes to S14. (S13) When the DREQ1 signal is received, that is, when DREQ1 is not stopped, the DREQ1 signal is asserted as L, and it is determined whether data input is requested. If the DREQ1 signal is not L, the process goes to S14. That is, it goes to the processing of the connection part of the other system. If the DREQ1 signal is L, the process goes to S18 through A (S13).

DREQ1信号がLであれば、パケットサイズカウンタCOUNT1の値を1を加えて保持する。次にDACK1信号をLにアサ−トしてUSB接続部19に返す。バイトデータカウンタCUN1の値を1を加えて保持する。(S18)次にDREQ1信号がHになりネゲートしたかを判断する。DREQ1信号がHでない場合は、この判断を繰り返す(S19)。DREQ1信号がHになりネゲートした場合は、DACK1信号をHにしてネゲートする。そして、8ビットのデータ受信が完了する(S20)。   If the DREQ1 signal is L, the value of the packet size counter COUNT1 is incremented by 1 and held. Next, the DACK 1 signal is asserted to L and returned to the USB connection unit 19. The value of the byte data counter CUN1 is incremented by 1 and held. (S18) Next, it is determined whether the DREQ1 signal becomes H and negated. If the DREQ1 signal is not H, this determination is repeated (S19). When the DREQ1 signal becomes H and negates, the DACK1 signal is set to H and negated. Then, 8-bit data reception is completed (S20).

次に、バイトデータカウンタCUN1が8かを判断する。64ビット分データが貯まったかを判断する。バイトデータカウンタCUN1が8の場合はS22に行く。バイトデータカウンタCUN1が8でない場合はS25に行く(S25)。
バイトデータカウンタCUN1が8でない場合、パケットサイズカウンタCOUNT1がパケットサイズの設定値1に等しいかを判断する。等しい場合は、パケットサイズの設定値1と等しいパケットサイズのパケットデータの後述するDMAデータ転送が完了した場合、つまり1パケットの受信が完了した場合であり、S26に行く。パケットサイズカウンタ1がパケットサイズの設定値1に等しくない場合は、Dを通してS12に戻り、8ビットのデータ入力及びDMA転送を繰り返すことになる(S25)。パケットサイズカウンタCOUNT1がパケットサイズの設定値1に等しい場合は、パケットサイズカウンタCOUNT1を0に初期化する。そしてEを通してS14に行き他系の接続部の処理に行く(S26)。
Next, it is determined whether the byte data counter CUN1 is 8. It is determined whether data of 64 bits has been accumulated. If the byte data counter CUN1 is 8, go to S22. If the byte data counter CUN1 is not 8, go to S25 (S25).
If the byte data counter CUN1 is not 8, it is determined whether the packet size counter COUNT1 is equal to the set value 1 of the packet size. If equal, this is the case when DMA data transfer, which will be described later, of packet data having a packet size equal to the set value 1 of the packet size is completed, that is, when reception of one packet is completed, and the process goes to S26. If the packet size counter 1 is not equal to the set value 1 of the packet size, the process returns to S12 through D, and the 8-bit data input and DMA transfer are repeated (S25). When the packet size counter COUNT1 is equal to the packet size setting value 1, the packet size counter COUNT1 is initialized to zero. Then, it goes to S14 through E and goes to the processing of the connecting part of the other system (S26).

S21でバイトデータカウンタCUN1が8である場合は、DMAREQ1信号をLにしてアサートし、メモリ制御部28に送る(S22)。次に、DMAACK1信号がアサートされLでメモリ制御部28から返ってくるかを判断する。DMAACK1信号が返ってこなければ、この判断を繰り返し行う。(S23)DMAACK1=Lになると、64ビットのデータが一括してメモリ制御部28の制御でメモリ13に高速にDMA転送で書き込まれる。そして、DMAREQ1信号をHにネゲートする。また、バイトデータカウンタCUN1を0に初期化する。その後に上述したS25に行く。   If the byte data counter CUN1 is 8 in S21, the DMAREQ1 signal is asserted to L and sent to the memory control unit 28 (S22). Next, it is determined whether the DMAACK1 signal is asserted and returned from the memory control unit 28 at L level. If the DMAACK1 signal is not returned, this determination is repeated. (S23) When DMAACK1 = L, 64-bit data is collectively written into the memory 13 by DMA transfer under the control of the memory control unit 28. Then, the DMAREQ1 signal is negated to H. Also, the byte data counter CUN1 is initialized to zero. Thereafter, the process goes to S25 described above.

以上がメモリ/IO制御部12のUSB接続部19からの1パケットの受信の処理である。
S26以降のEから始まる処理はDREQ2信号の系、Fから始まる処理はDREQ3信号の系の処理を上記のDREQ1信号の系の処理と同じく行う。S14、S15、S27からS35のDREQ2信号の系の処理の次にFを通してDREQ3信号の系の処理をする。S16、S17、S36からS44のDREQ3信号の系の処理の次にはDを通してDREQ1信号の系の処理に戻る。他の系の処理の説明は省略する。
The above is the process of receiving one packet from the USB connection unit 19 of the memory / IO control unit 12.
The processing starting from E in S26 and subsequent steps is the same as the processing of the DREQ2 signal system, and the processing starting from F is the same processing as the processing of the DREQ1 signal system. Following the processing of the DREQ2 signal system of S14, S15, S27 to S35, the processing of the DREQ3 signal system is performed through F. After the processing of the DREQ3 signal system in S16, S17, and S36 to S44, the process returns to the DREQ1 signal system processing through D. A description of the processing of other systems is omitted.

同じchで多数のパケットを処理する場合は、他のchのDREQ信号を受け付けないで受信chに専念して使用することができる。例えばDREQ1信号の系のchで連続してパケット受信を行う場合は、S26からEを通してS14に進んでもDREQ2信号を受け付けないためS16に行き、S16でもDREQ3信号を受け付けないためDREQ1信号の系のchのS12に処理は戻る。よって、連続してパケット受信を行うことができる。複数のchにデータが来ている場合も同じ制御をすることができる。

(実施形態2)
次に、本発明の実施形態2について説明する。本例は、送信されてくるパケットサイズが分かっていない場合のパケットサイズ測定及び設定方法と受信方法である。
When a large number of packets are processed in the same channel, the DREQ signals of other channels can be used without being accepted and used exclusively by the receiving channel. For example, when packet reception is continuously performed using the DREQ1 signal system ch, even if the process proceeds from S26 to E through S14, the DREQ2 signal is not accepted, so the process proceeds to S16, and even the DREQ3 signal is not accepted even in S16, so the DREQ1 signal system ch. The process returns to S12. Therefore, continuous packet reception can be performed. The same control can be performed when data is coming to a plurality of channels.

(Embodiment 2)
Next, Embodiment 2 of the present invention will be described. This example is a packet size measurement / setting method and reception method when the size of a transmitted packet is unknown.

IO制御部27に各系のタイマカウンタ1、2、3を設ける。不図示のタイマカウンタ1、2、3はそれぞれ比較するタイマ設定値11、22、33を保持するレジスタを持つ。
図6にパケットデータを受信するときのDREQ1信号と8ビットデータバスとタイマ設定値11の関係を示す。同図に示すように、1パケットの受信と1パケットの受信の間には、一定の時間以上時間が空くことを利用する。
The IO control unit 27 is provided with timer counters 1, 2, and 3 for each system. Timer counters 1, 2, and 3 (not shown) have registers for holding timer setting values 11, 22, and 33 to be compared, respectively.
FIG. 6 shows the relationship between the DREQ1 signal, the 8-bit data bus, and the timer set value 11 when receiving packet data. As shown in the figure, it is used that a certain time or more is left between reception of one packet and reception of one packet.

データ入力の空白時間つまり、DREQ1信号が1パケット受信終了後にネゲートされて次のパケットの受信でアサートするまでにパケット受信後に同図に示す固有の時間以上でパケット受信間の時間以下の時間がかかることを利用する。この固有の時間は、DREQ1信号が8ビットのデータの繰り返しの受信でLになりその後Hになる動作を繰り返すが、このときのDREQ1信号が合い間にHになる時間よりも少なくとも長い時間であり、このDREQ1信号の8ビットデータ受信の合い間にHになることがなくなったことを確認できる時間以上である。例えば、8ビットデータの繰り返しの受信中の合い間にDREQ1信号がHになる周期の時間、つまりHになっている時間を含んだ周期の時間の10回分の時間以上などである。   Data input blank time, that is, after the packet is received, the DREQ1 signal is negated after receiving one packet and asserted when the next packet is received. Take advantage of that. This unique time repeats the operation in which the DREQ1 signal becomes L when the 8-bit data is repeatedly received and then becomes H, but is at least longer than the time when the DREQ1 signal becomes H in the meantime. , It is longer than the time when it can be confirmed that the signal does not become H during the reception of the 8-bit data of the DREQ1 signal. For example, the period of time in which the DREQ1 signal becomes H during the time during which the 8-bit data is repeatedly received, that is, the time of 10 times or more of the period including the time when the signal is H, or the like.

この固有の時間とパケット受信間の時間は、上記の他、パケットに依存するものでなくハードウェアもしくはソフトウェア等によるものである。この固有の時間とパケット受信間の時間は、初めからわかっているものである。また、この固有の時間はパケット受信間の時間未満であり、両者がほぼ等しくなることもある。   In addition to the above, the unique time and the time between packet receptions are not dependent on the packet but are based on hardware or software. This inherent time and the time between packet receptions are known from the beginning. Also, this inherent time is less than the time between packet receptions, and both may be substantially equal.

よって、タイマカウンタでDREQ1信号のネゲート時間をカウントして計測し固有の時間以上ネゲートしていることを認識することにより、1パケットの受信終了を認識する。そして、そのときのパケットサイズカウンタCOUNT1の値をパケットサイズとし、パケットサイズの設定値1に設定する。パケットサイズカウンタCOUNT1の値は、1パケット受信してカウントしたままの値であり、1パケットのサイズである。   Therefore, the reception end of one packet is recognized by recognizing that the negation time of the DREQ1 signal is counted and measured by the timer counter and the negation is over a specific time. Then, the value of the packet size counter COUNT1 at that time is set as the packet size, and is set to the set value 1 of the packet size. The value of the packet size counter COUNT1 is a value as it is received and counted and is the size of one packet.

タイマカウンタの設定値であるタイマ設定値11は、上記のパケット受信後の固有の時間以上でパケット受信間の時間未満の時間を設定する。タイマ設定値11の範囲を同図に示す。タイマカウンタがタイマ設定値11の分をカウントしてDREQ1信号のネゲート時間が固有の時間以上ネゲートしていることを認識することにより、1パケットの受信終了を認識する。1パケットの受信終了を認識したときにパケットサイズカウンタCOUNT1の値をパケットサイズとしてパケットサイズの設定値1に上書きして書き換える。これにより、パケットサイズの測定と設定が行われる。他系も同等である。   A timer setting value 11 that is a setting value of the timer counter sets a time that is equal to or more than a specific time after the packet reception and less than the time between packet receptions. The range of the timer set value 11 is shown in FIG. When the timer counter counts the timer set value 11 and recognizes that the negation time of the DREQ1 signal is negated for a specific time or more, the reception end of one packet is recognized. When recognizing the end of reception of one packet, the value of the packet size counter COUNT1 is overwritten with the set value 1 of the packet size as the packet size and rewritten. As a result, the packet size is measured and set. Other systems are equivalent.

よって、パケットサイズがあらかじめわからなくてもパケットサイズ認識後は、パケット単位でデータ受信を効率よく行う。同じ系のchに同じパケットサイズでデータが送信されてくる場合に有効である。
次に、図7〜図10にフローチャートを示す。
Therefore, even if the packet size is not known in advance, after the packet size is recognized, data reception is efficiently performed in units of packets. This is effective when data is transmitted with the same packet size to the same channel.
Next, flowcharts are shown in FIGS.

先ず、電源をONする(S50)。パケットサイズカウンタCOUNT1、2、3に初期値0をセットする。バイトデータカウンタCUN1、CUN2、CUN3を初期値0に設定する。COUNT1、2、3と比較するパケットサイズの設定値1、2、3にそれぞれのパケットサイズ仮設定値を設定する。つまり、任意の仮パケットサイズをセットする。この設定するパケットサイズ仮設定値には、予想されるパケットサイズより相当大きい値をセットする。タイマカウンタ1、2、3のタイマ設定値11、22、23にパケット書き込み後のDREQ信号のネゲート後の固有の時間以上でパケット受信間の時間未満の時間を設定する。また、タイマカウンタ1、2、3を0にセットする(S51)。   First, the power is turned on (S50). The initial value 0 is set in the packet size counters COUNT1, 2, and 3. The byte data counters CUN1, CUN2, and CUN3 are set to an initial value 0. The packet size temporary setting values are set in the packet size setting values 1, 2, and 3 to be compared with COUNT 1, 2, and 3, respectively. That is, an arbitrary temporary packet size is set. As the packet size temporary setting value to be set, a value considerably larger than the expected packet size is set. The timer setting values 11, 22, and 23 of the timer counters 1, 2, and 3 are set to a time that is longer than the inherent time after the negation of the DREQ signal after writing the packet and less than the time between packet receptions. Also, the timer counters 1, 2, and 3 are set to 0 (S51).

次に、DREQ1信号を受け付けるかを判断する。DREQ1信号の入力を受け付けない場合つまり、DREQ1信号をストップする場合はUSB接続部19からの入力の処理はなくS60に行く(S52)。
DREQ1信号を受け付ける場合は、DREQ1信号がLにアサートされているかを判断する(S53)。DREQ1信号がLにアサートされた場合は、Aを通してS76からS84までとS52、S53で実施形態1の図3のS18からS26までとS12、S13と同じ処理をする。つまり、データ受信とDMAによるメモリ13へのデータ転送を行う。ただし、S83では1パケット目の受信では、パケットサイズ仮設定値として予想されるパケットサイズより相当大きい値をパケットサイズの設定値1にセットしているので判断はNになる。1パケット受信後にパケットサイズの測定結果が出てパケットサイズの設定値1が上書きされるのでそれから、パケットサイズカウンタCOUNT1とパケットサイズの設定値1が等しくなり、1パケットの受信を終了する場合が出てくる。
Next, it is determined whether to accept the DREQ1 signal. When the input of the DREQ1 signal is not accepted, that is, when the DREQ1 signal is stopped, the input from the USB connection unit 19 is not processed, and the process goes to S60 (S52).
When accepting the DREQ1 signal, it is determined whether the DREQ1 signal is asserted to L (S53). When the DREQ1 signal is asserted to L, the same processes as S12 and S13 are performed through S through S76 to S84, S52 and S53, and S18 through S26 of FIG. That is, data reception and data transfer to the memory 13 by DMA are performed. However, in S83, in the reception of the first packet, since the value substantially larger than the expected packet size is set as the packet size setting value 1 in the reception of the first packet size, the determination is N. After receiving one packet, the packet size measurement result is output and the packet size setting value 1 is overwritten. Then, the packet size counter COUNT1 is equal to the packet size setting value 1, and the reception of one packet may end. Come.

尚、S77でDREQ1信号がHのときS78に行き処理が続くが、パケット受信中はS53までにUSB接続部19からのDREQ1信号がLにアサートされているとする。よって、S53でDREQ1信号がLにアサートされていなければ、もしくはネゲートされていれば、1パケットのデータの受信が終了したということである。ただし、パケット受信開始前は除く。ここから、パケットサイズ決定のルーチンとなる。   When the DREQ1 signal is H in S77, the process goes to S78, and the processing continues. However, it is assumed that the DREQ1 signal from the USB connection unit 19 is asserted to L by S53 during packet reception. Therefore, if the DREQ1 signal is not asserted to L in S53 or is negated, it means that reception of one packet of data has been completed. However, before the start of packet reception. From here, it becomes a routine for determining the packet size.

まず、パケットサイズの設定値1にパケットサイズカウンタCOUNT1からリードした値をライト済みつまり上書き済みか判断する。これは後述するS58でライトするものである。後述するS54からS59のタイマカウンタ1によるカウントを繰り返し、ライト済みになった場合は、S60に行く。これはパケットサイズの測定が終わりパケットサイズの設定値1に上書きされたということである。ライト済みかどうかはフラグを用いて判断してよい。(S54)ライト済みでない場合は、DREQ1信号が過去にLになったことがあるか判断する。データ入力要求があったかを判断する。現在のDREQ1=Hが電源ON以来ずっと継続されているものではないことを確認する。DREQ1信号がLになったことがない場合は、S60に行く(S55)。   First, it is determined whether the value read from the packet size counter COUNT1 has been written, that is, overwritten, to the packet size setting value 1. This is written in S58 described later. When counting by the timer counter 1 from S54 to S59 to be described later is repeated and writing is completed, the process goes to S60. This means that the packet size measurement is over and the packet size setting value 1 is overwritten. Whether it has been written may be determined using a flag. (S54) If it has not been written, it is determined whether the DREQ1 signal has become L in the past. Determine whether there was a data input request. Confirm that the current DREQ1 = H has not been continued since the power was turned on. If the DREQ1 signal has never become L, the process goes to S60 (S55).

DREQ1信号が過去にLになったことがある場合、タイマカウンタ1に1を加える。DREQ1信号がHである時間つまり、パケット受信の間の時間もしくは1パケット受信後の固有の時間の計測を行う(S56)。
次に、タイマカウンタ1の値が設定されたタイマ設定値11より大きいか判断する。大きくなければS59に行く(S57)。タイマカウンタ1の値がタイマ設定値11より大きければ、受信後の固有の時間が経過したので1パケットの受信が終了したと判断する。そして、パケットサイズカウンタCOUNT1の値をリードし、パケットサイズの設定値1に上書きする。これでパケットサイズが決定したことになり、記録される。そして、パケットサイズカウンタCOUNT1に0をセットする。パケットサイズカウンタCOUNT1は、これまでは、パケットサイズ測定用であったが以後はパケットサイズ比較用としては働く。
When the DREQ1 signal has become L in the past, 1 is added to the timer counter 1. The time when the DREQ1 signal is H, that is, the time during packet reception or the specific time after reception of one packet is measured (S56).
Next, it is determined whether the value of the timer counter 1 is greater than the set timer set value 11. If not, go to S59 (S57). If the value of the timer counter 1 is greater than the timer set value 11, it is determined that the reception of one packet has been completed because a specific time after reception has elapsed. Then, the value of the packet size counter COUNT1 is read and overwritten on the set value 1 of the packet size. The packet size is now determined and recorded. Then, 0 is set in the packet size counter COUNT1. The packet size counter COUNT1 has been used for measuring the packet size so far, but thereafter it is used for comparing the packet size.

次に、DREQ1信号がLか判断する(S59)。DREQ1信号がLであった場合、新たなパケットのデータ受信要求があったということであり、Aを通してS76に行き、新たにパケットデータの受信が始まる。ただし、このルートは原則的には使われない。DREQ1信号がLでなかった場合は、S54に行きタイマカウンタによる計測を繰り返す。DREQ1信号がHである状態が継続しているのでタイマカウンタの計測を継続する(S59)。   Next, it is determined whether the DREQ1 signal is L (S59). If the DREQ1 signal is L, it means that there has been a request for receiving a new packet data, and the process goes to S76 through A to start receiving new packet data. However, this route is not used in principle. If the DREQ1 signal is not L, the process goes to S54 to repeat the measurement by the timer counter. Since the state where the DREQ1 signal is H continues, measurement of the timer counter is continued (S59).

以上でパケットサイズの設定値が設定されて以降の処理は実施形態1と同じになる。
DREQ1信号の系のchでデータ入力がない場合などのときは、S60からS67とS85からS93のDREQ2信号系のchつまりLAN接続部20からの入力で同じ処理をする。DREQ2信号系のchでデータ入力がない場合などのときは、S68からS75とS94からS102のDREQ3信号系のchつまりパラレル接続部14からの入力でも同じ処理をする。
The processing after the setting value of the packet size is set as described above is the same as that of the first embodiment.
When there is no data input in the channel of the DREQ1 signal system, the same processing is performed with the DREQ2 signal system channel of S60 to S67 and S85 to S93, that is, the input from the LAN connection unit 20. When there is no data input in the DREQ2 signal system ch, the same processing is performed for the DREQ3 signal system ch in S68 to S75 and S94 to S102, that is, the input from the parallel connection unit 14.

1つのch、例えばDREQ1信号の系のchでパケットデータを連続して受信する場合は、他系のデータ受信要求であるDREQ2信号、DREQ3信号を受け付けずに処理する。これらは実施形態1と同じである。
尚、タイマカウンタの代わりに、パケット単位のストローブ信号がある場合は、このストローブ信号のネゲートを持って1パケットの受信の終了を判断し、そのときのパケットサイズカウンタの値をパケットサイズとしてもよい。
When packet data is continuously received by one channel, for example, a channel of the DREQ1 signal system, processing is performed without receiving the DREQ2 signal and the DREQ3 signal, which are data reception requests of other systems. These are the same as in the first embodiment.
If there is a strobe signal in units of packets instead of the timer counter, the end of reception of one packet is determined by negating the strobe signal, and the value of the packet size counter at that time may be used as the packet size. .

また、タイマカウンタは共有し、タイマ設定値11、22、33のレジスタはIO制御部27内に設けてもよい。   Further, the timer counter may be shared, and the registers of the timer set values 11, 22, and 33 may be provided in the IO control unit 27.

本発明の印刷装置のシステム構成図である。1 is a system configuration diagram of a printing apparatus according to the present invention. メモリI/Oを中心に、システムの詳細構成を示す図である。It is a figure which shows the detailed structure of a system centering on memory I / O. 本例のパケットサイズ設定済みの場合のフローチャートである。It is a flowchart in case the packet size has been set in this example. 本例のパケットサイズ設定済みの場合のフローチャートである。It is a flowchart in case the packet size has been set in this example. 本例のパケットサイズ設定済みの場合のフローチャートである。It is a flowchart in case the packet size has been set in this example. 本例のタイマ設定値を説明する図である。It is a figure explaining the timer setting value of this example. パケットサイズ自動測定及び設定の処理を示すフローチャ−トである。5 is a flowchart showing packet size automatic measurement and setting processing. パケットサイズ自動測定及び設定の処理を示すフローチャ−トである。5 is a flowchart showing packet size automatic measurement and setting processing. パケットサイズ自動測定及び設定の処理を示すフローチャ−トである。5 is a flowchart showing packet size automatic measurement and setting processing. パケットサイズ自動測定及び設定の処理を示すフローチャ−トである。5 is a flowchart showing packet size automatic measurement and setting processing.

符号の説明Explanation of symbols

10・・・IFコントローラ
11・・・CPU
12・・・メモリ/IO制御部12
13・・・メモリ
14・・・パラレル接続部
15・・・FLASHROM
16・・・MASKROM
17・・・EEPROM
18・・・EMボード部
19・・・USB接続部
20・・・LAN接続部
21・・・ビデオ制御部
22・・・プリンタエンジン
23・・・オペレーションパネル
24、25、26・・・PC
27・・・IO制御部
28・・・メモリ制御部

10 ... IF controller 11 ... CPU
12: Memory / IO control unit 12
13 ... Memory 14 ... Parallel connection 15 ... FLASHROM
16 ... MASKROM
17 ... EEPROM
18 ... EM board 19 ... USB connection 20 ... LAN connection 21 ... Video control unit 22 ... Printer engine 23 ... Operation panels 24, 25, 26 ... PC
27: IO control unit 28: Memory control unit

Claims (5)

画像データの複数の外部入力接続手段と、
パケットサイズカウンタと入力カウンタでそれぞれ入力データの計数をしながら前記画像データを受信する複数の前記外部入力に対応したチャンネルを持つ受信部を備えるとともに、前記入力カウンタが所定値に達すると前記所定値の前記画像データをDMA転送する複数のチャネルごとの送信部を備え、前記パケットサイズカウンタがパケットサイズの設定値に達すれば、前記画像データの1パケットの受信と前記DMA転送を完了し、又は他のチャンネルの受信部で他の画像データを受信し、若しくは他のチャンネルを停止して同一チャンネルの受信を継続する入出力制御手段と、
複数の前記外部入力に対応したチャンネルを備え、前記入出力制御手段の前記送信部からと同じチャンネルで前記画像データの前記DMA転送を記憶手段へ行うメモリ制御手段と、
前記DMA転送を受信して画像データを記憶する前記記憶手段と、
を有することを特徴とする印刷装置。
A plurality of external input connection means for image data;
A receiving unit having a plurality of channels corresponding to the external inputs for receiving the image data while counting input data by a packet size counter and an input counter, respectively, and the predetermined value when the input counter reaches a predetermined value; A transmission unit for each of a plurality of channels for DMA transfer of the image data, and when the packet size counter reaches a set value of the packet size, reception of one packet of the image data and the DMA transfer are completed, or other Input / output control means for receiving other image data at the receiving section of the channel, or stopping other channels and continuing reception of the same channel;
A memory control unit comprising a plurality of channels corresponding to the external inputs, and performing the DMA transfer of the image data to the storage unit through the same channel as the transmission unit of the input / output control unit;
The storage means for receiving the DMA transfer and storing image data;
A printing apparatus comprising:
前記入力データの計数は前記外部入力接続手段からのデータ受信要求信号入力の計数で行う前記入出力制御手段とを有することを特徴とする請求項1記載の印刷装置。   The printing apparatus according to claim 1, further comprising: the input / output control unit configured to count the input data by counting data reception request signals input from the external input connection unit. 前記パケットサイズの設定値は、あらかじめ設定されている入出力制御手段を有することを特徴とする請求項1、又は2記載の印刷装置。   3. The printing apparatus according to claim 1, wherein the set value of the packet size has input / output control means set in advance. 前記パケットサイズの設定値は、前記データ受信要求信号入力の非アクティブ状態の時間を測定する前記チャンネルに対応したタイマカウンタを備え、前記タイマカウンタが1パケット受信後の固有の時間以上パケット受信間の時間未満の設定値を計測したときのパケットサイズカウンタの値を前記パケットサイズの設定値として設定する前記入出力制御手段を有することを特徴とする請求項1、又は2記載の印刷装置。   The set value of the packet size includes a timer counter corresponding to the channel that measures the time of the inactive state of the data reception request signal input, and the timer counter has a period between packet receptions longer than a specific time after receiving one packet. 3. The printing apparatus according to claim 1, further comprising: an input / output control unit configured to set a value of a packet size counter when the set value less than the time is measured as the set value of the packet size. 前記パケット受信後の固有の時間以上パケット受信間の時間未満の設定値はあらかじめ設定されているタイマカウンタを備えた前記入出力制御手段を有することを特徴とする請求項4記載の印刷装置。

5. The printing apparatus according to claim 4, further comprising: an input / output control unit having a timer counter that is set in advance for a set value that is greater than a specific time after the packet is received and less than a time between packet receptions.

JP2003391369A 2003-11-20 2003-11-20 Printing apparatus Withdrawn JP2005153186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003391369A JP2005153186A (en) 2003-11-20 2003-11-20 Printing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003391369A JP2005153186A (en) 2003-11-20 2003-11-20 Printing apparatus

Publications (1)

Publication Number Publication Date
JP2005153186A true JP2005153186A (en) 2005-06-16

Family

ID=34718450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003391369A Withdrawn JP2005153186A (en) 2003-11-20 2003-11-20 Printing apparatus

Country Status (1)

Country Link
JP (1) JP2005153186A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009512240A (en) * 2005-09-27 2009-03-19 インテル・コーポレーション Data transmission rate improvement mechanism in wireless network
JP2015087872A (en) * 2013-10-29 2015-05-07 富士通セミコンダクター株式会社 Direct memory access control device, control method thereof, and information processing system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009512240A (en) * 2005-09-27 2009-03-19 インテル・コーポレーション Data transmission rate improvement mechanism in wireless network
US8068495B2 (en) 2005-09-27 2011-11-29 Intel Corporation Mechanisms for data rate improvement in a wireless network
JP2015087872A (en) * 2013-10-29 2015-05-07 富士通セミコンダクター株式会社 Direct memory access control device, control method thereof, and information processing system
US9921983B2 (en) 2013-10-29 2018-03-20 Socionext Inc. Direct memory access controller, control method thereof, and information processing system

Similar Documents

Publication Publication Date Title
JP4778199B2 (en) Data transfer apparatus and data transfer method
JPH02227766A (en) Data transfer apparatus for digital computer
JP6886301B2 (en) Memory access system, its control method, program, and image forming device
US6806882B2 (en) Method of and apparatus for forming image
US10996904B2 (en) Network control device, image forming apparatus, control method of network control device, and non-transitory recording medium
JP2005153186A (en) Printing apparatus
KR100348545B1 (en) Communication dma device
JP2010198138A (en) Data transfer device, data transfer control method, data transfer control program, and recording medium
JP4175974B2 (en) Image data transfer control device
US5812878A (en) System for DMA transfer wherein controller waits before execution of next instruction until a counter counts down from a value loaded by said controller
KR970005743B1 (en) Data transfer controller
KR100514748B1 (en) Direct Memory Access method and apparatus using SOF signal of USB
JP2006195607A (en) Method and circuit for determining bulk-out transfer end
JP4251939B2 (en) Digital data transmission device
JP2005182505A (en) Data transfer controller and image forming apparatus
KR970005744B1 (en) Data transfer system
JP2001331440A (en) Data reception processor
JPH04284530A (en) Printing device
JPH0527925A (en) Printer
JP4097377B2 (en) Microcomputer
KR960003649B1 (en) Microcomputer system for communication
KR100244471B1 (en) Direct memory access controller and control method
JP2001306489A (en) Dma transfer device
KR940005003Y1 (en) Dynamic memory access system
JP2005182156A (en) Image transferring device and method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070206