JPH10105511A - Centronics interface controller - Google Patents
Centronics interface controllerInfo
- Publication number
- JPH10105511A JPH10105511A JP8255951A JP25595196A JPH10105511A JP H10105511 A JPH10105511 A JP H10105511A JP 8255951 A JP8255951 A JP 8255951A JP 25595196 A JP25595196 A JP 25595196A JP H10105511 A JPH10105511 A JP H10105511A
- Authority
- JP
- Japan
- Prior art keywords
- data
- output
- signal
- centronics interface
- control device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Landscapes
- Information Transfer Systems (AREA)
Abstract
(57)【要約】
【課題】 本発明はセントロニクスインターフェイス制
御装置に関し、特にデータ化けを防止し、高速な印刷処
理が可能なセントロニクスインターフェイス制御装置を
提供するものである。
【解決手段】 MPU2はPLD6に対しセットデータ
を予めセットし、セントロニクスインターフェイス8を
介して入力する照合データを、PLD6にセットした上
述のセットデータに従ったタイミングでバッファ7を介
してMPU2に読み込み、例えばROM3に記憶する照
合データと照合する。この処理により両照合データが一
致していれば、さらに短いセットデータをPLD6にセ
ットし、上述の処理を繰り返し、データを正常に伝送で
きる限界までセットデータを小さくし、最も短いストロ
ーブ信号(STROBE1)によって印刷データを取り
込み可能に設定する。このように設定することで、伝送
エラーを起こすことなく、印刷データの伝送を高速に行
い、しかもノイズの影響を受けないセントロニクスイン
ターフェイス制御装置を提供できるものである。
(57) Abstract: The present invention relates to a Centronics interface control device, and more particularly, to a Centronics interface control device capable of preventing data corruption and performing high-speed print processing. SOLUTION: An MPU 2 sets set data in a PLD 6 in advance, and reads collation data input through a Centronics interface 8 into the MPU 2 through a buffer 7 at a timing according to the set data set in the PLD 6, For example, collation with collation data stored in the ROM 3 is performed. If both collation data match by this processing, the shorter set data is set in the PLD 6, the above processing is repeated, and the set data is reduced to the limit where data can be transmitted normally, and the shortest strobe signal (STROBE1) Is set so that print data can be captured. By setting in this way, it is possible to provide a Centronics interface control device that transmits print data at high speed without causing a transmission error and is not affected by noise.
Description
【0001】[0001]
【発明の属する技術分野】本発明はパーソナルコンピュ
ータ等の上位機器とプリンタ装置とを接続するセントロ
ニクスインターフェイス制御装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a Centronics interface control device for connecting a host device such as a personal computer to a printer.
【0002】[0002]
【従来の技術】パーソナルコンピュータ等の上位機器に
接続されるプリンタ装置は、上位機器から出力される印
字情報に基づいて印刷処理を行う。このため、パーソナ
ルコンピュータ等の上位機器とプリンタ装置はパラレル
又はシリアルなインターフェイスによって接続されてい
る。特に、パラレル構成であるセントロニクスインター
フェイスは、コンピュータとプリンタ装置を接続する標
準とされ、広く使用されている。2. Description of the Related Art A printer connected to a host device such as a personal computer performs a printing process based on print information output from the host device. For this reason, a host device such as a personal computer and a printer are connected by a parallel or serial interface. Particularly, a Centronics interface having a parallel configuration is widely used as a standard for connecting a computer and a printer.
【0003】このセントロニクスインターフェイス制御
装置を使用し、コンピュータ(上位機器)とプリンタ装
置間でデータの授受を行う場合、以下のような制御を行
っている。先ず、コンピュータ側からストローブ信号を
出力すると共に、例えば1バイトの印刷データをプリン
タ装置に出力する。プリンタ装置では入力する印刷デー
タを処理すると共に、データ処理期間中ビジィー信号を
コンピュータに出力し、1バイトの印刷データの入力処
理が終了するとアクノーリッヂ信号を出力する。コンピ
ュータ側では、アクノーリッヂ信号が入力すると次の印
刷データを送出できると判断し、ストローブ信号に同期
して、更に次の1バイトの印刷データを出力する。以
下、同様の処理を繰り返すことで印刷データをコンピュ
ータからプリンタ装置に転送する。When data is exchanged between a computer (upper device) and a printer using the Centronics interface controller, the following control is performed. First, a strobe signal is output from the computer side and, for example, 1-byte print data is output to the printer device. The printer processes input print data, outputs a busy signal to the computer during the data processing period, and outputs an acknowledgment signal when the input processing of 1-byte print data is completed. When the acknowledgment signal is input, the computer determines that the next print data can be transmitted, and outputs the next one-byte print data in synchronization with the strobe signal. Hereinafter, print data is transferred from the computer to the printer by repeating the same processing.
【0004】[0004]
【発明が解決しようとする課題】上述のように、ストロ
ーブ信号は上位機器からプリンタ装置に出力される信号
であり、プリンタ装置はストローブ信号に同期して入力
する印刷データを処理しつつビジィー信号を出力し、処
理完了によりアクノーリッジ信号を出力する。したがっ
て、処理速度の遅いコンピュータ(上位機器)では、印
刷データ(ストローブ信号)の出力に時間を要し、高速
印刷を行うことができない。As described above, a strobe signal is a signal output from a host device to a printer. The printer processes a busy signal while processing print data input in synchronization with the strobe signal. And outputs an acknowledge signal upon completion of processing. Therefore, a computer (host device) having a slow processing speed requires time to output print data (strobe signal), and cannot perform high-speed printing.
【0005】一方、上位機器とプリンタ装置を接続する
ケーブル(セントロニクスインターフェイス仕様)も、
設置場所の制限やシステムの設定によって長い構成とな
り、例えばケーブル長が5m〜10mにもなる場合もあ
る。このようにケーブルの長さが増すと、オーバーシュ
ート、アンダーシュート、反射等の問題が発生し、いわ
ゆるデータ化けの原因になる。[0005] On the other hand, a cable (Centronics interface specification) for connecting a host device and a printer is also provided.
The configuration may be long depending on the installation location restrictions and system settings. For example, the cable length may be 5 m to 10 m. When the length of the cable is increased as described above, problems such as overshoot, undershoot, and reflection occur, which causes so-called data corruption.
【0006】また、ケーブル長が増すと、その間で拾う
ノイズ量も増加し、例えば30ns〜100ns程度の
パルス幅の短いノイズがストローブ信号に侵入すると、
プリンタ装置は上位機器からデータが入力したものと判
断し、これに応答するため文字化けとなる。When the cable length increases, the amount of noise picked up between them also increases. For example, if noise with a short pulse width of about 30 ns to 100 ns enters the strobe signal,
The printer device determines that data has been input from a higher-level device, and responds to the data, causing garbled characters.
【0007】本発明は上記課題を解決するため、データ
化けを防止し、高速な印刷処理が可能なセントロニクス
インターフェイス制御装置を提供するものである。[0007] In order to solve the above-mentioned problems, the present invention provides a Centronics interface control device capable of preventing data corruption and performing high-speed print processing.
【0008】[0008]
【課題を解決するための手段】請求項1記載の発明は上
記課題を解決するため、上位装置から出力されるストロ
ーブ信号に基づいて応答信号を出力し、これらの信号に
同期して上位装置とのデータの授受を行うセントロニク
スインターフェイス制御装置において、前記ストローブ
信号の受信を基準として前記応答信号を出力する時期を
可変制御する出力時期可変制御手段と、該出力時期可変
制御手段により可変される信号出力時期におけるデータ
伝送状態を識別する伝送状態識別手段とを有し、該伝送
状態識別手段により正常伝送が維持できる最も高速の時
期条件を前記出力時期可変制御手段に設定し、データの
授受を行うセントロニクスインターフェイス制御装置を
提供することにより達成できる。According to the first aspect of the present invention, in order to solve the above problems, a response signal is output based on a strobe signal output from a higher-level device, and a response signal is output to the higher-level device in synchronization with these signals. A centronics interface control device for transmitting and receiving data, wherein the output timing variable control means variably controls the timing of outputting the response signal based on the reception of the strobe signal, and a signal output variable by the output timing variable control means. Centronics for transmitting and receiving data by setting, in said output timing variable control means, the fastest timing condition capable of maintaining normal transmission by said transmission state identification means. This can be achieved by providing an interface controller.
【0009】出力時期可変制御手段は上位機器から出力
されるデータをストローブ信号に同期して取り込んだ
後、文字化けが生じないで、しかも最も短い時間で応答
信号を出力できるデータ伝送状態を設定するため、スト
ローブ信号の設定時間を最も短く設定するものであり、
伝送状態識別手段は上記出力時期可変制御手段がストロ
ーブ信号の出力時期を可変する間、文字化けが生じない
で、最も短い時間で応答信号を出力する伝送状態を識別
し、その条件を上記出力時期可変制御手段に設定する。The output timing variable control means sets a data transmission state in which, after capturing data output from the host device in synchronization with the strobe signal, a character signal is not generated and a response signal can be output in the shortest time. Therefore, the setting time of the strobe signal is set to the shortest,
The transmission state identification means identifies the transmission state in which the response signal is output in the shortest time without causing garbled characters while the output timing variable control means changes the output timing of the strobe signal, and sets the condition to the output timing. Set the variable control means.
【0010】このように構成することにより、以後、上
記出力時期可変制御手段に設定した最適な伝送状態に従
ってデータ伝送を行い、上位機器から出力される印刷デ
ータを正常受信できる限界で取り込み、データの高速伝
送を行うものである。With this configuration, data transmission is performed in accordance with the optimum transmission state set in the output timing variable control means, and print data output from a higher-level device is fetched at a limit where normal reception is possible. It performs high-speed transmission.
【0011】請求項2記載の発明は、請求項1記載の発
明をより具体的にするものであり、前記応答信号は、例
えば上位機器から出力されたデータを処理中であること
を示すビジィー信号である。According to a second aspect of the present invention, the response signal is, for example, a busy signal indicating that data output from a higher-level device is being processed. It is.
【0012】上記構成により、ストローブ信号が最短時
間で設定される為、ビジィー信号の出力も同様に早く停
止し、高速で上位機器から次の印刷データを取り込むこ
とができる。According to the above configuration, since the strobe signal is set in the shortest time, the output of the busy signal is also stopped quickly, and the next print data can be taken in from the host device at high speed.
【0013】請求項3記載の発明も、請求項1記載の発
明をより具体的にするものであり、前記応答信号は、例
えば前記上位機器から出力されたデータの処理が完了し
たことを示すアクノーリッヂ信号である。According to a third aspect of the present invention, the response signal is, for example, an acknowledgment indicating that the processing of data output from the higher-level device has been completed. Signal.
【0014】上記構成により、ストローブ信号が最短時
間で設定される為、アクノーリッヂ信号の出力も同様に
早く出力され、高速で上位機器から次の印刷データを取
り込むことができる。With the above configuration, since the strobe signal is set in the shortest time, the output of the acknowledgment signal is similarly output quickly, and the next print data can be fetched from the host device at high speed.
【0015】請求項4記載の発明も、請求項1記載の発
明をより具体的にするものであり、前記上位機器から出
力されるデータは、例えば印字情報である。この印刷情
報には、例えば文字コードや各種コマンドが含まれてお
り、プリンタ装置において印字処理に使用する。According to a fourth aspect of the present invention, the invention described in the first aspect is further embodied, and the data output from the host device is, for example, print information. The print information includes, for example, character codes and various commands, and is used for printing processing in the printer device.
【0016】[0016]
【発明の実施の形態】以下、本発明の一実施形態例を図
面を用いて詳細に説明する。図1は本実施形態例のセン
トロニクスインターフェイス制御装置のシステムブロッ
ク図である。同図において、セントロニクスインターフ
ェイス制御装置1は、プリンタ装置内に設けられ、伝送
状態識別手段としてのMPU(マイクロプロセッサユニ
ット)2、及びROM3、RAM4、出力時期可変制御
手段としての出力時期可変部(以下GAで示す)5と疑
似ストローブ信号出力部(以下PLDで示す)6、バッ
ファ7、セントロニクスインターフェイス8で構成され
ている。MPU2はROM4に記憶するプログラムに基
づいて、本例のセントロニクスインターフェイス制御装
置を制御し、さらに不図示のプリンタ装置の印刷制御も
行う。尚、ROM3には後述する照合データも記憶され
ている。RAM4は受信バッファとワークエリアで構成
され、受信バッファには上位機器から供給される印刷デ
ータが入力し、ワークエリアにはMPU4の処理動作中
発生する各種データが書き込まれる。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a system block diagram of the Centronics interface control device of the present embodiment. In FIG. 1, a Centronics interface control device 1 is provided in a printer device, and includes an MPU (microprocessor unit) 2 as transmission state identification means, a ROM 3, a RAM 4, and an output timing variable section (hereinafter referred to as output timing variable control means). GA) 5, a pseudo strobe signal output unit (hereinafter referred to as PLD) 6, a buffer 7, and a Centronics interface 8. The MPU 2 controls the Centronics interface control device of the present embodiment based on a program stored in the ROM 4 and also controls printing of a printer device (not shown). The ROM 3 also stores collation data described later. The RAM 4 is composed of a reception buffer and a work area. The print data supplied from the host device is input to the reception buffer, and various data generated during the processing operation of the MPU 4 is written to the work area.
【0017】GA5はMPU2の制御に従ってビジィー
信号やアクノーリッヂ信号を上位機器に出力する回路で
あり、またMPU2から出力されるセットデータをPL
D6に設定するためのセット信号(CS)をPLD6に
出力する。また、上位機器から出力される印刷データが
MPU2に供給される際、印刷データはGA5を介して
MPU2に供給される。The GA 5 is a circuit for outputting a busy signal or an acknowledge signal to a host device in accordance with the control of the MPU 2, and the set data output from the MPU 2 is
A set signal (CS) for setting to D6 is output to PLD6. When print data output from the host device is supplied to the MPU 2, the print data is supplied to the MPU 2 via the GA 5.
【0018】PLD6には、上述のセット信号(CS)
に従ってMPU2からセットデータを入力し、不図示の
回路からクロック信号(CLK)が入力する。また、P
LD6には上位機器から出力されるストローブ信号(S
TROBE)が入力し、このストローブ信号(STRO
BE)が入力した後、上述のクロック信号(CLK)を
カウントし、クロック信号(CLK)の入力がセットデ
ータの値に達すると、疑似ストローブ信号(STROB
E1)を出力する。この疑似ストローブ信号(STRO
BE1)はMPU2とバッファ7に出力される。尚、こ
の疑似ストローブ信号(STROBE1)は後述するビ
ジィー信号やアクノーリッヂ信号の出力タイミングを制
御する。The PLD 6 has the above-mentioned set signal (CS).
, The set data is input from the MPU 2 and a clock signal (CLK) is input from a circuit (not shown). Also, P
The strobe signal (S
TROBE) is input and the strobe signal (STRO)
BE) is input, the clock signal (CLK) is counted. When the input of the clock signal (CLK) reaches the value of the set data, the pseudo strobe signal (STROB) is input.
E1) is output. This pseudo strobe signal (STRO)
BE1) is output to the MPU 2 and the buffer 7. The pseudo strobe signal (STROBE1) controls the output timing of a busy signal and an acknowledge signal described later.
【0019】バッファ7にはセントロニクスインターフ
ェイス8から照合データが入力し、また上述のPLD6
から疑似ストローブ信号が入力する。バッファ7は、入
力する照合データを保持すると共に、疑似ストローブ信
号(STROBE1)が入力するとGA5に照合データ
を出力する。すなわち、バッファ7は照合データが実際
に入力してから疑似ストローブ信号(STROBE1)
が出力されるまで、照合データを保持する回路である。
尚、上位機器から出力されるデータは通常印刷時には勿
論印刷データであるが、本例の場合疑似ストローブ信号
(STROBE1)設定のため、上位機器から1バイト
構成の照合データを出力するものである。The buffer 7 receives collation data from the Centronics interface 8, and receives data from the PLD 6.
, A pseudo strobe signal is input. The buffer 7 holds the input collation data, and outputs the collation data to the GA 5 when the pseudo strobe signal (STROBE1) is input. That is, the buffer 7 receives the pseudo strobe signal (STROBE1) after the collation data is actually input.
This is a circuit for holding the collation data until is output.
It should be noted that the data output from the higher-level device is, of course, print data during normal printing. In this example, however, in order to set the pseudo strobe signal (STROBE1), the higher-level device outputs 1-byte collation data.
【0020】セントロニクスインターフェイス8は不図
示の上位機器とケーブルを介して接続され、上位機器か
ら出力される照合データをバッファ7に出力する。ま
た、上位機器から出力されるストローブ信号(STRO
BE)を上述のGA5及びPLD6に出力する。また逆
に、GA5から出力するビジィー信号やアクノーリッヂ
信号を上位機器に出力する。The Centronics interface 8 is connected to a host device (not shown) via a cable, and outputs collation data output from the host device to the buffer 7. Also, the strobe signal (STRO) output from the host device
BE) to the above-mentioned GA5 and PLD6. Conversely, it outputs a busy signal and an acknowledge signal output from the GA 5 to the host device.
【0021】次に、上述の構成のセントロニクスインタ
ーフェイス制御装置において、その制御動作を説明す
る。尚、図2は通常の制御動作の場合の動作タイミング
を示す。すなわち、上位機器からストローブ信号(ST
ROBE)が入力したことを確認するとビジィー信号を
出力し、ストローブ信号(STROBE)の出力が停止
した後t1時間でビジィー信号の出力を停止する。ま
た、アクノーリッヂ信号は上述のストローブ信号(ST
ROBE)の出力が停止した後所定時間後に出力され、
その後一定時間の経過によりその出力を停止する。尚、
アクノーリッヂ信号が出力される一定時間は、プリンタ
装置側での印刷データの受信処理が終了したことを上位
機器に報知するために充分な時間である。Next, the control operation of the Centronics interface control device having the above configuration will be described. FIG. 2 shows operation timings in the case of a normal control operation. That is, the strobe signal (ST
ROBE) is input, a busy signal is output, and the output of the busy signal is stopped at time t1 after the output of the strobe signal (STROBE) is stopped. The acknowledgment signal is the strobe signal (ST
ROBE) is output a predetermined time after the output is stopped,
Thereafter, the output is stopped after a certain time has elapsed. still,
The certain time during which the acknowledgment signal is output is a time sufficient for notifying the host device that the print data reception processing on the printer device has been completed.
【0022】図3は本例のセントロニクスインターフェ
イス制御装置の処理動作を説明するフローチャートであ
る。以下、同図のフローチャートに沿って動作を説明す
る。先ず、装置の電源を投入すると(ステップ(以下S
で示す)1)、MPU2は初期設定処理を実行し、RA
M4、GA5、PLD6等の各回路のリセット処理を行
い、さらにPLD6に初期のセットデータ(X)である
「12」をセットする(S2)。尚、このセットデータ
「12」は以下のようにして設定される。すなわち、P
LD6に入力するクロック信号(CLK)の周期を、例
えば40nsとし、ストローブ信号の出力時間を0.5
μsとすると、クロック信号(CLK)によってサンプ
リングできる数は12.5である。したがって、ストロ
ーブ信号が出力中、クロック信号(CLK)によってサ
ンプリングが可能な数(整数値)は、「12」であり、
この理由からセットデータ「12」がPLD6に出力さ
れ、セットデータ(X)の初期値としてPLD6にセッ
トされる。FIG. 3 is a flow chart for explaining the processing operation of the Centronics interface control device of the present embodiment. Hereinafter, the operation will be described with reference to the flowchart of FIG. First, when the power of the apparatus is turned on (step (hereinafter referred to as S
1), the MPU 2 executes an initial setting process,
The reset processing of each circuit such as M4, GA5 and PLD6 is performed, and "12" which is the initial set data (X) is set in PLD6 (S2). The set data "12" is set as follows. That is, P
The cycle of the clock signal (CLK) input to the LD 6 is, for example, 40 ns, and the output time of the strobe signal is 0.5.
Assuming μs, the number that can be sampled by the clock signal (CLK) is 12.5. Therefore, while the strobe signal is being output, the number (integer value) that can be sampled by the clock signal (CLK) is “12”,
For this reason, the set data "12" is output to the PLD 6, and is set in the PLD 6 as an initial value of the set data (X).
【0023】さらに、MPU2は初期設定処理の際、初
期値(Y)をRAM4の所定エリアにセットする(S
3)。尚、この初期値(Y)は、本例の処理動作は同じ
処理を複数回(例えば、3回)繰り返して行い、データ
の確実性を求める構成であり、このため初期値(Y)を
先ず「1」に設定する。このように、本例のセントロニ
クスインターフェイス制御装置の初期設定処理を行った
後、上位機器から出力されるストローブ信号(STRO
BE)の入力を待つ。以下の説明では、図4のタイムチ
ャートも含めて説明する。Further, the MPU 2 sets an initial value (Y) in a predetermined area of the RAM 4 at the time of the initial setting processing (S
3). Note that the initial value (Y) is a configuration in which the same operation is repeated a plurality of times (for example, three times) to obtain the reliability of data, and thus the initial value (Y) is set to the initial value (Y) first. Set to “1”. As described above, after performing the initial setting process of the Centronics interface control device of the present example, the strobe signal (STRO) output from the higher-level device is performed.
Wait for input of BE). The following description includes the time chart of FIG.
【0024】上位機器からストローブ信号(STROB
E)が入力すると、PLD6は以後PLD6に入力する
クロック信号(CLK)をカウントする。そして、PL
D6に入力するクロック信号(CLK)のクロック数が
上述のセットデータ「12」に達すると、疑似ストロー
ブ信号(STROBE1)をバッファ7に出力する(S
4がYES)。ここで、上述のセットデータ「12」は
ほぼストローブ信号(STROBE)の出力継続時間と
同じであり、この疑似ストローブ信号(STROBE
1)の出力後、t1時間後にビジィー信号の出力が停止
し、アクノーリッヂ信号の出力によって上位機器から次
のデータを供給する。すなわち、疑似ストローブ信号
(STROBE1)の出力によってバッファ7に保持さ
れた照合データはGA5を介してMPU2に入力し、指
定されるRAM4のアドレスに書き込まれる。そしてそ
の時間はt1で充分であるからである。尚、この時の各
信号の出力は、図4の(a)に示すタイミングである。A strobe signal (STROB) is sent from a host device.
When E) is input, the PLD 6 counts the clock signal (CLK) subsequently input to the PLD 6. And PL
When the number of clocks of the clock signal (CLK) input to D6 reaches the set data “12”, a pseudo strobe signal (STROBE1) is output to the buffer 7 (S
4 is YES). Here, the above set data "12" is almost the same as the output duration of the strobe signal (STROBE), and this pseudo strobe signal (STROBE)
After the output of 1), the output of the busy signal is stopped after the time t1, and the next data is supplied from the host device by the output of the acknowledge signal. That is, the collation data held in the buffer 7 by the output of the pseudo strobe signal (STROBE1) is input to the MPU 2 via the GA 5, and is written to the specified address of the RAM 4. This is because the time t1 is sufficient. The output of each signal at this time is at the timing shown in FIG.
【0025】本例ではこの時上位機器から供給されるデ
ータは、上述のように印刷データではなく照合データで
あり、データ伝送エラーを確認するための照合データで
ある。すなわち、1バイト構成の照合データであり、例
えば照合データ「1」を上位機器からMPU2に伝送
し、ROM3に予め記憶する照合データ「1」と照合す
る。MPU2は上述の照合結果が正しければ1バイト正
常受信できたと判断し(S5がYES)、次の判断(S
6)に移行する。この判断(S5)は、セットデータ
(X)が「3」であるか否かの判断であり、上述のよう
に現在セットデータは「12」であるので判断(S6)
はNOである。In this example, the data supplied from the host device at this time is not the print data but the collation data as described above, and is the collation data for confirming the data transmission error. That is, the collation data is a 1-byte collation data. For example, the collation data “1” is transmitted from the host device to the MPU 2 and collated with the collation data “1” stored in the ROM 3 in advance. If the above-mentioned collation result is correct, the MPU 2 determines that one byte has been normally received (YES in S5), and the next determination (S5).
Go to 6). This determination (S5) is for determining whether or not the set data (X) is "3". Since the current set data is "12" as described above, the determination (S6)
Is NO.
【0026】次に、MPU2はセットデータを‐1デク
リメントし(S7)、セットデータ「11」をPLD6
にセットする。その後、上述と同様照合データを上位機
器からMPU2に伝送し、ROM3に予め記憶する照合
データと照合する。この時、上位機器から伝送される1
バイトの照合データは、例えば「2」であり、ROM3
に記憶する照合データと一致する時、1バイト正常受信
できたと判断する(S5がYES)。尚、この時の各信
号の出力は、図4に示す(b)のタイミングである。し
たがって、この時疑似ストローブ信号(STROBE
1)の出力時間はストローブ信号に対して40nsだけ
短いので、ビジィー信号の出力が停止するタイミングも
同じ時間だけ短くなり、疑似ストローブ信号(STRO
BE1)に同期して出力される印刷データの処理時間も
短縮できることになる。Next, the MPU 2 decrements the set data by -1 (S7), and sets the set data "11" to the PLD 6
Set to. Thereafter, the collation data is transmitted from the host device to the MPU 2 as described above, and collated with the collation data stored in the ROM 3 in advance. At this time, 1
The byte collation data is, for example, “2” and the ROM 3
It is determined that one byte has been successfully received when the data matches the collation data stored in (5) (YES in S5). The output of each signal at this time is at the timing (b) shown in FIG. Therefore, at this time, the pseudo strobe signal (STROBE)
Since the output time of 1) is shorter than the strobe signal by 40 ns, the timing of stopping the output of the busy signal is also shortened by the same time, and the pseudo strobe signal (STRO)
The processing time of print data output in synchronization with BE1) can also be reduced.
【0027】次に、MPU2は上述の判断(S6)及び
処理(S7)を実行し、次の照合データ「3」とROM
3に記憶する照合データが一致するか判断し、一致して
いれば(S5がYES)、データ伝送にエラーは生じな
かったものと判断する。この時の各信号の出力は、図4
に(c)で示すタイミングである。したがって、この時
疑似ストローブ信号(STROBE1)の出力時間はス
トローブ信号(STROBE)に対して2×40nsだ
け短いので、ビジィー信号の出力停止のタイミングも短
くでき、ストローブ信号(STROBE)に同期して出
力される印刷データの処理時間を80ns短縮できる。Next, the MPU 2 executes the above judgment (S6) and processing (S7), and stores the next collation data "3" in the ROM.
It is determined whether or not the collation data stored in No. 3 matches, and if they match (YES in S5), it is determined that no error has occurred in data transmission. The output of each signal at this time is shown in FIG.
The timing shown in FIG. Therefore, at this time, the output time of the pseudo strobe signal (STROBE1) is shorter than the strobe signal (STROBE) by 2 × 40 ns, so that the output stop timing of the busy signal can be shortened, and the output is synchronized with the strobe signal (STROBE). The processing time of the print data to be processed can be reduced by 80 ns.
【0028】以下、上述の判断及び処理を繰り返すこと
により、上位機器から出力される照合データは「4」、
「5」、・・・と順次更新され、セットデータが「3」
になるまで繰り返す。そして、セットデータが「3」に
なるまで照合データにエラーが生じなければ、ストロー
ブ信号が入力する際、図4に示す(5)の短い疑似スト
ローブ信号(STROBE1)の出力によっても伝送エ
ラーを生じることなく印刷データの伝送を行うことがで
きると判断する。したがって、この場合には1バイトの
照合データを伝送する毎に時間t2だけ伝送時間を短縮
でき、トータル的な印刷時間を短縮できる。Hereinafter, by repeating the above determination and processing, the collation data output from the higher-level device is “4”,
Are sequentially updated as “5”,... And the set data is “3”
Repeat until. If no error occurs in the collation data until the set data becomes "3", when a strobe signal is input, a transmission error also occurs due to the output of the short pseudo-strobe signal (STROBE1) of (5) shown in FIG. It is determined that the print data can be transmitted without the print data. Therefore, in this case, the transmission time can be reduced by the time t2 every time one byte of collation data is transmitted, and the total printing time can be reduced.
【0029】一方、上述の処理の間、何れかのセットデ
ータの設定において文字化けが生じると(S5がN
O)、MPU2はその時のセットデータが「12」か否
か判断する(S8)。すなわち、この場合セットデータ
「12」の時の照合データ「1」とROM3に記憶する
照合データが一致しない場合であり、この時MPU2は
異常エラーであるとして、例えばアラーム表示等を行う
(S9)。セットデータ「12」は、前述の図2に示す
通常時のストローブ信号(STROBE)とほぼ同じ疑
似ストローブ信号(STROBE1)であり、この場合
には伝送経路等に何らかの異常があると判断して異常エ
ラー表示を行う。On the other hand, if any of the set data is garbled during the above processing (S5 is N)
O), the MPU 2 determines whether the set data at that time is “12” (S8). That is, in this case, the collation data "1" at the time of the set data "12" and the collation data stored in the ROM 3 do not match. At this time, the MPU 2 determines that an abnormal error has occurred, and displays, for example, an alarm (S9). . The set data "12" is a pseudo strobe signal (STROBE1) which is almost the same as the normal strobe signal (STROBE) shown in FIG. 2 described above. Perform error display.
【0030】一方、セットデータが「12」以外である
時に1バイトデータを正常受信できない場合(S5がN
O、S8がNO)、その時のセットデータXに+1を行
い(S10)、再度1バイトデータを正常受信できない
か否か判断する(S11、S12)。例えば、不一致が
生じたセットデータが「9」であれば、PLD6にセッ
トデータを「10」を再セットして同様の処理を行う。
この場合、セットデータ「10」に対しては前に行った
処理であり、通常問題なく照合データが一致するはずで
ある(S12がYES)。したがって、この時照合デー
タが一致すれば、伝送エラーを生じることがなく印刷デ
ータをプリンタ装置に伝送できる疑似ストローブ信号の
設定時間は基準のストローブ信号の出力時間から2×4
0nsを差し引いた時間であると判断する。On the other hand, when 1-byte data cannot be received normally when the set data is other than "12" (S5 is N)
O, S8: NO), +1 is added to the set data X at that time (S10), and it is determined again whether 1-byte data cannot be normally received (S11, S12). For example, if the set data in which the mismatch has occurred is “9”, the same processing is performed after resetting the set data to “10” in the PLD 6.
In this case, the process is performed before for the set data “10”, and the collation data should normally match without any problem (YES in S12). Therefore, if the collation data matches at this time, the set time of the pseudo strobe signal which can transmit the print data to the printer without causing a transmission error is 2 × 4 times the output time of the reference strobe signal.
It is determined that the time is obtained by subtracting 0 ns.
【0031】次に、MPU2はRAM4に書き込んだ初
期値Yを+1インクリメントし(S13)、このY値が
「3」に達したか判断する(S14)。このY値は前述
のように上述の判断及び処理(S11〜S13)を3回
繰り返すものであり、同じ処理を3回行い伝送エラーを
確認することでノイズ等による誤動作を回避する。例え
ば、上述の例においてセットデータを+1インクリメン
トして「10」に再設定した後、さらに2回の照合処理
でエラーが生じなければ(すなわち照合データが一致す
れば)、セットデータ「10」に対応する80ns短い
疑似ストローブ信号で誤りなく印刷データの処理を行う
ことができると判断する。Next, the MPU 2 increments the initial value Y written in the RAM 4 by +1 (S13), and judges whether this Y value has reached "3" (S14). As described above, this Y value is obtained by repeating the above-described determination and processing (S11 to S13) three times. By performing the same processing three times and confirming a transmission error, a malfunction due to noise or the like is avoided. For example, in the above example, after the set data is incremented by +1 and reset to “10”, if an error does not occur in two more verification processes (that is, if the verification data matches), the set data is changed to “10”. It is determined that the print data can be processed without error using the corresponding pseudo strobe signal that is 80 ns shorter.
【0032】尚、上述の処理で照合データが一致しない
場合、再度セットデータを+1インクリメントする処理
を行い(S10)、3回の照合処理が文字化け等のエラ
ーなくできるセットデータを設定する。If the collation data does not match in the above process, the set data is incremented by +1 again (S10), and set data is set so that three collation processes can be performed without errors such as garbled characters.
【0033】以上のようにして設定されたセットデータ
は、MPU2の制御に従ってGA5に登録される。例え
ばセットデータが上述の「10」である時、データ「1
0」がGA5に登録される。したがって以後、上述のよ
うに設定したデータに従ってビジィー信号、アクノーリ
ッヂ信号を出力し、上位機器から出力される印刷データ
をRAM4に書き込む。しかも、この時使用する疑似ス
トローブ信号は元のストローブ信号より時間t2だけ短
く、アクノーリッヂ信号の出力も対応する時間だけ短く
でき、印刷データの伝送速度を高速にすることができ
る。The set data set as described above is registered in the GA 5 under the control of the MPU 2. For example, when the set data is the above “10”, the data “1”
"0" is registered in GA5. Therefore, thereafter, a busy signal and an acknowledge signal are output in accordance with the data set as described above, and the print data output from the host device is written into the RAM 4. In addition, the pseudo strobe signal used at this time is shorter than the original strobe signal by the time t2, and the output of the acknowledge signal can be shortened by the corresponding time, so that the transmission speed of the print data can be increased.
【0034】一方、本例のセントロニクスインターフェ
イス制御装置は、上述の印刷データの高速処理の他に、
ストローブ信号(STROBE)に侵入するノイズ除去
の機能も有する。On the other hand, the Centronics interface control device of the present embodiment, in addition to the above-described high-speed processing of print data,
It also has a function of removing noise that enters the strobe signal (STROBE).
【0035】図5はこのことを説明する図である。すな
わち同図に示すようなパルス幅の短いノイズがストロー
ブ信号(STROBE)にのった場合でも、本例のセン
トロニクスインターフェイス制御装置は、ストローブ信
号(STROBE)そのものの出力タイミングでビジィ
ー信号、アクノーリッヂ信号を出力するものではない。
本例は疑似ストローブ信号(STROBE1)に従って
ビジィー信号、アクノーリッヂ信号を出力するものであ
り、同図に示すように疑似ストローブ信号(STROB
E1)にはノイズがのらない。すなわち、疑似ストロー
ブ信号(STROBE1)はクロック信号(CLK)に
同期して作成する信号であり、ノイズがのらない信号で
ある。したがって、本例のセントロニクスインターフェ
イス制御装置はノイズフィルターとしての機能も有す
る。FIG. 5 is a diagram for explaining this. In other words, even when noise having a short pulse width as shown in the figure appears in the strobe signal (STROBE), the centronics interface control device of the present embodiment outputs the busy signal and the acknowledge signal at the output timing of the strobe signal (STROBE) itself. It does not output.
In this example, a busy signal and an acknowledge signal are output in accordance with a pseudo strobe signal (STROBE1). As shown in FIG.
There is no noise on E1). That is, the pseudo strobe signal (STROBE1) is a signal generated in synchronization with the clock signal (CLK), and is a signal without noise. Therefore, the Centronics interface control device of this example also has a function as a noise filter.
【0036】尚、本例では確認信号としてビジィー信
号、アクノーリッヂ信号について説明したが、名称いか
んに関わらず、他の確認信号であっても適用できる。ま
た、照合データは「1」、「2」、等のデータに限定さ
れず、データ量の必ずしも1バイトである必要はない。
例えば、数ビット構成の照合データを使用してもよく、
或いは数バイト構成の照合データを使用してもよい。In this embodiment, the busy signal and the acknowledge signal have been described as confirmation signals, but other confirmation signals can be applied regardless of the name. Further, the collation data is not limited to data such as “1” and “2”, and the data amount does not necessarily have to be one byte.
For example, collation data of several bits may be used,
Alternatively, collation data having a configuration of several bytes may be used.
【0037】[0037]
【発明の効果】以上説明したように本発明によれば、正
常に印刷データを伝送できる限界のタイミングでビジィ
ー信号、アクノーリッヂ信号等の確認信号を出力するの
で、印刷データの伝送速度を高速で行い、結果として印
刷処理速度が向上する。As described above, according to the present invention, a confirmation signal such as a busy signal or an acknowledge signal is output at a limit timing at which print data can be transmitted normally, so that the print data transmission speed can be increased. As a result, the print processing speed is improved.
【0038】また、ストローブ信号にノイズがのった場
合でも、そのために影響を受けることがなく、正確な印
刷データの伝送処理を行うことができる。Further, even when noise is present in the strobe signal, the strobe signal is not affected by the noise, so that accurate print data transmission processing can be performed.
【図1】本実施形態例のセントロニクスインターフェイ
ス制御装置のシステムブロック図である。FIG. 1 is a system block diagram of a Centronics interface control device according to an embodiment of the present invention.
【図2】通常の制御動作の場合の動作タイミングを示す
タイムチャートである。FIG. 2 is a time chart showing operation timing in the case of a normal control operation.
【図3】本実施形態例のセントロニクスインターフェイ
ス制御装置の処理動作を説明するフローチャートであ
る。FIG. 3 is a flowchart illustrating a processing operation of the Centronics interface control device of the embodiment.
【図4】(a)はセットデータ「12」の時のタイムチ
ャートであり、(b)はセットデータ「11」の時のタ
イムチャートであり、(c)はセットデータ「10」の
時のタイムチャートであり、(d)はセットデータ
「9」の時のタイムチャートであり、(e)はセットデ
ータ「5」の時のタイムチャートである。4A is a time chart for set data “12”, FIG. 4B is a time chart for set data “11”, and FIG. 4C is a time chart for set data “10”. FIG. 9D is a time chart when set data is “9”, and FIG. 9E is a time chart when set data is “5”.
【図5】本実施形態例のセントロニクスインターフェイ
ス制御装置がノイズ除去機能を有することを説明する図
である。FIG. 5 is a diagram for explaining that the Centronics interface control device of the present embodiment has a noise removing function.
1 セントロニクスインターフェイス制御装置 2 MPU 3 ROM 4 RAM 5 GA 6 PLD 7 バッファ 8 セントロニクスインターフェイス 1 Centronics interface controller 2 MPU 3 ROM 4 RAM 5 GA 6 PLD 7 Buffer 8 Centronics interface
─────────────────────────────────────────────────────
────────────────────────────────────────────────── ───
【手続補正書】[Procedure amendment]
【提出日】平成8年12月5日[Submission date] December 5, 1996
【手続補正1】[Procedure amendment 1]
【補正対象書類名】図面[Document name to be amended] Drawing
【補正対象項目名】図4[Correction target item name] Fig. 4
【補正方法】変更[Correction method] Change
【補正内容】[Correction contents]
【図4】 FIG. 4
Claims (4)
に基づいて応答信号を出力し、これらの信号に同期して
上位機器との間でデータの授受を行うセントロニクスイ
ンターフェイス制御装置において、 前記ストローブ信号の受信を基準として前記応答信号を
出力する時期を可変制御する出力時期可変制御手段と、 該出力時期可変制御手段により可変される信号出力時期
におけるデータ伝送状態を識別する伝送状態識別手段と
を有し、 該伝送状態識別手段により正常伝送を維持できる最高速
の時期条件を前記出力時期可変制御手段に設定し、デー
タの授受を行うことを特徴とするセントロニクスインタ
ーフェイス制御装置。1. A Centronics interface control device that outputs response signals based on strobe signals output from a host device and transmits and receives data to and from the host device in synchronization with these signals. Output timing variable control means for variably controlling the timing of outputting the response signal on the basis of reception; and transmission status identification means for identifying a data transmission status at a signal output timing varied by the output timing variable control means. A centronics interface control device, wherein a maximum speed timing condition under which normal transmission can be maintained by the transmission state identification means is set in the output timing variable control means, and data is exchanged.
されたデータを処理中であることを示すビジィー信号で
あることを特徴とする請求項1記載のセントロニクスイ
ンターフェイス制御装置。2. The Centronics interface control device according to claim 1, wherein the response signal is a busy signal indicating that data output from the host device is being processed.
されたデータの処理が完了したことを示すアクノーリッ
ヂ信号であることを特徴とする請求項1記載のセントロ
ニクスインターフェイス制御装置。3. The Centronics interface control device according to claim 1, wherein the response signal is an acknowledgment signal indicating that the processing of the data output from the host device has been completed.
印字情報であることを特徴とする請求項1乃至3記載の
セントロニクスインターフェイス制御装置。4. The data output from the higher-level device is:
4. The Centronics interface control device according to claim 1, wherein the control information is print information.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8255951A JPH10105511A (en) | 1996-09-27 | 1996-09-27 | Centronics interface controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8255951A JPH10105511A (en) | 1996-09-27 | 1996-09-27 | Centronics interface controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH10105511A true JPH10105511A (en) | 1998-04-24 |
Family
ID=17285853
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8255951A Withdrawn JPH10105511A (en) | 1996-09-27 | 1996-09-27 | Centronics interface controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH10105511A (en) |
-
1996
- 1996-09-27 JP JP8255951A patent/JPH10105511A/en not_active Withdrawn
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0137438B1 (en) | Method for passing a token in a local-area network | |
| US7647446B2 (en) | Networked isochronous USB communication | |
| KR101001074B1 (en) | Method for transferring data on the bus | |
| EP0427502A2 (en) | Programmable logic controllers | |
| US6952276B2 (en) | Printer detecting data precisely in response to change in data transmission speed | |
| JPH10105511A (en) | Centronics interface controller | |
| US5721891A (en) | Detection of N length bit serial communication stream | |
| JP2000227803A (en) | Transmission control method and transmission control system for data link system of programmable controller | |
| US6570666B1 (en) | Printer detecting data precisely in response to change in data transmission speed | |
| JP2001331440A (en) | Data reception processing device | |
| JPH06350679A (en) | Failure determination method | |
| JP2001306489A (en) | Dma transfer device | |
| JP2945123B2 (en) | Communications system | |
| JPS63228855A (en) | Communication controller | |
| JPH11127219A (en) | Data transfer equipment | |
| JP3844024B2 (en) | Printing device | |
| JPH05207098A (en) | Communication control equipment | |
| KR950009583B1 (en) | Method and device to acknowledge collision of data in msx computer network | |
| JPH06334668A (en) | Multiplexed transmission system | |
| JP2002082843A (en) | Burst transfer control circuit and burst transfer control method | |
| JPH0983709A (en) | Image forming apparatus, image forming system, and data transfer method in the system | |
| JPH0563756A (en) | Communication protocol controller | |
| JPH0833055A (en) | Inverter data transmission / reception processing device and processing method thereof | |
| JPH06334669A (en) | Multiplexed transmission system | |
| JPH05314043A (en) | Data processing device |
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: 20031202 |