JPS6271658A - Printer controller - Google Patents
Printer controllerInfo
- Publication number
- JPS6271658A JPS6271658A JP60213779A JP21377985A JPS6271658A JP S6271658 A JPS6271658 A JP S6271658A JP 60213779 A JP60213779 A JP 60213779A JP 21377985 A JP21377985 A JP 21377985A JP S6271658 A JPS6271658 A JP S6271658A
- Authority
- JP
- Japan
- Prior art keywords
- data
- byte
- page buffer
- printing data
- 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.)
- Granted
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
- B41J3/00—Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
- B41J3/01—Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed for special character, e.g. for Chinese characters or barcodes
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、1バイト/2バイトが混在する印字データ
をプリンタ(例えば漢字プリンタ)で高速に印字するた
めの、印字データ処理方式(1関するものである。[Detailed Description of the Invention] [Field of Industrial Application] The present invention provides a print data processing method (1 related to It is something.
第3図は例えば特開昭59−226957号公報に示さ
れた従来の処理装置を示す図であり、図(:詔いて13
1)は続出レジスタ、(32)は書込みレジスタ(33
はアライメント器、(34)は差分レジスタを示す。FIG. 3 is a diagram showing a conventional processing device disclosed in, for example, Japanese Unexamined Patent Publication No. 59-226957.
1) is the continuous register, (32) is the write register (33
is an alignment device, and (34) is a differential register.
次に動作について説明する。第3図において、メモリか
ら読出したデータは(31)の続出レジスタを経由して
(33)のアライメント器に格納される。Next, the operation will be explained. In FIG. 3, data read from the memory is stored in the alignment unit (33) via the successive register (31).
このとき、続出レジスタと書込レジスタをバイト位置が
異なるとき、(34)の差分レジスタ(二バイト位置の
差を設定しておき、アライメント器はそのに分データを
右にシフトし、(32)の書込レジスタC二速る。この
書込レジスタを経由して別なメモリ番地にデータを格納
する。シフトされたデータは2回目の書込み時(−格納
されることになる。At this time, when the byte positions of the successive register and the write register are different, the difference register (34) (a difference of two byte positions is set, and the alignment device shifts the data to the right by that amount, The data is stored in another memory address via this write register.The shifted data will be stored at the second write (-).
従来の処理装置は以上のように構成されているので、ワ
ード(1ワードは2バイト)単位(二差分レジスタを設
定する必要があるため、処理時間がかかり、漢字プリン
タが印字するデータを要求したとき間(二合わfxいこ
とがあり、印字動作が中断され、性能がおちる問題点が
あった。Since the conventional processing device is configured as described above, it is necessary to set two differential registers in units of words (one word is 2 bytes), which takes processing time and requires a long time for the kanji printer to request the data to be printed. There was a problem that the printing operation was interrupted and the performance deteriorated because the printing process sometimes took a long time.
この発明は上記のような問題点を解消するためになされ
たもので、漢字プリンタの性能をフルに発揮させること
ができる漢字プリンタ制御装置を得ることを目的とする
。This invention has been made to solve the above-mentioned problems, and an object of the present invention is to obtain a Kanji printer control device that can make full use of the performance of a Kanji printer.
この発明に係る漢字プリンタ制御装置は入力バッファと
ページバッファの間に印字データ変換回路を設け、高速
処理を行なうようにしたものである。The kanji printer control device according to the present invention includes a print data conversion circuit between an input buffer and a page buffer to perform high-speed processing.
この発明における印字データ変換回路は、2バイトの印
字データを常にワード単位でページバッファに格納し、
ページバッファ読出し以降のアクセスを高速化すること
ができ、漢字プリンタの性能をフル(二発揮することが
できる。The print data conversion circuit in this invention always stores 2-byte print data in word units in the page buffer,
Access after reading the page buffer can be sped up, and the full performance of the Kanji printer can be demonstrated.
以ドこの発明の一実施例を図について説明する。 An embodiment of the present invention will now be described with reference to the drawings.
第1図において、fi+はホス) CPUからの印字デ
ータをコマシト単位で格納する入力バッファである。(
2)は2バイトの印字データをワード単位でページバッ
ファに格納する印字データ変換回路、(3)は印字デー
タを格納するページバッファ、(41は文字パターンを
記憶するフォントメモリ、(51はフォントメモリから
読出した文字パターンを図形に展開して漢字プリンタに
出力する出力バッファである。又第2図に入力バッファ
から印字データを読出し、印字データ変換回路でコード
整合し、ページバッファC二格納するデータ内容例を示
す。In FIG. 1, fi+ is an input buffer that stores print data from the CPU in frame units. (
2) is a print data conversion circuit that stores 2-byte print data in word units in a page buffer; (3) is a page buffer that stores print data; (41 is a font memory that stores character patterns; (51 is a font memory) This is an output buffer that develops the character pattern read from the input buffer into figures and outputs it to the kanji printer.Also, as shown in Figure 2, the print data is read from the input buffer, the code is matched by the print data conversion circuit, and the data is stored in the page buffer C2. An example of the content is shown.
次(:動作について説明する。第1図においてホス)
CPUより送られる位字データは一度(11の入力バッ
ファ1:格納される。(2)の印字データ変換回路で1
運の行制御情報、印字データ、制御情報のバイト数が奇
数になるデータは、1バイトのダミーコードを付加して
偶数バイト≦ニしたのち(3)のページバッファに格納
される。ページバッファの読出しはワード単位(2バイ
ト)に行なわれ、読出した印字データを整合することf
xしで、そのまま(4)のフォントメモリのアクセスコ
ードとして使用し、フォントメモリから該当の文字パタ
ーンヲ統−出して15)の出力バッファに格納する。漢
字プリンタは前の行の印字を終えたのち、出力バッファ
から次の行のデータを受取り印字する。Next (: Explain the operation.Hoss in Figure 1)
The position data sent from the CPU is stored once (input buffer 1 of 11).
For row control information, print data, and data in which the number of bytes of control information is an odd number, a 1-byte dummy code is added to make even number bytes ≦ 2, and then stored in the page buffer (3). The page buffer is read in word units (2 bytes), and the read print data must be aligned.
x, it is used as it is as the font memory access code in (4), and the corresponding character pattern is extracted from the font memory and stored in the output buffer in 15). After the Kanji printer finishes printing the previous line, it receives and prints the next line of data from the output buffer.
漢字プリンタから印字データの要求があったとき、(5
)の出力バッファ(二印字データが格納されていrλい
と印字が中断することになり、性能ダウンf’ニー I
t ルか、(31のページバッファ読出し処理以降が高
速処理されるため、印字データが間に合わないことがf
xい。When there is a request for print data from a kanji printer, (5
) output buffer (2 print data is stored in rλ, printing will be interrupted and performance will decrease f' knee).
(Since the page buffer read processing in step 31 and subsequent steps are processed at high speed, it is possible that the print data will not be received in time.)
Yes.
次に@2図において具体例にて説明する。αυはホスト
CPUから送られるデータで、1マスが1バイトである
ことを示している。WRITEコマンドは1バイト、英
数字シフト、漢字シフトは2バイト、英数字コード(A
、H,C,D、 E)は1バイト、漢字コー) (#、
字、処、理)は2バイトと、1バイト、2バイトコード
が混在している。Next, a specific example will be explained in Figure @2. αυ is data sent from the host CPU, and indicates that one square is one byte. WRITE command is 1 byte, alphanumeric shift, Kanji shift is 2 bytes, alphanumeric code (A
, H, C, D, E) are 1 byte, Kanji ko) (#,
Characters, processing, processing) are a mixture of 2-byte, 1-byte, and 2-byte codes.
(121の入力バッファはホストCP(1から送られる
データをそのまま格納する、(13)の印字データ変換
回路は奇数バイトで終るデータ、WRITIi、コマン
ド、Eのデータコードについて1バイトのダミーコート
を付加してUのページバッファに格納する。もしQ3の
印字データ変換回路がない場合は、u4)のページバッ
ファの形式はり7Jの入力バッファと同一であり、例え
ば、漢のコードは4ワード目と5ワード目に格納される
ことにはり、漢のコードに対応するフォントメモリをア
クセスするためには、4ワード目と5ワード目を読出し
、4ワード目の下位バイトと5ワード目の上位バイトを
合成することが必要になり、処理時間が長くなる。(The input buffer 121 stores the data sent from the host CP (1) as is. The print data conversion circuit (13) adds a 1-byte dummy code for data ending with an odd number of bytes, WRITIi, command, and E data code. and stores it in the page buffer of U.If there is no print data conversion circuit of Q3, the format of the page buffer of U4) is the same as the input buffer of 7J.For example, the Chinese code is stored in the 4th and 5th words. In order to access the font memory corresponding to the Kan code, which is stored in the 4th word, read the 4th and 5th words and combine the lower byte of the 4th word and the upper byte of the 5th word. This requires a longer processing time.
この(13]の印字データ変換回路により、上記の2ワ
ード読出しと合成の処理が不要になり、調速処理するこ
とができる。This print data conversion circuit (13) eliminates the need for the above-mentioned 2-word readout and compositing processing, and speed control processing can be performed.
なお、上記実施例は漢字プリンタ制御装置で1バイト/
2バイトのデータが混在する場合の処理方式について示
したが、日本語データ処理を行なうワードプロセッサー
、及びパソコンであっても上記実施例と同様の効果を奏
する。In addition, in the above embodiment, the kanji printer control device handles 1 byte/
Although the processing method when 2-byte data is mixed has been described, the same effects as in the above embodiment can be achieved even with word processors and personal computers that process Japanese data.
以上のようにこの発明によれば、印字データ変換回路を
設けたことにより、高速に処理する装置を提供できる効
果がある。As described above, according to the present invention, by providing the print data conversion circuit, it is possible to provide an apparatus that performs high-speed processing.
第1図はこの発明のプリンタ制御装置の一実施例(二よ
る構成図、第2図はこの発明の実施例によるデータ内容
の変換の説明図、第3図は従来の漢字プリシタ制御装置
の構成図である。
図において、(11は入力バッファ、+21は印字デー
タ変換回路、(3)はページバッファ、(41はフォン
トメモリ、(5)は出力バッファである。
γXお、図中同一符号は同一、又は相当部分を示す。FIG. 1 is an embodiment of the printer control device of the present invention (two-dimensional configuration diagram), FIG. 2 is an explanatory diagram of data content conversion according to the embodiment of the present invention, and FIG. 3 is the configuration of a conventional Kanji prescriptor control device. In the figure, (11 is an input buffer, +21 is a print data conversion circuit, (3) is a page buffer, (41 is a font memory, and (5) is an output buffer. Indicates the same or equivalent part.
Claims (1)
で格納する入力バッファと、この入力バッファの前記1
バイトの印字データに1バイトのダミーバイトを付加し
前記2バイトの印字データが2ワードにまたがらないよ
うに変換する印字データ変換回路と、この印字データ変
換回路で変換された印字データを収納するページバッフ
ァと、このページバッファの印字データによりアクセス
される文字パターンを出力するフォントメモリとを備え
たプリンタ制御装置。An input buffer that stores print data containing both 1-byte and 2-byte data in word units;
A print data conversion circuit that adds a 1-byte dummy byte to the byte print data and converts the 2-byte print data so that it does not span two words, and stores the print data converted by this print data conversion circuit. A printer control device that includes a page buffer and a font memory that outputs character patterns accessed by print data in the page buffer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60213779A JPS6271658A (en) | 1985-09-25 | 1985-09-25 | Printer controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60213779A JPS6271658A (en) | 1985-09-25 | 1985-09-25 | Printer controller |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS6271658A true JPS6271658A (en) | 1987-04-02 |
JPH0457197B2 JPH0457197B2 (en) | 1992-09-10 |
Family
ID=16644895
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP60213779A Granted JPS6271658A (en) | 1985-09-25 | 1985-09-25 | Printer controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6271658A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2249255A1 (en) * | 2008-03-06 | 2010-11-10 | NEC Corporation | Data transfer apparatus and method, and semiconductor circuit |
-
1985
- 1985-09-25 JP JP60213779A patent/JPS6271658A/en active Granted
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2249255A1 (en) * | 2008-03-06 | 2010-11-10 | NEC Corporation | Data transfer apparatus and method, and semiconductor circuit |
EP2249255A4 (en) * | 2008-03-06 | 2014-03-12 | Nec Corp | Data transfer apparatus and method, and semiconductor circuit |
Also Published As
Publication number | Publication date |
---|---|
JPH0457197B2 (en) | 1992-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS6271658A (en) | Printer controller | |
JPS6363913B2 (en) | ||
JPH06274145A (en) | Character processor | |
JPS63202476A (en) | Document output unit | |
JPH02102073A (en) | Controller for printer | |
JPH01190465A (en) | Character output device by utilizing vector font reproduction | |
JPS63118280A (en) | Printer controller | |
JPS605469B2 (en) | galley printing system | |
JPS61104860A (en) | Reduction printer | |
JPS62212823A (en) | Printer device | |
JPS62265690A (en) | Raster scan reading circuit | |
JP3012269B2 (en) | Printing control device | |
JP2940140B2 (en) | Document data processing device | |
JPH03261573A (en) | Reduction printing system | |
JPS5936314B2 (en) | Display device control method | |
JPS61220866A (en) | Printing data forming system | |
JPS62251884A (en) | Recorder | |
JPS63199647A (en) | Document output device | |
JPH0226770A (en) | Printing control device | |
JPS612566A (en) | Printing apparatus | |
JPS6349825A (en) | Order processing system | |
JPS6273958A (en) | Chinese character printer controller | |
JPS61156190A (en) | Character output system | |
JPH0338719A (en) | Printing character control mechanism | |
JPS595341A (en) | Document file outputting system |