JPH0281639A - Print pattern generation method - Google Patents
Print pattern generation methodInfo
- Publication number
- JPH0281639A JPH0281639A JP23443788A JP23443788A JPH0281639A JP H0281639 A JPH0281639 A JP H0281639A JP 23443788 A JP23443788 A JP 23443788A JP 23443788 A JP23443788 A JP 23443788A JP H0281639 A JPH0281639 A JP H0281639A
- Authority
- JP
- Japan
- Prior art keywords
- data
- address
- memory element
- latch circuit
- 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
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J2/00—Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
- B41J2/485—Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by the process of building-up characters or image elements applicable to two or more kinds of printing or marking processes
- B41J2/505—Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by the process of building-up characters or image elements applicable to two or more kinds of printing or marking processes from an assembly of identical printing elements
Landscapes
- Dot-Matrix Printers And Others (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、回転可能な印字ヘッドを搭載したシリアルド
ツトプリンタにおいて、移動方向に対して任意の角度に
設定でき、かつ高速に生成することが可能な印字パター
ン生成方式に関するものである。[Detailed Description of the Invention] [Industrial Application Field] The present invention is a serial dot printer equipped with a rotatable print head, which can be set at any angle with respect to the direction of movement and can be generated at high speed. This paper relates to a printing pattern generation method.
最近、1列に配置された印字要素を傾けて印字を行うと
ともに、縮小/拡大文字を印字するような提案が多く出
されている。しかし、その場合、実際に印字を行う際の
問題点としては、印字ヘッドの印字素子(ドツトピン)
の配列に対応したドツトパターンの生成に時間がかかる
ため、゛処理速度上のネックとなっていた。Recently, many proposals have been made for printing by tilting printing elements arranged in a row and for printing reduced/enlarged characters. However, in this case, the problem when actually printing is that the printing element (dot pin) of the print head
Since it takes time to generate a dot pattern corresponding to the array, this has become a bottleneck in processing speed.
従来、ドツトマトリックスプリンタにおいて。Conventionally, in dot matrix printers.
任意の文字サイズを印字する方法としては、例えば、特
開昭62−176852号公報に記載された方法がある
。これは、ドツトマトリック印字を行うための複数のド
ツトビンを備えた印字ヘッドを、ヘッド移動方向に対し
て任意の角度に傾斜させ、その印字ヘッドの傾斜角度に
応じて生じる印字ポイントタイミング制御手段を設けて
、補正するものである。すなわち、先ず、印字の縮小率
に対応する回転角を計算し、印字ヘッドをこの回転角だ
け回転させる一方、縮小率に対応した印字ポイントの印
字タイミング補正値を出力して、印字部の横方向の移動
と印字ヘッドの回転角の回転により、縦方向の印字ポイ
ント間隔の縮小と同一ドツト列の印字タイミングの同期
をとっている。As a method for printing arbitrary character sizes, there is, for example, a method described in Japanese Patent Application Laid-Open No. 176852/1983. This system tilts a print head equipped with a plurality of dot bins for dot-to-matrix printing at an arbitrary angle with respect to the direction of head movement, and is equipped with means for controlling print point timing that occurs according to the inclination angle of the print head. This is a correction. That is, first, the rotation angle corresponding to the printing reduction ratio is calculated, and the print head is rotated by this rotation angle, while the print timing correction value of the printing point corresponding to the reduction ratio is output, and the horizontal direction of the printing section is By moving the dots and rotating the rotation angle of the print head, the printing point interval in the vertical direction is reduced and the printing timing of the same dot row is synchronized.
〔発明が解決しようとする課題〕
しかし、上記従来技術では、印字ポイントタイミング制
御の詳細については、何も記載がない。[Problems to be Solved by the Invention] However, in the above-mentioned prior art, there is no description of the details of print point timing control.
ところで、ドツトマトリックスプリンタにおける文字の
形成方法は、第4図に示すように、格子上の各ポイント
に各印字要素を選択的に動作させることにより行われる
。この印字ポイントのタイミング制御は、斜めに配列さ
れた各印字要素を。By the way, the method of forming characters in a dot matrix printer is performed by selectively operating each printing element at each point on a grid, as shown in FIG. This timing control of the printing points controls each printing element arranged diagonally.
この格子上において垂直に配列されたかのように制御す
る必要がある。このためには、各印字要素の横方向のず
れを、各印字要素の駆動制御周期単位に補正する方法が
実用的である。It is necessary to control the elements as if they were arranged vertically on this grid. For this purpose, a practical method is to correct the lateral deviation of each printing element in units of drive control cycles of each printing element.
第5図は、印字ヘッドを回転させたときの印字例を示す
図である。FIG. 5 is a diagram showing an example of printing when the print head is rotated.
第5図に示すように、この方法では、横方向の各印字要
素の間隔(ここでは、傾斜している実線円の間隔)を格
子寸法(ここでは、実線二重円と隣接する破線円との間
隔)の整数倍とし、この寸法によりずらして印字データ
を各印字要素に与え。As shown in Figure 5, in this method, the interval between each printing element in the horizontal direction (here, the interval between the inclined solid circles) is determined by the grid dimension (here, the interval between the solid line double circle and the adjacent broken line circle). (distance)), and print data is given to each print element shifted by this dimension.
同一タイミングで各印字要素を駆動する。なお、第5図
では、横方向の印字要素の間隔は格子寸法の整数倍では
なく、1.5倍程度になっているが。Each printing element is driven at the same timing. Note that in FIG. 5, the spacing between printing elements in the horizontal direction is not an integral multiple of the grid size, but is approximately 1.5 times the grid size.
実際には6〜8倍にされる。この印字データを、駆動制
御周期単位でずらして各印字要綱に与える方法としては
、マイクロプロセッサにより、印字データを各印字要素
のずれ量に応じた駆動データに変換した後、印字要素駆
動部に与える方法がある。In reality, it is multiplied by 6 to 8 times. The method of applying this print data to each print outline by shifting it in drive control cycle units is to use a microprocessor to convert the print data into drive data according to the amount of deviation of each print element, and then apply it to the print element drive unit. There is a way.
この方法は、例えば、特開昭60−183163号公報
に記載されているように、印字要素を千鳥状2列に配列
したシリアルドツトプリンタに通常採用されている。This method is usually employed in serial dot printers in which printing elements are arranged in two staggered rows, as described in, for example, Japanese Patent Laid-Open No. 183163/1983.
第6図は、従来のシリアルドツトプリンタの制御方法を
示すフローチャートであり、第2図は、第6図の制御方
法による変換前の印字データと変換後の駆動データの一
例を示す図である。FIG. 6 is a flowchart showing a conventional control method for a serial dot printer, and FIG. 2 is a diagram showing an example of print data before conversion and drive data after conversion by the control method of FIG.
第6図においては、上記方法により、印字ヘッドをある
所定の角度に傾けた場合の印字データから駆動データへ
の変換処理手順を示している。FIG. 6 shows a procedure for converting print data into drive data when the print head is tilted at a certain predetermined angle using the method described above.
そして、第6図における変換処理の結果が、第2図に示
されている。The results of the conversion process in FIG. 6 are shown in FIG. 2.
第6図において、先ず、印字データの先頭アドレスをI
NGI(印字)レジスタに格納しくステップ101)、
駆動データ格納先頭アドレスを5ET(セット)レジス
タに格納する(ステップ102)。In FIG. 6, first, the start address of the print data is
Store it in the NGI (print) register (step 101),
The drive data storage start address is stored in the 5ET (set) register (step 102).
次に、Cレジスタ(カウントレジスタ)をOlにセット
しくステップ103)、INGIレジスタの内容をAレ
ジスタ(アキュムレータ)に移しくステップ104)、
ずれ補正データ(1)の先頭アドレスをHO3E(補正
)レジスタに格納する(ステップ105)。HO5Eレ
ジスタの内容をBレジスタ(他方のアキュムレータ)に
移しくステップ106)、SETレジスタの内容とBレ
ジスタの内容を加算したものをWSET(書き込みセッ
ト)レジスタに格納する(ステップ107)、次に、A
レジスタの内容とCレジスタの内容のANDをとって、
その結果をDレジスタに格納しくステップ108)、W
SETレジスタの内容をEレジスタに移す(ステップ1
09)。また、Dレジスタの内容とEレジスタの内容の
ORをとってWSETレジスタに格納する(ステップ1
10)。次に、Cレジスタの内容を1ビツト上位側にシ
フトする(ステップ111)。すなわち、Cレジスタは
ドツトデータを1ビツトずつ抜くためのレジスタであっ
て1.ここでは下位ピットのみ1ビツトシフトされてい
る0次に、HO8Eレジスタを1だけインクリメントし
くステップ112)、Cレジスタキャリアフラグが1′
か否かを判断しくステップ113)、0′であればステ
ップ106に分岐し、1′であれば次に進む。次に、I
NGIレジスタが最終アドレスでないことを確認して(
ステップ114)、ING■レジスタとSETレジスタ
をインクリメントした後(ステップ115,116)、
ステップ103に分岐する。なお、INGIレジスタが
最終アドレスであれば、処理を終了する。Next, set the C register (count register) to Ol (step 103), move the contents of the INGI register to the A register (accumulator) (step 104),
The start address of the deviation correction data (1) is stored in the HO3E (correction) register (step 105). Move the contents of the HO5E register to the B register (the other accumulator) (step 106), store the sum of the contents of the SET register and the B register in the WSET (write set) register (step 107), and then: A
AND the contents of the register and the C register,
Store the result in the D register (step 108), W
Move the contents of the SET register to the E register (step 1)
09). Also, the contents of the D register and the contents of the E register are ORed and stored in the WSET register (step 1
10). Next, the contents of the C register are shifted to the upper bit by one bit (step 111). That is, the C register is a register for extracting dot data one bit at a time. Here, only the lower pit is shifted by 1 bit.The HO8E register is incremented by 1 (step 112), and the C register carrier flag is set to 1'.
If it is 0', the process branches to step 106, and if it is 1', the process proceeds to the next step. Next, I
Check that the NGI register is not the final address (
Step 114), after incrementing the ING register and the SET register (steps 115 and 116),
The process branches to step 103. Note that if the INGI register is the final address, the process ends.
第6図の変換処理フローから明らかなように、1ドツト
の変換に3回のメモリアクセス、5回の演算、1回の判
定が必要であるため、処理速度が低下しており、極めて
実用的ではなかった。As is clear from the conversion process flow in Figure 6, converting one dot requires three memory accesses, five operations, and one judgment, which slows down the processing speed and makes it extremely practical. It wasn't.
また、印字データを駆動制御周期単位でずらして各印字
素子に与える方法としては、シフトレジスタを用いる方
法も考えられるが、縮小/拡大の値を大きく取るには、
印字要素の間隔を大きく。Also, as a method of shifting the print data in drive control cycle units and applying it to each print element, it is possible to use a shift register, but in order to increase the reduction/enlargement value,
Increase the spacing between printing elements.
かつ傾ける量を大きくすることが必要であり、その場合
、シフトレジスタの段数が多くなる。さらに、印字ヘッ
ドの傾きに応じて、シフトレジスタの段数を可変にする
必要があるので、回路量が大となる等の問題があった。In addition, it is necessary to increase the amount of tilting, and in that case, the number of stages of the shift register increases. Furthermore, since it is necessary to vary the number of stages in the shift register depending on the inclination of the print head, there are problems such as an increase in the amount of circuitry.
本発明の目的は、このような従来の課題を解決し、回転
可能な印字ヘッドを搭載したシリアルドツトマトリック
スプリンタにおいて、回路量を増大させず、印字データ
を各印字要素のずれ量に応じた駆動データに高速に変換
できる印字パターン生成方式を提供することにある。The purpose of the present invention is to solve these conventional problems and to drive print data according to the amount of deviation of each printing element without increasing the amount of circuitry in a serial dot matrix printer equipped with a rotatable print head. The object of the present invention is to provide a printing pattern generation method that can be converted into data at high speed.
上記目的を達成するため、本発明の印字パターン生成方
式は、印字要素の配列方向を印字ヘッドの移動方向に対
して任意の角度に設定するために、該印字ヘッドを回転
可能にしたシリアルドツトマトリックスプリンタにおい
て、印字データから上記印字要素のずれ量に応じた駆動
データに変換された値を記憶するメモリ素子と、該印字
データをラッチする第1のラッチ回路と、該第1のラッ
チ回路からのデータと上記メモリ素子から読み出された
データとを選択するためのセレクタと、上記メモリ素子
に印字データから変換された駆動データを格納するため
の格納先頭アドレスをラッチする第2のラッチ回路と、
上記印字ヘッドの角度および上記印字データのビット位
置に対応した上記メモリ素子のアドレス補正値が格納さ
れたアドレス補正記憶手段と、該アドレス補正記憶手段
のアドレスとして、上記印字ヘッドの角度に対応したア
ドレス補正値が記憶されたアドレスを指定する第3のラ
ッチ回路と、上記第2のラッチ回路の内容と上記アドレ
ス補正記憶手段からの出力データとを加算し、上記メモ
リ素子のアドレスとして出力する加算器と、上記各構成
手段を制御するタイミング制御信号を発生する制御信号
発生手段とを有することに特徴がある。In order to achieve the above object, the print pattern generation method of the present invention uses a serial dot matrix in which the print head is rotatable in order to set the arrangement direction of print elements at an arbitrary angle with respect to the moving direction of the print head. The printer includes a memory element that stores a value converted from print data to drive data corresponding to the amount of deviation of the printing element, a first latch circuit that latches the print data, and a a selector for selecting data and data read from the memory element; a second latch circuit for latching a storage start address for storing drive data converted from print data in the memory element;
an address correction storage means storing an address correction value of the memory element corresponding to the angle of the print head and the bit position of the print data, and an address corresponding to the angle of the print head as an address of the address correction storage means; a third latch circuit that specifies an address in which a correction value is stored; and an adder that adds the contents of the second latch circuit and the output data from the address correction storage means and outputs the result as an address of the memory element. and a control signal generating means for generating a timing control signal for controlling each of the above-mentioned constituent means.
本発明においては、所定の配列を持つ複数の印字要素を
備えた印字ヘッドを、所定の方向に移動させながら、こ
れらの印字要素を選択的に動作させて、印字媒体上にド
ツトの組み合わせからなる情報を印字するシリアルドツ
トマトリックスプリンタにおいて、これらの印字要素の
配列方向を印字ヘッドの移動方向に対して任意の角度に
設定すべく、印字ヘッドを回転可能にしたものであって
、メモリ素子に記憶された第2図(a)に示す印字要素
群の印字データから、第2図(b)に示す駆動データに
変換した後、再びメモリ素子に記憶する。In the present invention, a print head equipped with a plurality of print elements having a predetermined arrangement is moved in a predetermined direction and these print elements are selectively operated to form a combination of dots on a print medium. In a serial dot matrix printer that prints information, the print head is rotatable in order to set the arrangement direction of these printing elements at an arbitrary angle with respect to the direction of movement of the print head, and the information is stored in a memory element. The print data of the print element group shown in FIG. 2(a) thus obtained is converted into drive data shown in FIG. 2(b), and then stored in the memory element again.
第2図(b)には、印字ヘッドを所定の角度に設定して
、印字要素間の横方向の間隔の整数分の1(1/6〜1
/8)に縮小された縦方向の間隔を得るものである。こ
のため、例えば、印字ヘッドを所定の角度にした時、各
印字要素間の横方向のずれ量が印印字要素の駆動制御周
期単位の2に相当する量である場合には、アドレス補正
記憶部に。In Figure 2(b), the print head is set at a predetermined angle and an integer fraction (1/6 to 1
/8). Therefore, for example, when the print head is set at a predetermined angle, if the amount of lateral deviation between each print element is an amount equivalent to 2 of the drive control period unit of the print element, the address correction storage To.
第3図のように、アドレス(8o)□6から順次。As shown in Figure 3, sequentially from address (8o)□6.
(O)、。、(2)、。、(4)、。、・・・の各デー
タを格納しておき、これを順次読み出して、先頭格納ア
ドレスと加算した値でメモリ素子をアクセスすることに
より、各列ごとに1〜8ビツトの補正データを読み出す
。読み出された補正データは、セレクタにより1ビツト
ずつ印字データと置換された後、再度メモリ素子に格納
される。これにより、メモリ素子には、第2図(b)に
示す1〜8列の文字パターン駆動データが格納されたこ
とになる。(O),. ,(2),. ,(4),. , . . , are stored in advance, read out sequentially, and the memory element is accessed using the value added to the first storage address, thereby reading out 1 to 8 bits of correction data for each column. The read correction data is replaced with print data bit by bit by the selector, and then stored in the memory element again. As a result, character pattern drive data for columns 1 to 8 shown in FIG. 2(b) are stored in the memory element.
従って、これを順次読み出して、印字要素を駆動するこ
とにより、第2図(b)のパターンが得られる。Therefore, by sequentially reading these and driving the printing elements, the pattern shown in FIG. 2(b) can be obtained.
以下、本発明の実施例を、図面により詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
第1図は1本発明の一実施例を示す印字パターン生成装
置のブロック図である。FIG. 1 is a block diagram of a print pattern generation device showing an embodiment of the present invention.
第1図において、1は印字データを印字要素のずれ量に
応じた駆動データに変換して記憶するメモリ素子、2は
印字データをラッチするラッチ回路、3は印字データを
駆動データに変換する際に。In FIG. 1, 1 is a memory element that converts print data into drive data according to the amount of deviation of the print element and stores it, 2 is a latch circuit that latches the print data, and 3 is a circuit that converts print data into drive data. To.
タイミング発生部6より出力される3本のビット位置指
定線7をデコードし、その値により印字データラッチ2
のデータ中の1ビツトを選択するセレクタ、4はセレク
タ3より出力されるデータをラッチするメモリ素子ライ
トデータラッチ回路、5はデータバスをドライブするデ
ータバスドライバ、8はメモリ素子1のアドレス端子に
出力するためのアドレスマルチプレクサである。アドレ
スマルチプレクサ8は、印字データを駆動データに変換
する場合、駆動データを外部へ読出す際には、加算器9
の出力をマイクロプロセッサ(図示省略)が駆動するア
ドレスバス13をメモリ素子1に与えるように制御する
。また、9は格納先頭アドレスラッチ11の内容と、ア
ドレス補正ROM 10の出力データとを加算する加算
器、10は印字ヘッドの角度と、印字データのビット位
置に対応したメモリ素子1のアドレス補正値を格納する
アドレス補正ROMである。アドレス補iROM 10
のアドレス端子の下位3ビツトには、タイミング発生器
6より出力されるビット位置指定線7が入力されており
、これにより所定の角度での印字データのビット位置に
対応したメモリ素子1のアドレス補正値が格納されてい
る位置が指定される。The three bit position designation lines 7 output from the timing generator 6 are decoded, and the print data latch 2 is
4 is a memory element write data latch circuit that latches the data output from selector 3, 5 is a data bus driver that drives the data bus, and 8 is an address terminal of memory element 1. This is an address multiplexer for output. Address multiplexer 8 converts print data into drive data, and when reading drive data to the outside, adder 9
The address bus 13 driven by a microprocessor (not shown) is controlled to provide the output of the address bus 13 to the memory element 1. Further, 9 is an adder that adds the contents of the storage head address latch 11 and the output data of the address correction ROM 10, and 10 is an address correction value of the memory element 1 corresponding to the angle of the print head and the bit position of the print data. This is an address correction ROM that stores . Address supplement iROM 10
A bit position designation line 7 outputted from the timing generator 6 is inputted to the lower three bits of the address terminal of , and thereby the address of the memory element 1 corresponding to the bit position of the print data at a predetermined angle is corrected. Specifies the location where the value is stored.
また、アドレス補正ROMl0の4ピツ、ト目以上のア
ドレス端子には、印字ヘッドの角度ごとのメモリ素子1
のアドレス補正値が格納されている位置を指定するため
の補正ROMアドレスラッチ12の出力が入力されてい
る。12は、アドレス補正ROMl0のアドレスを格納
するラッチ回路である。タイミング発生部6は、印字デ
ータを駆動データに変換する際に、上記各構成要素を制
御するタイミング信号を発生する。例えば、メモリ素子
1の読み出し信号、書き込み信号等を発生する。In addition, the address terminals of the 4th pin and above of the address correction ROM10 have a memory element 1 for each angle of the print head.
The output of a correction ROM address latch 12 for specifying the location where the address correction value of is stored is input. 12 is a latch circuit that stores the address of the address correction ROM10. The timing generator 6 generates timing signals for controlling each of the above components when converting print data into drive data. For example, it generates a read signal, a write signal, etc. for the memory element 1.
タイミング発生部6は、マイクロプロセッサ(図示省略
)より、印字データが印字データラッチ回路2へ出力さ
れることにより駆動され、印字データラッチ回路2の印
字データを駆動データに変換して、これをメモリ素子1
に格納し終わった時点で、その一連のタイミング発生動
作を停止する。The timing generator 6 is driven by a microprocessor (not shown) outputting print data to the print data latch circuit 2, converts the print data of the print data latch circuit 2 into drive data, and stores this in the memory. Element 1
When the storage is finished, the series of timing generation operations is stopped.
このように1本発明の印字パターン発生装置は、印字デ
ータを各印字要素のずれ量に応じた駆動データに変換し
て、記憶するメモリ素子1と、印字データをラッチする
第1のラッチ回路2と、メモリ素子1より読み出される
データと、第1のラッチ回路2からのデータを選択する
ためのセレクタ3と、印字データを駆動データに変換し
て、メモリ素子1に格納する際の格納先頭アドレスをラ
ッチする第2のラッチ回路11と、印字ヘッドの角度と
印字データのビット位置に対応したメモリ素子1のアド
レス補正値が格納されたアドレス補正記憶部(ROM)
10と、アドレス補正記憶部10のアドレスとして作用
し、印字ヘッドの角度に対応したアドレス補正値が記憶
されたアドレスを指定する第3のラッチ回路12と、第
2のラッチ回路11の内容とアドレス補正記憶部10か
らの出力データを加算し、メモリ素子1のアドレスとし
て出力する加算器9と、各構成要素を制御するタイミン
グ信号発生部6とから構成されている。In this way, the print pattern generating device of the present invention includes a memory element 1 that converts print data into drive data corresponding to the amount of deviation of each print element and stores it, and a first latch circuit 2 that latches the print data. , a selector 3 for selecting data read from the memory element 1 and data from the first latch circuit 2, and a storage start address for converting print data into drive data and storing it in the memory element 1. a second latch circuit 11 for latching, and an address correction storage section (ROM) that stores address correction values of the memory element 1 corresponding to the angle of the print head and the bit position of the print data.
10, a third latch circuit 12 that acts as an address of the address correction storage section 10 and specifies an address in which an address correction value corresponding to the angle of the print head is stored, and the contents and address of the second latch circuit 11. It is comprised of an adder 9 that adds output data from the correction storage section 10 and outputs it as an address of the memory element 1, and a timing signal generation section 6 that controls each component.
第1図の概略動作を述べる。The general operation of FIG. 1 will be described.
第1のラッチ回路2に印字データを、第2のラッチ回路
11に駆動データの格納先頭アドレスを。The first latch circuit 2 receives the print data, and the second latch circuit 11 receives the storage start address of the drive data.
また第3のラッチ回路12に印字ヘッドの角度により決
定されるアドレス補正値が記憶されているアドレスを、
それぞれセットする0次に、′タイミング発生部6を作
動させ、第2のラッチ回路11の内容とアドレス補正記
憶部10の出力(ただし、この時の出力データは0であ
る)を加算器9により加算し、これをメモリ素子1のア
ドレスとして与える。メモリ素子1は、タイミング発生
部6からのタイミングにより読み出し動作を実行し、こ
の値をセレクタ3に入力する。セレクタ3は、第1のラ
ッチ回路2とメモリ素子1の読み出しデータとから、第
1ビツト目のデータは第1のラッチ回路2のデータを、
また残りの第2ビツト目のデータはメモリ素子1よりの
読み出しデータを、それぞれ選択し、出力する。セレク
タ3の出力は。In addition, the third latch circuit 12 stores the address where the address correction value determined by the angle of the print head is stored.
Next, the timing generator 6 is activated, and the contents of the second latch circuit 11 and the output of the address correction storage unit 10 (however, the output data at this time is 0) are added to the adder 9. and give this as the address of memory element 1. The memory element 1 executes a read operation according to the timing from the timing generator 6 and inputs this value to the selector 3. The selector 3 selects the first latch circuit 2 from the read data of the first latch circuit 2 and the memory element 1.
As for the remaining second bit data, read data from the memory element 1 is selected and output. The output of selector 3 is.
タイミング発生部6の次のタイミングで、メモリ素子1
に格納される。メモリ素子1への格納が終了すると、タ
イミング発生部6は、アドレス補正記憶部10のアドレ
スを1つ進め、アドレス補正記憶部10の出力を加算器
9により加算する。この時、アドレス補正記憶部10か
ら、第1の印字要素と第2の印字要素間のずれ量が出力
される。At the next timing of the timing generator 6, the memory element 1
is stored in When the storage in the memory element 1 is completed, the timing generation section 6 advances the address in the address correction storage section 10 by one, and the output of the address correction storage section 10 is added by the adder 9. At this time, the address correction storage section 10 outputs the amount of deviation between the first printing element and the second printing element.
以下、同じようにして、アドレス補正記憶部10のアド
レスが+1されるごとに、第1の印字要素と第3の印字
要素とのずれ量、第1の印字要素と第4の印字要素との
ずれ量、・・・が出力され、これらのデータは加算器9
により加算されて、メモリ素子1のアドレスとして供給
される。メモリ素子1は、その度に読み出し動作を実行
し、セレクタ3に読み出しデータを入力する。セレクタ
3は、アドレス補正記憶部10のアドレスと同期して、
前述のように、第1回目は第1ビツト目のデータは第1
のラッチ回路2のデータを、残り第2ビット目以上のデ
ータはメモリ素子1がらの読み出しデータを選択し、第
2回目は、第2ビツト目のデータは第1のラッチ回路2
のデータを、他のビットはメモリ素子1からの読み出し
データを選択し、メモリ素子1に格納する。以下、第1
のラッチ回路2にラッチされたビット数だけ、同じ動作
を繰り返して、印字データから駆動データへの変換が行
われ、メモリ素子1に格納される。Thereafter, in the same way, each time the address in the address correction storage unit 10 is incremented by 1, the amount of deviation between the first printing element and the third printing element, and the difference between the first printing element and the fourth printing element. The amount of deviation, ... is output, and these data are sent to the adder 9.
is added as the address of the memory element 1. The memory element 1 executes a read operation each time, and inputs read data to the selector 3. The selector 3 synchronizes with the address of the address correction storage section 10,
As mentioned above, the first bit of data is the first
The data of the latch circuit 2 of
The other bits select read data from memory element 1 and store it in memory element 1. Below, the first
The same operation is repeated for the number of bits latched by the latch circuit 2, and the print data is converted into drive data and stored in the memory element 1.
第7図は、第1図の動作フローチャートであり、第2図
および第3図は第1図の動作を説明するための図である
。FIG. 7 is an operation flowchart of FIG. 1, and FIGS. 2 and 3 are diagrams for explaining the operation of FIG. 1.
第1図の動作の概略は述べたが、準備処理を含めて、さ
らに詳述する。Although the outline of the operation shown in FIG. 1 has been described above, it will be explained in more detail, including the preparation process.
先ず、上位装置より指定された文字寸法情報、または縦
方向文字密度情報に従って印字ヘッドの角度が決定され
ると、次にこの角度に対応するデータを選択し、補正R
OMアドレスラッチ12に設定する。ここで、印字ヘッ
ドの角度がAであり、Aに対応するメモリ素子1のアド
レス補正値がアドレス補正ROMl0のアドレス(80
)1i番地より格納されていたものとすると、補正RO
Mアドレスラッチ12へは、(80)、sのデータが設
定される(ステップ203)。First, the angle of the print head is determined according to the character size information or vertical character density information specified by the host device, and then data corresponding to this angle is selected and the correction R is performed.
Set in OM address latch 12. Here, the angle of the print head is A, and the address correction value of the memory element 1 corresponding to A is the address (80
)1i address, the correction RO
Data (80), s is set in the M address latch 12 (step 203).
一方、印字データは第2図に示すようなデータである。On the other hand, the print data is as shown in FIG.
すなわち、印字ヘッドの角度がAである場合の各印字要
素間の横方向のずれ量が印字要素の駆動制御周期単位の
2に相当する量であったものとすると、第3図に示すよ
うに、アドレス補正ROMl0には、アトL/X (8
0)1Gカら(0)(0)、。、(2)1゜、(4)!
。、(8)、。、・・・・・・・のデータが順次8バイ
ト記憶されている。In other words, if the amount of lateral deviation between each printing element when the angle of the print head is A is an amount corresponding to 2 of the drive control period unit of the printing element, as shown in Fig. 3. , address correction ROM10 contains atto L/X (8
0) 1G Ka et al (0) (0),. , (2) 1°, (4)!
. ,(8),. , . . . 8 bytes of data are sequentially stored.
これにより準備ができたので、動作が開始されると、先
ず第2図の■列目の印字データが印字データラッチ回路
2に出力され、セットされる(ステップ201)。格納
先頭アドレスラッチ回路11にも駆動データの先頭アド
レスがセットされる(ステップ202)、補正ROMア
ドレスラッチ回路12には先に(8o)isがセットさ
れているので(ステップ203)、次にタイミング発生
部6が起動され(ステップ204)、タイミング発生部
6からビット位置指定線7に(0)、。が出力される。With this preparation completed, when the operation is started, first, the print data in column 2 in FIG. 2 is output to the print data latch circuit 2 and set (step 201). The start address of the drive data is also set in the storage start address latch circuit 11 (step 202), and since (8o)is is set in the correction ROM address latch circuit 12 first (step 203), the timing The generation unit 6 is activated (step 204), and the timing generation unit 6 transfers (0) to the bit position designation line 7. is output.
これは、第7図におけるn=1の動作開始、つまり第2
図(、)の第0列目の1番目のビットの駆動データの書
き込み動作のタイミングとなる(ステップ205)、こ
れにより、アドレス補正ROM 10から(0)□。が
出力され、この値が加算器9により格納先頭アドレスラ
ッチ11の内容と加算されて、メモリ素子1にアドレス
として入力される(ステップ206)。次に、タイミン
グ発生部6がメモリ素子1に読み出し信号を与えること
により。This is the start of operation at n=1 in FIG.
The timing for writing the drive data of the first bit of the 0th column in FIG. is output, and this value is added to the contents of the storage head address latch 11 by the adder 9 and inputted to the memory element 1 as an address (step 206). Next, the timing generator 6 provides a read signal to the memory element 1.
メモリ素子1からデータを読み出す(ステップ207)
。このメモリ素子1の読み出しデータはセレクタ3に入
力されると、セレクタ3では、タイミング発生部6から
のビット位置指定線7が(0)、。Read data from memory element 1 (step 207)
. When this read data of the memory element 1 is input to the selector 3, the bit position designation line 7 from the timing generator 6 is set to (0) in the selector 3.
であることにより、印字データラッチ2からのデータ中
の第1 (2’)ビットを選択して、第1ビツト目の出
力データとし、他の出力ビットはメモリ素子1からの対
応する読み出しビットデータを選択する(ステップ20
8)。このセレクタ3よりの出力は、メモリ素子ライト
データラッチ4にラッチされ、タイミング発生部6から
読み出し信号に続いて発行される書き込み信号により、
メモリ素子1に書き込まれる(ステップ209)。次に
、タイミング発生部6は、ビット位置指定線7に(1)
□。を出力する。すなわち、第2図(a)の0列の駆動
データの第2ビツト目の書き込み動作に移る。アドレス
補正ROMアドレスラッチ12の値が1だけインクリメ
ントされ(ステップ210)、n+1になる。この時に
前回と異なる点は、アドレス補正ROMl0からは(2
)、。が出力され、メモリ素子1には、前回の読み出し
/書き込みを実行したアドレスに+2したアドレス値が
入力されることである。By doing so, the first (2') bit in the data from print data latch 2 is selected as the first bit output data, and the other output bits are the corresponding read bit data from memory element 1. (Step 20)
8). The output from the selector 3 is latched by the memory element write data latch 4, and is generated by the write signal issued from the timing generator 6 following the read signal.
The data is written to memory element 1 (step 209). Next, the timing generator 6 sends (1) to the bit position designation line 7.
□. Output. That is, the operation moves to the write operation of the second bit of the drive data in column 0 in FIG. 2(a). The value of the address correction ROM address latch 12 is incremented by 1 (step 210) and becomes n+1. At this time, the difference from the previous time is that (2
),. is output, and the address value obtained by adding 2 to the address at which the previous read/write was executed is input to the memory element 1.
第7図では、n+1した値が第1のラッチ2にセットさ
れたビット数をオーバしていないときには、ステップ2
06に分岐して、206〜211までの処理を繰り返す
(ステップ211)。In FIG. 7, when the value n+1 does not exceed the number of bits set in the first latch 2, step 2
The process branches to step 06, and the processes from 206 to 211 are repeated (step 211).
n=2のときには、セレクタ3は出力データとして、第
2(21)ビット目は印字データラッチ2の第2(2”
)ビット目のデータを、他の出力ビットはメモリ素子1
よりの対応する読み出しビットデータを、それぞれ選択
する。When n=2, the selector 3 outputs the second (21) bit as the output data, and outputs the second (2”) bit of the print data latch 2.
) bit data, and other output bits are stored in memory element 1.
The corresponding read bit data are selected respectively.
次のn=3のときには、セレクタ3は出力データとして
、第3(2”)ビット目は印字データラッチ2の第3(
2”)ビット目のデータを、他の出力ビットはメモリ素
子1よりの対応する読み出しビットデータを、それぞれ
選択する。Next, when n=3, the selector 3 outputs the third (2”) bit as the output data, and the third (2”) bit of the print data latch 2
The data of the 2''th bit is selected, and the corresponding read bit data from the memory element 1 is selected for the other output bits.
以上の動作を計8回実行することにより、第2図(a)
の■列目のデータは、メモリ素子1上に第2図(b)の
■′列のような駆動データに変換されて、格納されるこ
とになる。以下、格納先頭アドレスラッチ11の内容を
+1した後、第2図(、)の(■列目の印字データを、
さらに■列目の印字データを、印字データラッチ2にラ
ッチすることにより、第2図(b)のような駆動データ
がメモリ素子1上に変換されて、格納されることになる
。By performing the above operation a total of 8 times, as shown in Fig. 2 (a)
The data in column 2 is converted into drive data as shown in column 2' in FIG. 2(b) and stored on the memory element 1. Hereafter, after incrementing the contents of the storage start address latch 11 by 1, the print data in the (■ column) of FIG.
Furthermore, by latching the print data in column 2 in the print data latch 2, drive data as shown in FIG. 2(b) is converted and stored on the memory element 1.
このように、本実施例においては、1ドツトの変換処理
にメモリ素子を読み出しと書き込みに1回ずつアクセス
するだけでよく、演算も1回加算するだけでよい。従っ
て、従来に比べて変換処理速度が格段に向上する。また
、シフトレジスタは用いないので、段数を多くする必要
はなく、回路量も少なくてよい。In this way, in this embodiment, the conversion process for one dot requires only one reading and one writing access to the memory element, and only one addition operation. Therefore, the conversion processing speed is significantly improved compared to the conventional method. Furthermore, since no shift register is used, there is no need to increase the number of stages, and the amount of circuitry can be reduced.
以上説明したように、本発明によれば、回転可能な印字
ヘッドを搭載したシリアルドツトマトリックスプリンタ
において、従来よりも高速に、印字データを各印字要素
のずれ量に対応した駆動データに変換することができ、
かつ回路量も少なくてよいという利点がある。As explained above, according to the present invention, in a serial dot matrix printer equipped with a rotatable print head, print data can be converted into drive data corresponding to the amount of deviation of each print element at a higher speed than before. is possible,
It also has the advantage of requiring less circuitry.
第1図は本発明の一実施例を示すブロック図、第2図お
よび第3図は第1図の動作を説明するための図、第4図
および第5図は印字ヘッドを回転された時の印字例を示
す図、第6図は従来の印字データ変換のための制御フロ
ーチャート、第7図は本発明における駆動データへの変
換動作フローチャートである。
1:メモリ素子、2:印字データラッチ回路(第1のラ
ッチ)、3:セレクタ、4:書き込みアドレスラッチ、
5:データパイドライバ、6:タイミング発生部、7:
ビット位置指定線、8ニアドレスマルチプレクサ、9:
加算器、10ニアドレス補正ROM、11:格納先頭ア
ドレスラッチ回路(第2のラッチ)、12ニアドレス補
正ROMアドレスラッチ回路(第3のラッチ)、13:
マイクロプロセッサからのアドレスバス。
第
図
第
図
ロ −四 −4−〇 〈
へ へ へ へ へ へ へ へ第
図
第
図
第
図FIG. 1 is a block diagram showing one embodiment of the present invention, FIGS. 2 and 3 are diagrams for explaining the operation of FIG. 1, and FIGS. 4 and 5 are diagrams when the print head is rotated. FIG. 6 is a control flowchart for conventional print data conversion, and FIG. 7 is a flowchart of conversion operation to drive data in the present invention. 1: Memory element, 2: Print data latch circuit (first latch), 3: Selector, 4: Write address latch,
5: Data pie driver, 6: Timing generator, 7:
Bit position designation line, 8 near address multiplexer, 9:
Adder, 10 Near address correction ROM, 11: Storage start address latch circuit (second latch), 12 Near address correction ROM address latch circuit (third latch), 13:
Address bus from microprocessor. Figure Figure B -4 -4-〇
Claims (1)
て任意の角度に設定するために、該印字ヘッドを回転可
能にしたシリアルドットマトリックスプリンタにおいて
、印字データから上記印字要素のずれ量に応じた駆動デ
ータに変換された値を記憶するメモリ素子と、該印字デ
ータをラッチする第1のラッチ回路と、該第1のラッチ
回路からのデータと上記メモリ素子から読み出されたデ
ータとを選択するためのセレクタと、上記メモリ素子に
印字データから変換された駆動データを格納するための
格納先頭アドレスをラッチする第2のラッチ回路と、上
記印字ヘッドの角度および上記印字データのビット位置
に対応した上記メモリ素子のアドレス補正値が格納され
たアドレス補正記憶手段と、該アドレス補正記憶手段の
アドレスとして、上記印字ヘッドの角度に対応したアド
レス補正値が記憶されたアドレスを指定する第3のラッ
チ回路と、上記第2のラッチ回路の内容と上記アドレス
補正記憶手段からの出力データとを加算し、上記メモリ
素子のアドレスとして出力する加算器と、上記各構成手
段を制御するタイミング制御信号を発生する制御信号発
生手段とを有することを特徴とする印字パターン生成方
式。1. In order to set the arrangement direction of the printing elements at an arbitrary angle with respect to the moving direction of the print head, in a serial dot matrix printer in which the print head is rotatable, according to the amount of deviation of the printing elements from the print data, a memory element that stores a value converted to drive data, a first latch circuit that latches the print data, data from the first latch circuit, and data read from the memory element. a second latch circuit that latches the storage start address for storing the drive data converted from the print data in the memory element, and a second latch circuit that corresponds to the angle of the print head and the bit position of the print data. an address correction storage means in which an address correction value of the memory element is stored; and a third latch for specifying, as the address of the address correction storage means, an address in which an address correction value corresponding to the angle of the print head is stored. a circuit, an adder that adds the contents of the second latch circuit and the output data from the address correction storage means and outputs the result as an address of the memory element, and generates a timing control signal for controlling each of the constituent means. 1. A printing pattern generation method comprising: a control signal generating means for generating a control signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23443788A JPH0281639A (en) | 1988-09-19 | 1988-09-19 | Print pattern generation method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23443788A JPH0281639A (en) | 1988-09-19 | 1988-09-19 | Print pattern generation method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0281639A true JPH0281639A (en) | 1990-03-22 |
Family
ID=16970994
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP23443788A Pending JPH0281639A (en) | 1988-09-19 | 1988-09-19 | Print pattern generation method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0281639A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08132678A (en) * | 1994-11-07 | 1996-05-28 | Seikosha Co Ltd | Printer |
| EP0690410A3 (en) * | 1994-07-01 | 1997-06-11 | Canon Kk | Printer having scroll print buffer and printing method |
-
1988
- 1988-09-19 JP JP23443788A patent/JPH0281639A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0690410A3 (en) * | 1994-07-01 | 1997-06-11 | Canon Kk | Printer having scroll print buffer and printing method |
| US5927871A (en) * | 1994-07-01 | 1999-07-27 | Canon Kabushiki Kaisha | Printer having scroll print buffer and printing method |
| CN1064765C (en) * | 1994-07-01 | 2001-04-18 | 佳能株式会社 | Printer having scroll print buffer and printing method |
| JPH08132678A (en) * | 1994-11-07 | 1996-05-28 | Seikosha Co Ltd | Printer |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0284980B1 (en) | Method for generating character images for dot printing | |
| JPS6238733B2 (en) | ||
| JPH0773920B2 (en) | n × n bit dot matrix 90 ° rotation circuit | |
| JPS61103189A (en) | Data transfer | |
| JP2570684B2 (en) | Character pattern generator for Dot Tomato Rix serial printer | |
| JPH0281639A (en) | Print pattern generation method | |
| JPH0457510B2 (en) | ||
| JPS6038167A (en) | Character or figure pattern generating circuit device | |
| JPS61209167A (en) | Printing control circuit in wire dotline printer | |
| JP2535825B2 (en) | Print control circuit of dot tomato printer | |
| JPH0463781B2 (en) | ||
| JPH021677B2 (en) | ||
| JP2708841B2 (en) | Writing method of bitmap memory | |
| JPS5853338B2 (en) | Dot pattern output method | |
| JPH0647301B2 (en) | Charactor pattern generator | |
| JPH02106363A (en) | Graphic information rotating circuit of printer | |
| JPS5874364A (en) | Character printing system | |
| JPS62290546A (en) | recording device | |
| JP2699035B2 (en) | Impact dot printer and printing method | |
| JPS629959A (en) | Bit pattern conversion system | |
| JPS5854395B2 (en) | Character pattern generation method | |
| JPS61175049A (en) | Printing control device | |
| JPH0486271A (en) | Pattern printing system | |
| JPS61140986A (en) | Character rotation apparatus | |
| JPS62103154A (en) | Character pattern memory circuit |