[go: up one dir, main page]

JPH0784076B2 - Print data control circuit - Google Patents

Print data control circuit

Info

Publication number
JPH0784076B2
JPH0784076B2 JP63107308A JP10730888A JPH0784076B2 JP H0784076 B2 JPH0784076 B2 JP H0784076B2 JP 63107308 A JP63107308 A JP 63107308A JP 10730888 A JP10730888 A JP 10730888A JP H0784076 B2 JPH0784076 B2 JP H0784076B2
Authority
JP
Japan
Prior art keywords
data
circuit
pattern
signal
pattern data
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.)
Expired - Fee Related
Application number
JP63107308A
Other languages
Japanese (ja)
Other versions
JPH01278366A (en
Inventor
克則 村上
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP63107308A priority Critical patent/JPH0784076B2/en
Publication of JPH01278366A publication Critical patent/JPH01278366A/en
Publication of JPH0784076B2 publication Critical patent/JPH0784076B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ドットマトリクスプリンタの制御回路に関
し、特に印字ドットイメージを一時格納するドットライ
ンメモリに対するデータ信号の制御回路である印字デー
タ制御回路に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dot matrix printer control circuit, and more particularly to a print data control circuit which is a data signal control circuit for a dot line memory for temporarily storing a print dot image. .

〔従来の技術〕[Conventional technology]

従来、この種のドットマトリクスプリンタでは、印字デ
ータの制御は、マイクロプロセッサによって行われてい
た。例えば第2図(a)に示すような予め斜線や網点の
ドットパターンを格納したドットラインメモリに、第2
図(b)に示すような文字のドットパターンをライトす
る場合を考える。
Conventionally, in this type of dot matrix printer, control of print data is performed by a microprocessor. For example, as shown in FIG. 2 (a), the second
Consider the case of writing a dot pattern of characters as shown in FIG.

すなわち、同図(A)の枠内に同図(B)の半角文字を
挿入して、同図(C)に示すような印字を、一文字分の
用紙上スペースに行う場合である。
That is, this is a case where the half-width character of FIG. 9B is inserted in the frame of FIG. 9A and the printing as shown in FIG.

現在一般に利用しているマイクロプロセッサのデータ信
号は、通常4ビット,8ビット,16ビットといった特定の
ビット数でしかとりえない。従ってマイクロプロセッサ
で構成する回路では、マイクロプロセッサに接続するメ
モリは、1回のリード,ライトで4ビット,8ビット16ビ
ットといった特定のビット数がアクセスできるように構
成される。例えば、マイクロプロセッサが16ビットのデ
ータ信号を有する場合を考えると、通常文字パターン発
生器,ドットラインメモリのいずれもデータ信号が16ビ
ットになるように構成される。
The data signal of the microprocessor generally used at present can usually take only a specific number of bits such as 4 bits, 8 bits and 16 bits. Therefore, in the circuit configured by the microprocessor, the memory connected to the microprocessor is configured so that a specific number of bits such as 4 bits, 8 bits and 16 bits can be accessed by one read and write. For example, considering the case where the microprocessor has a 16-bit data signal, both the normal character pattern generator and the dot line memory are configured so that the data signal is 16 bits.

しかるに、印字する文字のドットパターンの大きさは特
定されていないことから、第2図(b)に示す半角のア
ルファベット“A"のように、横8ドット×縦16ビットの
場合もある。
However, since the size of the dot pattern of the character to be printed is not specified, it may be 8 dots wide × 16 bits long like the half-width alphabet “A” shown in FIG. 2 (b).

この場合、文字パターン発生器からデータをリードする
と、16ビットのうち8ビットのみが有意な信号で、他の
8ビットは無意味である。従って、この文字パターン発
生器からリードした16ビットのデータをそのままドット
ラインメモリにライトすると、無意味なデータもライト
してしまうため、ドットラインメモリ上のドットイメー
ジは第2図(C)のようにはならない。
In this case, when data is read from the character pattern generator, only 8 bits out of 16 bits are significant signals and the other 8 bits are meaningless. Therefore, if the 16-bit data read from this character pattern generator is written to the dot line memory as it is, meaningless data is also written, so the dot image on the dot line memory is as shown in Fig. 2 (C). It doesn't.

そこでマイクロプロセッサでは、第2図(D)に示すよ
うな操作が行われる。まず、文字パターン発生器から同
図(B)のドットパターンがリードされ(同図(D)
参照)このデータ“FFOO(2進数の16進表現)”との論
理演算が行なわれてデータの無意味な部分が零にされる
(同図(D)参照)。次に、有意なデータがライトす
る位置にシフトされる(同図(D)参照)図では、4
ビットシフトの場合を例とした。
Therefore, in the microprocessor, the operation shown in FIG. 2 (D) is performed. First, the dot pattern shown in FIG. 7B is read from the character pattern generator (see FIG.
(See reference) This data "FFOO (hexadecimal notation of binary number)" is logically operated to make the meaningless part of the data zero (see FIG. 4D). Next, significant data is shifted to the position where it is written (see (D) in the figure).
The case of bit shift is taken as an example.

次に、同図(A)のドットラインメモリのデータをリー
ドし(同図(D)参照)、リードしたデータと“FOOF
(2進数の16進表現)”との論理積演算が行なわれる
(同図(D)参照)。そして最後に文字発生器のデー
タとドットラインメモリのデータとの論理和演算が
行なわれ、データがドットラインメモリにライトされ
る。
Next, the data in the dot line memory of FIG. 9A is read (see FIG. 9D), and the read data and “FOOF” are read.
(Binary hexadecimal notation) "(see FIG. 3D). Finally, the data of the character generator and the data of the dot line memory are logically ORed to obtain the data. Is written to the dot line memory.

その結果、ドットラインメモリからリードされた16ビッ
トのデータのうちの8ビットは、文字のドットパターン
8ビットに置換されてドットラインメモリに再度格納さ
れることとなる。
As a result, 8 bits of the 16-bit data read from the dot line memory are replaced with the character dot pattern 8 bits and stored again in the dot line memory.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

このように、従来の印字データの制御方式では、文字パ
ターン発生器からリードしたドットパターンをマイクロ
プロセッサの演算によって操作している。
As described above, in the conventional print data control method, the dot pattern read from the character pattern generator is operated by the operation of the microprocessor.

このため、文字パターン発生器からドットラインメモリ
への文字のドットパターンの転送時間のうち、マイクロ
プロセッサの演算に要する時かが大きな場合を占めるこ
ととなって、印字ドットイメージ発生の性能が制限さ
れ、ひいては印字速度を低下させる原因となっている。
As a result, the transfer time of the character dot pattern from the character pattern generator to the dot line memory depends on the time required for the microprocessor to operate, which limits the performance of the printed dot image generation. As a result, it causes a decrease in printing speed.

〔発明の目的〕[Object of the Invention]

本発明は、かかる点に鑑みてなされたものであり、文字
パターン発生器からのドットパターンの読み出し処理か
らドットラインメモリへの書き込み処理までを高速化す
ることで印字速度の向上を図ることができる印字データ
制御回路を提供することを、その目的とするものであ
る。
The present invention has been made in view of the above point, and it is possible to improve the printing speed by speeding up the process of reading the dot pattern from the character pattern generator to the process of writing the dot pattern to the dot line memory. It is an object of the present invention to provide a print data control circuit.

〔課題を解決するための手段〕[Means for Solving the Problems]

本発明は、マイクロプロセッサのデータ信号のビット数
に対応してドットラインメモリに格納されている第一の
パターンデータと、マイクロプロセッサのデータ信号の
ビット数に対応して文字パターン発生器16から発生され
る第二のパターンデータとを合成して印字ドットイメー
ジを得る印字データ制御回路18において、第一のパター
ンデータを格納するパターンデータ格納手段(第3のレ
ジスタ9)と、第2のパターンデータを格納するパター
ンデータ格納手段(第1のレジスタ2)、第二のパター
ンデータの印字すべき有効部分を「1」とすると共にマ
イクロプロセッサのデータ信号のビット数に対応させた
ことによて生じる不要部分を「0」として位置指定デー
タを格納する位置データ格納手段(第2のレジスタ3)
とを備えている。
The present invention generates the first pattern data stored in the dot line memory corresponding to the bit number of the data signal of the microprocessor and the character pattern generator 16 corresponding to the bit number of the data signal of the microprocessor. In the print data control circuit 18 for obtaining the print dot image by synthesizing the second pattern data, the pattern data storage means (the third register 9) for storing the first pattern data, and the second pattern data. Is generated by setting the effective portion of the second pattern data to be printed to "1" and corresponding to the bit number of the data signal of the microprocessor. Position data storage means (second register 3) for storing position designation data with the unnecessary portion set to "0"
It has and.

しかも、第1のレジスタ2からの第二のパターンデータ
を位置指定データの有効部分のビット位置に応じた量だ
けシフトするシフト回路4と、位置指定データの論理否
定値と第一のパターンデータ格納手段からの第一のパタ
ーンデータとの論理積をとる第一の論理積回路8と、第
3のレジスタ9からの第一のパターンデータとシフト回
路でシフトされた第二のパターンデータとの論理演算を
行う論理演算回路5と、論理演算回路の出力と位置指定
データとの論理積をとる第二の論理積回路6と、第一の
論理積回路8と第二の論理積回路6の論理和をとると共
に当該論理和をドットラインメモリ20に出力する論理和
回路10とを備えた、という構成を採っている。これによ
って前述した目的を達成しようとするものである。
Moreover, the shift circuit 4 that shifts the second pattern data from the first register 2 by an amount corresponding to the bit position of the effective portion of the position designation data, the logical negation value of the position designation data, and the first pattern data storage A first AND circuit 8 which ANDs the first pattern data from the means, and the first pattern data from the third register 9 and the second pattern data shifted by the shift circuit. A logical operation circuit 5 for performing an operation, a second AND circuit 6 for ANDing the output of the logical operation circuit and the position designation data, and a logic for the first AND circuit 8 and the second AND circuit 6. A configuration is adopted in which a logical sum circuit 10 is provided which outputs the logical sum to the dot line memory 20 while taking the sum. This aims to achieve the above-mentioned object.

〔作 用〕 この発明によると、印字ドットイメージの合成演算は、
印字データ制御回路の演算処理手段によって行なわれ
る。
[Operation] According to the present invention, the composite operation of the print dot image is
This is performed by the arithmetic processing means of the print data control circuit.

この際、マイクロプロセッサは、文字パターン発生器か
ら第二のパターンデータ発生と、合成された印字ドット
イメージのドットラインメモリに対するライト軌道を行
なうのみで、合成イメージの演算処理は、全く行なわな
い。
At this time, the microprocessor only performs the second pattern data generation from the character pattern generator and the write trajectory of the combined print dot image to the dot line memory, and does not perform any calculation processing of the combined image.

〔実施例〕〔Example〕

以下、本発明の一実施例について、添付図面を参照しな
がら説明する。
An embodiment of the present invention will be described below with reference to the accompanying drawings.

まず、第4図を参照しながら、実施例が適用されるドッ
ト又はマトリクスプリンタの制御回路例について説明す
る。この第4図において、制御回路は、マイクロプロセ
ッサ13,通信制御回路14,主メモリ15,文字パターン発生
器16,印字アドレス制御回路17,印字データ制御回路18,
タイミング制御回路19,ドットラインメモリ20,及びシフ
トレジスタ21で構成されている。そして、マイクロプロ
セッサ13の出力信号であって、リードおよびライトの対
象となるメモリおよびレジスタの番地を与えるアドレス
信号a,リードおよびライトの識別とタイミングを与える
制御信号b,ライト時にメモリおよびレジスタにデータを
与え、リード時にはメモリおよびレジスタからデータを
与えられるデータ信号cが、各々の回路間で授受される
ように接続されており、マイクロプロセッサ13が全体の
制御を行うようになっている。
First, an example of a control circuit of a dot or matrix printer to which the embodiment is applied will be described with reference to FIG. In FIG. 4, the control circuit includes a microprocessor 13, a communication control circuit 14, a main memory 15, a character pattern generator 16, a print address control circuit 17, a print data control circuit 18,
It is composed of a timing control circuit 19, a dot line memory 20, and a shift register 21. The output signal of the microprocessor 13 is an address signal a that gives the address of the memory and register to be read and written, a control signal b that gives the read and write identification and timing, and data to the memory and register when writing. , And a data signal c to which data is given from the memory and the register at the time of reading is connected so as to be transmitted and received between the respective circuits, and the microprocessor 13 controls the whole.

以上のような装置において、通信制御回路14は、上位位
置とのインタフェースとして機能しており、該上位装置
からは主に文字コードで表わされた印字データ、例えば
第2図(B)に示す場合にはアルファベットの「A」の
文字コードが送信されてくる。
In the above apparatus, the communication control circuit 14 functions as an interface with the upper position, and the print data mainly represented by the character code from the upper apparatus, for example, shown in FIG. 2 (B). In this case, the character code of the alphabet "A" is transmitted.

マイクロプロセッサ13は、これを受信し、自分の作業用
のメモリである主メモリ15に格納する。次にマイクロプ
ロセッサ12は、主メモリ15から「A」の文字コードをリ
ードして、文字コード対応する文字パターンの格納され
ている文字パターン発生器16のアドレスを計算し、文字
「A」のドットパターンをリードする。その後マイクロ
プロセッサ13は、ドットラインメモリ20に文字「A」の
ドットパターンをライトする。マイクロプロセッサ13の
アドレス信号aは印字アドレス制御回路17,データ信号
cは印字データ制御回路18を介してドットラインメモリ
20に各々与えられる。この場合におて、第2図に示した
ようなパターンデータの合成は、後述するように、マイ
クロプロセッサ13によるドットラインメモリに対するラ
イト軌道に基づいて、印字データ制御回路18により行な
われる。
The microprocessor 13 receives this and stores it in the main memory 15, which is a working memory. Next, the microprocessor 12 reads the character code of "A" from the main memory 15, calculates the address of the character pattern generator 16 in which the character pattern corresponding to the character code is stored, and the dot of the character "A" is calculated. Lead the pattern. After that, the microprocessor 13 writes the dot pattern of the character "A" in the dot line memory 20. The address signal a of the microprocessor 13 is a print address control circuit 17, and the data signal c is a dot line memory via a print data control circuit 18.
Given to 20 each. In this case, the combination of the pattern data as shown in FIG. 2 is performed by the print data control circuit 18 based on the write trajectory of the microprocessor 13 with respect to the dot line memory, as will be described later.

ドットラインメモリ20のリードおよびライトに必要な制
御信号は、タイミング制御回路19によって発生される。
シフトレジスタ21は、ドットラインメモリ20のリードデ
ータを印字機構部22への送信に適したシリアル信号に変
換する。
The timing control circuit 19 generates control signals necessary for reading and writing the dot line memory 20.
The shift register 21 converts the read data of the dot line memory 20 into a serial signal suitable for transmission to the printing mechanism unit 22.

そして印字機構部22では、入力されたシリアル信号に基
づいて印字ヘッド(図示せず)の駆動が行なわれ、第2
図(C)に示す印字が行なわれる。
Then, in the print mechanism unit 22, the print head (not shown) is driven based on the input serial signal, and the second
The printing shown in FIG. 6C is performed.

次に、上述した印字データ制御回路18の一実施例につい
て、まず第1図を参照しながらその構成を説明する。同
図において、マイクロプロセッサ13のアドレス信号aと
制御信号bとがデコーダ回路1に入力されるようになっ
ており、これらのアドレス信号a、制御信号bによっ
て、第1のレジスタ2と第2のレジスタ3に対するラッ
チパルス信号d,eと、タイミング制御回路12におてドッ
トラインメモリアクセスをトリガーする起動パルス信号
fとが、生成されるようになっている。
Next, an embodiment of the above-mentioned print data control circuit 18 will be described with reference to FIG. In the figure, the address signal a and the control signal b of the microprocessor 13 are input to the decoder circuit 1. By the address signal a and the control signal b, the first register 2 and the second register 2 Latch pulse signals d and e for the register 3 and a start pulse signal f for triggering dot line memory access in the timing control circuit 12 are generated.

マイクロプロセッサ13のデータ信号である第1のデータ
信号cが入力する第1のレジスタ2と第2のレジスタ3
は、各々ラッチパルス信号d,eが発生した時点での第1
のデータ信号cのデータを各々ラッチする機能を有す
る。
The first register 2 and the second register 3 to which the first data signal c which is the data signal of the microprocessor 13 is input
Are the first pulses when the latch pulse signals d and e are generated.
It has a function of latching the data of the data signal c.

第1のレジスタ2の出力信号gは、シフト回路4及び論
理演算回路5に各々入力されるようになっている。シフ
ト回路4に入力される出力信号gは、シフト回路4にお
いて、入力信号cに対する出力信号hのシフト数を設定
する信号で、論理演算回路5における信号gは、論理演
算の種類を選択する信号である。
The output signal g of the first register 2 is input to the shift circuit 4 and the logical operation circuit 5, respectively. The output signal g input to the shift circuit 4 is a signal that sets the shift number of the output signal h with respect to the input signal c in the shift circuit 4, and the signal g in the logical operation circuit 5 is a signal that selects the type of logical operation. Is.

このように、シフト回路4は、入力データを設定された
シフト数に応じてシフトして出力する回路である。この
場合、シフト回路4の出力信号hは、論理演算回路5の
片方の入力端子に入力されている。
As described above, the shift circuit 4 is a circuit that shifts and outputs the input data according to the set shift number. In this case, the output signal h of the shift circuit 4 is input to one input terminal of the logical operation circuit 5.

第2のレジスタ3の出力信号iは、第1の論理積回路6
の片方の入力側と論理否定回路7とに各々入力されてい
る。この論理否定回路7の出力信号jは、第2の論理積
回路8の片方の入力側に入力されるようになっている。
第1の論理積回路6の他方の入力信号は、論理演算回路
5の出力信号kである。この第1の論理積回路6では、
第2のレジスタ3に設定されたデータと論理演算回路5
の出力信号k上のデータとの論理が行なわれる。
The output signal i of the second register 3 is the first AND circuit 6
Is input to one of the input sides and the logical NOT circuit 7. The output signal j of the logical NOT circuit 7 is input to one input side of the second AND circuit 8.
The other input signal of the first AND circuit 6 is the output signal k of the logical operation circuit 5. In the first AND circuit 6,
The data set in the second register 3 and the logical operation circuit 5
Of the output signal k of FIG.

次に、第3のレジスタ8には、ドットラインメモリ20の
データ信号である第2のデータ信号1が入力されてお
り、ドットラインメモリ20からリードしたデータを、タ
イミング制御回路12がドットラインメモリ20のリードに
同期して発生するラッチパルス信号mによってラッチす
るようになっている。この第3のレジスタ9の出力信号
nは、論理演算回路5の一方の入力側と、第2の論理積
回路8の一方の入力側に各々出力されている。
Next, the second data signal 1 which is the data signal of the dot line memory 20 is input to the third register 8, and the timing control circuit 12 transfers the data read from the dot line memory 20 to the dot line memory 20. It is designed to be latched by a latch pulse signal m generated in synchronization with 20 leads. The output signal n of the third register 9 is output to one input side of the logical operation circuit 5 and one input side of the second AND circuit 8, respectively.

次に、第1の論理積回路6の出力信号oと第2の論理積
回路8の出力信号pは、各々論理和回路10に入力される
ように接続されている。そして、論理和回路10の出力信
号qは、バッファ回路11に入力されており、バッファ回
路11の出力信号は第2のデータ信号lとなっている。バ
ッファ回路11は、タイミング制御回路12がドットライン
メモリ20のライトに同期して発生するバッファイネーブ
ル信号rによって入力信号qを出力信号lとして通過さ
せる機能を有する。
Next, the output signal o of the first AND circuit 6 and the output signal p of the second AND circuit 8 are connected so as to be input to the OR circuit 10. The output signal q of the OR circuit 10 is input to the buffer circuit 11, and the output signal of the buffer circuit 11 is the second data signal l. The buffer circuit 11 has a function of passing the input signal q as the output signal 1 by the buffer enable signal r generated by the timing control circuit 12 in synchronization with the writing of the dot line memory 20.

次に、タイミング制御回路12は、デコーダ回路1が発生
する起動パルス信号fによってドットラインメモリ20に
対するデータのリードまたはライトを開始し、ラッチパ
ルス信号m,バッファイネーブル信号r,ドットラインメモ
リ20の制御信号sを各々発生するものである。
Next, the timing control circuit 12 starts reading or writing of data with respect to the dot line memory 20 by the activation pulse signal f generated by the decoder circuit 1, and controls the latch pulse signal m, the buffer enable signal r, and the dot line memory 20. The signals s are generated respectively.

次に、第3図及び第5図を参照しながら、上記実施例の
全体的動作について説明する。なお、第3図には論理演
算のプロセスが、第5図には動作のフローチャートが示
されている。また、ここでは、マイクロプロセッサ13の
入出力データ信号は16ビットであり、文字パターン発生
器16,ドットラインメモリ20のデータ信号も16ビットで
あるとする。更に、文字パターン発生器16からリードさ
れた文字のドットパターンの一部(ここでは1ワード)
のうち有意なパターンは15〜12ビット,11〜8ビット
で、7〜0ビットは無意味である。以下、これらを、各
々A1,A2,Cと称することとする(第3図参照)。
Next, the overall operation of the above embodiment will be described with reference to FIGS. The process of logical operation is shown in FIG. 3, and the flowchart of the operation is shown in FIG. It is also assumed here that the input / output data signal of the microprocessor 13 is 16 bits, and the data signals of the character pattern generator 16 and the dot line memory 20 are also 16 bits. Furthermore, a part of the dot pattern of the character read from the character pattern generator 16 (here, 1 word)
Of these, significant patterns are 15 to 12 bits and 11 to 8 bits, and 7 to 0 bits are meaningless. Hereinafter, these will be referred to as A1, A2, and C, respectively (see FIG. 3).

最初に、第1のレジスタ2に、ライトすべきアドレスな
いし場所に対応するシフト数が設定される(第5図ステ
ップSA参照)。例えば、ライトする場所が4ビット目か
らの場合は、第1のレジスタ2にシフト数として“4
(2進数)”が設定される。
First, the shift number corresponding to the address or location to be written is set in the first register 2 (see step SA in FIG. 5). For example, if the writing location is from the 4th bit, the shift number "4" is stored in the first register 2.
(Binary) ”is set.

また、第2のレジスタ3には、同様にライトすべき場所
に相当する位置指定データが設定される(ステップSB参
照)。例えば、第2図に示した例では、ライトするデー
タタは4ビット目から8ビットであることから、第2の
レジスタ3には“OFFO(2進数の16進表現)”が設定さ
れる(第3図参照)。
Further, similarly, position designation data corresponding to a place to be written is set in the second register 3 (see step SB). For example, in the example shown in FIG. 2, since the data to be written is from the 4th bit to the 8th bit, "OFFO (hexadecimal notation of binary number)" is set in the second register 3 (see (See Figure 3).

従って第1の論理積回路6の入力端子には“OFFO(2進
数の16進表現)”が、第2の論理積回路8の入力端子に
は“FOOF(2進数の16進表現)”が各々現れることとな
る(第3図参照)。
Therefore, "OFFO (binary hexadecimal representation)" is input to the first AND circuit 6, and "FOOF (binary hexadecimal representation)" is input to the second AND circuit 8. Each will appear (see FIG. 3).

次に、マイクロプロセッサ13により、タイミング制御回
路12の起動が行なわれ、ドットラインメモリ20からの該
当ドットパターンデータのリードが実行される(第5図
ステップSC参照)。これらのドットパターンデータは、
以後、15ビット目から順に4ビットずつB1,B2,B3,B4と
称することとする(第3図参照)。リードされたドッ
トパターンデータ(B1,B2,B3,B4)は、第3のレジスタ
9にラッチされる(第5図ステップSD参照)。
Next, the microprocessor 13 activates the timing control circuit 12 to read the corresponding dot pattern data from the dot line memory 20 (see step SC in FIG. 5). These dot pattern data are
Hereinafter, four bits will be referred to as B1, B2, B3, and B4 in order from the 15th bit (see FIG. 3). The read dot pattern data (B1, B2, B3, B4) is latched in the third register 9 (see step SD in FIG. 5).

以上のようにして、第1,第2及び第3のレジスタ2,3,9
に各データが格納された時点で、マイクロプロセッサ13
により、第1のデータ信号cとして、ドットラインメモ
リ20にラインするべきデータ(A1,A2,C)を発生しなが
ら、タイミング制御回路12に対して、ドットラインメモ
リ20へのライトが行なわれる(第5図ステップSE参
照)。すると、シフト回路4からは4ビットシフトした
データ(C,A1,A2,C)(第3参照)が発生し、これ
が論理演算回路5に入力される。
As described above, the first, second and third registers 2, 3, 9
When each data is stored in
As a result, while the data (A1, A2, C) to be lined to the dot line memory 20 is generated as the first data signal c, the timing control circuit 12 is written to the dot line memory 20 (( (See Step SE in Fig. 5). Then, the shift circuit 4 generates 4-bit shifted data (C, A1, A2, C) (see third), which is input to the logical operation circuit 5.

他方、この論理演算回路5には、第3のレジスタの出力
信号nが入力されているので、論理演算回路5の出力信
号kは、第3図のとの演算結果となり、この論理演
算を論理和とすると、同図のようになる。
On the other hand, since the output signal n of the third register is input to the logical operation circuit 5, the output signal k of the logical operation circuit 5 is the operation result of that shown in FIG. The sum is as shown in the figure.

そして、次段の第1の論理積回路1の入力端子には、第
3図のとが現れるから、その出力信号oは、同図の
のようになる。また第2の論理積回路8の入力端子に
は同図とが現れるから、その出力信号pは、同図
のようになる。これら第1の論理積回路6と第2の論理
積回路8の各出力信号は、各々論理和回路10に入力され
るので、論理和回路10の入力端子には同図とが現
れ、その出力信号qは同図のようになる(第5図ステ
ップSF参照)。
Then, since and of FIG. 3 appear at the input terminal of the first AND circuit 1 of the next stage, the output signal o thereof is as shown in FIG. Since the same figure appears at the input terminal of the second AND circuit 8, its output signal p becomes as shown in the figure. Since the respective output signals of the first AND circuit 6 and the second AND circuit 8 are respectively input to the OR circuit 10, the same figure appears at the input terminal of the OR circuit 10 and its output The signal q is as shown in the figure (see step SF in FIG. 5).

このようにして求められたデータ(B1,B2VA1,B2VA2,B
4)は、ドットラインメモリ20のライトタイミングに同
期して発生されるバッファイネーブル信号mによってバ
ッファ回路11を通過し、ドットラインメモリ20にライト
される(第5図ステップSG参照)。
The data obtained in this way (B1, B2VA1, B2VA2, B
4) passes through the buffer circuit 11 by the buffer enable signal m generated in synchronization with the write timing of the dot line memory 20 and is written in the dot line memory 20 (see step SG in FIG. 5).

以上のように、この実施例によれば、必要なデータを印
字データ制御回路のレジスタに予め格納し、次に、マイ
クロプロセッサによる起動指令に基づいて印字データ制
御回路により合成データの演算を行うとともに、ドット
ラインメモリに対してライトすることとしたので、マイ
クロプロセッサは合成データの演算を行う必要がない。
As described above, according to this embodiment, necessary data is stored in the register of the print data control circuit in advance, and then the print data control circuit calculates the composite data based on the start command from the microprocessor. Since it is decided to write to the dot line memory, the microprocessor does not need to calculate the combined data.

従って、文字パターン発生器からリードされたドットパ
ターンとドットラインメモリ内のドットパターンとの合
成が速やかに行なわれてドットラインメモリにライトさ
れることとなり、印字ドットイメージの発生が高速で行
なわれて、印字速度が向上することとなる。
Therefore, the dot pattern read from the character pattern generator and the dot pattern in the dot line memory are quickly combined and written to the dot line memory, and the printed dot image is generated at high speed. The printing speed will be improved.

なお、本発明は、何ら上記実施例に限定されるものでは
なく、例えば第1図の印字データ制御回路中の論理演算
部分は、同様の作用を奏するよう種々設計変更可能であ
る。
The present invention is not limited to the above-described embodiment, and for example, the logical operation portion in the print data control circuit in FIG. 1 can be variously modified in design so as to achieve the same operation.

以上説明したように、本実施例によると、印字ドットイ
メージを求めるための演算を、印字データ制御回路で行
うこととしたので、印字ドットイメージの発生が高速に
なり、印字速度の向上を図ることができるという従来に
ない優れた印字データ制御回路を提供することができ
る。
As described above, according to the present embodiment, since the calculation for obtaining the print dot image is performed by the print data control circuit, the generation of the print dot image becomes faster and the print speed is improved. It is possible to provide an excellent print data control circuit that does not exist in the past.

〔発明の効果〕〔The invention's effect〕

本発明は以上のように構成され機能するので、これによ
ると、位置指定データを用いて各種の論理演算を行うた
め、単純な演算の組み合わせにより不要部分のある文字
パターンデータをドットラインメモリが要求するパター
ンデータと一致させることができる。従って、マイクロ
プロセッサのデータ信号のビット数に対応させたことに
よって生じる文字パターンデータの不要部分を除去する
処理を論理演算を行う複数の回路で実施することができ
る。さらに、各論理積回路が、ドットラインメモリが要
求するパターンデータと文字発生器からの文字パターン
データとを対応させ合成するため、実際のドットライン
メモリへの書き込み処理は一度で完了するため処理が高
速である。このように、文字発生器からの文字パターン
データの読み込みからドットラインメモリへの書き込み
までの処理からマイクロプロセッサを開放することがで
きる。従って、文字パターンの編集処理での処理時間が
短縮され、スループットを向上させ、印字速度の高速化
に寄与することができる。このように、文字パターン発
生器からのドットパターンの読み出し処理からドットラ
インメモリへの書き込み処理までを高速化することで印
字速度の向上を図ることができる従来にない優れた印字
データ制御回路を提供することができる。
Since the present invention is configured and functions as described above, according to this, since various logical operations are performed by using the position designation data, the dot line memory requests character pattern data having an unnecessary portion by a simple combination of operations. The pattern data can be matched. Therefore, the process of removing the unnecessary portion of the character pattern data caused by making the number of bits of the data signal of the microprocessor correspond can be implemented by a plurality of circuits that perform logical operations. Furthermore, since each AND circuit correlates the pattern data required by the dot line memory with the character pattern data from the character generator and synthesizes them, the actual writing process to the dot line memory is completed in one step. It's fast. In this way, the microprocessor can be released from the processing from the reading of the character pattern data from the character generator to the writing to the dot line memory. Therefore, the processing time in the editing process of the character pattern can be shortened, the throughput can be improved, and the printing speed can be increased. In this way, by providing a superior print data control circuit that has never before been possible, the printing speed can be improved by speeding up the process of reading the dot pattern from the character pattern generator to the process of writing it to the dot line memory. can do.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明の印字データ制御回路の一実施例を示す
ブロック図、第2図は従来の印字データの制御方式の説
明図、第3図は実施例による印字データ制御回路の動作
説明図、第4図は実施例によるドットマトリクスプリン
タの制御回路のブロック図、第5図は実施例の動作を示
すフローチャートである。 1……デコーダ回路,2……第1のレジスタ,3……第2の
レジスタ,4……シフト回路,5……論理演算回路,6……第
1の論理積回路,7……論理否定回路,8……第2の論理積
回路,9……第3のレジスタ,10……論理和回路,11……バ
ッファ回路,12……タイミング制御回路,13……マイクロ
プロセッサ,14……通信制御回路,15……主メモリ,16…
…文字発生器,17……印字アドレス制御回路,18……印字
データ制御回路,19……タイミング制御回路,20……ドッ
トラインメモリ,21……シフトレジスタ,22……印字機構
部,a……アドレス信号,b……制御信号,c……第1のデー
タ信号,d……ラッチパルス信号,e……ラッチパルス信
号,f……起動パルス信号,g……第1のレジスタの出力信
号,h……シフト回路の出力信号,i……第2のレジスタの
出力信号,j……論理否定回路の出力信号,k……論理演算
回路の出力信号,l……第2のデータ信号,m……ラッチパ
ルス信号,n……第3のレジスタの出力信号,o……第1の
論理積回路の出力信号,p……第2の論理積回路の出力信
号,o……第1の論理積回路の出力信号,p……第2の論理
積回路の出力信号,q……論理和回路の出力信号,r……バ
ッファイネーブル信号,s……ドットラインメモリの出力
信号。
FIG. 1 is a block diagram showing an embodiment of a print data control circuit of the present invention, FIG. 2 is an explanatory view of a conventional print data control system, and FIG. 3 is an operation explanatory view of a print data control circuit according to the embodiment. FIG. 4 is a block diagram of the control circuit of the dot matrix printer according to the embodiment, and FIG. 5 is a flowchart showing the operation of the embodiment. 1 ... Decoder circuit, 2 ... First register, 3 ... Second register, 4 ... Shift circuit, 5 ... Logical operation circuit, 6 ... First AND circuit, 7 ... Logical NOT Circuit, 8 ... second AND circuit, 9 ... third register, 10 ... OR circuit, 11 ... buffer circuit, 12 ... timing control circuit, 13 ... microprocessor, 14 ... communication Control circuit, 15 ... Main memory, 16 ...
… Character generator, 17 …… Print address control circuit, 18 …… Print data control circuit, 19 …… Timing control circuit, 20 …… Dot line memory, 21 …… Shift register, 22 …… Printing mechanism, a… … Address signal, b …… Control signal, c …… First data signal, d …… Latch pulse signal, e …… Latch pulse signal, f …… Starting pulse signal, g …… First register output signal , h ... shift circuit output signal, i ... second register output signal, j ... logical NOT circuit output signal, k ... logical operation circuit output signal, l ... second data signal, m ... Latch pulse signal, n ... Output signal of third register, o ... Output signal of first AND circuit, p ... Output signal of second AND circuit, o ... First Output signal of logical product circuit, p ... Output signal of second logical product circuit, q ... Output signal of logical sum circuit, r ... Buffer enable signal, s ... Dot line Mori of the output signal.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】マイクロプロセッサのデータ信号のビット
数に対応してドットラインメモリに格納されている第一
のパターンデータと、マイクロプロセッサのデータ信号
のビット数に対応して文字パターン発生器から発生され
る第二のパターンデータとを合成して印字ドットイメー
ジを得る印字データ制御回路において、 前記第一及び第二のパターンデータを各々格納する第一
及び第二のパターンデータ格納手段と、 前記第二のパターンデータの印字すべき有効部分を
「1」とすると共に前記マイクロプロセッサのデータ信
号のビット数に対応させたことによって生じる不要部分
を「0」として位置指定データを格納する位置データ格
納手段と、 前記第二のパターンデータ格納手段からの第二のパター
ンデータを前記位置指定データの有効部分のビット位置
に応じた量だけシフトするシフト回路と、 前記位置指定データの論理否定値と前記第一のパターン
データ格納手段からの第一のパターンデータとの論理積
をとる第一の論理積回路と、 前記第一のパターンデータ格納手段からの第一のパター
ンデータと前記シフト回路でシフトされた第二のパター
ンデータとの論理演算を行う論理演算回路と、 前記論理演算回路の出力と前記位置指定データとの論理
積をとる第二の論理積回路と、 前記第一の論理積回路と前記第二の論理積回路の論理和
をとると共に当該論理和を前記印字ドットイメージとし
て前記ドットラインメモリに出力する論理和回路とを備
えたことを特徴とする印字データ制御回路。
1. A first pattern data stored in a dot line memory corresponding to the number of bits of a microprocessor data signal and a character pattern generator corresponding to the number of bits of a microprocessor data signal. A print data control circuit for synthesizing the second pattern data to obtain a print dot image, and first and second pattern data storage means for storing the first and second pattern data, respectively, Position data storing means for storing the position designation data by setting "1" as an effective portion of the second pattern data to be printed and "0" as an unnecessary portion caused by corresponding to the bit number of the data signal of the microprocessor. And the second pattern data from the second pattern data storage means is an effective part of the position designation data. A shift circuit that shifts by an amount corresponding to the bit position of the first pattern, and a first AND circuit that ANDs the logical negation value of the position designation data and the first pattern data from the first pattern data storage means. A logical operation circuit for performing a logical operation between the first pattern data from the first pattern data storage means and the second pattern data shifted by the shift circuit, and the output of the logical operation circuit and the position A second logical product circuit that obtains a logical product with specified data; and a logical sum of the first logical product circuit and the second logical product circuit, and the logical sum is used as the print dot image in the dot line memory And a logical sum circuit for outputting to the print data control circuit.
JP63107308A 1988-04-28 1988-04-28 Print data control circuit Expired - Fee Related JPH0784076B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63107308A JPH0784076B2 (en) 1988-04-28 1988-04-28 Print data control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63107308A JPH0784076B2 (en) 1988-04-28 1988-04-28 Print data control circuit

Publications (2)

Publication Number Publication Date
JPH01278366A JPH01278366A (en) 1989-11-08
JPH0784076B2 true JPH0784076B2 (en) 1995-09-13

Family

ID=14455794

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63107308A Expired - Fee Related JPH0784076B2 (en) 1988-04-28 1988-04-28 Print data control circuit

Country Status (1)

Country Link
JP (1) JPH0784076B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59111861A (en) * 1982-12-16 1984-06-28 Fujitsu Ltd Print control method
JPS62199456A (en) * 1986-02-28 1987-09-03 Canon Inc Apparatus for processing document

Also Published As

Publication number Publication date
JPH01278366A (en) 1989-11-08

Similar Documents

Publication Publication Date Title
US4707153A (en) Printer controller
US4839826A (en) Affine conversion apparatus using a raster generator to reduce cycle time
US5010513A (en) Data processing apparatus
JPH01136770A (en) Printer
JPH0784076B2 (en) Print data control circuit
JPS6057593B2 (en) Character pattern processing method
US5471562A (en) Printer having a bit shift function
JPS619766A (en) Data transfer device
US6577313B1 (en) Image data control apparatus
JPS6330256A (en) Printer
JPH0411283A (en) Patter converting device
KR890001867B1 (en) Character image conversion method and device
JPS6213690B2 (en)
JPS5936314B2 (en) Display device control method
JP2001018463A (en) Dma controller and dma controlling method
JPS60263984A (en) Dot data development system
JPH0426311B2 (en)
JPH05138935A (en) Device for rearranging printing data
JPH0357660A (en) Highlighted character generation circuit
JPS61292674A (en) Character pattern generator
JPH05108544A (en) Direct memory access device and data transfer method for the device
JPS60178072A (en) Electronic appliance
JPS58211463A (en) printer
JPS6137441A (en) High-speed printing processing system of dot printer
JPH05294016A (en) Image data output method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees