JPS607293B2 - How to create a code table - Google Patents

How to create a code table

Info

Publication number
JPS607293B2
JPS607293B2 JP55104077A JP10407780A JPS607293B2 JP S607293 B2 JPS607293 B2 JP S607293B2 JP 55104077 A JP55104077 A JP 55104077A JP 10407780 A JP10407780 A JP 10407780A JP S607293 B2 JPS607293 B2 JP S607293B2
Authority
JP
Japan
Prior art keywords
code
country
internal
codes
code table
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
JP55104077A
Other languages
Japanese (ja)
Other versions
JPS5729145A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP55104077A priority Critical patent/JPS607293B2/en
Publication of JPS5729145A publication Critical patent/JPS5729145A/en
Publication of JPS607293B2 publication Critical patent/JPS607293B2/en
Expired legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

【発明の詳細な説明】 本発明はインタフェースコード系と内部コード系のコー
ド変換テーブルを効率的な構成とし、ランダムアクセス
メモリ(RAM)の空領域を利用し固定メモリ(ROM
)の容量を減少するようにしたコード変換用コードテー
ブル作成方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention has an efficient configuration of code conversion tables for the interface code system and the internal code system, and utilizes the empty area of random access memory (RAM) to store data in fixed memory (ROM).
) The present invention relates to a method for creating a code table for code conversion that reduces the capacity of the code table.

従来、入力文字コードを標準インタフェースコード系を
通して内部コ−ド系に変換し、対応する文字パターンを
発生してプリンタ等を動作させる装置が多用されている
Conventionally, devices have been widely used that convert input character codes through a standard interface code system into an internal code system, generate a corresponding character pattern, and operate a printer or the like.

この場合、各国向けの装置に対しては使用するコ−ドが
各国向けて異なり異なるコードーこ対応し文字パターン
が異なる。そこで、第1図に示すように、たとえばRO
M内にA、B、C国向けの8ビットの標準インターフェ
ースコードテーブルIA,IB,ICとそれぞれに対応
する8ビットの内部コードテーブル2A,2B,2Cが
設けられる。この構成では、標準インタフェースコード
テーブルIA,IB,ICはたとえば8ビットのコード
系としては各国同じであるが、その内容すなわち使用領
域と使用文字が異ある。これに対し内部コードテーブル
2A,2B,2Cは装置の処理しうるコードを全部含み
同じテーブルが標準インタフェースコードテーブルIA
,IB,ICとそれぞれ1対となるように重複して設け
てあり、各国向けには何れかの1対が用いられる。この
ような場合区分ははっきりしているがROM容量がぼう
大なものとなり、かつ利用率が悪いという欠点がある。
一方、近年RAMの大容量化チップの量産が進み、価格
も必要容量のものより大容量のある単位のものの方が安
くなる場合がある。
In this case, the codes used for devices for each country differ depending on the country, and the character patterns corresponding to the different codes are different. Therefore, as shown in Fig. 1, for example, RO
8-bit standard interface code tables IA, IB, and IC for countries A, B, and C and corresponding 8-bit internal code tables 2A, 2B, and 2C are provided in M. In this configuration, the standard interface code tables IA, IB, and IC are, for example, the same 8-bit code system in each country, but the contents, that is, the areas used and the characters used are different. On the other hand, internal code tables 2A, 2B, and 2C contain all the codes that can be processed by the device, and the same table is the standard interface code table IA.
, IB, and IC, and one pair is used for each country. In such a case, the division is clear, but the ROM capacity is enormous and the utilization rate is poor.
On the other hand, in recent years, the mass production of large-capacity RAM chips has progressed, and the price of a large-capacity unit may be cheaper than that of a required-capacity one.

従って必要容量のものの代りに大容量のものを使う場合
が多くなっている。
Therefore, large-capacity devices are increasingly being used instead of the required capacity.

たとえば、滋バイトを必要とする場合でも1腿ビットの
チップを使用し、1磯バイトを構成する。本発明者はこ
の場合生ずる空領域を有効に利用して前述コード変換テ
ーブルを格納するROM容量を減少することを考えたも
のである。
For example, even if a large byte is required, a chip of one thigh is used to form one byte. The inventor of the present invention has considered reducing the ROM capacity for storing the code conversion table by effectively utilizing the empty area generated in this case.

本発明の目的はインタフェース系と内部コード系のコー
ド変換テーブルを効率的な構成とし、RAMの空領域を
利用しROMの容量を減少するようにしたコード変換用
コードテーブル作成方法を提供することである。
An object of the present invention is to provide a code conversion code table creation method that efficiently configures the code conversion tables for the interface system and the internal code system, and reduces the capacity of the ROM by using the free area of the RAM. be.

前記目的を達成するため、本発明のコードテーブル作成
方法はインタフェースコード系と内部コード系の2種類
のコード系で動作し、入力されたインタフェースコード
を内部コードもこ変換して処理を行なう装置において、
該装置は固定メモリ(ROM)を有し、該固定メモリに
基準となる1組の内部コードテーブルと、前記インタフ
ェースコード系のうち特定のコ−ドもこ対する複数の内
部コードを格納しておき、前記固定メモリに格納された
1組の内部コードテーブルをランダムアクセスメモリ(
RAM)に格納するとともに、コード系指定手段により
指定されたコード系に基づいて前記複数の内部コードの
1つを選択し、RAMに展開されている内部コードテー
ブルのうち対応するコードを前記選択した内部コードで
置換することを特徴とするものである。
In order to achieve the above object, the code table creation method of the present invention operates on two types of code systems, an interface code system and an internal code system, and processes an input interface code by converting the internal code as well.
The device has a fixed memory (ROM) in which a set of internal code tables serving as a reference and a plurality of internal codes corresponding to specific codes among the interface code system are stored; A set of internal code tables stored in the fixed memory is transferred to a random access memory (
RAM), one of the plurality of internal codes is selected based on the code system designated by the code system designation means, and the corresponding code is selected from the internal code table developed in the RAM. It is characterized by replacing it with internal code.

以下本発明の原理と実施例につき詳述する。The principle and embodiments of the present invention will be explained in detail below.

第2図a〜cは本発明の原理説明図である。本発明では
ROMには同図aに示す基準となる内部コードテーブル
3と各国別で異なるコードに変換する国別変換テーブル
4のみを格納しておく。このうち国別変換テーブル4は
同図bに示すように、基準内部コードテーブルのA、B
、C国等の国別インタフェースコード4一1に対応し、
各国A、B、C国向け内部コード4一2に変換するテー
ブルである。国別を指定する国指定用レジスタで使用国
を指定し、ROM内の基準内部コードテーブル3と国別
変換テーブル4を用い、これを粗合せることにより、前
述のRAMの空領域内に同図cに示す国別内部コードテ
ーブル5、すなわち国別のインタフェースコードをその
国の内部コードもこ変換するためのテーブルと、インタ
フェースコードテーブル6、すなわち国別において未定
義のコードが定義されているコードかを示す情報を記憶
したテーブルの両者を展開し、これをコード変換に用い
る。ROM内の基準内部コードテーブル3はたとえば8
ビットの25ひぐィト領域に格納され、国別変換テーブ
ル4は国別で変換を必要とするコード数に国教を乗じた
ものであるから、たとえばコード数を10バイト、国数
を4とすれば40バイト程度に過ぎないから合計で29
6ゞィトとなり、第1図の従来例の場合各国当り256
×2バイト、4国で2048ぐィト要するのに比しRO
M容量を格段に減少できる。
FIGS. 2a to 2c are diagrams explaining the principle of the present invention. In the present invention, the ROM stores only an internal code table 3 as a reference shown in FIG. Among these, country conversion table 4 is the standard internal code table A and B, as shown in Figure b.
, corresponds to country-specific interface codes 4-1 such as country C,
This is a table for converting internal codes 4-2 for countries A, B, and C. By specifying the country of use in the country specification register that specifies the country, and using the standard internal code table 3 and country conversion table 4 in the ROM, and roughly combining them, the same figure can be stored in the empty area of the RAM mentioned above. Country-specific internal code table 5 shown in c, that is, a table for converting the country-specific interface code to that country's internal code, and interface code table 6, that is, the code in which undefined codes are defined for each country. Expand both tables that store information indicating , and use them for code conversion. The standard internal code table 3 in the ROM is, for example, 8.
It is stored in a 25-bit area, and the country conversion table 4 is the number of codes that require conversion for each country multiplied by the national religion, so for example, if the number of codes is 10 bytes and the number of countries is 4. Then it is only about 40 bytes, so the total is 29
6 bits, which is 256 bits per country in the conventional example shown in Figure 1.
× 2 bytes, compared to 2048 gui in 4 countries, RO
M capacity can be significantly reduced.

RAM内には使用国の内部コードテーブルとインタフェ
ースコードテーブル分の256×2バイトを格納するが
、これは前述の理由により空領域を利用したものである
から、実質的な増設にならず却って利用率を良くする。
第3図は上述の方法を実現する本発明の構成説明図であ
り、第4図a〜cは第3図の動作を示す流れ図である。
The RAM stores 256 x 2 bytes for the internal code table of the country of use and the interface code table, but because this uses empty space for the reason mentioned above, it is not a substantial expansion and is instead used. improve the rate.
FIG. 3 is an explanatory diagram of the configuration of the present invention for realizing the above method, and FIGS. 4a to 4c are flowcharts showing the operation of FIG. 3.

第3図において、マイクロプロセッサ(MPU)1 1
のデータバス7に対し、基準内部コードテーブル3と国
別変換テーブル4の外コードテーブル作成用の変換プロ
グラムを格納するROM12と、国別内部コードテーブ
ル5とインターフェースコードテーブル6を展開して書
込むRAM13が接続される。
In FIG. 3, microprocessor (MPU) 1 1
A ROM 12 that stores a conversion program for creating an external code table for the standard internal code table 3 and the country-specific conversion table 4, and the country-specific internal code table 5 and interface code table 6 are expanded and written to the data bus 7. RAM 13 is connected.

さらに、国指定用レジス夕15が設けられ後述するよう
に各国毎に符号化して指定され、ROM12内の国別変
換テーフル4のコードが選択される。この基準内部コー
ドテーブル3と選択された国別変換テーブル4の内容よ
り、RAM13内の国別内部コードテーフル5とインタ
フェースコードテーブル6が作成される。使用国の入力
文字コードがインタフェース14を介して入力されると
、RAM13内の両テーフル5,6によりコード変換さ
れ、プリンター6に所定の文字パターンに対応する文字
コードが送られる。
Further, a country specification register 15 is provided, and each country is coded and specified as described later, and the code in the country conversion table 4 in the ROM 12 is selected. Based on the contents of the standard internal code table 3 and the selected country conversion table 4, a country internal code table 5 and an interface code table 6 in the RAM 13 are created. When the input character code of the country of use is input via the interface 14, the code is converted by both tables 5 and 6 in the RAM 13, and the character code corresponding to a predetermined character pattern is sent to the printer 6.

第4図aはコードテーブル作成の手順を示す。FIG. 4a shows the procedure for creating a code table.

まず、MPUIIは、ROM12の変換プログラムに従
い、ROM12内基準内部コードテーブル3をRAM1
3に転送して格納する。次に、同図bに示す国指定用レ
ジスタ15によりたとえば国別夕を図示の3ビットコー
ドで示した内容を判定する。次に、同図cに示すように
、RAM1 3に転送された基準内部コードテーブル3
の25ふゞィト(××00〜××FF)のアドレス領域
のうち特定のメモリアドレス××YZに対し、前述の国
別変換0テーブル4を用いて使用国(A国)のコードと
変換することにより、国別内部コードテーブル5を作成
することができる。また、国別コード‘こおいては、そ
れぞれが固有のィンバリツドコード、すなわち未定義コ
ードを若干数含むのが通常ある。
First, the MPU II converts the reference internal code table 3 in the ROM 12 to the RAM 1 according to the conversion program in the ROM 12.
3 and store it. Next, the country specification register 15 shown in FIG. Next, as shown in FIG.
For a specific memory address XXYZ in the address area of 25 bits (XX00 to XXFF) of By converting, a country-specific internal code table 5 can be created. In addition, each country code usually includes a number of unique invalid codes, that is, undefined codes.

そこで国別内部コードテーブル5のうちのィンバリッド
コードを判定し、対応するインターフェースコード系の
ィンバリッドコードを取入れ変換することにより、イン
タフェースコードテーブル6を作成し終了する。このよ
うにして、RAM13内に作成した国別内部コードテー
ブル5と対応するインタフェースコードテーブル6を用
いて使用国の入力文字コードに対するコード変換を行な
い所定の文字パターンの印字を行なうことができる。以
上説明したように、本発明によれば、ROMには基準内
部コードテーブルと国別変換テーフルのみを格納し、国
別を指定する手段で使用国を指定し、前述のROMの両
テーブルを用いてRAM内の空領域に使用国の国別内部
コードテーブルとインタフェースコードテーブルを作成
し、これを用いて使用国の入力文字コードのコード変換
を行なうようにしたものである。
Therefore, invalid codes in the country-specific internal code table 5 are determined, and invalid codes of the corresponding interface code system are imported and converted to create an interface code table 6, and the process ends. In this way, using the country-specific internal code table 5 created in the RAM 13 and the corresponding interface code table 6, code conversion can be performed for the input character code of the country of use, and a predetermined character pattern can be printed. As explained above, according to the present invention, only the reference internal code table and the country conversion table are stored in the ROM, the country of use is specified by means for specifying the country, and both tables in the ROM are used. A national internal code table and an interface code table for the country of use are created in an empty area in the RAM, and these are used to convert the input character code of the country of use.

これにより、ROMには基準の内部コードテーブル1種
類と若干の国別変換テーブルの領域をもてばよいからR
OMの容量を格段に減少することができる。その代りに
RAMには使用国向けの国別内部コードテーフルとイン
タフェースコードテーブルを設ける必要があるが、これ
は空領域を利用するから実質的な増設にならない。従っ
て各国向けのコードテーブルの作成方法として利用率の
良い安価な方式が得られる。なお、以上の説明は、国別
について説明したが、たとえば日本国内において使用さ
れているカナ有コード系、カナ無コード系の変換テーブ
ル作成方法にも適用できるものである。
As a result, the ROM only needs to have an area for one type of standard internal code table and some country-specific conversion tables.
The capacity of OM can be significantly reduced. Instead, it is necessary to provide a country-specific internal code table and an interface code table for each country of use in the RAM, but since this uses empty space, it is not a substantial addition. Therefore, a highly usable and inexpensive method for creating code tables for each country can be obtained. Although the above explanation has been made for each country, it can also be applied to conversion table creation methods for kana code systems and kana code system systems used in Japan, for example.

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

第1図は従来例の説明図、第2図a〜cは本発明の原理
説明図、第3図は本発明の実施例の構成を示す説明図、
第4図a〜cは第3図の実施例の動作を示す説明図であ
り、図中3は基準内部コードテーブル、4は国別変換テ
ーブル、5は国別内部コ−ドテーブル、6はインタフェ
ースコードテーブル、7はデータバス、1 1はMPU
、1 2はROM、1 3はRAM、1 4はインタフ
ヱース、15は国指定用レジスタ、16はプリンタを示
す。 第1図「第2図 第3図 第4図
FIG. 1 is an explanatory diagram of a conventional example, FIGS. 2 a to c are explanatory diagrams of the principle of the present invention, and FIG. 3 is an explanatory diagram showing the configuration of an embodiment of the present invention.
4a to 4c are explanatory diagrams showing the operation of the embodiment of FIG. 3, in which 3 is a standard internal code table, 4 is a country conversion table, 5 is a country internal code table, and 6 is a Interface code table, 7 is data bus, 1 1 is MPU
, 12 is a ROM, 13 is a RAM, 14 is an interface, 15 is a country designation register, and 16 is a printer. Figure 1 Figure 2 Figure 3 Figure 4

Claims (1)

【特許請求の範囲】[Claims] 1 インターフエースコード系と内部コード系の2種類
のコード系で動作し、入力されたインターフエースコー
ドを内部コードに変換して処理を行なう装置において、
該装置は固定メモリ(ROM)を有し、該固定メモリに
基準となる1組の内部コードテーブルと、前記インタフ
エースコード系のうち特定のコードに対する複数の内部
コードを格納しておき、前記固定メモリに格納された1
組の内部コードテーブルをランダムアクセスメモリ(R
AM)に格納するとともに、コード系指定手段により指
定されたコード系に基づいて前記複数の内部コードの1
つを選択し、RAMに展開されている内部コードテーブ
ルのうち対応するコードを前記選択した内部コードで置
換することを特徴とするコードテーブル作成方法。
1. In a device that operates with two types of code systems, an interface code system and an internal code system, and converts input interface codes into internal codes for processing,
The device has a fixed memory (ROM) in which a set of reference internal code tables and a plurality of internal codes for specific codes among the interface code system are stored. 1 stored in memory
The set of internal code tables are stored in random access memory (R
AM) and one of the plurality of internal codes based on the code system designated by the code system designation means.
A method for creating a code table, comprising: selecting one of the internal codes, and replacing a corresponding code in an internal code table developed in a RAM with the selected internal code.
JP55104077A 1980-07-29 1980-07-29 How to create a code table Expired JPS607293B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP55104077A JPS607293B2 (en) 1980-07-29 1980-07-29 How to create a code table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55104077A JPS607293B2 (en) 1980-07-29 1980-07-29 How to create a code table

Publications (2)

Publication Number Publication Date
JPS5729145A JPS5729145A (en) 1982-02-17
JPS607293B2 true JPS607293B2 (en) 1985-02-23

Family

ID=14371081

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55104077A Expired JPS607293B2 (en) 1980-07-29 1980-07-29 How to create a code table

Country Status (1)

Country Link
JP (1) JPS607293B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58152226A (en) * 1982-03-05 1983-09-09 Minolta Camera Co Ltd Data outputting device of camera accessory
JPS61116551A (en) * 1984-10-22 1986-06-04 Fujitsu Ltd Character pattern reading system
JP2699385B2 (en) * 1988-03-11 1998-01-19 富士ゼロックス株式会社 Printing device
JPH09152859A (en) * 1995-11-29 1997-06-10 Seiko Epson Corp Printer

Also Published As

Publication number Publication date
JPS5729145A (en) 1982-02-17

Similar Documents

Publication Publication Date Title
JPS607293B2 (en) How to create a code table
EP0545447B1 (en) Dot matrix printer and method for storing and retrieving bit map data
US6301264B1 (en) Asynchronous data conversion circuit
JPS5848560A (en) Facsimile response device in facsimile response system
EP0344915B1 (en) Apparatus and method for processing bit streams
JPH021650A (en) Data transmission system
JPH08202693A (en) Character data processor
JPS6134620A (en) Inputting method to computer
JPS5953579B2 (en) character compression device
JP2698836B2 (en) Data converter
JPS5975342A (en) Data buffering control device
JPS6224827B2 (en)
JPH0728613A (en) External character output control system
JPH0796639A (en) Printer
JPH02287739A (en) Memory access method
JPS581250A (en) Discriminating system of information code
JPH0325667A (en) Japanese word processing system
JPH04138747A (en) Storage controller for reception data
JPS6232789B2 (en)
JPH0348286A (en) Font cache control system of character processing system
JPH02306725A (en) Method and apparatus for code conversion
JPH03144735A (en) Language processing system for interpreter
JPH01250123A (en) Character data processor
JPH05127655A (en) Character pattern generation device
JPH02210579A (en) Coincidence collating method for digital information