JPS61126592A - Character generator - Google Patents

Character generator

Info

Publication number
JPS61126592A
JPS61126592A JP59248938A JP24893884A JPS61126592A JP S61126592 A JPS61126592 A JP S61126592A JP 59248938 A JP59248938 A JP 59248938A JP 24893884 A JP24893884 A JP 24893884A JP S61126592 A JPS61126592 A JP S61126592A
Authority
JP
Japan
Prior art keywords
data
print
character
pointer
buffer
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
JP59248938A
Other languages
Japanese (ja)
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.)
Seikosha KK
Original Assignee
Seikosha KK
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 Seikosha KK filed Critical Seikosha KK
Priority to JP59248938A priority Critical patent/JPS61126592A/en
Publication of JPS61126592A publication Critical patent/JPS61126592A/en
Pending legal-status Critical Current

Links

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] This book is about character generators.

〔従来の技術〕[Conventional technology]

fl、tばドツトマトリクスプリンタ等で使用されるキ
ャラクタジェネレータは以下のように構551れている
。−例として、I文字(@後の空間スペースを含む)を
横24ドツト、縦16ドツ゛トで横取する場合には、a
IIIJ6図の工うに工文字に対して24X16=aa
パイ)1−割り当てる6同図では、アルファ疋ット「工
」の例を示してあり、°:この場合には、中央の5列の
ドツトで示しt箇所のみが″1”となってキャラクタデ
ータt−構Hし、それ以外は総て@0”となっている。
The character generator used in fl, t, dot matrix printers, etc. is structured as follows. - For example, if you want to intercept the I character (including the space after @) with 24 dots horizontally and 16 dots vertically, use a
24X16=aa for the unicorn letters in Figure IIIJ6
π) 1 - Assign 6 In the same figure, an example of the alpha dot ``工'' is shown. The data is t-structure H, and everything else is @0''.

他の文字、数字等についても同様に、キャラクタデータ
の前後に字間ヌベース分を含んだ形で48バイトずつ割
り当てである。
Similarly, for other characters, numbers, etc., 48 bytes are allocated each including the space between characters before and after the character data.

〔発明が解決しよう・とする問題点〕[Problem that the invention attempts to solve]

上記従来のものでは1字間スペース分に、つ、いても記
憶させている几め、記憶容禁が大きくなってし1つもの
であつ几。特に、アルファベット「工」のように字体が
細いものでは、字間スペース分が大半を占め、記憶回路
が無駄彦使われ方をしていた。
In the above-mentioned conventional type, even if the space between one character is stored, the memory capacity becomes large and it is difficult to store it in one piece. In particular, for thin fonts like the alphabet ``工'', the spaces between the letters accounted for most of the font, and the memory circuit was wasted.

本発明は、記憶回路の無駄t”なくし、少ない記憶容量
ですむようにしtものである。
The present invention eliminates the waste of memory circuits and reduces the memory capacity.

〔問題点を解決するtめの手段〕[The tth way to solve the problem]

本発明は、キャラクタデータを字間スペースを含まない
で第1の記憶回路に記憶させ、第2の記憶回路には、各
キャラクタデータの第1の記憶回路における先頭アドレ
スを記憶させるとともにキャラクタデータ前後の字間ス
ペース列数およびキャラクタデータ列数のうち少なくと
も2っt−記憶させるぶつにしtものである。
The present invention stores character data in a first storage circuit without including spaces between characters, stores the first address of each character data in the first storage circuit in a second storage circuit, and stores character data before and after the character data. At least 2 of the number of character spacing columns and the number of character data columns are to be stored.

〔実施例〕〔Example〕

第1図において、1は印字データ入力源、2はROMか
らなる第1の記憶回路で、第2図に示す工うに各キャラ
クタデータを字間スペースを含まないで1列2バイト構
成で記憶させである63FiROMからなるw、2の記
憶回路(以下、データテーブルと呼称する。)で、記憶
回路2内の各キャラクタデータごとに、その前後の字間
スペース列数、キャラクタデータの列数およびこのキャ
ラクタデータの、記憶回路2における先頭アドレスを記
憶させである。
In Fig. 1, 1 is a print data input source, and 2 is a first storage circuit consisting of a ROM.The circuit shown in Fig. 2 stores each character data in a 2-byte column, excluding spaces between characters. A storage circuit w,2 (hereinafter referred to as a data table) consisting of a 63FiROM with The start address of the character data in the storage circuit 2 is stored.

4はRAMからなるプリントバッファで、印字データに
対応μ几キャラクタデータを、すり前後のスペースを含
んだ形で、−野分をバッファリングしておくものである
。、5は種々の制御を行なうCpaで、データテーブル
3から読み出されt前スペース列数および後スペース列
数を記憶するレジスタ58 g 5 ds先頭アドレス
を記憶するレジスタc以下、Rポインタと呼称する。、
)5ty、キャラクタデータ列数をプリセットされるダ
ウンカウンタ(以下、Lカウンタと呼称するe、) S
 c sを有している。
Reference numeral 4 denotes a print buffer consisting of a RAM, which buffers the character data corresponding to the print data, including spaces before and after the print. , 5 is a Cpa that performs various controls; a register 58 that is read from the data table 3 and stores the number of space columns before t and the number of space columns after t; a register c that stores the start address of g 5 ds; . ,
) 5ty, down counter (hereinafter referred to as L counter) S to which the number of character data rows is preset
It has c s.

ま几CPυ5内には、印字データをこれに対応しtデー
タテーブル5のアドレスに変換する印字データ/アドレ
ス変換部5eおよびプリントバッファ4のアドレスを指
定するプリントバッファ書込みポインタ(DA下、Wポ
インタと呼称する。)5f’を有している。6は印字駆
動部である。
In the CPυ5, there is a print data/address converter 5e that converts the print data into the corresponding address of the data table 5, and a print buffer write pointer (below DA, W pointer and W pointer) that specifies the address of the print buffer 4. ) 5f'. 6 is a print drive section.

つぎに第3図のフローチャートを参照しながら動作につ
いて説明する、 印字データ入力源1から、例えばアルファベツート「A
」の印字データが供給され九とすると、これが印字デー
タ/アドレス変換部5eによってデータテーブル3内の
「A」のテーブルデータのアドレスが算出される。これ
によって、raJのテーブルデータがCpUs内のレジ
スタ5a、5d。
Next, the operation will be explained with reference to the flowchart in FIG. 3. From the print data input source 1, for example, alphabet
'' is supplied, and the address of the table data of "A" in the data table 3 is calculated by the print data/address converter 5e. As a result, the table data of raJ is stored in registers 5a and 5d in CpUs.

Rポインタ5bお工びLカウンタ50に書き込まれる。The R pointer 5b is written into the L counter 50.

そこで、まずレジスタ5a内の前スペース列数がWポイ
ンタ5fに加算される。つ1す、プリントバッファ4に
前スペース分が空けられる、つぎにPポインタ5bVc
工って示される、rAJの先頭アドレスa6におけるデ
ータ、つまり「A」のキャラクタデータの第1タリ目が
プリントバッファ4の、Wポインタ5fで示される位置
に得き込まれる。この書込みが終了したら、Rポインタ
5bお工びWポインタ5fe一つインクリメントし、L
カウンタ5ct一つデクリメントする。こうしてraJ
のキャラクタデータの第2列目がプリントバッファ4J
c″書き込まれる。
Therefore, first, the number of previous space columns in the register 5a is added to the W pointer 5f. 1, the previous space is made available in the print buffer 4, then the P pointer 5bVc
The data at the start address a6 of rAJ, that is, the first tally of the character data of "A", which is indicated by the process, is retrieved into the print buffer 4 at the position indicated by the W pointer 5f. When this writing is completed, the R pointer 5b is incremented, the W pointer 5fe is incremented by one, and the L pointer 5b is incremented by one.
Decrement the counter by 5ct. Thus raJ
The second column of character data in print buffer 4J
c″ is written.

この動作が繰り返されて、LカウンタS、a、、が、0
になると、つまり「A」のキャラクタデータが総てプリ
ントバッファ4に書き込まれると、Wポインタ5fに後
スペース列数が加算され、Wポインタはつぎの文字の最
初の位tt−指示する。
This operation is repeated, and the L counter S, a, becomes 0.
That is, when all the character data of "A" is written into the print buffer 4, the number of space columns after is added to the W pointer 5f, and the W pointer points to the first position tt- of the next character.

コ’5t、て、”raJのキャラクタデータがその前後
に字間スペースを空けて、プリントバッファ4に臀き込
まれ、る。
The character data of "raJ" is inserted into the print buffer 4 with a space between characters before and after it.

そして印字データ入力源1からつぎの印字データが供給
されると、上記と同様にしてそのキャラクタデータが前
後に字間スペースを空けてプリントバッファ4に書き込
まれる。
When the next print data is supplied from the print data input source 1, the character data is written into the print buffer 4 with a space between characters before and after the character data in the same manner as described above.

以上のようにしてプリントバッファ4に1行分のキャラ
クタデータが書き込まれると、その内容が順次読み出さ
れて印字駆動部6に供給され、印字が行なわれる。この
印字動作については従来と同様であるので、説明は省略
する。
When one line of character data is written into the print buffer 4 as described above, the contents are sequentially read out and supplied to the print drive section 6, where printing is performed. This printing operation is the same as the conventional one, so a description thereof will be omitted.

°   なお上記の例では、キャラクタデータに字間ス
ペース列数たせてプリントバッファにバッファ 177
グしt後、印字を行なう場合について示し几が、つぎに
このプリントバッファを持几ない例について説明する。
° In the above example, the character data is buffered in the print buffer with the number of inter-character space columns 177
Next, an example in which the print buffer is not retained will be described.

@4図において、7は印字データをそのまま記憶するデ
ータバッファ、5gはデータバッファ7のアドレスを指
定するデータバッファポインタ(以下、′Dポインタと
呼称する。、)、5hはデータバッファ7から読み出さ
れる印字データ数を計数するギャラクタカウンタ(以下
、Cカウンタと呼称する。)である。51は印字ビンを
駆動する几めのビン駆動パルス発生器である。
@4 In the figure, 7 is a data buffer that stores print data as it is, 5g is a data buffer pointer (hereinafter referred to as 'D pointer) that specifies the address of data buffer 7, and 5h is read from data buffer 7. This is a galactor counter (hereinafter referred to as a C counter) that counts the number of print data. Reference numeral 51 is a refined bin drive pulse generator for driving the print bin.

第1図と同一番号は同一のものを示す。The same numbers as in FIG. 1 indicate the same things.

つぎに第5図の70−チャートを参照しながら動作につ
いて説明する。
Next, the operation will be explained with reference to chart 70 in FIG.

まず、Dポインタ5gをクリアしてデータバッファ7の
最初のアドレスを指定しておく。そして印字データ入力
源1から印字データt−a P U 5に供給し、これ
が印字コマンドであるか否かを判定し、NOの場合は印
字データであるので、これをDポインタ5gが示すデー
タバッファ7のアドレスに書き込む。この書込みが終了
し几ら、Dポインタ5gt一つインクリメントしてデー
タバッファ7のつぎのアドレスを指定し、ここにつぎの
印字データを記憶させる。
First, the D pointer 5g is cleared and the first address of the data buffer 7 is specified. Then, the print data is supplied from the print data input source 1 to the print data t-a P U 5, and it is determined whether or not this is a print command. If NO, it is print data, so it is sent to the data buffer indicated by the D pointer 5g. Write to address 7. When this writing is completed, the D pointer 5gt is incremented by one to designate the next address in the data buffer 7, and the next print data is stored there.

この動作を繰シ返して印字データを順次記憶させていき
、データバッファ7が満杯になるがま几は、印字コマン
ドが供給されたら、0カウンタ5h?クリアし、データ
バッファ7の最初のアドレスを指示する。そして印字へ
ラドキャリッジを起動するとともにビン駆動パルス発生
器s 、i1起動する。
This operation is repeated to sequentially store print data until the data buffer 7 is full. When a print command is supplied, the 0 counter 5h? Clear and specify the first address of data buffer 7. Then, the rad carriage for printing is started, and the bin drive pulse generators s and i1 are started.

つぎに、aカウンタ5hが示す印字データをデータバッ
ファからCPU5内に取り込み、印字データ/アドレス
変換部5eによって印字データに対応したテーブルデー
タの1トルヌが算出さ九るーこれに二って、上記の例と
全く同様にして、対応するテーブルデータがレジスタ5
a、sa、pポインタ5bおよびLカウンタ5Cに書き
込まれる。
Next, the print data indicated by the a counter 5h is fetched from the data buffer into the CPU 5, and the print data/address converter 5e calculates 1 tornu of the table data corresponding to the print data. In exactly the same way as in the example, the corresponding table data is stored in register 5.
It is written to the a, sa, p pointers 5b and L counter 5C.

そして、レジスタ5a内の前スペース列数だけビン駆動
パルスをカウントし、この間は印字ビンは駆動せずに印
字ヘッドを土肥前スペース列数分だけ送る。
Then, the bin drive pulses are counted by the number of front space rows in the register 5a, and during this period, the print bin is not driven and the print head is advanced by the number of front space rows.

そこで、Rポインタ5bで示される記憶回路2のキャラ
クタデータの第1列目をCPU5内のレジスタ(■示せ
ず、、)に取り込む。つぎのビン駆動パルスが発生した
ら、上記第1列目のデータを印字駆動部6へ供給してこ
の印字を行なう。
Therefore, the first column of character data in the memory circuit 2, indicated by the R pointer 5b, is taken into a register in the CPU 5 (.) (not shown). When the next bin drive pulse is generated, the data of the first column is supplied to the print drive unit 6 to perform printing.

第1列目の印卒終了後、Rポインタ5bを一つインクリ
メントするとともにLカウンタ5ce一つデクリメント
して第2列目f rHP U 5内に歌り込む。つぎの
ビン駆動パルスによって第2列目を印字する。
After completing the stamping in the first column, the R pointer 5b is incremented by one, the L counter 5ce is decremented by one, and the data is recorded in the second column f rHP U 5. The second column is printed by the next bin drive pulse.

この動作を繰り返し、キャラクタデータが全列読み出さ
れてLカウンタ5cの内容が0になったら、レジスタ5
a内の後スペース列数だけビン駆動パルスをカウントし
、印字ヘッドを送る。
This operation is repeated, and when all columns of character data are read out and the contents of the L counter 5c become 0, the register 5c
Count the bin drive pulses by the number of trailing space columns in a and send the print head.

ここまでで1文字分の印字を終了する。This completes the printing of one character.

つぎに、Ωカウンタ5he一つインクリメントして、デ
ータバッファ7のつぎの印字ブータラ指定する。以下、
第5図の■以下の動作が再び行なわれてつぎの文字が印
字される。
Next, the Ω counter 5he is incremented by one to designate the next print booter in the data buffer 7. below,
The operations following ``■'' in FIG. 5 are performed again to print the next character.

こうしてデータバッファ7内の印字データに基づいて順
次印字が行なわれ、0カウンタ5hの内容がDポインタ
5gの内容と一致したら、つ1リデータバツ7ア7内の
印字データが総て読み出されtら、ヘッドキャリッジお
よびビン駆動パルスを停止して紙送りを行なう。
In this way, printing is performed sequentially based on the print data in the data buffer 7, and when the contents of the 0 counter 5h match the contents of the D pointer 5g, all the print data in the data buffer 7a is read out. , the head carriage and the bin drive pulses are stopped to feed the paper.

なお上記の実施例では、プリンタに用い7を場合につい
て説明しtが、01’lTデイスプレイで文字等を表示
する。場合にも用いることができる。。
In the above embodiment, a case will be described in which 7 is used in a printer, and t displays characters etc. on a 01'IT display. It can also be used in cases. .

’! ’ft−5fmス゛ペース列数、キャラクタデー
タ列数および後スペース列数の総和は、違常一定である
ので、この内の一つについては計算によって求めること
ができる几め、この内の2つだけを記憶させておくよう
にしてもよい。
'! 'ft-5fm The sum of the number of space columns, the number of character data columns, and the number of trailing space columns is unusually constant, so one of them can be calculated by calculation, and only two of them can be calculated. may be stored.

さらに、文字の程類によって字間スペースを調整スルプ
ロポーショナルモードは、各文字ごとにその前後のスペ
ース列数を適宜設定することに工シ、簡単に実現できる
Furthermore, the fully proportional mode, in which the space between characters is adjusted according to the degree of the character, can be easily realized by appropriately setting the number of spaces before and after each character.

ま几、単一語だけでなく、熟語や文章も入れることがで
きる。
You can enter not only single words, but also idioms and sentences.

さらに、文字だけでなく、種々の記号、図形等にも同様
に適用できる。
Furthermore, it can be applied not only to characters but also to various symbols, figures, etc.

〔効果〕〔effect〕

本発明に工れは、複数のキャラクタデータを、字間スペ
ースを含まないで第1の記憶回路に記憶サセ、このキャ
ラクタデータの先頭アドレスヲ記憶するトドもに前スペ
ース列数、キャラクタデータ列数および後スペース列数
のうち少なくとも2つft第2の記憶回路に記憶させる
ようにし友ので、従来よりも大幅に記憶容骨を削減でき
、コスト的にも有利なものとなる。
The feature of the present invention is to store a plurality of character data in the first memory circuit without including spaces between characters, and to store the start address of this character data, the number of preceding space columns, and the number of character data columns. Since at least two of the number of rear space columns and the number of rear space columns are stored in the second storage circuit, the storage capacity can be reduced to a greater extent than in the past, and it is also advantageous in terms of cost.

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

tx1図は本発明の一実施例を示したブロック図。 第2図#″を第1図主要部の記憶内容’f?詳細に示し
几説明図、第3図は第1図の動作説明のためのフローチ
ャート%第4図は他の実施例を示したブロック図1.第
5図は第4図の動作説明のためのフローチャート、m6
図は従来のキャラクタジェネレータの記憶状態を示し九
説明図である。 2・・・第1の記憶回路 3・・・第2の記憶回路 以上
tx1 is a block diagram showing an embodiment of the present invention. Figure 2 is an explanatory diagram showing the memory contents of the main part in Figure 1 in detail, and Figure 3 is a flowchart for explaining the operation of Figure 1. Figure 4 shows another embodiment. Block diagram 1. Figure 5 is a flowchart for explaining the operation of Figure 4, m6
The figure is an explanatory diagram showing the storage state of a conventional character generator. 2...First memory circuit 3...Second memory circuit or higher

Claims (1)

【特許請求の範囲】 文字、数字等を表す複数のキャラクタデータを、字間ス
ペースを含まないで記憶する第1の記憶回路と、 各キャラクタデータごとに、このキャラクタデータの第
1の記憶回路における先頭アドレスを記憶するとともに
前スペース列数、キャラクタデータの列数および後スペ
ース列数のうち少なくとも2つを記憶する第2の記憶回
路とからなり、この第2の記憶回路内のデータに基づい
て、各キャラクタデータごとにその前後に所望の空間ス
ペースをもたせることを特徴とするキャラクタジェネレ
ータ。
[Scope of Claims] A first storage circuit that stores a plurality of character data representing letters, numbers, etc. without including spaces between characters; It consists of a second memory circuit that stores the leading address and also stores at least two of the number of front space columns, the number of character data columns, and the number of rear space columns, and based on the data in this second memory circuit. , a character generator characterized in that a desired spatial space is provided before and after each character data.
JP59248938A 1984-11-26 1984-11-26 Character generator Pending JPS61126592A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59248938A JPS61126592A (en) 1984-11-26 1984-11-26 Character generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59248938A JPS61126592A (en) 1984-11-26 1984-11-26 Character generator

Publications (1)

Publication Number Publication Date
JPS61126592A true JPS61126592A (en) 1986-06-14

Family

ID=17185646

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59248938A Pending JPS61126592A (en) 1984-11-26 1984-11-26 Character generator

Country Status (1)

Country Link
JP (1) JPS61126592A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61210389A (en) * 1985-03-15 1986-09-18 キヤノン株式会社 Effective storage of character data
JPS63256475A (en) * 1987-04-14 1988-10-24 Brother Ind Ltd Printer
JP2008130405A (en) * 2006-11-22 2008-06-05 Rinnai Corp Sheathed heater

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5612681A (en) * 1979-07-12 1981-02-07 Epson Corp Character generator
JPS5711381A (en) * 1980-06-25 1982-01-21 Hitachi Ltd Display unit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5612681A (en) * 1979-07-12 1981-02-07 Epson Corp Character generator
JPS5711381A (en) * 1980-06-25 1982-01-21 Hitachi Ltd Display unit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61210389A (en) * 1985-03-15 1986-09-18 キヤノン株式会社 Effective storage of character data
JPS63256475A (en) * 1987-04-14 1988-10-24 Brother Ind Ltd Printer
JP2008130405A (en) * 2006-11-22 2008-06-05 Rinnai Corp Sheathed heater

Similar Documents

Publication Publication Date Title
JPS6022234A (en) Form overlay type printer
GB1348434A (en) Printer
US4887226A (en) Dot printing device capable of printing underline together with characters
JPS5938629B2 (en) line spacing controller
JPH0425144B2 (en)
JPS61126592A (en) Character generator
JPS5949584A (en) System of processing data in mixed various character sizes
US4635081A (en) Apparatus and method for generating dot-matrix characters in graphic patterns
JPS6230055A (en) Generator for character pattern for dot matrix type printer
JPS6363913B2 (en)
JPS59180583A (en) Character pattern generator
JP2881954B2 (en) Printing device
JPS59116782A (en) Generator for character signal or the like
JPS6330895A (en) Character display system
JP3004736B2 (en) Thermal printer
JPS5822440A (en) Printer for high-speed input data
JPS59116841A (en) Printing position display system
JPS5985588A (en) Controller of dot printer
JPH0647301B2 (en) Charactor pattern generator
JPS6045289A (en) Character output unit
JPS60256836A (en) Printer
JPH01296335A (en) Forms overlay table preparing system
JPS6250890A (en) Character control system
JPS63286927A (en) Printing control device
JPH09314906A (en) Method for developing character pattern and thermal printer