JP2005149519A - Information processor - Google Patents

Information processor Download PDF

Info

Publication number
JP2005149519A
JP2005149519A JP2004361524A JP2004361524A JP2005149519A JP 2005149519 A JP2005149519 A JP 2005149519A JP 2004361524 A JP2004361524 A JP 2004361524A JP 2004361524 A JP2004361524 A JP 2004361524A JP 2005149519 A JP2005149519 A JP 2005149519A
Authority
JP
Japan
Prior art keywords
code
control
dma
transmission code
information processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004361524A
Other languages
Japanese (ja)
Inventor
Tadayoshi Miyahara
忠義 宮原
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2004361524A priority Critical patent/JP2005149519A/en
Publication of JP2005149519A publication Critical patent/JP2005149519A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an information processor capable of processing a control code requiring an urgent process by a processing means even before a series of DMA transfer is completed. <P>SOLUTION: This information processor 2 has: a reception means 15 for receiving a transmission code from a host device 6; a storage means 7 for storing the transmission code; a DMA control means 15 for executing DMA transfer from the reception means to the storage means; a processing means 18 for executing a process based on the control code included in the transmission code. The information processor is characterized by that the DMA control means compares the transmission code received by the reception means during the DMA transfer with the control code previously stored in the control code storage means; and the processing means executes a process based on the received transmission code when the comparison result of the DMA control means is coincident. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、コンピュータ、プリンタ、複写機、ファクシミリ等に用いられる情報処理装置に係り、詳しくは、ホスト装置からの送信コードを受信する受信手段と、前記送信コードを記憶する記憶手段と、前記受信手段から前記記憶手段へのDMA転送を実行するDMA制御手段と、前記送信コードに含まれる制御コードに基づく処理を実行する処理手段とを有する情報処理装置に関するものである。   The present invention relates to an information processing apparatus used for computers, printers, copiers, facsimiles, and the like, and more specifically, receiving means for receiving a transmission code from a host device, storage means for storing the transmission code, and the receiving The present invention relates to an information processing apparatus having DMA control means for executing DMA transfer from a means to the storage means, and processing means for executing processing based on a control code included in the transmission code.

従来、例えば、プリンタのコントローラのように、ホスト装置からの送信コードを受信手段で受信し、この受信した送信コードをDMA(ダイレクトメモリアクセス)制御手段による制御の下、RAM等の記憶手段にDMA転送する情報処理装置が知られている。上記DMA転送とは、情報処理装置内の処理手段を介さずに、直接、受信手段から記憶手段に受信した送信コードを転送して記憶するものである。   Conventionally, a transmission code from a host device is received by a receiving unit such as a printer controller, and the received transmission code is stored in a storage unit such as a RAM under the control of a DMA (direct memory access) control unit. An information processing apparatus for transferring is known. The DMA transfer is to transfer and store the transmission code received directly from the receiving means to the storage means without going through the processing means in the information processing apparatus.

しかしながら、かかる従来の情報処理装置においては、送信コードの受信手段から記憶手段へのDMA転送が完了した後に、情報処理装置内の処理手段によって、送信コードがいかなるコードであるかの解析を行っていた。従って、従来の装置にあっては、DMA転送に優先させて上記処理手段による緊急処理を行うべき制御コードが、上記DMA転送の対象となっている一連の送信コードのなかに含まれている場合であっても、上記処理手段は、記憶手段へのDMA転送が完了してからでないと、かかる制御コードが送信されたことを認識できず、また、かかる制御コードの処理を実行することもできなかった。従って、緊急処理を要する制御コードであるにもかかわらず、その処理が遅れてしまうという問題があった。   However, in such a conventional information processing apparatus, after the DMA transfer from the transmission code receiving means to the storage means is completed, the processing means in the information processing apparatus analyzes what code the transmission code is. It was. Therefore, in the conventional apparatus, when the control code to be subjected to the emergency processing by the processing means in preference to the DMA transfer is included in the series of transmission codes to be subjected to the DMA transfer. However, the processing means cannot recognize that the control code has been transmitted until the DMA transfer to the storage means has been completed, and can also execute the processing of the control code. There wasn't. Accordingly, there is a problem that the processing is delayed although the control code requires emergency processing.

本発明は以上の問題点に鑑みなされたものであり、その目的とするところは、一連のDMA転送が完了する前であっても、処理手段による緊急処理を要する制御コードの処理が可能な情報処理装置を提供することである。   The present invention has been made in view of the above problems, and an object of the present invention is to enable processing of control codes that require emergency processing by the processing means even before a series of DMA transfers are completed. It is to provide a processing device.

上記問題点を解決するために、請求項1の情報処理装置は、ホスト装置からの送信コードを受信する受信手段と、前記送信コードを記憶する記憶手段と、前記受信手段から前記記憶手段へのDMA転送を実行するDMA制御手段と、前記送信コードに含まれる制御コードに基づく処理を実行する処理手段と、を有する情報処理装置において、前記DMA制御手段は、前記受信手段によって前記DMA転送中に受信された送信コードと、制御コード記憶手段に予め記憶された制御コードとを比較し、前記処理手段は、前記DMA制御手段の前記比較の結果が一致する場合に、前記受信された送信コードに基づく処理を実行することを特徴とするものである。   In order to solve the above problem, an information processing apparatus according to claim 1 includes a receiving unit that receives a transmission code from a host device, a storage unit that stores the transmission code, and a storage unit that stores the transmission code. In an information processing apparatus having DMA control means for executing DMA transfer and processing means for executing processing based on a control code included in the transmission code, the DMA control means performs the DMA transfer during the DMA transfer by the receiving means. The received transmission code is compared with a control code stored in advance in the control code storage means, and the processing means adds the received transmission code to the received transmission code when the comparison result of the DMA control means matches. The process based on this is performed.

請求項2の情報処理装置は、請求項1の情報処理装置において、前記DMA制御手段は、前記受信された送信コードと、制御コード記憶手段に予め記憶された制御コードとの比較の結果が一致する場合に、前記処理手段に対し、割り込み信号を送信することを特徴とするものである。   The information processing apparatus according to claim 2 is the information processing apparatus according to claim 1, wherein the DMA control means matches the result of comparison between the received transmission code and a control code stored in advance in the control code storage means. In this case, an interrupt signal is transmitted to the processing means.

請求項3の情報処理装置は、請求項2の情報処理装置において、前記DMA制御手段は、前記処理手段への割り込み信号の送信とともに、DMA転送を停止することを特徴とするものである。   The information processing apparatus according to claim 3 is characterized in that, in the information processing apparatus according to claim 2, the DMA control means stops DMA transfer together with transmission of an interrupt signal to the processing means.

請求項4の情報処理装置は、請求項1、2又は3の情報処理装置において、前記制御コード記憶手段は、複数の制御コードを記憶可能であることを特徴とするものである。   An information processing apparatus according to a fourth aspect is the information processing apparatus according to the first, second, or third aspect, wherein the control code storage means is capable of storing a plurality of control codes.

請求項1の情報処理装置においては、DMA制御手段が、受信手段によってDMA転送中に受信された送信コードと、制御コード記憶手段に予め記憶された制御コードとを比較する。該比較の結果一致する場合に、前記処理手段は、受信された送信コードの処理を実行する。
上記制御コード記憶手段には、上記処理手段に対して記憶手段に記憶された送信コードの消去を指示するキャンセルコード等の緊急処理を要する制御コードを記憶しておく。
In the information processing apparatus according to the first aspect, the DMA control means compares the transmission code received by the receiving means during the DMA transfer with the control code stored in advance in the control code storage means. If they match as a result of the comparison, the processing means executes processing of the received transmission code.
The control code storage means stores a control code that requires emergency processing, such as a cancel code that instructs the processing means to delete the transmission code stored in the storage means.

請求項2の情報処理装置においては、前記受信された送信コードと、制御コード記憶手段に予め記憶された制御コードとの比較の結果が一致する場合、即ち、DMA転送中に緊急処理を要する制御コードを受信した場合に、DMA制御手段が処理手段に対し、割り込み信号を送信する。   3. The information processing apparatus according to claim 2, wherein the comparison result between the received transmission code and the control code stored in the control code storage means coincides, that is, control that requires emergency processing during DMA transfer. When the code is received, the DMA control means transmits an interrupt signal to the processing means.

請求項3の情報処理装置においては、DMA転送中に、緊急処理を要する制御コードが受信されると、処理手段に対して割り込み信号を送信するとともに、実行していたDMA転送を停止する。これによって、情報処理装置の状態を、処理手段による上記制御コードの処理が可能な状態にする。   According to another aspect of the present invention, when a control code requiring emergency processing is received during DMA transfer, an interrupt signal is transmitted to the processing means, and the DMA transfer that has been executed is stopped. As a result, the state of the information processing apparatus is changed to a state in which the control code can be processed by the processing means.

ここで、上記制御コード記憶手段には、請求項4に記載のように複数の制御コードを記憶可能にしてもよい。   Here, a plurality of control codes may be stored in the control code storage means as described in claim 4.

請求項1乃至4の情報処理装置によれば、受信された送信コードと、制御コード記憶手段に予め記憶された制御コードとを比較し、一致する場合に、前記処理手段は、受信された送信コードの処理を実行するので、かかる制御コード記憶手段に緊急処理を要する制御コードを記憶しておくことによって、一連のDMA転送が完了する前であっても、処理手段による緊急処理を要する送信コードの処理が可能となるという優れた効果を有する。   According to the information processing apparatus according to any one of claims 1 to 4, the received transmission code is compared with a control code stored in advance in the control code storage unit. Since the code processing is executed, the control code that requires emergency processing is stored in the control code storage means, so that the transmission code that requires emergency processing by the processing means even before a series of DMA transfers is completed. It has an excellent effect that it can be processed.

特に、請求項2の情報処理装置によれば、DMA転送中に緊急処理を要する制御コードを受信した場合に、DMA制御手段が上記処理手段に割り込み信号を送信するので、上記処理手段がポーリングによって緊急処理を要する制御コードを受信したことを認識する場合に比較し、処理手段における緊急処理を要する制御コードの受信を認識するための負担を軽減することができるという優れた効果を有する。   In particular, according to the information processing apparatus of the second aspect, when a control code requiring emergency processing is received during DMA transfer, the DMA control means transmits an interrupt signal to the processing means. Compared with the case of recognizing that a control code requiring emergency processing has been received, the processing means has an excellent effect of reducing the burden for recognizing reception of a control code requiring emergency processing.

また、特に、請求項3の情報処理装置によれば、実行していたDMA転送を停止するので、情報処理装置の状態を、処理手段による緊急処理を要する制御コードの処理に何等障害の生じない状態にすることができるという優れた効果を有する。   In particular, according to the information processing apparatus of claim 3, since the DMA transfer that has been executed is stopped, the state of the information processing apparatus does not cause any trouble in the processing of the control code that requires emergency processing by the processing means. It has the outstanding effect that it can be in a state.

また、特に、請求項4の情報処理装置によれば、制御コード記憶手段に複数の制御コードを記憶できるので、DMA転送の途中で処理すべき緊急処理を要する制御コードが複数ある場合であっても、処理手段によるその処理が可能となるという優れた効果を有する。   In particular, according to the information processing apparatus of the fourth aspect, since a plurality of control codes can be stored in the control code storage means, there are a plurality of control codes that require emergency processing to be processed during DMA transfer. Moreover, it has the outstanding effect that the process by the process means is attained.

以下、本発明を適用した実施形態について説明する。
図1は本実施形態にかかる画像形成装置としてのレーザプリンタ(以下、単に「プリンタ」という。)の構成ブロック図である。
Embodiments to which the present invention is applied will be described below.
FIG. 1 is a configuration block diagram of a laser printer (hereinafter simply referred to as “printer”) as an image forming apparatus according to the present embodiment.

本実施形態におけるプリンタ1は、プリンタ全体の制御を行う情報処理装置であるプリンタコントローラ(以下、コントローラと略す。)2、記録紙上に実際に画像を形成する画像形成手段としてのプリンタエンジン3(以下、エンジンと略す。)、使用者からの各種の指示を上記コントローラ2に与え、又プリンタ1の各種状態を表示するパネル装置4等からなる。   A printer 1 in this embodiment includes a printer controller (hereinafter abbreviated as controller) 2 that is an information processing apparatus that controls the entire printer, and a printer engine 3 (hereinafter referred to as image forming means) that actually forms an image on recording paper. And a panel device 4 for giving various instructions from the user to the controller 2 and displaying various states of the printer 1.

上記コントローラ2は、処理手段であるCPU(中央処理装置)18、RAM7、フォントROM8、プログラムROM9、不揮発性RAM10、ICカード11、エンジンインターフェース12、パネルインターフェース13、ディスクインターフェース14、ホストインターフェース15等からなり、これらは、システムバス19によって接続されている。   The controller 2 includes a CPU (central processing unit) 18 as a processing means, a RAM 7, a font ROM 8, a program ROM 9, a nonvolatile RAM 10, an IC card 11, an engine interface 12, a panel interface 13, a disk interface 14, a host interface 15, and the like. These are connected by a system bus 19.

上記CPU18は、パネル装置4からの信号や、ホスト装置6からの送信される送信コード中の制御コードに基づいて所定のプログラムを実行することにより、コントローラ2内で行われる各種制御を実行する。
上記CPU18による制御のために使用されるプログラムは、読み出し専用メモリであるプログラムROM9に記憶されている。
The CPU 18 executes various controls performed in the controller 2 by executing a predetermined program based on a signal from the panel device 4 and a control code in a transmission code transmitted from the host device 6.
A program used for control by the CPU 18 is stored in a program ROM 9 which is a read-only memory.

コントローラ2は、上述の如く、上記プログラムROM9以外にも、フォントROM8、RAM7、及び不揮発性RAM10といったメモリを備えている。上記フォントROM8は、プログラムROM9同様、読み出し専用のメモリであり、画像形成に使用される文字等の様々なフォントのパターンデータを記憶している。一方、上記RAM7及び不揮発性RAM10は、ランダム・アクセス・メモリであり、データの書き込み及び読み出しの双方を可能とする。   As described above, the controller 2 includes memories such as the font ROM 8, the RAM 7, and the nonvolatile RAM 10 in addition to the program ROM 9. Like the program ROM 9, the font ROM 8 is a read-only memory, and stores pattern data of various fonts such as characters used for image formation. On the other hand, the RAM 7 and the non-volatile RAM 10 are random access memories, and can both write and read data.

上記RAM7は、上記CPU20が各種制御を実行する場合のワーキングメモリとして使用される。また、RAM7は、ホストインターフェース15を介してホスト装置6から送られてくる制御コードや、データコードである画像データ等を一時的に記憶するためのインプットバッファ、上記画像データをに基づいてビットマップ形式のイメージデータを作成した場合に、これを記憶するためのフレームバッファとして使用される。従って、上記RAM7は、ホスト装置6から送信される画像データ等の送信コードを記憶する記憶手段として機能する。   The RAM 7 is used as a working memory when the CPU 20 executes various controls. The RAM 7 is an input buffer for temporarily storing control codes sent from the host device 6 via the host interface 15 and image data as data codes, and a bitmap based on the image data. When image data of a format is created, it is used as a frame buffer for storing it. Accordingly, the RAM 7 functions as a storage unit that stores transmission codes such as image data transmitted from the host device 6.

上記不揮発性RAM10は、電源を切っても、記憶されたデータを保持することが可能なバッテリーバックアップメモリである。この不揮発性RAM10には、パネル装置4からのモード指示の内容やプリンタ1の環境設定データ等が記憶されている。   The nonvolatile RAM 10 is a battery backup memory that can retain stored data even when the power is turned off. The nonvolatile RAM 10 stores the mode instruction content from the panel device 4 and environment setting data of the printer 1.

コントローラ2が、コントローラ2の外部に設けられた装置との間で通信を行うには、インターフェースが必要である。このためにコントローラ2に設けられているのが、エンジンインターフェース12、パネルインターフェース13、ディスクインターフェース14、及びホストインターフェース15である。   An interface is required for the controller 2 to communicate with a device provided outside the controller 2. For this purpose, the engine interface 12, the panel interface 13, the disk interface 14, and the host interface 15 are provided in the controller 2.

上記エンジンインターフェース12は、コントローラ2とエンジン3との間で、コマンド及びステータス、並びにイメージデータ等の通信を行うためのインターフェースである。
上記パネルインターフェース13は、コントローラ6と上記操作パネル17との間で、コマンド及びステータスの通信を行うためのインターフェースである。 上記ディスクインターフェース14は、コントローラ6とディスク装置18との間で通信を行うためのインターフェースである。
上記ホストインターフェース15は、コントローラ6がホスト装置6との間で通信を行うためのインターフェースである。これについては、後に詳述する。
The engine interface 12 is an interface for communicating commands, statuses, image data, and the like between the controller 2 and the engine 3.
The panel interface 13 is an interface for communicating commands and statuses between the controller 6 and the operation panel 17. The disk interface 14 is an interface for performing communication between the controller 6 and the disk device 18.
The host interface 15 is an interface for the controller 6 to communicate with the host device 6. This will be described in detail later.

尚、上記コントローラ2には、オプションボード16の装着が可能である。このオプションボード16には、セントロニクス、RS232C、Apple talk、ネットワーク等各種のインターフェースが設けられており、上記オプションボード16をコントローラ2に装着することによって、コントローラ2は、各インターフェースに対応したコンピュータ等の外部装置17と通信することが可能となる。   An optional board 16 can be attached to the controller 2. The option board 16 is provided with various interfaces such as Centronics, RS232C, Apple talk, and network. By attaching the option board 16 to the controller 2, the controller 2 can be connected to a computer or the like corresponding to each interface. It becomes possible to communicate with the external device 17.

以上のごとき構成を有するプリンタ1において、ホスト装置6からデータコードとしての画像データや制御コードとしてのコマンドが送られてきて、該画像データ等に基づく画像形成動作が行われるまでの一般的な動作は次のとおりである。   In the printer 1 having the above-described configuration, general operations until image data as a data code or a command as a control code is sent from the host device 6 and an image forming operation based on the image data or the like is performed. Is as follows.

ホストインターフェース15で受信された画像データ及びコマンドは、後述するところのDMA転送によって、RAM7上に形成されているインプットバッファに一時的に記憶される。CPU18は、プログラムROM9に記憶されているエミュレーションプログラムに従い、上記コマンド等を上記インプットバッファから取り出し、解析する。この解析の結果、各コマンド等はディスプレイリストと呼ばれる中間コードに変換される。   Image data and commands received by the host interface 15 are temporarily stored in an input buffer formed on the RAM 7 by DMA transfer as will be described later. The CPU 18 extracts the command and the like from the input buffer and analyzes them according to the emulation program stored in the program ROM 9. As a result of this analysis, each command is converted into an intermediate code called a display list.

上記中間コードは、RAM7上に形成されたページバッファに記憶される。こうして、上記ページバッファに1頁分の中間コードの記憶が完了すると、CPU18は、プログラムROM9に記憶されているシステムプログラムを実行し、上記中間コードを、RAM7上に形成されたフレームバッファにビットマップ形式のイメージデータとして展開する。かかる展開が完了すると、エンジンインターフェース12を介して、コントローラ2からエンジン3に対し、給紙手段選択コマンド及び画像形成コマンドを送るとともに、フレームバッファに展開した上記イメージデータを送る。
上記給紙手段選択コマンド及び画像形成コマンドを受けたエンジン3は、給紙選択コマンドによって指示された給紙を実行し、上記イメージデータに基づく画像形成を行う。
The intermediate code is stored in a page buffer formed on the RAM 7. When the intermediate code for one page is thus stored in the page buffer, the CPU 18 executes the system program stored in the program ROM 9 and bitmaps the intermediate code into the frame buffer formed on the RAM 7. Expand as formatted image data. When the development is completed, the controller 2 sends a paper feed means selection command and an image formation command to the engine 3 via the engine interface 12 and sends the image data developed in the frame buffer.
Upon receiving the paper feed means selection command and the image formation command, the engine 3 executes the paper feed instructed by the paper feed selection command and forms an image based on the image data.

上記エンジン3における画像形成動作を図2に基づいて説明する。図2は、エンジン3の動作を説明するための説明図である。
上記コントローラ2からのイメージデータは、光書き込みユニット22に入力される。この光書き込みユニット22には、上記イメージデータに基づいて点滅を行い、光ビームを発生するレーザダイオード(図示せず)が設けられている。
An image forming operation in the engine 3 will be described with reference to FIG. FIG. 2 is an explanatory diagram for explaining the operation of the engine 3.
Image data from the controller 2 is input to the optical writing unit 22. The optical writing unit 22 is provided with a laser diode (not shown) that blinks based on the image data and generates a light beam.

上記レーザダイオードからの光ビームは、高速で回転するポリゴンミラー22aによって偏向され、fθレンズ等の光学系22b及びミラー22cを介して、帯電装置27にて一様に帯電されて図中時計方向に回転する感光体23に導かれる。そして、上記光ビームは、感光体23表面に上記イメージデータに対応した潜像を形成する。この潜像は、現像装置24によるトナー現像によって顕像化され、トナー像となる。   The light beam from the laser diode is deflected by a polygon mirror 22a that rotates at high speed, and is uniformly charged by a charging device 27 via an optical system 22b such as an fθ lens and a mirror 22c, and clockwise in the figure. Guided to the rotating photoreceptor 23. The light beam forms a latent image corresponding to the image data on the surface of the photoconductor 23. This latent image is visualized by toner development by the developing device 24 and becomes a toner image.

一方、上記潜像の形成及びトナー像の形成とのタイミングをとりながら、コントローラ2からの給紙選択コマンドによって指示された第1給紙ユニット20、又は第2給紙ユニット21のいずれかから記録紙が給紙される。この記録紙は、レジストローラ対26にその搬送方向先端を突き当てて一旦停止したのち、感光体23表面のトナー像とのタイミングをとって、再搬送される。   On the other hand, recording is performed from either the first paper feed unit 20 or the second paper feed unit 21 instructed by the paper feed selection command from the controller 2 while taking the timing of the formation of the latent image and the toner image. Paper is fed. The recording sheet is temporarily stopped by abutting the leading end of the recording roller pair 26 against the registration roller pair 26, and then transported again in time with the toner image on the surface of the photoconductor 23.

上記レジストローラ対26の搬送方向下流側であって、感光体23と対向する位置には、転写装置25が設けられており、この転写装置25によって、感光体23上のトナー像が、記録紙に転写される。転写の完了した記録紙は、搬送ベルト29によって、加熱ローラ及び加圧ローラ等からなる定着装置30に搬送され、記録紙上のトナー像が、該記録紙に定着される。定着の完了した記録紙は、搬送ローラ対31によって搬送され、排紙トレイ32上に排紙される。上記転写装置25による転写が完了した後の感光体23表面は、クリーニング装置28による残留トナーの回収が行われ、クリーニングされる。こうして、記録紙上への1頁分の画像形成が完了する。   A transfer device 25 is provided on the downstream side of the registration roller pair 26 in the conveying direction and facing the photoconductor 23. The transfer device 25 causes the toner image on the photoconductor 23 to be transferred to the recording paper. Is transcribed. The recording sheet on which the transfer has been completed is conveyed by a conveying belt 29 to a fixing device 30 including a heating roller and a pressure roller, and a toner image on the recording sheet is fixed on the recording sheet. The recording sheet on which fixing has been completed is transported by the transport roller pair 31 and discharged onto the paper discharge tray 32. After the transfer by the transfer device 25 is completed, the surface of the photoconductor 23 is cleaned by collecting residual toner by the cleaning device 28. Thus, image formation for one page on the recording paper is completed.

次に、本実施形態において、ホスト装置6から送られてくる送信コードを受信し、上記記憶手段であるRAM7にDMA転送する場合のコントローラ2の動作について説明する。
ホスト装置6からの送信コードは、ホストインターフェース15にて受信される。従って、ホストインターフェース15は、送信コードを受信するための受信手段として機能する。本実施形態では、かかるホストインターフェース15に、パラレルインターフェースであるセントロニクスインターフェースを使用している。そして、ホスト装置6とコントローラ2とは、かかるセントロニクスインターフェースのコンパチブルモードにて通信可能になっている。
Next, in the present embodiment, the operation of the controller 2 when receiving a transmission code sent from the host device 6 and performing DMA transfer to the RAM 7 as the storage means will be described.
The transmission code from the host device 6 is received by the host interface 15. Therefore, the host interface 15 functions as a receiving unit for receiving the transmission code. In the present embodiment, a Centronics interface that is a parallel interface is used for the host interface 15. The host device 6 and the controller 2 can communicate with each other in a compatible mode of the Centronics interface.

上記コンパチブルモードとは、近年、国際規格であるIEEEによって規格化されたセントロニクスインターフェースにおけるECP(Extended Capabilities Port:以下ECPで示す)モードに対立する概念であり、ホスト装置6からコントローラ2への単方向通信を行うことができる。   The compatible mode is a concept that is opposed to the ECP (Extended Capabilities Port: hereinafter referred to as ECP) mode in the Centronics interface standardized by IEEE, which is an international standard, and is unidirectional from the host device 6 to the controller 2. Communication can be performed.

上記ホストインターフェース15は、ASIC(Aplication Specific Integrated Circuit:特定用途向きIC)で構成されている。そして、上記DMA転送を制御するDMA制御手段として機能する。このホストインターフェース15の概略構成を図3に示す。   The host interface 15 is composed of an ASIC (Aplication Specific Integrated Circuit). It functions as a DMA control means for controlling the DMA transfer. A schematic configuration of the host interface 15 is shown in FIG.

図3に示すように、ホストインタフェース15はDMA制御手段としての機能を達成すべく、ホスト装置6からの送信コードを受信するための受信バッファ40、複数の特殊コードを記憶した制御コード記憶手段としての特殊コードレジスタ群44、上記受信バッファ40に受信した送信コードと上記特殊コードレジスタ群44に記憶されている特殊コードとを比較し、両コードが一致するか否かを判定する判定部41、DMA転送による転送先となるRAM7の転送開始アドレスを格納するためのアドレス格納レジスタ42、及び、該アドレス格納レジスタ42に格納されたアドレスを順次インクリメントしDMA転送先のRAM7のアドレスを順次発行するアドレスカウンタ43等によって構成されている。   As shown in FIG. 3, the host interface 15 serves as a reception buffer 40 for receiving a transmission code from the host device 6 and a control code storage means for storing a plurality of special codes in order to achieve a function as a DMA control means. A special code register group 44, a determination unit 41 that compares the transmission code received in the reception buffer 40 with the special code stored in the special code register group 44, and determines whether or not the two codes match. Address storage register 42 for storing the transfer start address of RAM 7 as a transfer destination by DMA transfer, and address for sequentially issuing the address of RAM 7 as the DMA transfer destination by sequentially incrementing the address stored in the address storage register 42 It is configured by a counter 43 and the like.

かかる構成を有するホストインターフェース15によって制御される本実施形態にかかるDMA転送の動作を図4のフローチャートに基づいて説明する。
まず、複数のレジスタからなる特殊コードレジスタ群44に、予め定められた特殊コードが、CPU18の制御によって記憶される(ステップ101)。
The DMA transfer operation according to this embodiment controlled by the host interface 15 having such a configuration will be described with reference to the flowchart of FIG.
First, a predetermined special code is stored in the special code register group 44 including a plurality of registers under the control of the CPU 18 (step 101).

本実施形態においては、この特殊コードレジスタ群45に記憶される特殊コードは、DMA転送中であっても、処理手段であるCPU18によって緊急に処理する必要性のある制御コードである。かかる緊急処理を要する制御コードの1つとして「キャンセルコマンド」がある。これは、RAM7に記憶してある送信コードを消去する処理をCPU18に実行させるための制御コードである。かかるキャンセルコマンドが、緊急処理を要する特殊コードの1つとして掲げられるのは、次の理由による。   In the present embodiment, the special code stored in the special code register group 45 is a control code that needs to be urgently processed by the CPU 18 as processing means even during DMA transfer. One of the control codes that require such emergency processing is a “cancel command”. This is a control code for causing the CPU 18 to execute processing for deleting the transmission code stored in the RAM 7. This cancel command is listed as one of special codes that require emergency processing for the following reason.

即ち、DMA転送の対象となっている一連の送信コードに、上記キャンセルコードが含まれている場合、転送されている送信コードは、上記キャンセルコマンドの実行によって消去されるべきものである。よって、かかるキャンセルコマンドが送信されてまでも、DMA転送を続行する意義はなく、あえて続行すれば、DMA転送を完了させるまでの時間が無駄なものとなるからである。   That is, when the cancel code is included in a series of transmission codes that are targets of DMA transfer, the transferred transmission code should be erased by executing the cancel command. Therefore, even if such a cancel command is transmitted, there is no significance of continuing the DMA transfer, and if it is intentionally continued, the time until the DMA transfer is completed is wasted.

次に、CPU18は、ホスト装置6からの送信コードをRAM7にDMA転送するよう設定し、RAM7のDMA転送開始アドレスをアドレス格納レジスタ42に格納する(ステップ102)。かかる状態で、ホスト装置6から送信コードの送信が開始すると(ステップ103)、該送信コードは、上記受信バッファで順次格納され受信される(ステップ104)。送信コードが受信バッファに格納されると、上記判定部41は、該受信した送信コードと、特殊コードレジスタ群のそれぞれのレジスタに記憶されている特殊コードとを比較し、送信コードがいずれかの特殊コードレジスタに記憶されている特殊コードと一致するか否かを判定する(ステップ105)。   Next, the CPU 18 sets the transmission code from the host device 6 to DMA transfer to the RAM 7 and stores the DMA transfer start address of the RAM 7 in the address storage register 42 (step 102). In this state, when transmission of a transmission code is started from the host device 6 (step 103), the transmission code is sequentially stored and received in the reception buffer (step 104). When the transmission code is stored in the reception buffer, the determination unit 41 compares the received transmission code with the special code stored in each register of the special code register group, and the transmission code is It is determined whether or not it matches the special code stored in the special code register (step 105).

上記ステップ105における判定の結果、受信した送信コードが、特殊コードレジスタ群中のいずれの特殊コードとも一致しない場合は、受信した送信コードをRAM7にDMA転送し、格納する(ステップ106)。かかるDMA転送における転送先であるRAM7のアドレスは、上記アドレスカウンタ43が、上記アドレス格納レジスタ42に格納されたDMA転送開始アドレスを、送信コードを転送するたびに順次インクリメントして発行するものである。   If the result of determination in step 105 is that the received transmission code does not match any special code in the special code register group, the received transmission code is DMA transferred to the RAM 7 and stored (step 106). The address of the RAM 7 which is a transfer destination in such DMA transfer is issued by the address counter 43 by sequentially incrementing the DMA transfer start address stored in the address storage register 42 every time the transmission code is transferred. .

一方、上記ステップ105における判定の結果、受信した送信コードが、特殊コードレジスタ群中のいずれかの特殊コードと一致する場合は、実行中のDMA転送を停止する(ステップ107)。   On the other hand, if the result of determination in step 105 is that the received transmission code matches any special code in the special code register group, the DMA transfer being executed is stopped (step 107).

このDMA転送の停止によって、ホストインターフェース15、RAM7、CPU18等で共有しているシステムバス19の使用権をDMA制御手段であるホストインターフェース15から解放する。これによって、ホストインターフェースとCPU18のバスアクセスが競合することを防止し、CPU18による制御コードの処理に障害が生じないようにして、コントローラ2の状態を、CPU18による制御コードの処理が可能な状態にする。   By stopping the DMA transfer, the right to use the system bus 19 shared by the host interface 15, RAM 7, CPU 18, etc. is released from the host interface 15 which is a DMA control means. As a result, the host interface and the CPU 18 are prevented from competing for bus access, and the control code processing by the CPU 18 is prevented from being troubled, so that the controller 2 can be processed by the CPU 18. To do.

こうしてDMAを停止すると、DMA制御手段であるホストインターフェース15は、CPU18に対して割り込み信号を送信し、受信した送信コードが特殊コードであることを通知する(ステップ108)。これによって、CPU18は、受信した送信コードが、緊急処理を要する制御コードであることを検知することができる。   When the DMA is stopped in this way, the host interface 15 serving as the DMA control means transmits an interrupt signal to the CPU 18 to notify that the received transmission code is a special code (step 108). Thus, the CPU 18 can detect that the received transmission code is a control code that requires emergency processing.

尚、本実施形態においては、ホスト装置6とコントローラ2との通信をセントロニクスインターフェースのコンパチブルモードで行う場合を例に説明したが、本件発明はかかる場合に限らず、例えば、SCSI(Small Computer System Interface)、RS232Cインターフェース、及びセントロニクスインターフェースのEPCモード等においても同様に適用できるものである。   In the present embodiment, the case where the communication between the host device 6 and the controller 2 is performed in the compatible mode of the Centronics interface has been described as an example. However, the present invention is not limited to this, and for example, a SCSI (Small Computer System Interface) ), RS232C interface, Centronics interface EPC mode, and the like.

プリンタの概略ブロック図。1 is a schematic block diagram of a printer. エンジンにおける画像形成動作を説明するための説明図。Explanatory drawing for demonstrating the image formation operation | movement in an engine. ホストインターフェースの概略ブロック図。The schematic block diagram of a host interface. 実施形態にかかるDMA転送の動作を示すフローチャート。6 is a flowchart showing an operation of DMA transfer according to the embodiment.

符号の説明Explanation of symbols

1 プリンタ
2 プリンタコントローラ
3 プリンタエンジン
4 パネル装置
5 ディスク装置
6 ホスト装置
7 RAM
8 フォントROM
9 プログラムROM
10 不揮発性RAM
11 ICカード
12 エンジンインターフェース
13 パネルインターフェース
14 ディスクインターフェース
15 ホストインターフェース
16 オプションボード
17 外部装置
18 CPU
19 システムバス
20 第1給紙ユニット
21 第2給紙ユニット
22 光書き込みユニット
23 感光体
24 現像装置
25 転写装置
26 レジストローラ対
27 帯電装置
28 クリーニング装置
29 搬送ベルト
30 定着装置
31 搬送ローラ対
40 受信バッファ
41 判定部
42 アドレス格納レジスタ
43 アドレスカウンタ
44 特殊コードレジスタ群
DESCRIPTION OF SYMBOLS 1 Printer 2 Printer controller 3 Printer engine 4 Panel apparatus 5 Disk apparatus 6 Host apparatus 7 RAM
8 Font ROM
9 Program ROM
10 Nonvolatile RAM
11 IC card 12 Engine interface 13 Panel interface 14 Disk interface 15 Host interface 16 Option board 17 External device 18 CPU
19 System bus 20 First paper feeding unit 21 Second paper feeding unit 22 Optical writing unit 23 Photoconductor 24 Developing device 25 Transfer device 26 Registration roller pair 27 Charging device 28 Cleaning device 29 Conveying belt 30 Fixing device 31 Conveying roller pair 40 Reception Buffer 41 Determination unit 42 Address storage register 43 Address counter 44 Special code register group

Claims (4)

ホスト装置からの送信コードを受信する受信手段と、
前記送信コードを記憶する記憶手段と、
前記受信手段から前記記憶手段へのDMA転送を実行するDMA制御手段と、
前記送信コードに含まれる制御コードに基づく処理を実行する処理手段と、
を有する情報処理装置において、
前記DMA制御手段は、前記受信手段によって前記DMA転送中に受信された送信コードと、制御コード記憶手段に予め記憶された制御コードとを比較し、
前記処理手段は、前記DMA制御手段の前記比較の結果が一致する場合に、前記受信された送信コードに基づく処理を実行することを特徴とする情報処理装置。
Receiving means for receiving a transmission code from the host device;
Storage means for storing the transmission code;
DMA control means for performing DMA transfer from the receiving means to the storage means;
Processing means for executing processing based on a control code included in the transmission code;
In an information processing apparatus having
The DMA control means compares the transmission code received during the DMA transfer by the receiving means with the control code stored in advance in the control code storage means,
The information processing apparatus, wherein the processing means executes processing based on the received transmission code when the comparison result of the DMA control means matches.
請求項1の情報処理装置において、
前記DMA制御手段は、
前記受信された送信コードと、制御コード記憶手段に予め記憶された制御コードとの比較の結果が一致する場合に、前記処理手段に対し、割り込み信号を送信することを特徴とする情報処理装置。
The information processing apparatus according to claim 1,
The DMA control means includes:
An information processing apparatus, wherein an interrupt signal is transmitted to the processing means when a result of comparison between the received transmission code and a control code stored in advance in the control code storage means matches.
請求項2の情報処理装置において、
前記DMA制御手段は、前記処理手段への割り込み信号の送信とともに、DMA転送を停止することを特徴とする情報処理装置。
The information processing apparatus according to claim 2.
The information processing apparatus, wherein the DMA control means stops DMA transfer together with transmission of an interrupt signal to the processing means.
請求項1、2又は3の情報処理装置において、
前記制御コード記憶手段は、複数の制御コードを記憶可能であることを特徴とする情報処理装置。
The information processing apparatus according to claim 1, 2, or 3,
The information processing apparatus, wherein the control code storage means is capable of storing a plurality of control codes.
JP2004361524A 2004-12-14 2004-12-14 Information processor Pending JP2005149519A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004361524A JP2005149519A (en) 2004-12-14 2004-12-14 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004361524A JP2005149519A (en) 2004-12-14 2004-12-14 Information processor

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP27757396A Division JPH10105507A (en) 1996-09-27 1996-09-27 Information processor

Publications (1)

Publication Number Publication Date
JP2005149519A true JP2005149519A (en) 2005-06-09

Family

ID=34698108

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004361524A Pending JP2005149519A (en) 2004-12-14 2004-12-14 Information processor

Country Status (1)

Country Link
JP (1) JP2005149519A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010517182A (en) * 2007-01-24 2010-05-20 クゥアルコム・インコーポレイテッド Content end type DMA

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010517182A (en) * 2007-01-24 2010-05-20 クゥアルコム・インコーポレイテッド Content end type DMA

Similar Documents

Publication Publication Date Title
JP2008119833A (en) Image forming apparatus
US7268908B2 (en) Image processing system and its control method
US5803623A (en) Printing system and a printing method
JP4402083B2 (en) Image forming apparatus
JPH11296046A (en) Printing controller, printing processing method thereof, and computer readable storage medium storing program
JP2007207194A (en) Printer, external device, print system, and method for controlling printer
JP2005149519A (en) Information processor
US5878197A (en) Image forming apparatus capable of processing data at high speed in accordance with a high speed data transmission interface
JP3782871B2 (en) Image forming system, image forming apparatus, and medium recording control program
JPH11348351A (en) Image-processing system, image-forming apparatus, method for processing image, and computer readable memory
JP3518833B2 (en) Information processing apparatus and image forming apparatus
US6438334B1 (en) Image output apparatus and control method therefor
US20020021914A1 (en) Image forming apparatus and method of controlling image forming apparatus
JP2010049405A (en) Image formation system
US8040550B2 (en) Image forming apparatus with a ratio change of receive buffer in response to a cancellation instruction
JP2001022690A (en) Method and system for data communication between devices
JPH10105507A (en) Information processor
JP5651963B2 (en) Printing system, control method therefor, and program
JPH0281658A (en) Printer
JP2886241B2 (en) Image forming system
JP2744463B2 (en) Printing equipment
JP2004066787A (en) Image recorder, method of controlling the same, medium providing control program, and control program
JP2002269035A (en) Serial communication equipment, serial communication method, storage medium and program for serial communication
JPH03120065A (en) Printer
JP2004252232A (en) Print control system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070628

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070706

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20071207