JPS61279887A - Character generator - Google Patents

Character generator

Info

Publication number
JPS61279887A
JPS61279887A JP60123551A JP12355185A JPS61279887A JP S61279887 A JPS61279887 A JP S61279887A JP 60123551 A JP60123551 A JP 60123551A JP 12355185 A JP12355185 A JP 12355185A JP S61279887 A JPS61279887 A JP S61279887A
Authority
JP
Japan
Prior art keywords
character
font
address
rom
cpu
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
JP60123551A
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP60123551A priority Critical patent/JPS61279887A/en
Publication of JPS61279887A publication Critical patent/JPS61279887A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

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 Field of Application] The present invention is a character generation device that uses a computer to read and display character font data stored therein.

[従来の技術] 第4図は従来のマイクロコンピュータを使用した文字発
生装置を示す概略構成図で、図において(1)はマイコ
ンの中央処理ユニット(以下CPUという)、(2) 
(3)は所要のデータ、プログラム等を記憶する読み出
し専用メモリ(以下ROMという)及びランダムアクセ
スメモリ(以下kAMという)、(4)は所定数の文字
フォノデータを記憶している文字フォント読み出し専用
メモリ(以下フォノ1−ROMという)、(5)は入力
装置であるキーボード、(6)は出力装置であるディス
プレイ、(7)はこれらROM(2)(4)、RAM(
3)及び入出力装置(5) (6)とCPU(1)間で
データの授受を行なうためのCPUバスである。
[Prior Art] Fig. 4 is a schematic configuration diagram showing a character generation device using a conventional microcomputer. In the figure, (1) is the central processing unit (hereinafter referred to as CPU) of the microcomputer, (2)
(3) is a read-only memory (hereinafter referred to as ROM) and random access memory (hereinafter referred to as kAM) that stores necessary data, programs, etc., and (4) is a character font read-only memory that stores a predetermined number of character phono data. Memory (hereinafter referred to as phono 1-ROM), (5) is a keyboard which is an input device, (6) is a display which is an output device, (7) is these ROM (2) (4), RAM (
3) and the input/output device (5) This is a CPU bus for exchanging data between (6) and the CPU (1).

第5図はCP U (1)の有するメモリ空間(8)を
示すメモリマツプで(9)〜(1■)は、CPU(1)
に接続される各種メモリ(2) (3) (4)及び入
出力装置(5)(6)用に割り当てられるアドレス領域
をそれぞれ示している。一般にCPU(1)が持つこと
のできるメモリ容量は取り得るアドレス番号の桁数によ
ってきまり有限であり、例えば8ビツト系のマイクロコ
ンピュータでは、16進法4桁数字でooo。
Figure 5 is a memory map showing the memory space (8) possessed by CPU (1).
The address areas allocated to various memories (2), (3), and (4) and input/output devices (5) and (6) connected to are shown, respectively. Generally, the memory capacity that a CPU (1) can have is limited depending on the number of digits of the address number that can be taken.For example, in an 8-bit microcomputer, it is a 4-digit number in hexadecimal notation.

〜FFFF(7)64KBである。フォントROM (
1)に記憶されている各文字のフォントデータに対する
アドレスにも第2図に示すように相当のメモリ空間、即
ちアドレス領域(14)が割り当てられている。
~FFFF(7) 64KB. Font ROM (
As shown in FIG. 2, a considerable memory space, ie, an address area (14), is also allocated to the address for the font data of each character stored in 1).

以上の構成において、キーボード(5)から入力された
所要文字の文字コードからCP U (1)は、そのメ
モリ空間のフォントROM (4)に割り当てられてい
る領域(11)中のその文字のエリア(14)をROM
 (2)に記憶されているリスト等を用いて演算し、そ
の文字のフォントデータの先頭アドレスを求める。こう
して得られた先頭アドレスがらフォントROM (/I
)中のフォントデータを順次読み出し、CPU(1)内
で処理し、ディスプレイ(6)に出力して所要文字を表
示させる。
In the above configuration, based on the character code of the required character input from the keyboard (5), the CPU (1) determines the area of that character in the area (11) allocated to the font ROM (4) in the memory space. (14) in ROM
(2) Calculate using the list stored in the table, etc. to find the start address of the font data of the character. From the start address obtained in this way, the font ROM (/I
) are sequentially read out, processed in the CPU (1), and output to the display (6) to display the required characters.

[9!明が解決しようとする問題点] 従来の文字発生装置においては以上のようにフォントR
OM (4)に記憶されている各文字のフォントデータ
に対し、CP U (1)によって定められた一連のア
ドレスが割当てられているため、CPU(1)のアドレ
ス空間(8)内にフォントROM (4)用に大きなメ
モリ空間、即ちアドレス領域(11)を占有していた。
[9! [Problems that Ming attempts to solve] As described above, in conventional character generators, font R
Since a series of addresses determined by the CPU (1) are assigned to the font data of each character stored in the OM (4), the font ROM is stored in the address space (8) of the CPU (1). (4) occupied a large memory space, that is, the address area (11).

従って文字の種類が増大するとフォノl−ROM(4)
のみで更に大きなメモリ空間を占有することになり、プ
、ログラムや他のデータを記憶するに必要なメモリ空間
を制限するという問題点があった。
Therefore, as the number of types of characters increases, phono l-ROM (4)
This poses the problem of limiting the memory space necessary to store programs and other data.

また文字コードからその文字の書き込まれたエリア、即
ちアドレスを捜す処理を行なう必要もあった。
It was also necessary to search for the area where the character was written, that is, the address, from the character code.

コノ発明は以上の問題点を解消するためになされたもの
で文字フォントの読み出しに必要なメモリ空間がフォン
トROMの容量に関係なく一定で、しかも容易にフォン
ト読み出しを可能とした文字発生装置を得ることを目的
とする。
This invention was made to solve the above problems, and provides a character generator in which the memory space required for reading character fonts is constant regardless of the capacity of the font ROM, and in which fonts can be read easily. The purpose is to

[問題点を解決するための手段] この発明にかかる文字発生装置は、CPUのメモリ空間
に文字フォント用として1文字のフォントデータのアド
レスのみ割当て、スカされた文字コードからその文字の
先頭アドレスを得るためのデータ変換用ROMと、CP
Uがらの文字フォントデータのアドレスと上記データ変
換用ROMからの所要文字フォントの先頭アドレスとを
加算する加算器とを設け、この加算器がらの加算値をそ
の文字フォントデータのアドレスとしたものである。
[Means for Solving the Problems] The character generating device according to the present invention allocates only the address of one character of font data to the memory space of the CPU for a character font, and calculates the start address of the character from the scanned character code. ROM for data conversion and CP to obtain
An adder is provided to add the address of the character font data of the U character and the start address of the required character font from the data conversion ROM, and the added value of this adder is used as the address of the character font data. be.

[作 用] この発明においては、各文字のフォントデータに一連の
アドレスを割当てずに、CPUがらのアドレスしては1
文字分のフォントデータにのみ割当て、このアドレスと
、データ変換用ROMによって得られた各文字コードの
先頭アドレスとを加算して得られた値を、読み出し用ア
ドレスとしてフォントROMから所要文字のフォントデ
ータが読み′”、:ha、             
[Function] In this invention, instead of assigning a series of addresses to the font data of each character, the CPU only addresses one address.
Allocated only to the font data for a character, and the value obtained by adding this address to the start address of each character code obtained by the data conversion ROM is used as the read address to read the font data of the required character from the font ROM. It reads '”, :ha,
.

[実施例] 以下この発明の実施例を図について説明する。[Example] Embodiments of the present invention will be described below with reference to the drawings.

第1図はこの発明の一実施例の要部を示すブロン、、、
1゜1oお5、ア(4)(7)It□4゜、、1.イ、
   □り線図、第2図はそれのメモリマツプである。
FIG. 1 shows a main part of an embodiment of the present invention.
1゜1o゜, a(4)(7)It□4゜,,1. stomach,
□ Line diagram, Figure 2 is its memory map.

同様のフォントROM及びCPUバスで、他のC。Other C with similar font ROM and CPU bus.

PU(1)、ROM(3)、RAM、(3)、キーボー
ド(5)        ’及びディスプレイ(6)は
第4図と同様CPUバス       −(7)に接続
されているが図示を省略した。(15)はCPU(1)
に入力された文字コードを゛出力する出力ポート、(1
6)はフォントROM (4)中に記憶されている各文
字の文字コードと、その文字のフォ       アン
トデータのフォントROM (4)中における先頭アド
レス(以下アドレス■という)との対照表が設    
   :・定され、出力ポート(15)から入力される
文字コードをアドレス■に変換して出力するデータ変換
用ROM、(17)は、CPU(1)からの文字フォン
トに割当てられたアドレス(以下アドレスIという)と
データ変換用ROM (16)からのアドレス■とを加
算し、その加算値をアドレス■としてフォントROM 
(4)に読み出し用アドレスとして出力する加算器であ
る。
The PU (1), ROM (3), RAM (3), keyboard (5)', and display (6) are connected to the CPU bus (7) as in FIG. 4, but are not shown. (15) is CPU (1)
An output port that outputs the character code input to (1
6) is a comparison table between the character code of each character stored in the font ROM (4) and the start address (hereinafter referred to as address ■) of the font data of that character in the font ROM (4).
:・Data conversion ROM (17) converts the character code input from the output port (15) into an address ■ and outputs it, the address assigned to the character font from the CPU (1) (hereinafter referred to as Address I) and address ■ from the data conversion ROM (16) are added, and the added value is used as address ■ to be stored in the font ROM.
(4) This is an adder that outputs as a read address.

第2図において(8)は第5図と同様のCPU(1)の
メモリ空間、(18)はフォントROM (4)のメモ
リ空間を示し、(I9)はCP U (1)に割当てら
れた文字フォントROMのアドレス領域で1文字分のフ
ォントデータのアドレスのみが割当てられている。そし
てそれの先頭アドレス(アドレス■が0)をフォントR
OM (4)のメモリ空間(18)の最初のアドレスと
し、以下各文字のフォントデータにアドレス■が割当て
られている。
In Figure 2, (8) is the memory space of the CPU (1) similar to that in Figure 5, (18) is the memory space of the font ROM (4), and (I9) is the memory space allocated to the CPU (1). In the address area of the character font ROM, only the address of font data for one character is assigned. And the first address of it (address ■ is 0) in font R
This is the first address of the memory space (18) of OM (4), and the address ■ is assigned to the font data of each character below.

次にその動作を説明する。今例えばA′″という文字フ
ォントを得たい場合、キーボード(5)に文字Aを入力
すると、CPU(1)は文字Aを表わすコードを出力ポ
ート(15)に出力する。この文字コードがデータ変換
用ROM (16)によってフォントROM (/I)
中の”Al1という文字のフォントデータが書き込まれ
た先頭アドレスAt、即ちII A 11のアドレス■
に変換される。ここでCP U (1)がIN A11
文字フォントを読み出すために、文字フォントに割当て
られた領域(19)のアドレス、即ちアドレス■が先頭
アドレスから順次出力し加算器(17)に印加される。
Next, its operation will be explained. For example, if you want to obtain the character font A''', when you input the character A on the keyboard (5), the CPU (1) outputs a code representing the character A to the output port (15).This character code is used for data conversion. Font ROM (/I) by ROM (16)
The first address At where the font data of the character “Al1” is written, that is, the address of II A 11■
is converted to Here, CPU (1) is IN A11
In order to read the character font, the addresses of the area (19) assigned to the character font, ie, the address (2), are sequentially output from the first address and applied to the adder (17).

加算器(17)ではこのアドレスIとデータ変換用RO
M (16)からのアドレス■とが加算され、その加算
値がアドレス■としてフォントROM(4)に出力され
る。このアドレス■によってフォントROM (4)中
のメモリ空間(18)のエリア(20)に記憶されてい
るA文字のフォントデータがそれの先頭アドレスから順
次読み出され、CPUバス(7)をへてCPU(1)に
入力される。CPU(1)ではこの読み出された文字フ
ォントデータを処理しディスプレイ(6)に出力し、こ
こにA文字が表示される。同様に、l# B #jとい
う文字フォントを得たい場合、キーボード(5)に文字
Bを入力すると。
The adder (17) uses this address I and RO for data conversion.
The address ■ from M (16) is added, and the added value is output to the font ROM (4) as address ■. With this address ■, the font data of the A character stored in the area (20) of the memory space (18) in the font ROM (4) is read out sequentially from its first address and sent through the CPU bus (7). It is input to CPU (1). The CPU (1) processes this read character font data and outputs it to the display (6), where the character A is displayed. Similarly, if you want to obtain the character font l#B#j, enter the letter B on the keyboard (5).

CP U (1)は文字Bを表わすコードを出力ポート
(15)に出力し、データ変換用ROM (16)によ
ってフォントROM (4)の11 B ′1という文
字のアドレス■・Blが得られる・一方CPU(1)か
ら71B文字フォントを読み出す場合もHAII文字フ
ォントを読み出す場合と同じの、メモリ空間(8)の文
字フォントに割当てられたアドレスIが出力され、加算
器でB文字のアドレス■と加算され、その加算値のアド
レス■によってメモリ空間(18)のエリア(20’ 
)に記憶されているB文字フォントデータがフォントR
OM (4)から読み出される。
The CPU (1) outputs the code representing the character B to the output port (15), and the data conversion ROM (16) obtains the address of the character 11B'1 in the font ROM (4). On the other hand, when reading the 71B character font from the CPU (1), the address I assigned to the character font in the memory space (8) is output, which is the same as when reading the HAII character font. The area (20') of the memory space (18) is
) is the B character font data stored in font R.
Read from OM (4).

このようにCP U (1)としてはメモリ空間(8)
中の所定のエリア(19)のアドレスをもって読み出す
のみで、フォントROM (4)のもつメモリ空間(1
8)中の該当する文字フォントが格納されているエリア
(20) (20’ )のデータを得ることが可能とな
る。
In this way, as CPU (1), memory space (8)
By simply reading the address of a predetermined area (19) in the font ROM (4),
8) It becomes possible to obtain the data of areas (20) (20') in which the corresponding character fonts are stored.

第3図はこの発明の他の実施例の要部を示すブロック線
図で1図中(’り (7) (16) (17)は上記
第1図に示す実施例と同様のものであり、(15a) 
(15b)は第1図(15)に相当する出力ポートで、
(15a)は、所要文字の文字コードが(15b)はそ
の文字のサイズ或は種類(ゴシック体、明朝体等)が出
力設定される。これらは何れもデータ変換ROM (1
6)によって、フォントROM (4)においてそれに
該当するフォントが書き込まれたエリアの先頭アドレス
、即ちアドレス■に変換されて加算器(17)に入力さ
れる。従ってCP U (1)からは所定のメモリエリ
ア(19)を読み出すことによって、ボート(15a)
に設定されたコードの文字フォントをボート(15b)
に設定されたサイズ或は種類で読み出すことが可能とな
る。
FIG. 3 is a block diagram showing the main parts of another embodiment of the present invention. In the diagram, (7), (16), and (17) are similar to the embodiment shown in FIG. 1 above. , (15a)
(15b) is an output port corresponding to (15) in Figure 1,
In (15a), the character code of the required character is output, and in (15b) the size or type (Gothic, Mincho, etc.) of the character is set to be output. These are all data conversion ROMs (1
6), the address is converted into the start address of the area in which the corresponding font is written in the font ROM (4), ie, address ■, and is input to the adder (17). Therefore, by reading a predetermined memory area (19) from the CPU (1), the board (15a)
Boat the character font of the code set to (15b)
It becomes possible to read out the size or type set in .

[発明の効果コ この発明は以上のように構成したので、CPUのメモリ
空間のフォントROMの占有する割合が1文字分のみで
すみ、フォントROMの容量を大幅に増やすことが可能
となると共に、CPU内で文字コード等により文字フォ
ントデータが書き込まれているアドレスエリアを捜し出
すための演算処理を行なう必要がなく、操作プログラム
が簡単となる等の効果を有する。
[Effects of the Invention] Since this invention is configured as described above, the proportion of the CPU memory space occupied by the font ROM is only one character, making it possible to greatly increase the capacity of the font ROM, and There is no need to perform arithmetic processing in the CPU to search for an address area in which character font data is written based on a character code, etc., and the operation program can be simplified.

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

第1図はこの発明の一実施例の要部を示すブロック線図
、第2図はそれのメモリマツプを示す図、第3図はこの
発明の他の実施例を示すブロック線図、第4図は従来の
文字発生装置を示す概略構成図、第5図はそれのCPU
のメモリマツプを示す図である。 図ニおイテ(1)はCPU、(4)は71−:/トRO
M、(5)はキーボード、(6)はディスプレイ、(7
)はCPUバス、(8)はCPUのメモリマツプ、(1
5)(15a) (15b)は出力ボート、 (16)
はデータ変換用ROM、(17)は加算器、 (1g)
はフォントROMのメモリ空間、(19)はメモリ空間
(8)中のフォントROMに割当てられた領域である。 図中同一符号は同−或は相当部分を示す。
FIG. 1 is a block diagram showing the main parts of one embodiment of this invention, FIG. 2 is a diagram showing its memory map, FIG. 3 is a block diagram showing another embodiment of this invention, and FIG. 4 is a schematic configuration diagram showing a conventional character generator, and Figure 5 shows its CPU.
FIG. 2 is a diagram showing a memory map of FIG. In the figure, (1) is the CPU, (4) is 71-:/RO
M, (5) is the keyboard, (6) is the display, (7
) is the CPU bus, (8) is the CPU memory map, (1
5) (15a) (15b) is the output boat, (16)
is a data conversion ROM, (17) is an adder, (1g)
is the memory space of the font ROM, and (19) is the area allocated to the font ROM in the memory space (8). The same reference numerals in the drawings indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 中央処理ユニット(以下CPUという)、各種メモリ及
び入出力装置からなるコンピュータに文字フォントデー
タを記憶した文字フォント読み出し専用メモリ(以下フ
ォントROMという)を備え、上記CPUに入力された
文字コードから上記フォントROMに記憶されている所
要文字のフォントデータのアドレスを求め、このアドレ
スによって上記フォントROM中から上記CPUに上記
所要文字のフォントデータを読み出すようにした文字発
生装置において、上記CPUのメモリ空間に文字フォン
ト用として1文字のフォントデータのアドレスのみ割当
て、上記文字コードから上記フォントROM中における
その文字の先頭アドレスを得るデータ変換用読み出し専
用メモリ(以下データ変換用ROMという)と、上記C
PUからの文字フォントデータのアドレスと上記データ
変換用ROMからの文字先頭アドレスとを加算する加算
器を設け、この加算器からの加算値を、その文字フォン
トデータのアドレスとしたことを特徴とする文字発生装
置。
A computer consisting of a central processing unit (hereinafter referred to as CPU), various memories, and input/output devices is equipped with a character font read-only memory (hereinafter referred to as font ROM) that stores character font data, and the font is read from the character code input to the CPU. In a character generator, the address of the font data of the desired character stored in the ROM is obtained, and the font data of the desired character is read from the font ROM to the CPU based on this address, and the character is stored in the memory space of the CPU. A read-only memory for data conversion (hereinafter referred to as data conversion ROM) that allocates only the address of one character of font data for the font and obtains the start address of that character in the font ROM from the character code;
An adder is provided for adding the address of the character font data from the PU and the character start address from the data conversion ROM, and the added value from the adder is used as the address of the character font data. Character generator.
JP60123551A 1985-06-06 1985-06-06 Character generator Pending JPS61279887A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60123551A JPS61279887A (en) 1985-06-06 1985-06-06 Character generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60123551A JPS61279887A (en) 1985-06-06 1985-06-06 Character generator

Publications (1)

Publication Number Publication Date
JPS61279887A true JPS61279887A (en) 1986-12-10

Family

ID=14863398

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60123551A Pending JPS61279887A (en) 1985-06-06 1985-06-06 Character generator

Country Status (1)

Country Link
JP (1) JPS61279887A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06186941A (en) * 1992-12-18 1994-07-08 Matsushita Electric Ind Co Ltd Display circuit device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06186941A (en) * 1992-12-18 1994-07-08 Matsushita Electric Ind Co Ltd Display circuit device

Similar Documents

Publication Publication Date Title
JPS61279887A (en) Character generator
EP0387888A2 (en) Microprocessor system having an extended address space
JP2786678B2 (en) Code information conversion circuit
JPS5945488A (en) Graphic japanese font memory device
JP2778957B2 (en) Character display
JPS6347908Y2 (en)
JPS63202476A (en) Document output unit
JPS6217752B2 (en)
JPS59144966A (en) Data processor
JPS63178292A (en) Character pattern generator
JPS59184941A (en) Kanji code converting method
JPS5824799B2 (en) Kanji output system
KR900000258B1 (en) Printing system for the hangul(the korean alphabet)
JPH0587839B2 (en)
JP2643660B2 (en) Communication control device
JPS61140985A (en) Character code conversion system
CN116932428A (en) Method for transparent transmission data of memory management unit and memory management unit
JPS58116581A (en) Display unit
JP2757716B2 (en) Huffman code decoding circuit
JPS63108393A (en) Character generator
JPH03237491A (en) Font memory controller
JPS62172450A (en) Memory circuit controller
JPH0346698A (en) Character pattern generator with plural fonts
JPH0267587A (en) Character pattern access system
JPS61147352A (en) Computer device