JP2005153186A - Printing apparatus - Google Patents
Printing apparatus Download PDFInfo
- 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
Links
Images
Landscapes
- Bus Control (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
- Record Information Processing For Printing (AREA)
Abstract
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制御装置であり、パケットサイズを転送量に応じたものにして転送する発明である。
また、特許文献2は、USBインタフェースのデータ転送において、DMAの終了割り込みが先に発生した時DMAの受信サイズを大きくし、データ要求が先に発生した時受信サイズを小さくし、受信バッファの利用効率向上を図る。また、複数のデバイスに効率よく転送するため、パケット数、パケットサイズを設定する。
しかしながら、複数の画像データが同時に来たときに均等に順番に複数の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
本発明は、同時に来た複数の受信データの内の同系統のパケットを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
また、メモリ/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制御部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 /
Accordingly, the
次に、図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
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
IO制御部27は、USB接続部19、LAN接続部20、パラレル接続部14の信号、データバスの対応部分とパケットサイズカウンタとバイトデータカウンタとバッファで受信部を構成する。バイトデータカウンタとメモリ制御部28に対応する信号、データバスの対応部分で送信部を構成する。
The I /
メモリ制御部28は、3つのchのアクセス信号を持つDMAコントローラのはたらきをするものである。IO制御部27のバッファとメモリ13の間をDMAコントローラの制御で高速に転送する。
CPU11は、メモリ/IO制御部12内のメモリ制御部28と64ビットのバスで接続されている。メモリ13は、メモリ/IO制御部12内のメモリ制御部28と64ビットのバスで接続されている。
The
The
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
The
次にメモリ/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
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.
よって、同じ系の番号の信号で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接続部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
次に、図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
This is the control of the
まず、電源が入る(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
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
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
次に、バイトデータカウンタ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
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
以上がメモリ/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
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,
IO制御部27に各系のタイマカウンタ1、2、3を設ける。不図示のタイマカウンタ1、2、3はそれぞれ比較するタイマ設定値11、22、33を保持するレジスタを持つ。
図6にパケットデータを受信するときのDREQ1信号と8ビットデータバスとタイマ設定値11の関係を示す。同図に示すように、1パケットの受信と1パケットの受信の間には、一定の時間以上時間が空くことを利用する。
The
FIG. 6 shows the relationship between the DREQ1 signal, the 8-bit data bus, and the timer set
データ入力の空白時間つまり、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
タイマカウンタの設定値であるタイマ設定値11は、上記のパケット受信後の固有の時間以上でパケット受信間の時間未満の時間を設定する。タイマ設定値11の範囲を同図に示す。タイマカウンタがタイマ設定値11の分をカウントしてDREQ1信号のネゲート時間が固有の時間以上ネゲートしていることを認識することにより、1パケットの受信終了を認識する。1パケットの受信終了を認識したときにパケットサイズカウンタCOUNT1の値をパケットサイズとしてパケットサイズの設定値1に上書きして書き換える。これにより、パケットサイズの測定と設定が行われる。他系も同等である。
A
よって、パケットサイズがあらかじめわからなくてもパケットサイズ認識後は、パケット単位でデータ受信を効率よく行う。同じ系の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
次に、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
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
尚、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
まず、パケットサイズの設定値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
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
Next, it is determined whether the value of the
次に、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
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
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
12: Memory /
13 ...
16 ... MASKROM
17 ... EEPROM
18 ...
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:
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.
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)
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 |
-
2003
- 2003-11-20 JP JP2003391369A patent/JP2005153186A/en not_active Withdrawn
Cited By (4)
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 |