JPS5936314B2 - Display device control method - Google Patents

Display device control method

Info

Publication number
JPS5936314B2
JPS5936314B2 JP13235978A JP13235978A JPS5936314B2 JP S5936314 B2 JPS5936314 B2 JP S5936314B2 JP 13235978 A JP13235978 A JP 13235978A JP 13235978 A JP13235978 A JP 13235978A JP S5936314 B2 JPS5936314 B2 JP S5936314B2
Authority
JP
Japan
Prior art keywords
code
character
control
kanji
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.)
Expired
Application number
JP13235978A
Other languages
Japanese (ja)
Other versions
JPS5559587A (en
Inventor
正勝 菊池
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric Co Ltd
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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP13235978A priority Critical patent/JPS5936314B2/en
Publication of JPS5559587A publication Critical patent/JPS5559587A/en
Publication of JPS5936314B2 publication Critical patent/JPS5936314B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 この発明は例えば漢字プリンタなどの漢字コードを用い
る表示装置の制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a control method for a display device using Kanji codes, such as a Kanji printer.

例えば漢字プリンタが入力機器より漢字コードを受けて
、そのドットパターンを印字する場合、紙のサイズある
いは漢字コード中の制御コードにより指定される形式に
するためには複雑な制御回路を必要とする。
For example, when a kanji printer receives a kanji code from an input device and prints the dot pattern, a complicated control circuit is required to print the dot pattern in a format specified by the paper size or the control code in the kanji code.

このため最近では、マイクロコンピュータを内蔵し、そ
の制御をマイクロプログラム処理して回路を簡単にする
方式が採用される様になつた。マイクロコンピュータを
組込めば、ハードウェアロジックをプログラムロジック
に置換することによつてハードウェアを簡易化すること
が可能となるが、その反面、マイクロプログラムは処理
速度が遅く、持ち時間が多くなるという欠点がある。こ
のため高速のプリンタでは、上記方式は採用できないの
が実情であつた。、この発明は上記の点に鑑みてなされ
たもので、マイクロコンピュータを使用して制御をマイ
クロプログラム処理することにより回路の簡素化を計り
、かつ処理速度を高速化し得る表示装置の制御方式を提
供することを目的とする。
For this reason, recently, a system has been adopted that simplifies the circuit by incorporating a microcomputer and processing the control with a microprogram. Incorporating a microcomputer makes it possible to simplify the hardware by replacing hardware logic with program logic, but on the other hand, microprograms have a slow processing speed and take a lot of time. There are drawbacks. Therefore, in reality, the above method cannot be used in high-speed printers. This invention has been made in view of the above points, and provides a control method for a display device that can simplify the circuit and increase the processing speed by processing the control using a microprogram using a microcomputer. The purpose is to

以下この発明の一実施例を図面を参照して説明する。An embodiment of the present invention will be described below with reference to the drawings.

第1図において、11は漢字コードを発生する入力機器
、12はマイクロコンピュータ制御部で、このマイクロ
コンピュータ制御部12はコード解析部13、コードバ
ッファ14により構成される。また、15はパターンメ
モリを内蔵し、コードバッファ14からの文字コードを
文字パターンに変換するパターンジェネレータ、16は
制御コードを解読して制御信号を発生するデコーダ、I
Tはプリンタ制御部、18はプリンタである。上記入力
機器から出力される漢字コードには文字コード、制御コ
ードがあり、それぞれ16ビットで構成されている。す
なわち漢字コードはlバイト(8ビット)単位で2回送
出されるもので、通常、最初のlバイトはXコード、次
の1バイトはYコードと呼ばれている。上記Xコード、
Yコードとも文字コードの場合でも最大7ビットしか使
用しないのが普通である。したがつて、文字コードの最
上位ビツトは空ビツトとなつている。第2図にこの関係
を示す。第2図において、Xl,X2,・・・・・・・
・・・・・・・・,X7はXコードの文字ビット、Aは
Xコードの空ビットを示し、またY,,y2,・・・・
・・・・・・・・・・・,Y7はYコードの文字ビット
、BはYコードの空ビツトを示している。そして、上記
Xコードの7ビツト、Yコードの7ビットの計14ビツ
トで1文字が構成される。しかして、上記入力機器11
から出力された漢字コードがコード解析部13に人ると
、その漢字コードが文字コードであるか制御コードであ
るかの解析が行なわれる。
In FIG. 1, numeral 11 is an input device for generating Kanji codes, 12 is a microcomputer control section, and this microcomputer control section 12 is composed of a code analysis section 13 and a code buffer 14. 15 is a pattern generator that has a built-in pattern memory and converts character codes from the code buffer 14 into character patterns; 16 is a decoder that decodes control codes and generates control signals;
T is a printer control unit, and 18 is a printer. The Kanji code output from the input device includes a character code and a control code, each of which is composed of 16 bits. That is, the Kanji code is sent twice in units of 1 byte (8 bits), and usually the first 1 byte is called the X code and the next 1 byte is called the Y code. The above X code,
In the case of both the Y code and the character code, it is normal that only a maximum of 7 bits are used. Therefore, the most significant bit of the character code is an empty bit. Figure 2 shows this relationship. In Figure 2, Xl, X2,...
......, X7 indicates the character bit of the X code, A indicates the empty bit of the X code, and Y,, y2,...
......, Y7 indicates a character bit of the Y code, and B indicates an empty bit of the Y code. One character is composed of a total of 14 bits, including 7 bits of the X code and 7 bits of the Y code. However, the input device 11
When the kanji code output from the kanji code is sent to the code analysis section 13, it is analyzed whether the kanji code is a character code or a control code.

このコード解析の結果、文字コードである場合にはコー
ドバツフアにストアされ、また、コード解析の結果、制
御コードである場合には、これを2ビツトからなる簡単
な制御コードに変換し、この制御コードを上記コードバ
ツフア14にその制御コードが人力機器11から出力さ
れる直前にストアされた文字コードの空ビットに付加す
る。たとえば、変換後の制御コードのビツト構成は、“
01”で改行、゛10゛で改頁などと予め設定されてお
り、今、801”の制御コードが入れば上記コードバツ
フア14にストアされている文字コードのXコード側の
空ビツトAl<00″.Yコード側の空ビツトBに6「
”が付加される。これにより、その制御コードが付され
た文字コードの意味する文字が印字されたのち改行され
るように制御される。すなわち、上記の様にXコード側
の空ビツトAに゛0−Yコード側の空ビツトBに11゛
という様に空ビツトに制御コードが付加された文字コー
ドのうち、文字コードの部分はパターンジェネレータ1
5でその文字コードの意味する文字パターンに変換され
たのちプリンタ制御部17に入力され、このプリンタ制
御部17の制御によりプリンタ18が駆動され所定の文
字が印字される。なおコードバツフア14とパターンジ
ェネレータ15内のパターンメモリとの間ではそのアク
セスにマイクロコンピユータ制御部は関与しない。次い
で制御コードの部分はデコーダ16に入力され、゛01
゛のコードが解読される。そして“01゛を意味する制
御信号をプリンタ制御部17に発生し、これによりプリ
ンタ18が制御されるが、上記制御コード101゛はこ
こでは改行を意味しているので、上記文字が印字された
のち改行される。この様に入力機器11から次々出力さ
れる漢字コードをコード解析して、文字コードであるか
制御コードであるかを判断し、文字コードはコードバツ
フアにストアしたのち文字パターンに変換され、これら
の文字コード間に制御コードがあると、その制御コード
を上記コードバツフアにストアされている直前の文字コ
ードの空ビツトに付加し、この制御コードから作られる
改行、改頁などの指示信号がプリンタ制御部に与えられ
、この指示信号に従つてプリンタが制御されるものであ
る。
If the result of code analysis is a character code, it is stored in the code buffer, and if the result of code analysis is a control code, it is converted into a simple control code consisting of 2 bits, and this control code is is added to the empty bit of the character code stored in the code buffer 14 immediately before the control code is output from the human-powered device 11. For example, the bit configuration of the control code after conversion is “
01" is preset as a line break, "10" is a page break, etc., and if a control code of 801" is entered, the empty bit Al<00" on the X code side of the character code stored in the code buffer 14 is set in advance. .6" to the empty bit B on the Y code side.
” is added. This controls so that a line feed is inserted after the character indicated by the character code to which that control code is attached is printed. In other words, as shown above, the blank bit A on the X code side is Of the character codes in which a control code is added to the empty bits such as 11 to the empty bit B on the 0-Y code side, the character code part is processed by the pattern generator 1.
5, the character code is converted into a character pattern defined by the character code, and then inputted to the printer control section 17, and under the control of the printer control section 17, the printer 18 is driven to print a predetermined character. Note that the microcomputer control unit is not involved in the access between the code buffer 14 and the pattern memory in the pattern generator 15. The control code portion is then input to the decoder 16 and is
The code of ゛ is decoded. Then, a control signal meaning "01" is generated to the printer control unit 17, which controls the printer 18. However, since the above control code 101" here means a line feed, the above character is printed. Afterwards, a new line is added.In this way, the kanji codes that are output one after another from the input device 11 are analyzed to determine whether they are character codes or control codes, and the character codes are stored in the code buffer and then converted into character patterns. If there is a control code between these character codes, that control code is added to the empty bit of the previous character code stored in the code buffer, and the instruction signals such as line feed and page feed are generated from this control code. is given to the printer control section, and the printer is controlled according to this instruction signal.

なお、上記実施例では漢字プリンタについてを説明した
が、この発明は漢字プリンタに限られることなく漢字デ
イスプレイ装置などの他の表示装置にも使用し得るもの
である。また、上記実施例ではコードバツフアは1個で
あつたが、このコードバツフアを複数個用いても良く、
複数個のコードバッフアを用いれば、持ち時間がなくな
り連続して漢字コードを入力することも可能となる。ま
た、行バツフアを用いてさらに制御ビツトをラツチする
方式とすれば制御命令をさらに拡張することもできる。
以上説明した様にこの発明によれば、漢字コードの空ビ
ツトに改行、改頁などを示す制御ビットを付加し、これ
により印字部を制御する様にしたので、マイクロコンピ
ユータは入力される漢字コードが文字コードであるか制
御コードであるかを判別する機能、文字コードをストア
する機能、制御ビットを上記ストアされた文字コードの
空ビツトに付加する機能を行なえば良く、出力制御に関
与しなくて良い。
In the above embodiment, a kanji printer has been described, but the present invention is not limited to a kanji printer, but can also be used for other display devices such as a kanji display device. Further, in the above embodiment, there is one code buffer, but a plurality of code buffers may be used.
By using a plurality of code buffers, it becomes possible to input kanji codes continuously without running out of time. Furthermore, if a row buffer is used to further latch control bits, the control commands can be further expanded.
As explained above, according to the present invention, control bits indicating line feed, page break, etc. are added to the empty bits of the kanji code, and the printing section is controlled by this, so that the microcomputer can control the input kanji code. It is sufficient to perform functions such as determining whether a character code is a character code or a control code, storing the character code, and adding control bits to the empty bits of the stored character code, and is not involved in output control. It's good.

そして出力をDMA(DirectMemOryAce
ess)転送することにより、処理の高速化が計れ、ま
た制御ビツトを漢字コードの空ビツトに付加する様にし
たため、例えば文字コード、改行コード、文字コード、
改行コードの如く連続する場合でもコードバツフアの容
量は増加させる必要はないなど、種々の優れた効果が得
られるものである。
Then the output is transferred to DMA (DirectMemOryAce)
ess) transfer speeds up the processing, and since the control bits are added to the empty bits of the kanji code, for example, character codes, line feed codes, character codes, etc.
Various excellent effects can be obtained, such as the fact that there is no need to increase the capacity of the code buffer even in the case of continuous line feed codes.

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

第1図はこの発明の一実施例の構成を示すプロツク図、
第2図は同実施例による漢字コードのビツト構成を示す
図である。 11・・・・・・入力機器、12・・・・・・マイクロ
コンピユータ、13・・・・・・コード解析部、14・
・・・・・コードバッファ、15・・・・・・パターン
ジェネレータ、16・・・・・・デコーダ、17・・・
・・グリンタ制御部、 18・・・・・・ ンタ。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.
FIG. 2 is a diagram showing the bit structure of the Kanji code according to the same embodiment. 11...Input device, 12...Microcomputer, 13...Code analysis section, 14.
...Code buffer, 15...Pattern generator, 16...Decoder, 17...
... Glinter control unit, 18...

Claims (1)

【特許請求の範囲】[Claims] 1 入力機器より文字コード並びに制御コードを順次入
力して、この制御コードによつて指定される条件により
制御されて文字コードに対応する文字パターンを表示す
るものにおいて、前記入力機器よりのコードを解析する
コード解析部、およびコード解析の結果文字コードであ
る場合はこの文字コードを記憶し制御コードである場合
は簡単な制御コードに変換して直前の文字コードの空ビ
ットに付加的に記憶するコードバッファを有するマイク
ロコンピュータ制御部と、このマイクロコンピュータ制
御部のコードバッファと直接アクセスされ文字コードに
対応する文字パターンを発生するパターンジェネレータ
および文字コード中に付加された前記変換後の簡単な制
御コードをデコードするデコーダとを備え、このデコー
ダからの出力にしたがつて制御されるとともにパターン
ジェネレータからの文字パターンを表示するようにした
ことを特徴とする表示装置の制御方式。
1 In a device that sequentially inputs a character code and a control code from an input device and displays a character pattern corresponding to the character code under the control of conditions specified by the control code, the code from the input device is analyzed. If the result of code analysis is a character code, this character code is stored, and if it is a control code, it is converted to a simple control code and the code is additionally stored in the empty bit of the immediately preceding character code. A microcomputer control unit having a buffer, a pattern generator that directly accesses the code buffer of the microcomputer control unit and generates a character pattern corresponding to the character code, and decoding the converted simple control code added to the character code. 1. A control method for a display device, comprising: a decoder, the display device being controlled according to the output from the decoder, and displaying a character pattern from a pattern generator.
JP13235978A 1978-10-27 1978-10-27 Display device control method Expired JPS5936314B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13235978A JPS5936314B2 (en) 1978-10-27 1978-10-27 Display device control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13235978A JPS5936314B2 (en) 1978-10-27 1978-10-27 Display device control method

Publications (2)

Publication Number Publication Date
JPS5559587A JPS5559587A (en) 1980-05-06
JPS5936314B2 true JPS5936314B2 (en) 1984-09-03

Family

ID=15079511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13235978A Expired JPS5936314B2 (en) 1978-10-27 1978-10-27 Display device control method

Country Status (1)

Country Link
JP (1) JPS5936314B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61187573U (en) * 1985-05-16 1986-11-22
JPH02147081U (en) * 1989-05-17 1990-12-13

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61187573U (en) * 1985-05-16 1986-11-22
JPH02147081U (en) * 1989-05-17 1990-12-13

Also Published As

Publication number Publication date
JPS5559587A (en) 1980-05-06

Similar Documents

Publication Publication Date Title
JP3274517B2 (en) Printer that automatically determines the data stream language
JPH0630910B2 (en) Printing method
JPS5936314B2 (en) Display device control method
JPS59201870A (en) Printer
JPS5827232A (en) Printer
JP2872144B2 (en) Printing equipment
JP2745546B2 (en) Printer device
JPS6364086A (en) Output unit
JP2940140B2 (en) Document data processing device
JP3196788B2 (en) Printer and print control method
JP2660127B2 (en) Print density conversion method for page printer
JPS62221546A (en) Printing speed control system
JPH0139357B2 (en)
JPS61292190A (en) Control code output method
JP3054157B2 (en) Character processing device and character processing method
JPS5856192A (en) Printer
JPS62199458A (en) Apparatus for processing document
JPS61193864A (en) Controlling system for dot printer
JPS62208177A (en) Image processor
JPH0213631B2 (en)
JPS6134994B2 (en)
JPS62208090A (en) Image processor
JPS62122776A (en) Rule printing controller
JPS6027582A (en) Printing-controlling system
JPS63138417A (en) Printer