JPS5946681A - Pattern writing system for user's definition ram - Google Patents

Pattern writing system for user's definition ram

Info

Publication number
JPS5946681A
JPS5946681A JP57157900A JP15790082A JPS5946681A JP S5946681 A JPS5946681 A JP S5946681A JP 57157900 A JP57157900 A JP 57157900A JP 15790082 A JP15790082 A JP 15790082A JP S5946681 A JPS5946681 A JP S5946681A
Authority
JP
Japan
Prior art keywords
ram
user
address
pattern
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.)
Granted
Application number
JP57157900A
Other languages
Japanese (ja)
Other versions
JPH0146072B2 (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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP57157900A priority Critical patent/JPS5946681A/en
Publication of JPS5946681A publication Critical patent/JPS5946681A/en
Publication of JPH0146072B2 publication Critical patent/JPH0146072B2/ja
Granted 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

【発明の詳細な説明】 この発明は、ユーザが所望する任意のパターンたとえば
キャラクタをユーザ定義RAMへ書き込む場合の書込方
式の改良に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an improvement in a writing method for writing arbitrary patterns, such as characters, desired by a user into a user-defined RAM.

第1図に示すように、小形の電子計算機(いわゆるパー
ソナルコンピュータ)のキーボード1を操作すると、C
RT2に文字,数字等のキャラクタが表示される。CR
T2の画面上に文字等を表示しておくには、CRT画面
をたえず走査し、画面をリフレッシュしておく必要があ
る。このためビデオRAM3(以下、V−RAMという
)に表示するデータを記憶しておき、この内容に基づき
画面をリフレッシュしている。V−RAM3には、CP
U4を介してデータが書き込まれるが、書き込まれるデ
ータはアスキーコードが用いられているので、そのまま
では文字等として表示することができない。キャラクタ
ROM5a(以下、C−ROMという)で文字コードを
文字パターンに変換し、制御回路6等を介して映像信号
を作成し、CRT2へ出力する。いま、C−ROM5a
を容量2Kバイトのものとすると、このC−ROM5a
のアドレスのうち上位8ビットは前記V−RAM3から
与えられ、下位3ビットはCRTコントローラ7からラ
スターアドレスRA2〜RA0として与えられる。前記
上位8ビットは画面表示に際し、キャラクタ単位のアド
レスを指定し、下位3ビットは1キャラクタ(8×8ド
ット構成)内のラスター(1行)のアドレスを指定する
As shown in Fig. 1, when the keyboard 1 of a small electronic computer (so-called personal computer) is operated, the
Characters such as letters and numbers are displayed on RT2. CR
In order to display characters, etc. on the screen of T2, it is necessary to constantly scan the CRT screen and refresh the screen. For this reason, data to be displayed is stored in the video RAM 3 (hereinafter referred to as V-RAM), and the screen is refreshed based on this content. V-RAM3 has CP
Data is written through U4, but since the written data uses ASCII code, it cannot be displayed as characters as is. A character ROM 5a (hereinafter referred to as C-ROM) converts a character code into a character pattern, creates a video signal via a control circuit 6, etc., and outputs it to the CRT 2. Currently, C-ROM5a
Assuming that the capacity is 2K bytes, this C-ROM5a
The upper 8 bits of the address are given from the V-RAM 3, and the lower 3 bits are given from the CRT controller 7 as raster addresses RA2 to RA0. The upper 8 bits specify the address of each character when displayed on the screen, and the lower 3 bits specify the address of a raster (one line) within one character (8×8 dot configuration).

C−ROM5aには、予め、文字,数字,所定の記号等
の汎用されるキャラクタパターンが書き込まれており、
アドレス指定により特定のキャラクタパターンのみが出
力される。他方、このC−ROM5aとは並列に、ユー
ザ自身が定義する特有のキャラクターパターンを書き込
むためのユーザ定義RAM5b(以下、キャラクタRA
Mと称し、C−RAMという)が準備されている。ユー
ザが自分の定義した任意のキャラクタをCRT2に表示
させるには、予めそのキャラクタパターンをC−RAM
5bに書き込んでおかねばならない。
General-purpose character patterns such as letters, numbers, and predetermined symbols are written in advance in the C-ROM 5a.
Only specific character patterns are output by addressing. On the other hand, in parallel with this C-ROM 5a, there is a user-defined RAM 5b (hereinafter referred to as character RA) for writing a unique character pattern defined by the user.
M and C-RAM) are prepared. In order for the user to display any character he or she has defined on the CRT2, the character pattern must be stored in the C-RAM in advance.
It must be written in 5b.

本発明はこの書き込み方式に関する。The present invention relates to this writing method.

従来の方式は、第1図に示すように、C−RAM5bに
アクセスするのに、C−RAM5bのアドレス指定をC
PU4とV−RAM3のどちらで行なわせるかを切換え
るマルチプレクサ8を介して、CPU4から直接このC
−RAM5bにアドレス指定を行なうようにしていた。
As shown in FIG.
This C directly from the CPU 4 via the multiplexer 8 that switches between the PU 4 and the V-RAM 3.
- Address specification was made to RAM5b.

しかし、CPU4よりC−RAM5bに直接アクセスを
行なうと、CPU4のI/Oマップ上(I/Oマップは
、通常、CPU領域に内蔵されるメモリが用いられる)
に当該C−RAM5bのメモリ容量を振り分けなければ
ならず制御が複雑化するとともに、アドレスラインの切
換回路系も煩雑化する問題があった。
However, when the C-RAM 5b is accessed directly from the CPU 4, the I/O map of the CPU 4 (the I/O map normally uses the memory built into the CPU area)
The problem is that the memory capacity of the C-RAM 5b has to be distributed between the two, which complicates control and also complicates the address line switching circuit system.

そこで、本発明は上記問題点に鑑みなされたもので、ユ
ーザ定義RAM(C−RAM)へユーザが所望するパタ
ーンを書き込むに際し、C−RAMのアドレス指定を直
接CPUによって行なわなくともアドレス指定が可能な
ようにC−RAMのアドレス指定方法を改良することを
目的とする。
Therefore, the present invention was made in view of the above problems, and when writing a pattern desired by a user to a user-defined RAM (C-RAM), it is possible to specify an address without directly specifying the address of the C-RAM by the CPU. The purpose of this invention is to improve the C-RAM addressing method.

すなわち、本発明はユーザの定義するパターンをキャラ
クタコードを書き込むV−RAMの不使用領域を介して
C−RAMに書き込むようにしたこと、つまりV−RA
Mの不使用領域に予め書き込んだC−RAMのアドレス
を所定周期毎にV−RAMから出力させてCPUから送
られてくるパターンデータをラスター順次にC−RAM
に書き込むようにしたことを基本的な特徴としている。
That is, the present invention writes a pattern defined by a user into C-RAM via an unused area of V-RAM in which a character code is written.
The C-RAM address previously written in the unused area of M is outputted from the V-RAM at predetermined intervals, and the pattern data sent from the CPU is raster-sequentially transferred to the C-RAM.
Its basic feature is that it can be written in.

以下、実施例によって説明する。Examples will be explained below.

まずこの発明の着想の背景をなすV−RAM3(第1図
)について第2図を参照して説明する。
First, the V-RAM 3 (FIG. 1), which forms the background of the idea of this invention, will be explained with reference to FIG. 2.

第2図は、画面に表示する表示文字数とV−RAM3の
メモリアドレスとの関係を示している。VーRAM3は
容量が2Kバイト(0番号〜2047番地)で、CRT
2上に表示する文字数は2000(80桁×25行)で
ある。画面を表示するのに使用するアドレスは0〜19
99であり、2000番地から2047番地までは表示
に全く関与しない不使用領域である。そして、V−RA
M3のアドレス指定は、CRTコントローラ7からマル
チプレクサ9を介して第2図に示す順序で実行される。
FIG. 2 shows the relationship between the number of characters displayed on the screen and the memory address of the V-RAM 3. V-RAM3 has a capacity of 2K bytes (numbers 0 to 2047) and is compatible with CRT
The number of characters displayed on 2 is 2000 (80 columns x 25 lines). The address used to display the screen is 0 to 19.
99, and the area from address 2000 to address 2047 is an unused area that is not involved in display at all. And V-RA
Addressing of M3 is performed from the CRT controller 7 via the multiplexer 9 in the order shown in FIG.

そこで、この2000〜2047番地に予めC−RAM
5bのアドレスを書き込んでおくと、CPU4より直接
にアドレス指定させる必要がなくなるというものである
Therefore, C-RAM is installed in these addresses 2000 to 2047 in advance.
By writing the address of 5b, there is no need for the CPU 4 to directly specify the address.

この着想に基づく回路構成を第3図に示す。第1図の回
路と比較してわかるように、マルチプレクサ8とCPU
4からマルチプレクサ8へ至るアドレスバス10bが省
略されている。
A circuit configuration based on this idea is shown in FIG. As can be seen by comparing the circuit in Figure 1, multiplexer 8 and CPU
Address bus 10b from 4 to multiplexer 8 is omitted.

ユーザが定義したキャラクタパターン(8×8ドット)
をC−RAM5bに書き込むには、まずユーザが当該キ
ャラクタパターンのコードを決める。
User-defined character pattern (8x8 dots)
To write the character pattern into the C-RAM 5b, the user first determines the code of the character pattern.

次に、CPU4からアドレスバス10a,マルチプレク
サ9を介してV−RAM3の2000〜2047番地を
指定するとともに、同じくCPU4からデータバス11
,バスバッファ12を介し書き込みデータとして前記コ
ードデータを送る。
Next, the CPU 4 specifies addresses 2000 to 2047 of the V-RAM 3 via the address bus 10a and the multiplexer 9, and the data bus 11 is also specified from the CPU 4.
, the code data is sent as write data via the bus buffer 12.

V−RAM3の2000〜2047番地のすべてにユー
ザ定義のキャラクタコードすなわちC−RAM5bのア
ドレスが書き込まれる。
User-defined character codes, ie, addresses of C-RAM 5b, are written in all addresses 2000 to 2047 of V-RAM 3.

CRTコントローラ7は、CRT2にキャラクタ等を表
示するためカウンタ等に基づいて規則正しく作動してい
る。このCRTコントローラ7がアドレスバス10c,
マルチプレクサ9を介してV−RAM3に12ビットの
アドレスMA0〜MA11を与える。
The CRT controller 7 operates regularly based on a counter and the like in order to display characters and the like on the CRT 2. This CRT controller 7 has an address bus 10c,
A 12-bit address MA0 to MA11 is applied to the V-RAM 3 via a multiplexer 9.

アドレスMA0〜MA11は、第2図に示す如く規則正
しく変化する。
Addresses MA0 to MA11 change regularly as shown in FIG.

いま、画面が垂直帰線機関に入ると、CRTコントロー
ラ7はV−RAM3の2000番地をアドレスする。1
H(1水平走査周期)のはじめの期間で2000番地か
ら2047番地までをアドレスする。画面表示の1ドッ
トクロックは約69nsで1キャラクタは8×8ドット
なので、アドレス2000〜2047を走査する時間は
約26.5μs(69ns×8×48)である。タイミ
ングチャートを第4図に示す。
Now, when the screen enters the vertical retrace engine, the CRT controller 7 addresses address 2000 of the V-RAM 3. 1
Addresses 2000 to 2047 are addressed in the first period of H (one horizontal scanning period). Since one dot clock of screen display is about 69 ns and one character is 8×8 dots, the time to scan addresses 2000 to 2047 is about 26.5 μs (69 ns×8×48). A timing chart is shown in FIG.

V−DISP信号は垂直同期信号に基づくもので、垂直
帰線期間に入ったことを示す。このV−DISP信号が
CPU4によって検知されると、CPU4はC−RAM
5bのチップ上ネーブルCEを所定期間だけ“LOW”
にする。C−RAM5bはデータの書き込みか可能とな
る。
The V-DISP signal is based on a vertical synchronization signal and indicates that the vertical retrace period has begun. When this V-DISP signal is detected by the CPU 4, the CPU 4
5b on-chip enable CE is set to “LOW” for a predetermined period.
Make it. Only data can be written to the C-RAM 5b.

他方、前記V−DISP記号の立下りに同期して、C−
RAM5bのアドレス下位3ビットを与えるラスターア
ドレスRA0〜RA2がC−RAM5bに入力される。
On the other hand, in synchronization with the falling edge of the V-DISP symbol, C-
Raster addresses RA0 to RA2 giving the lower three bits of the address of RAM 5b are input to C-RAM 5b.

垂直帰線期間に入った最初の1H(そのうちの26.5
μs以内)で、V−RAM3の2000〜2047番地
からひき続いて出力される同一のアドレスデータ(C−
RAM5bのアドレス上位8ビット)と前記ラスターア
ドレス「000」で、キャラクタパターンのラスター0
(8ドット分=8ビット=1バイト)がC−RAM5b
に書き込まれる。ラスター0の1バイトのデータはCP
U4からデータバス11,バスバッファ13を介してC
−RAM・CE信号に同期して送られる。
The first 1H (of which 26.5
within μs), and the same address data (C-
raster 0 of the character pattern with the upper 8 bits of the address of RAM 5b) and the raster address "000"
(8 dots = 8 bits = 1 byte) is C-RAM5b
will be written to. 1 byte data of raster 0 is CP
C from U4 via data bus 11 and bus buffer 13
- Sent in synchronization with RAM/CE signal.

最初のCE信号はV−DISP信号が“LOW”になっ
たことに基づいて作成される。続く7コのCE信号は最
初のCE信号から63μsすなわち1水平走査周期間隔
で作成される。これはソフトウェア処理によって、たと
えば小さな命令を組み合わせて処理時間が63μsにな
るようにタイミングを図って作ることができる。垂直帰
線期間に入って第2H目では、V−RAM3の2000
〜2047番地が再びスキャンされ、同一のデータすな
わち先と同じC−RAM5bのキャラクタアドレスが出
力されるとともにラスターアドレスが「001」となっ
ているので、キャラクタパターンのラスター1が書き込
まれる。もちろん、このキャラクタパターンデータ(1
バイト)は第2番目のCE信号に同期してCPU4から
送られる。
The first CE signal is created based on the V-DISP signal becoming "LOW". The following seven CE signals are generated at an interval of 63 μs, that is, one horizontal scanning period from the first CE signal. This can be created by software processing, for example, by combining small instructions and adjusting the timing so that the processing time is 63 μs. In the second H after entering the vertical retrace period, 2000 of V-RAM3
Addresses .about.2047 are scanned again, and the same data, that is, the same character address of the C-RAM 5b as before, is output, and since the raster address is "001", raster 1 of the character pattern is written. Of course, this character pattern data (1
byte) is sent from the CPU 4 in synchronization with the second CE signal.

引き続く第3H目,第4H目,・・・・・・も全く同様
にしてそれぞれラスター2,ラスター3が書き込まれ、
第8H目(ラスターアドレス「111」)でラスター7
が書き込まれるとキャラクタパターン(8×8)のC−
RAM5bへの書き込みが完了する。
For the subsequent 3rd H, 4th H, etc., raster 2 and raster 3 are written in exactly the same way, respectively.
Raster 7 at the 8th H (raster address "111")
When written, the character pattern (8x8) C-
Writing to RAM 5b is completed.

なお、CPU4からCE信号に同期して送信するラスタ
ーデータは、予めプログラムとして組上げておいてキー
ボード1の入力部からプログラムの実行に従って送るよ
うにしてもよいし、あるいは直接キーボード1を操作し
て入力データとして作成しておいてもよい。いずれにし
ても、CPU4の判断により所定のタイミングでC−R
AM5bに送信される。
Note that the raster data to be sent from the CPU 4 in synchronization with the CE signal may be assembled in advance as a program and sent from the input section of the keyboard 1 according to the execution of the program, or alternatively, it may be input by directly operating the keyboard 1. It may be created as data. In any case, C-R at a predetermined timing based on the judgment of the CPU 4.
AM5b.

また、上記実施例では、画面表示には関係しないV−R
AM3の2000〜2047番地のすべてを用いたが、
特にすべてを用いる必要はなく、48番地分の1/2で
も1/4でもよい。最小では1つの番地だけでも(ラッ
チ等の付加的な制御が通常は必要であるが)同じことが
なしうる。しかし、実施例のようにすべての番地を用い
るとタイミングとしての余裕が生じるので好ましい。な
お、第3図でCRTコントローラ7はアドレススキャン
の機能のみを示しているが、公知のCRTコントローラ
と同様、スキャンアドレス、ラスタアドレス発生以外に
画面表示の基本となるたとえばHシンク,Vシンクの信
号をも作成するものである。また、並列に接続されるC
−ROM5a,C−RAM5bの切り換えはV−RAM
3自身がおこなっている。
In addition, in the above embodiment, V-R, which is not related to screen display,
All addresses 2000 to 2047 of AM3 were used,
There is no particular need to use all of them; 1/2 or 1/4 of 48 addresses may be used. The same thing can be accomplished with at least one address (although additional controls such as latches are usually required). However, it is preferable to use all addresses as in the embodiment, since this provides a margin of timing. Although the CRT controller 7 only shows the address scan function in FIG. 3, like known CRT controllers, in addition to generating scan addresses and raster addresses, it also generates signals such as H sync and V sync that are the basis of screen display. It also creates the following. Also, C connected in parallel
-Switching between ROM5a and C-RAM5b is done by V-RAM
3 is doing it himself.

以上のように、この発明はキャラクタRAMのアドレス
指定をCPUで行なわずにビデオRAMの画面表示には
関与しない記憶領域を活用するようにしたので、CPU
のI/Oマップ上にキャラクタRAMのメモリ容量を振
り分けなくてよくしたがってCPU領域のメモリを他の
機能に使用できることとなり、CPUとビデオRAMの
切換を行なうマルチプレクサを省略できアドレス系回路
を簡単化できる効果が達成される。
As described above, this invention utilizes the memory area of the video RAM that is not involved in screen display without specifying the address of the character RAM by the CPU.
There is no need to allocate the memory capacity of the character RAM on the I/O map of the CPU, so the memory in the CPU area can be used for other functions, and the multiplexer that switches between the CPU and video RAM can be omitted, simplifying the address circuit. effect is achieved.

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

第1図は従来の方式に基づく回路構成図、第2図は画面
に表示する表示文字数とV−RAMのメモリアドレスと
の関係の説明図、第3図は実施例の方式に基づく回路構
成図、第4図はC−RAMの書き込みタイミングを示す
図である。 2・・・CRT、3・・・ビデオRAM、4・・・CP
U、5b・・・ユーザ定義RAMとしてのキャラクタR
AM。
Fig. 1 is a circuit diagram based on the conventional method, Fig. 2 is an explanatory diagram of the relationship between the number of characters displayed on the screen and the memory address of V-RAM, and Fig. 3 is a circuit diagram based on the method of the embodiment. , FIG. 4 is a diagram showing the write timing of C-RAM. 2...CRT, 3...Video RAM, 4...CP
U, 5b...Character R as user-defined RAM
A.M.

Claims (3)

【特許請求の範囲】[Claims] (1)ユーザ定義RAMへユーザが所望する任意のパタ
ーンを書き込む方式であって、 キャラクタコードを書き込むビデオRAMの不使用領域
から前記ユーザ定義RAMのアドレスを発生させて前記
パターンを前記ユーザ定義RAMに書き込むようにした
ことを特徴とするユーザ定義RAMへのパターン書込方
式。
(1) A method of writing an arbitrary pattern desired by the user into the user-defined RAM, in which an address of the user-defined RAM is generated from an unused area of the video RAM in which the character code is written, and the pattern is written into the user-defined RAM. A pattern writing method to a user-defined RAM is characterized in that the pattern is written to a user-defined RAM.
(2)前記ビデオRAMの不使用領域にCPUを介して
前記ユーザ定義RAMのアドレスを書き込み、次いで、
前記パターンのラスター毎のデータをCPUから順次送
るようにした特許請求の範囲第(1)項記載のユーザ定
義RAMへのパターン書込方式。
(2) Write the address of the user-defined RAM into an unused area of the video RAM via the CPU, and then
A method for writing a pattern into a user-defined RAM according to claim 1, wherein data for each raster of the pattern is sequentially sent from a CPU.
(3)前記ビデオRAMの不使用領域は、ビデオ信号の
垂直帰線期間に対応する少なくとも一つの番地の記憶領
域である特許請求の範囲第(1)項又は第(2)項記載
のユーザ定義RAMへのパターン書込方式。
(3) The unused area of the video RAM is a user-defined area according to claim (1) or (2), wherein the unused area is a storage area at at least one address corresponding to a vertical blanking period of a video signal. Pattern writing method to RAM.
JP57157900A 1982-09-09 1982-09-09 Pattern writing system for user's definition ram Granted JPS5946681A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57157900A JPS5946681A (en) 1982-09-09 1982-09-09 Pattern writing system for user's definition ram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57157900A JPS5946681A (en) 1982-09-09 1982-09-09 Pattern writing system for user's definition ram

Publications (2)

Publication Number Publication Date
JPS5946681A true JPS5946681A (en) 1984-03-16
JPH0146072B2 JPH0146072B2 (en) 1989-10-05

Family

ID=15659875

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57157900A Granted JPS5946681A (en) 1982-09-09 1982-09-09 Pattern writing system for user's definition ram

Country Status (1)

Country Link
JP (1) JPS5946681A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6117184A (en) * 1984-07-03 1986-01-25 シャープ株式会社 Character generator for ctr display
JPS6120982A (en) * 1984-07-09 1986-01-29 シャープ株式会社 Character generator access system for crt display
JPH0256596A (en) * 1988-08-22 1990-02-26 Pfu Ltd Character display device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6117184A (en) * 1984-07-03 1986-01-25 シャープ株式会社 Character generator for ctr display
JPS6120982A (en) * 1984-07-09 1986-01-29 シャープ株式会社 Character generator access system for crt display
JPH0256596A (en) * 1988-08-22 1990-02-26 Pfu Ltd Character display device

Also Published As

Publication number Publication date
JPH0146072B2 (en) 1989-10-05

Similar Documents

Publication Publication Date Title
US4204206A (en) Video display system
US4204208A (en) Display of video images
US4204207A (en) Video display of images with video enhancements thereto
US4737780A (en) Display control circuit for reading display data from a video RAM constituted by a dynamic RAM, thereby refreshing memory cells of the video RAM
JPH0740179B2 (en) Display controller
US5030946A (en) Apparatus for the control of an access to a video memory
JP2637724B2 (en) Display control device
JPS5946681A (en) Pattern writing system for user's definition ram
JPS6139677B2 (en)
JP2623541B2 (en) Image processing device
JPS6364798B2 (en)
JP2623592B2 (en) Display control device
JPS61219082A (en) Display controller
JP2642350B2 (en) Display control device
JP2954980B2 (en) Information display device
JP2506959B2 (en) Display data processing device
JPS59184A (en) Division control system
KR860001273B1 (en) Hangul/english character diplay monitor
JPH0213317B2 (en)
JPS58187987A (en) Character graphic display
JPS60164796A (en) Image display unit
JPS61284797A (en) Display unit
JPH0227677B2 (en)
JPH0126071B2 (en)
JPS59116688A (en) Image display