JPH04269566A - Printing pattern developing method - Google Patents

Printing pattern developing method

Info

Publication number
JPH04269566A
JPH04269566A JP3064191A JP3064191A JPH04269566A JP H04269566 A JPH04269566 A JP H04269566A JP 3064191 A JP3064191 A JP 3064191A JP 3064191 A JP3064191 A JP 3064191A JP H04269566 A JPH04269566 A JP H04269566A
Authority
JP
Japan
Prior art keywords
printing
pattern
developing area
image buffer
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3064191A
Other languages
Japanese (ja)
Inventor
Kazuhisa Ariga
和寿 有賀
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP3064191A priority Critical patent/JPH04269566A/en
Publication of JPH04269566A publication Critical patent/JPH04269566A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To decrease consumption of a memory by removing an auxiliary developing area by a method wherein a selection means which selects whether a developing area is used as two lines content or as one line content according to a character to be printed, is provided. CONSTITUTION:When an em character is printed, a selection means 14 selects use of a developing area as two lines, and develops a printing pattern firstly in a developing area A10 to start printing. It develops the printing pattern of a next line in a developing area B11 while printing in the developing area A10 and executes printing in the developing area B11 after end of printing in the developing area A10. When a longitudinal double em character is printed, the selection means 14 selects use of the developing area as one line, and develops a lower half pattern of the longitudinal double em character in one side developing area. It develops an upper half pattern in the other side developing area, and takes the patterns in two developing areas as one line content printing pattern to start printing. After end of one line printing, the printing pattern of a longitudinal double em one line content is developed again in the developing area A10 and the developing area B11.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はドットマトリクスにより
文字を構成するプリンタに関し、特に縦倍角を印字する
プリンタの印字パターン展開方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer that forms characters using a dot matrix, and more particularly to a printing pattern development method for a printer that prints double-height characters.

【0002】0002

【従来の技術】従来この種の技術は、印字パターン展開
領域を主展開領域としてい2行分、補助展開領域として
1行分持っていた。以下主展開領域のうち1行分を主展
開領域A、もう1行分を主展開領域Bとする。
2. Description of the Related Art Conventionally, this type of technology has had a print pattern development area for two lines as a main development area and one line as an auxiliary development area. Hereinafter, one line of the main development area will be referred to as a main development area A, and the other line will be referred to as a main development area B.

【0003】全角文字印字の場合は図10に示すとおり
、主展開領域A100に1行分のパターンを展開し、展
開終了後に印字を開始し、主展開領域A100を印字し
ている間に次行のパターンを主展開領域B101に展開
し、主展開領域A100の印字終了後に主展開領域B1
01の印字を行うという動作の繰り返しであった。
In the case of full-width character printing, as shown in FIG. 10, one line of pattern is developed in the main development area A100, printing is started after the development is completed, and while the main development area A100 is being printed, the next line is printed. The pattern is developed in the main development area B101, and after the printing of the main development area A100 is completed, the pattern is developed in the main development area B1.
The operation of printing 01 was repeated.

【0004】また、縦倍角文字印字の場合は、2つの主
展開領域が1つの補助展開領域を共有し、一方の領域(
主展開領域A100+補助展開領域102)で1行分の
縦倍角の印字のパターンを構成し、補助展開領域から印
字を開始し、補助展開領域の印字が終了した後、他方の
領域(主展開領域B101+補助展開領域102)に次
行のパターンを展開するというものであった。
Furthermore, in the case of double-height character printing, two main development areas share one auxiliary development area, and one area (
Main development area A100 + auxiliary development area 102) constitutes a double-height printing pattern for one line, printing starts from the auxiliary development area, and after the printing of the auxiliary development area is completed, the other area (main development area The next row of patterns is developed in B101+auxiliary development area 102).

【0005】[0005]

【発明が解決しようとする課題】しかし、前述の従来技
術では縦倍角文字専用の展開領域が必要であるため、主
展開領域2行分、補助展開領域1行分、合計3行分の展
開領域を必要としていた。そのためメモリの使用量が多
くマイクロコンピュータ内部のメモリだけでは足りずマ
イクロコンピュータ外部のメモリを使用しなくてはなら
ないためコストアップするという問題点を有する。
[Problems to be Solved by the Invention] However, since the above-mentioned prior art requires a development area exclusively for double-height characters, it requires a development area for two lines of the main development area and one line of the auxiliary development area, a total of three lines. was needed. Therefore, there is a problem in that a large amount of memory is used, and the memory inside the microcomputer is not enough and memory external to the microcomputer must be used, which increases costs.

【0006】本発明はこのような欠点を解決するために
なされたものであり、2行分の展開領域を印字する文字
により2行分として使用するか、1行分として使用する
かを選択する選択手段を設けることにより補助展開領域
をなくし、メモリの使用量を減らすことを目的とする。
[0006] The present invention has been made to solve these drawbacks, and it is possible to select whether to use the developed area for two lines as two lines or as one line depending on the characters to be printed. By providing a selection means, the purpose is to eliminate the auxiliary development area and reduce the amount of memory used.

【0007】[0007]

【課題を解決するための手段】本発明は原文字パターン
を実際に印字するパターンに展開する展開手段と、前記
展開手段が印字パターンを展開する少なくとも2つの展
開領域を有し、前記展開手段が前記少なくとも2つの展
開領域に印字するパターンを展開する際、印字する文字
により前記少なくとも2つの展開領域を1行分として印
字パターンを展開するか、または2行分として印字パタ
ーンを展開するかを選択する選択手段を有することを特
徴とする。
[Means for Solving the Problems] The present invention has a developing means for developing an original character pattern into a pattern to be actually printed, and at least two developing areas in which the developing means develops the printed pattern, and the developing means has at least two developing areas for developing the printed pattern. When developing a pattern to be printed on the at least two development areas, select whether to develop the printing pattern in the at least two development areas as one line or two lines depending on the characters to be printed. It is characterized by having a selection means for selecting.

【0008】[0008]

【作用】本発明の上記の構成によれば、全角文字を連続
印字する場合、選択手段14は展開領域を2行として使
用することを選択し、まず展開領域A10に印字パター
ンを展開し、展開領域A10から印字を開始し、展開領
域A10を印字している間に展開領域B11に次行の印
字パターンを展開し、展開領域A10の印字終了後に展
開領域B11の印字を行いその間に展開領域A10に次
行の印字パターンを展開するという繰り返しを行う。
[Operation] According to the above structure of the present invention, when printing full-width characters continuously, the selection means 14 selects to use the development area as two lines, first develops the printing pattern in the development area A10, and Printing starts from area A10, and while printing area A10, the next line of printing pattern is developed in development area B11, and after printing of development area A10 is completed, printing of development area B11 is performed, and during that time, development area A10 is printed. The printing pattern for the next line is developed and the process is repeated.

【0009】縦倍角文字を印字する場合、選択手段14
は展開領域を1行として使用することを選択し、縦倍角
文字の下半分のパターンを一方の展開領域に展開し、上
半分のパターンを他方の展開領域に展開し、この2つの
展開領域のパターンを1行分の印字パターンとして印字
を開始する。1行の印字終了後に再び展開領域A10と
展開領域B11に縦倍角1行分の印字パターンを展開す
るという繰り返しを行う。
When printing double-height characters, the selection means 14
chooses to use the expansion area as one line, expands the bottom half pattern of the double-height character into one expansion area, expands the upper half pattern into the other expansion area, and then expands the pattern between the two expansion areas. Printing is started using the pattern as a printing pattern for one line. After the printing of one line is completed, the print pattern for one line of double height is developed again in the development area A10 and the development area B11, and this is repeated.

【0010】というように展開領域を印字する文字によ
り2行分または1行分として使用する選択手段を設けた
ことにより補助展開領域を設けなくて済むのでメモリの
使用量が少なくて済む。
By providing selection means for using the development area as two lines or one line depending on the characters to be printed, there is no need to provide an auxiliary development area, so the amount of memory used can be reduced.

【0011】[0011]

【実施例】図2は、本発明が適用されたプリンタの一実
施例を示すブロック図である。シングルチップコンピュ
ータ20は内部にROM21、RAM22を持っている
。ROM21には原文字パターン、印字ルーチン、印字
パターン展開ルーチン、受信データ処理ルーチンが記憶
されており、RAM22には図3に示すとおり受信デー
タを貯えておく領域(以下受信バッファ30とする)、
印字パターン展開ルーチンによって展開されたパターン
を格納する領域(以下イメージバッファ31とする)が
全角文字で2行分確保されている。
Embodiment FIG. 2 is a block diagram showing an embodiment of a printer to which the present invention is applied. The single chip computer 20 has a ROM 21 and a RAM 22 inside. The ROM 21 stores original character patterns, print routines, print pattern development routines, and received data processing routines, and the RAM 22 has an area for storing received data (hereinafter referred to as a receive buffer 30) as shown in FIG.
An area (hereinafter referred to as image buffer 31) for storing the pattern developed by the print pattern development routine is secured for two lines of full-width characters.

【0012】I/F24より受信した印字データはRA
M22内の受信バッファ30に貯えられていく。それと
同時にROM21に記憶されているデータ処理ルーチン
に従ってRAM22内の受信バッファ30のデータは、
はじめに受け取ったものから処理され、文字データの場
合はROM21に記憶されている展開ルーチンによって
実際に印字されるパターンに展開され、RAM22に確
保されているイメージバッファ31に格納される。
[0012] The print data received from I/F 24 is RA
The data is stored in the reception buffer 30 in the M22. At the same time, the data in the receive buffer 30 in the RAM 22 is processed according to the data processing routine stored in the ROM 21.
The first received data is processed, and in the case of character data, it is developed into a pattern to be actually printed by a development routine stored in the ROM 21, and then stored in the image buffer 31 secured in the RAM 22.

【0013】そして、印字命令によりまたは1行分のイ
メージバッファ31が一杯になったときにROM21に
記憶されている印字ルーチンはメカ23を駆動して印字
を行う、というように構成されている。
The printing routine stored in the ROM 21 drives the mechanism 23 to perform printing in response to a printing command or when the image buffer 31 for one line becomes full.

【0014】このように構成したプリンタにおいて印字
する場合の動作を図4、図5、図6、図7に示したフロ
ーチャートに基づいて説明する。なお、図中IBUFA
と書かれたものはイメージバッファA32、IBUFB
と書かれたものはイメージバッファB33、展開IBU
Fと書かれたものは印字パターンが展開されるイメージ
バッファ、印字IBUFと書かれたものは展開された印
字パターンが印刷されるイメージバッファを示す。
The operation of printing in the printer configured as described above will be explained based on the flowcharts shown in FIGS. 4, 5, 6, and 7. In addition, IBUFA in the figure
Those written as are image buffers A32 and IBUFB.
The one written as is image buffer B33, expansion IBU
The letter F indicates the image buffer in which the print pattern is developed, and the letter IBUF indicates the image buffer in which the developed print pattern is printed.

【0015】プリンタは電源投入後ROM21に記憶さ
れているプログラムに従って動作を開始する。
After the printer is powered on, it starts operating according to the program stored in the ROM 21.

【0016】全角文字印字場合図4に示されるように、
まず最初に印字パターンを展開するイメージバッファを
イメージバッファA32としイメージバッファA32へ
の印字パターンの展開を許可する(ステップ1)。
In the case of full-width character printing, as shown in FIG.
First, the image buffer A32 is set as the image buffer in which the print pattern is developed, and development of the print pattern into the image buffer A32 is permitted (step 1).

【0017】次に印字パターンを展開すべきイメージバ
ッファが展開許可されているか確認し、展開が禁止され
ていたならば許可されるまで待つ(ステップ2)。
Next, it is checked whether the image buffer in which the print pattern is to be developed is permitted to be developed, and if development is prohibited, the process waits until it is permitted (step 2).

【0018】展開すべきイメージバッファが展開可能と
なったならばデータ処理を開始する(ステップ3)。
When the image buffer to be expanded can be expanded, data processing is started (step 3).

【0019】1行分のデータ処理が終了したならば、展
開が終了したイメージバッファを展開禁止にし、展開が
終了したイメージバッファを印字するイメージバッファ
にし、今展開していなかったイメージバッファを次の展
開するイメージバッファに指定する(ステップ4,5,
6)。
When data processing for one line is completed, the image buffer that has been expanded is prohibited from being expanded, the image buffer that has been expanded is made the image buffer for printing, and the image buffer that has not been expanded is used as the next image buffer. Specify the image buffer to be expanded (steps 4, 5,
6).

【0020】そして、印字を開始する(ステップ7)。 印字はメカ23により発生する信号によりシングルチッ
プコンピュータ20に割り込みがかけられ、割り込み処
理の中で後述する図5に示すフローチャートに従って処
理が行われる。
[0020] Printing is then started (step 7). For printing, an interrupt is applied to the single chip computer 20 by a signal generated by the mechanism 23, and processing is performed according to a flowchart shown in FIG. 5, which will be described later, during the interrupt processing.

【0021】ステップ2からステップ7の動作を繰り返
すことにより全角文字の連続印字が行われていく。この
際イメージバッファは図8に示すとおり2行分として使
用している。
By repeating the operations from step 2 to step 7, continuous printing of full-width characters is performed. At this time, the image buffer is used for two lines as shown in FIG.

【0022】図5はメカ23により発生する信号により
シングルチップコンピュータ20に割り込みがかけられ
、その割り込みルーチンの中での処理を示すフローチャ
ートである(全角文字印字時)。
FIG. 5 is a flowchart showing the processing in the interrupt routine when the single-chip computer 20 is interrupted by a signal generated by the mechanism 23 (when printing full-width characters).

【0023】このルーチンがコールされるとまず印字に
指定されたイメージバッファの印字が終了したか確認を
行い(ステップ8)終了していない場合は印字処理を行
う(ステップ9)。終了した場合は印字をしたイメージ
バッファを判断する(ステップ10)。
When this routine is called, it is first checked whether printing of the image buffer designated for printing has been completed (step 8), and if it has not been completed, printing processing is performed (step 9). If the printing has been completed, the image buffer that has been printed is determined (step 10).

【0024】印字が終了したイメージバッファがイメー
ジバッファA32ならばイメージバッファA32の展開
を許可し(ステップ11)、印字が終了したイメージバ
ッファがイメージバッファB33ならばイメージバッフ
ァB33の展開を許可する(ステップ12)。
If the image buffer for which printing has been completed is image buffer A32, expansion of image buffer A32 is permitted (step 11), and if the image buffer for which printing has been completed is image buffer B33, expansion of image buffer B33 is permitted (step 11). 12).

【0025】縦倍角文字を連続印字する場合は図6に示
されるように、まず最初に印字パターンを展開するイメ
ージバッファをイメージバッファA32としイメージバ
ッファA32への印字パターンの展開を許可する(ステ
ップ13)。
When double-height characters are to be printed continuously, as shown in FIG. 6, first, the image buffer in which the print pattern is developed is set to image buffer A32, and development of the print pattern in image buffer A32 is permitted (step 13). ).

【0026】次にイメージバッファA32が展開許可さ
れているか確認し、展開が禁止されていたならば許可さ
れるまで待つ(ステップ14)。
Next, it is checked whether the image buffer A32 is permitted to be expanded, and if expansion is prohibited, the process waits until expansion is permitted (step 14).

【0027】イメージバッファA32が展開可能となっ
たならばデータ処理を開始する(ステップ15)。
When the image buffer A32 becomes expandable, data processing is started (step 15).

【0028】ここで1行分のデータ処理を行うが、縦倍
角の上半分をイメージバッファB33に展開し、下半分
をイメージバッファA32に展開する。
Here, one line of data is processed, and the upper half of the double-height is expanded into the image buffer B33, and the lower half is expanded into the image buffer A32.

【0029】1行分のデータ処理が終了したならば、イ
メージバッファA32を展開禁止にし、イメージバッフ
ァB33印字するイメージバッファに指定する(ステッ
プ16)。
When data processing for one line is completed, image buffer A32 is prohibited from being expanded, and image buffer B33 is designated as the image buffer for printing (step 16).

【0030】そして、印字を開始する(ステップ17)
。印字はメカ23により発生する信号によりシングルチ
ップコンピュータ20に割り込みがかけられ、割り込み
処理の中で後述する図7に示すフローチャートに従って
処理が行われる。
[0030] Then, printing starts (step 17).
. For printing, an interrupt is applied to the single chip computer 20 by a signal generated by the mechanism 23, and processing is performed according to a flowchart shown in FIG. 7, which will be described later, during the interrupt processing.

【0031】ステップ14からステップ17の動作を繰
り返すことにより縦倍角文字の連続印字が行われていく
。この際イメージバッファは図9に示すとおり1行分と
して使用している。
By repeating the operations from step 14 to step 17, continuous printing of double-height characters is performed. At this time, the image buffer is used for one line as shown in FIG.

【0032】図7はメカ23により発生する信号により
シングルチップコンピュータ20に割り込みがかけられ
、その割り込みルーチンの中での処理を示すフローチャ
ートである(縦倍角文字印字時)。
FIG. 7 is a flowchart showing the processing in the interrupt routine when the single-chip computer 20 is interrupted by a signal generated by the mechanism 23 (when printing double-height characters).

【0033】このルーチンがコールされるとまず印字に
指定されたイメージバッファの印字が終了したか確認を
行い(ステップ18)終了していない場合は印字処理を
行う(ステップ19)。終了した場合は印字をしたイメ
ージバッファを判断する(ステップ20)。  印字が
終了したイメージバッファがイメージバッファA32な
らばイメージバッファA32の展開を許可する(ステッ
プ21)。印字が終了したイメージバッファがイメージ
バッファB33ならば次に印字するイメージバッファを
イメージバッファA32とする(ステップ22)。
When this routine is called, it is first checked whether printing of the image buffer designated for printing has been completed (step 18), and if it has not been completed, printing processing is performed (step 19). If the printing has been completed, the image buffer that has been printed is determined (step 20). If the image buffer for which printing has been completed is image buffer A32, development of image buffer A32 is permitted (step 21). If the image buffer for which printing has been completed is image buffer B33, the image buffer to be printed next is set as image buffer A32 (step 22).

【0034】[0034]

【発明の効果】以上述べたように本発明によれば、補助
展開領域を設けなくて済むのでメモリの使用量が従来の
2/3となり、外部メモリを使用しなくてもよいため回
路構成が簡略化されコストダウンが可能となる利点を有
する。
[Effects of the Invention] As described above, according to the present invention, there is no need to provide an auxiliary expansion area, so the amount of memory used is reduced to two-thirds of that of the conventional one, and the circuit configuration is simplified because there is no need to use external memory. It has the advantage of being simplified and reducing costs.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の構成を示すブロック図。FIG. 1 is a block diagram showing the configuration of the present invention.

【図2】本発明の一実施例を示すブロック図。FIG. 2 is a block diagram showing an embodiment of the present invention.

【図3】本発明の一実施例のメモリマップ。FIG. 3 is a memory map of one embodiment of the present invention.

【図4】本発明の一実施例を説明するフローチャート。FIG. 4 is a flowchart illustrating an embodiment of the present invention.

【図5】本発明の一実施例を説明するフローチャート。FIG. 5 is a flowchart illustrating an embodiment of the present invention.

【図6】本発明の一実施例を説明するフローチャート。FIG. 6 is a flowchart illustrating an embodiment of the present invention.

【図7】本発明の一実施例を説明するフローチャート。FIG. 7 is a flowchart illustrating an embodiment of the present invention.

【図8】本発明の一実施例を説明する説明図。FIG. 8 is an explanatory diagram illustrating an embodiment of the present invention.

【図9】本発明の一実施例を説明する説明図。FIG. 9 is an explanatory diagram illustrating an embodiment of the present invention.

【図10】本発明の従来技術を示す説明図。FIG. 10 is an explanatory diagram showing the prior art of the present invention.

【符号の説明】[Explanation of symbols]

10    展開領域A 11    展開領域B 12    展開手段 13    原文字パターン 14    選択手段 10 Deployment area A 11    Development area B 12 Deployment means 13 Original character pattern 14 Selection means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ドットマトリクスにより文字を構成するプ
リンタにおいて、原文字パターンを実際に印字するパタ
ーンに展開する展開手段と、前記展開手段が印字パター
ンを展開する少なくとも2つの展開領域を有し、前記展
開手段が前記少なくとも2つの展開領域に印字するパタ
ーンを展開する際、印字する文字により前記少なくとも
2つの展開領域を1行分として印字パターンを展開する
か、または2行分として印字パターンを展開するかを選
択する選択手段を有することを特徴とする印字パターン
展開方法。
1. A printer that configures characters using a dot matrix, comprising a developing means for developing an original character pattern into a pattern to be actually printed, and at least two developing areas in which the developing means develops the printed pattern; When the developing means develops the pattern to be printed on the at least two development areas, the printing pattern is developed by using the at least two development areas as one line or two lines depending on the characters to be printed. 1. A printing pattern development method characterized by comprising a selection means for selecting one of the following.
JP3064191A 1991-02-26 1991-02-26 Printing pattern developing method Pending JPH04269566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3064191A JPH04269566A (en) 1991-02-26 1991-02-26 Printing pattern developing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3064191A JPH04269566A (en) 1991-02-26 1991-02-26 Printing pattern developing method

Publications (1)

Publication Number Publication Date
JPH04269566A true JPH04269566A (en) 1992-09-25

Family

ID=12309464

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3064191A Pending JPH04269566A (en) 1991-02-26 1991-02-26 Printing pattern developing method

Country Status (1)

Country Link
JP (1) JPH04269566A (en)

Similar Documents

Publication Publication Date Title
US6317193B2 (en) Image forming apparatus
JPH10291356A (en) Image forming device
JPH04269566A (en) Printing pattern developing method
JPH0284364A (en) Printer
JP2946548B2 (en) Page printer with editing function
JPH07177348A (en) Printer device
JP3143118B2 (en) Printer and print image pattern development method
JP2572074B2 (en) Character processor
JPH0421592B2 (en)
JP3089014B2 (en) Output control method and device
JP2744025B2 (en) Printing control device
JP3193551B2 (en) Printing equipment
JPH0238076A (en) Printer device
JP3027849B2 (en) Printing device
JPH06149735A (en) Data reception controller
JPS6246010B2 (en)
JPH04310764A (en) Character pattern expanding method
JPH0699615A (en) Data processing method of page printer
JPH0339280A (en) Output apparatus
JPH03112668A (en) Printer
JPS6359575A (en) Test printing system
JPH02240721A (en) Record controller
JPH111048A (en) Printing control method and printing apparatus
JPH06198960A (en) Printer
JPH02194977A (en) Apparatus for forming of image