JPH0429073B2 - - Google Patents
Info
- Publication number
- JPH0429073B2 JPH0429073B2 JP60277366A JP27736685A JPH0429073B2 JP H0429073 B2 JPH0429073 B2 JP H0429073B2 JP 60277366 A JP60277366 A JP 60277366A JP 27736685 A JP27736685 A JP 27736685A JP H0429073 B2 JPH0429073 B2 JP H0429073B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- color
- signal
- register
- output
- 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
Links
- 230000008859 change Effects 0.000 claims description 14
- 238000006243 chemical reaction Methods 0.000 claims description 5
- 230000009977 dual effect Effects 0.000 description 29
- 238000000034 method Methods 0.000 description 21
- 230000008569 process Effects 0.000 description 20
- 239000000872 buffer Substances 0.000 description 12
- 101000885321 Homo sapiens Serine/threonine-protein kinase DCLK1 Proteins 0.000 description 11
- 102100039758 Serine/threonine-protein kinase DCLK1 Human genes 0.000 description 11
- 230000004397 blinking Effects 0.000 description 8
- 230000004048 modification Effects 0.000 description 7
- 238000012986 modification Methods 0.000 description 7
- 230000001360 synchronised effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000003111 delayed effect Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000002457 bidirectional effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Controls And Circuits For Display Device (AREA)
Description
「産業上の利用分野」
この発明は、CPU(中央処理装置)制御による
カラーデイスプレイ装置等に使用される表示コン
トローラに関する。
「従来の技術」
CPU制御によるカラーデイスプレイ装置にお
いては、表示効果を上げるためブリンク(ちらつ
き)表示がしばしば用いられる。このブリンク表
示を行うには、VRAM(ビデオRAM)内の表示
データ(カラーコード)を一定周期で書き換えれ
ばよいが、この方法には、CPUの負担が大きい
という問題がある。そこで、予め表示コントロー
ラ内に2個のレジスタを設け、このレジスタ内に
データを書き込んでおき、このレジスタ内のデー
タを交互に利用してブリンク表示を行わせるデイ
スプレイ装置が知られている。
「発明が解決しようとする問題点」
しかしながら、従来のこのようなブリンク表示
にあつては、2個のレジスタ内のデータによつて
ブリンク時の表示色が決まり、この表示色を変え
るには、レジスタ内のデータを変えなければなら
なかつた。
そこでこの発明は、上記レジスタ内のデータを
変えることなくブリンク時の表示色を変えること
ができる表示コントローラを提供することを目的
としている。
「問題点を解決するための手段」
この発明は、カラーデータを変更するカラー変
更データが書き込まれる第1,第2のレジスタ
と、前記第1,第2のレジスタに書き込まれた前
記カラー変更データを、所定のタイミングで交互
に出力する第1の選択手段と、前記第1の選択手
段の出力のうち、いずれのビツトを前記カラーデ
ータの対応するビツトと入れ換えるかを指定する
ビツト指定データを出力する第3のレジスタと、
前記第1の選択手段が出力するカラー変更データ
のうち、前記ビツト指定データによつて指定され
る複数ビツトを、前記カラーコードの対応するビ
ツトと入れ換えて、新たなカラーコードとして出
力する第2の選択手段と、前記第2の選択手段が
出力する前記新たなカラーコードを、前記カラー
データに変換する変換手段とを具備することを特
徴とする。
「実施例」
以下、図面を参照してこの発明の一実施例につ
いて説明する。第1図はこの発明の一実施例によ
る表示コントローラ1を用いたドツト表示による
カラーデイスプレイ装置の構成を示すブロツク図
である。以下、このデイスプレイ装置について詳
述する。
(1) 概略構成
第1図において、2はCPU、3はCPU2にお
いて用いられるプログラムが記憶されたROMお
よびデータ記憶用のRAMからなるメモリ、4は
ビデオデイスプレイプロセツサ(以下、VDPと
称す)、5はVRAMである。VDP4は、CPU2
からバスライン6を介して供給されるカラーコー
ドをVRAM5内に書き込み、また、書き込んだ
カラーコードを読み出し、ドツトデータDD7−
0(8ビツト)として表示コントローラ1へ順次
出力する。また、このVDP4は、同期信号
SYN・I、ブランキング信号BLANK、デイス
プレイタイミング信号DTMG、ページセレクト
信号PG−SELおよびドツトクロツクDCLKを
各々表示コントローラ1へ出力する。ここで、同
期信号SYN・IはCRT表示装置における表示の
同期をとるための信号、ブランキング信号
BLANKは画面表示期間において“1”、それ以
外の期間において“0”となる信号、デイスプレ
イタイミング信号DTMGは画像表示期間におい
て“1”、それ以外の期間において“0”となる
信号である。なお、画面表示期間と画像表示期間
とは異なる。すなわち、表示画面は画像表示領域
とボーダ領域とに分けられ、画像は画像表示領域
にのみ表示され、ボーダ領域は一色で表示され
る。画像表示期間とは、画像表示領域が走査され
る期間、また、画面表示期間とは画面(画像表示
領域およびボーダ領域)が走査される期間であ
る。また、ページセレクト信号PG−SELは、例
えば0.5秒“1”,0.5秒“0”を繰り返す信号、
ドツトクロツクDCLKは、表示画面の各ドツト表
示のタイミングを示す信号である。インターフエ
イス回路7は、CPU2と表示コントローラ1と
を接続するための回路である。表示コントローラ
1は、VDP4から供給されるドツトデータDD7
−0をR,G,Bカラーデータに変換し、次いで
これらのカラーデータをレツドカラー信号RS、
グリーンカラー信号GS、ブルーカラー信号BS
(いずれもアナログ信号)に変換し、CRT表示装
置8へ出力する。また、この表示コントローラ1
は信号YSおよび同期信号SYN・OをCRT表示
装置8へ出力する。なお、このコントローラ1に
おいて、端子T1はCPU2のデータバスに直接
接続されている。CRT表示装置8は、テレビジ
ヨン受像機の機能を有するカラー表示装置であ
り、表示コントローラ1から供給される信号YS
が“1”の時、同コントローラ1から供給される
レツドカラー信号RS、グリーンカラー信号GS、
ブルーカラー信号BSおよび同期信号SYN・Oに
基づいてカラー表示を行い、また、信号YSが
“0”の時は、テレビジヨン信号による表示を行
う。
(2) 表示コントローラ1の詳細構成
第2図〜第4図は各々表示コントローラ1の詳
細構成を示す回路図である。この表示コントロー
ラ1は大きく分けると、第2図に示す制御部と、
第3図に示すRAMアドレス形成部と、第4図に
示すデユアルポートRAM11およびカラーデー
タ修飾回路12r,12g,12bに分けられ
る。以下、各部の構成を順次説明する。なお、各
部の動作については後に詳述する。
(2-1) 制御部;第2図
この制御部は、主にCPU2と表示コントロー
ラ1との間のデータ授受の制御を行う回路であ
る。図において、17は3ビツトのレジスタであ
り、そのロード端子Lへ供給されるドツトクロツ
クDCLKに基づいて入力データを読み込み、出力
端から出力する。このレジスタ17は同期をとる
ためのレジスタである。すなわち、CPU2のク
ロツクパルスとVDP4から出力されるドツトク
ロツクDCLKとは同期がとられていない。したが
つて、CPU2のクロツクパルスに同期した信号
およびデータについては、ドツトクロツクDCLK
に同期した信号およびデータに直さなければなら
ない。レジスタ17はこの目的で設けられたもの
である。また、同レジスタ17の下方に示すDF
(D型フリツプフロツプ)18もこの目的で設け
られたものである。ポインタカウンタ19は、4
ビツトのアツプカウンタであり、そのアツプ端子
UPに供給される信号をアツプカウントし、また、
ロード端子Lへ信号が供給された時データWD3
−0を読み込む。なお、データWD3−0は、同
図下部に示すレジスタ60の出力の下位4ビツト
である。ライトデコーダ20は、ポインタカウン
タ19の出力をデコードするもので、そのエネー
ブル端子ENへライトストローブWRSTが供給さ
れた時のみエネーブル状態となり、デコード結果
をストローブ信号S|MW,…として出力する。同
様に、リードデコーダ21は、ポインタカウンタ
19の出力をデコードし、そのデコード結果をリ
ードストローブRDSTが供給された時のみストロ
ーブ信号S|MR…として出力する。21,22は
バツフアであり、その制御端子Cへ“1”信号が
供給された時は入力データをそのまま出力端から
出力し、また、“0”信号が供給された時は出力
端がハイインピーダンス状態となる。また、バツ
フア27と端子T1とを接続するラインは8ビツ
トの双方向バスである。レジスタ60は、そのロ
ード端子Lへ信号CSが供給された時、端子T1
に得られるデータ、すなわちCPU2のデータバ
スのデータを読み込み、レジスタ24へ出力す
る。レジスタ24は、ライトストローブWRST
が供給された時レジスタ23の出力データを読み
込み、データWDB7−0として出力する。モー
ドレジスタ25は、ストローブ信号S|MDが供給
された時データWD5−0(データWDB7−0
の下位6ビツト)を読み込む6ビツトのレジスタ
である。
(2-2) RAMアドレス形成部;第3図
このRAMアドレス形成部は、ドツトデータ
(カラーコード)DD7−0を変換して新たなド
ツトデータDDa7−0とするブロツクB1と、
アドレスデータRWA7−0(8ビツト)および
BA1−0(2ビツト)を形成するブロツクB2
とから構成され、各データは各々デユアルポート
RAM11(第4図)のアドレス端子AT2,AT
1(AT1,AT1−0)へ供給される。
ブロツクB1において、30,31は各々4ビ
ツトのページレジスタ、32はマルチプレクサで
ある。マルチプレクサ32は、その制御端子Cへ
“1”信号が供給された時、入力端<1>のデー
タを出力し、“0”信号が供給された時は、入力
端<0>のデータを出力する。33は同期用レジ
スタ、34は4ビツトのページマスクレジスタ、
35は同期用レジスタ、36〜39はマルチプレ
クサである。また、ブロツクB2において、41
は同期用レジスタ、42はマルチプレクサ、43
はワードカウンタ、44はバイトカウンタであ
る。これらのカウンタ43,44は各々、ロード
端子Lへ信号が供給された時データWDB7−
0,WDB1−0を読み込み、また、エネーブル
端子ENへ“1”信号が供給されている場合に、
アツプ端子UPの信号をアツプカウトする。また、
バイトカウンタ44のキヤリイアウト信号COが
オアゲート45の入力端へ供給されている。
(2-3) デユアルポートRAM11;第4図,第
5図
このデユアルポートRAM11は、カラーコー
ドをカラーデータに変換するLUTであり、1024
バイトのRAM11aと周辺回路とから構成され
ている。第5図はRAM11aの構成を示す図で
あり、このRAM11aの0〜3番地には各々、
カラーコード「0」に対応するR,G,Bカラー
データおよびアトリビユートビツト(各8ビツ
ト)が記憶され、4〜7番地には各々カラーコー
ド「1」に対応するR,G,Bカラーデータおよ
びアトリビユートビツトが記憶され、…、1020〜
1023番地には各々カラーコード「255」に対応す
るR,G,Bカラーデータおよびアトリビユート
ビツトが記憶されている。そして、デユアルポー
トRAM11のアドレス端子AT2へ供給される
ドツトデータDDa7−0(カラーコード)に基
づいて、対応するR,G,Bカラーデータおよび
アトリビユートビツトが読み出され、R,G,B
カラーデータが各々出力端子Q2〜Q4からカラ
ーデータRD7−0,GD7−0,BD7−0とし
て出力され、また、アトリビユートビツトが出力
端子Q5から出力される。この場合、アトリビユ
ートビツトの第7,第6ビツトがアトリビユート
データAD7,AD6として出力される。なお、
アトリビユートビツトの第5〜第0ビツトは、こ
の実施例においては使用されていない。また、ア
トリビユートビツトの機能については後に説明す
る。
このように、第4図に示すデユアルポート
RAM11は、そのアドレス端子AT2にドツト
データDDa7−0を印加した場合に、R,G,
Bカラーデータおよびアトリビユートビツトが読
み出されるが、この読み出しと全く独立して、
RAM11aの書き込み/読み出しをバイト単位
で行うことができるようになつている。すなわ
ち、このデユアルポートRAM11のアドレス端
子AT1へアドレスデータ(10ビツト)を印加
し、データ端子WDTへ8ビツトのデータを印加
し、そして、書き込み端子WTへパルス信号を印
加すれば、RAM11aの書き込みが行なわれ、
また、アドレス端子AT1へアドレスデータを印
加し、そして、読み出し端子RTへパルス信号を
印加すれば、該アドレスデータが示す番地内のデ
ータが読み出され、出力端子Q1から出力され
る。前述したアドレスデータRWA7−0および
BA1−0は、上述した読み出し/書き込みの際
のアドレスを指定するデータであり、アドレスデ
ータRWA7−0がアドレス端子AT1の上位8
ビツトに、アドレスデータBA1−0が下位2ビ
ツトに各々印加される。
(2-4) カラーデータ修飾回路12r,12g,
12b;第4図
このカラーデータ修飾回路12r〜12bは
各々同一構成の回路であり、カラーデータRD7
−0,GD7−0,BD7−0をアトリビユート
信号ASに応じて修飾し、次いこの修飾後のデー
タをアナログ信号に変換し、カラー信号RS,
GS,BSとして出力する。なおアトリビユート信
号ASとは、アトリビユートデータAD7をレジ
スタ46によつて、1ドツトクロツクタイミング
(以下、単にタイミングという)遅延させた信号
である。
次に、カラーデータ修飾回路12rにおいて、
47rはカラーデータRD7−0を1タイミング
遅延させて出力するレジスタ、48rは上記信号
ASによつて制御されるマルチプレクサ、49r
は加算回路、50rはボーダ領域の色を決めるカ
ラーデータが書き込まれるボーダレジスタであ
る。51rはマルチプレクサ、52rはマルチプ
レクサ51rの出力を1タイミング遅延させるレ
ジスタ、53rはバツフア、56rはゲート回路
である。このゲート回路54rは、その制御端子
Cに“1”信号が印加された時開状態、“0”信
号が印加された時閉状態となる。55rはDAC
(デイジタル/アナログ変換器)であり、この
DAC55rの出力がアンプ56rを介して、カ
ラー信号RSとして出力される。
(3) 表示コントローラ1の動作
(3-1) CPU2による書き込み時の動作
CPU2は、表示処理に先立つて表示コントロ
ーラ1内の各レジスタおよびデユアルポート
RAM11の書き込みを行う。この書き込み時に
は、ライトデコーダ20(第2図)からストロー
ブ信号が出力される。また、各レジスタ等にはレ
ジスタ番号が割り当てられている。このレジスタ
番号、ストローブ信号、書き込みが行なわれるレ
ジスタ等との関係は次の通りである。
0 S|MW……デユアルポートRAM11
1 S|MD……モードレジスタ25(第2図)
2 S|WA……ワードカウンタ43(第3図)
3 S|BA……バイトカウンタ44(第3図)
4 S|MA……ページマスクレジスタ34(第3
図)
5 S|P0……ページレジスタ30(第3図)
6 S|P1……ページレジスタ31(第3図)
7 S|BR……ボーダレジスタ50r(第4図)
8 S|BG……ボーダレジスタ50g(第4図)
9 S|BB……ボーダレジスタ50b(第4図)
次に、書き込み時の動作を説明する。なお、イ
ンターフエイス(第1図)には、ポートアドレス
として2アドレス割り当てられている。以下、こ
れらのアドレスをポートアドレスPA0,PA1と
する。
(i) レジスタ個別書き込み動作
この動作は、上述したレジスタ25,43,…
50bのいずれか1つにデータを書き込む場合の
動作である。この場合、CPU2は、まずポート
アドレスPA0をアドレスバスに出力し、次いで
レジスタ番号をデータバスに出力し、そして、書
き込みパルスを出力する(以下、第1の処理とい
う)。ポートアドレスPA0が出力されると、イン
ターフエイス7がこれを検知し、信号AOとして
“0”を出力する。次いで、書き込みパルスが出
力されると、インターフエイス7がリード/ライ
ト信号WRとして“1”を出力すると共に、書き
込みパルスと同タイミングでパルス信号CSを出
力する。パルス信号CSがインターフエイス7か
ら出力されると、この信号CSがレジスタ60
(第図)のロード端子Lへ供給され、これにより、
データバス上のレジスタ番号がレジスタ60に読
み込まれ、ポインタカウンタ19の入力端へ供給
される。一方、信号AOが“0”、信号WRが
“1”になると、アンドゲート61(第2図)が
開状態となり、パルス信号CSが同アンドゲート
61および同期用レジスタ17を介してポインタ
カウンタ19のロード端子Lへ印加される。これ
により、レジスタ60に読み込まれたレジスタ番
号が、ポインタカウンタ19に読み込まれ、ライ
トデコーダ20へ出力される。
次に、CPU2はポートアドレスPA1をアドレ
スバスへ出力し、次いで書き込みデータをデータ
バスへ出力し、そして、書き込みパルスを出力す
る(以下、第2の処理という)。インターフエイ
ス7は、ポートアドレスPA1を受け、信号AO
として“1”を出力し、また、書き込みパルスを
受け、リード/ライト信号WRとして“1”を出
力すると共に、パルス信号CSを出力する。パル
ス信号CSが出力されると、データバス上のデー
タがレジスタ60に読み込まれる。また、信号
AO,WRが“1”になると、アンドゲート62
が開状態となり、信号CSが同アンドゲート62、
レジスタ17を介して、ライトストローブ
WRSTとして出力される。このライトストロー
ブWRSTにより、レジスタ60内のデータがレ
ジスタ24内に読み込まれ、この読み込まれたデ
ータがレジスタ25,43…へ供給される。ま
た、ライトストローブWRSTが出力されると、
このストローブWRSTが出力されている間、ラ
イトデコーダ20がエネーブル状態となり、ポイ
ンタカウンタ19の出力に対応するストローブ信
号S|MW…がライトデコーダ20から出力され
る。これにより、同ストローブ信号が印加される
レジスタ25,43…にレジスタ24内のデータ
が読み込まれる。
(ii) レジスタ連続書き込み動作
この動作は、複数のレジスタ25,43…内に
データを連続して書き込む場合の動作である。こ
の場合、CPU2は、まず上記(i)で説明した処理
によつてモードレジスタ25(第2図)内に第1
ビツトが“1”となるデータを書き込む。これに
より、同レジスタ25から出力される信号AUT
−INCが“1”となり、この“1”信号がアンド
ゲート63(第2図左上)へ供給され、同アンド
ゲート63が開状態となる。次に、例えばレジス
タ番号「4」〜「9」の各レジスタ34,30…
50bにデータを書き込む場合は、CPU2が上
記(i)の処理によりレジスタ番号「4」のレジスタ
34内にデータを書き込む。この書き込みが終了
した時点で、ポインタカウンタ19内にはレジス
タ番号「4」が保持される。次にCPU2は、上
記(i)の処理における第2の処理、すなわち、ポー
トアドレスPA1の出力、レジスタ番号「5」の
レジスタ30に書き込むべきデータの出力、書き
込みパルスの出力を行う。これにより、インター
フエイス7から信号AO,WRとして“1”が出
力されると共に、パルス信号CSが出力され、パ
ルス信号CSによつて上記データがレジスタ60
に読み込まれる。次いで、ライトストローブ
WRSTが出力され、このライトストローブ
WRSTによつて、レジスタ60内のデータがレ
ジスタ24に読み込まれる。また、ライトストロ
ーブWRSTは、オアゲート64、アンドゲート
63、レジスタ17を介してポインタカウンタ1
9のアツプ端子UPへ供給され、これにより、ポ
インタカウンタ19がインクリメントされ、その
カウント出力が「5」となり、このカウント出力
「5」がライトデコーダ20へ供給される。この
結果、ライトストローブWRSTのタイミングで
ライトデコーダ20からストローブ信号S|P0が
出力され、このストローブ信号S|P0によつてレ
ジスタ24内のデータがレジスタ30(第2図)
内に読み込まれる。
以下同様に、CPU2が、上記第2の処理によ
つてレジスタ31,50r,50g,50b内に
書き込むべきデータを順次出力すると、これらの
データが順次各レジスタに書き込まれる。
(iii) RAM個別書き込み動作
この動作は、RAM11aのいずれか1つの番
地内にのみデータを書き込む場合の動作である。
この場合、CPU2はまずモードレジスタ25の
第5ビツトに“0”を書き込む。これにより、信
号DIF−RDが“0”となる。信号DIR−RDが
“0”になると、マルチプレクサ42(第3図)
の入力端子<0>のデータ、すなわち、ワードカ
ウンタ43の出力データWA7−0が同マルチプ
レクサ42からデータRWA7−0として出力さ
れ、デユアルポートRAM11へ供給される。次
にCPU2は、RAM11aのデータ書き込みを行
うべきアドレスの下位2ビツトをバイトカウンタ
44に書き込、次いで上位8ビツトをワードカウ
ンタ43に書き込む。これにより、同アドレスが
デユアルポートRAM11のアドレス端子AT1
へ供給される。次にCPU2は、ポインタカウン
タ19に「0」を書き込み(前記第1の処理)、
次いで、書き込みデータを出力する(第2の処
理)。このデータは、一旦レジスタ24(第2図)
内に書き込まれ、次いでストローブ信号S|MWに
よつてRAM11aの当該番地内に書き込まれ
る。
(iv) RAM連続書き込み動作
デユアルポートRAM11内に連続してデータ
を書き込む場合は、CPU2が、まずモードレジ
スタ25の第0,第1,第5ビツトに各々“0”
を書き込む。これにより、信号FIX−BA,AUT
−INC,DIR−RDが“0”となる。信号FIX−
BAが“0”になると、インバータ66(第3
図)の出力が“1”となり、バイトカウンタ44
がエネーブル状態となり、また、オアゲート45
がスルー状態となる。これにより、2個のカウン
タ44,43が1個の10ビツトのアツプカウンタ
に構成される。また、信号DIR−RDが“0”に
なると、マルチプレクサ42(第3図)の入力端
子<0>のデータが同マルチプレクサ42から出
力される。次にCPU2は、スタートアドレスの
下位2ビツトをバイトカウンタ44に書き込み、
次いで上位8ビツトをワードカウンタ43に書き
込む。例えば、RAM11aの全エリア(1024バ
イト)にデータを書き込む場合(以下、この場合
で説明する)は、カウンタ44,43に各々デー
タ「0」を書き込む。次にCPU2は、ポインタ
カウンタ19に「0」を書き込み、次いでRAM
11aの第0番地に書き込むべきデータを出力す
る。このデータは、一旦レジスタ24(第1図)
内に書き込まれ、次いでストローブ信号S|MWに
よつてRAM11aの第0番地に書き込まれる。
また、ストローブ信号S|MWはオアゲート67
(第3図)を介してレジスタ44,43の各アツ
プ端子UPへ供給される。これにより、カウンタ
44,43によつて構成される10ビツトのカウン
タがインクリメントされる。以下、CPU2は
RAM11aの第1番地、第2番地…に書き込む
データを、前述した第2の処理によつて順次出力
する。これにより、RAM11aの各番地内に順
次データが書き込まれ、また、上述した10ビツト
のカウンタが順次インクリメントされる。
(3-2) CPU2による読み出し時の動作
CPU2は、レジスタおよびデユアルポート
RAM11内のデータを、随時、画像表示と無関
係に読み出すことができる。この読み出し時に
は、リードデコーダ21(第2図)からストロー
ブ信号S|MR…が出力される。また、読み出し可
能なデータには予めデータ番号が割り当てられて
いる。このデータ番号、ストローブ信号、読み出
しデータの関係は次の通りである。
0 S|MR……デユアルポートRAM11内のデ
ータ
1 S|ST……ステイタスデータ
2 S|RR……ボーダレジスタ52r(第4図)
内のデータ
3 S|RG……ボーダレジスタ52g(第4図)
内のデータ
4 S|RB……ボーダレジスタ52b(第4図)
内のデータ
ここで、ステイタスデータとは、信号DTMG
(第2図下部)、PG−GEL(第3図左部)、
BLANK3(第4図下部)の各状態を示すデータ
であり、これらの信号はバツフア22(第2図)
の入力端へ印加されている。
次に、読み出し時の動作を説明する。
(i) データ個別読み出し動作
この動作は、データ番号「1」〜「4」のデー
タ内のいずれか1つを読み出す場合の動作であ
る。この場合、CPU2は、まず前述した第1の
処理によりポインタカウンタ19内にデータ番号
を書き込む。次にポートアドレスPA1をアドレ
スバスへ出力した後、読み出しパルスを出力する
(以下、第3の処理と言う)。ポートアドレスPA
1が出力されると、インターフエイス7が信号
AOとして“1”を出力し、また、読み出しパル
スが出力されると、インターフエイス7が信号
WRとして“0”を出力すると共に、読み出しパ
ルスと同タイミングでパルス信号CSを出力する。
信号AOが“1”、信号WRは“0”になると、第
2図に示すアンドゲート69が開状態となり、パ
ルス信号CSが同アンドゲート69を通して出力
される。これにより、バツフア27がスルー状態
となる。また、アンドゲート69を通過したパル
ス信号は、同期用DFF18を介して、リードス
トローブRDSTとして出力され、リードデコーダ
21へ印加される。これにより、ポインタカウン
タ19内のデータ番号に対応するストローブ信号
が同リードデコーダ21から出力される。そし
て、例えばストローブ信号S|STが出力された場
合は、バツフア22がスルー状態となり、ステイ
タスデータがバツフア22,21を介してCPU
2のデータバスへ出力される。また、例えばスト
ローブ信号S|RRが出力された場合は、第4図の
バツフア53rがスルー状態となり、レジスタ5
2r内のデータ(Rカラーデータ)が同バツフア
53r、バツフア27を介してCPU2のデータ
バスへ出力される。CPU2のデータバスへ出力
されたデータは所定のタイミングでCPU2に読
み込まれる。
(ii) データ連続読み出し動作
この動作は、CPU2がデータ番号「1」〜
「4」のデータの内の複数のデータを連続して読
み出す場合の動作である。この動作は、前述した
レジスタ連続書き込み動作とほぼ同じであり、し
たがつて、詳しい説明は省略する。この場合、
CPU2が、まずモードレジスタ25の第1ビツ
トに“1”を書き込み、次いで、ポインタカウン
タ19に最初のデータ番号を書き込み、以後、上
述した第3の処理を繰り返す。これにより、各デ
ータが順次CPU2のデータバスへ出力される。
(iii) RAMデータ個別読み出し動作
デユアルポートRAM11内のデータの内のい
ずれかを1つを読み出す場合は、CPU2が、ま
ずモードレジスタ25の第5ビツトに“0”を書
き込み、次いで、ワードカウンタ43、バイトカ
ウンタ44(第3図)内にRAM11aのアドレ
スを書き込む。次に、ポインタカウンタ19にデ
ータ番号「0」を書き込み、次いで第3の処理を
行う。この第3の処理により、リードデコーダ2
1(第2図)からストローブ信号S|MRが出力さ
れ、デユアルポートRAM11のリード端子RT
へ供給される。これにより、レジスタ43,44
の出力が示す番地内のデータが読み出され、出力
端子Q1から出力され、この出力されたデータが
バツフア27を介してCPU2のデータバスへ送
られる。
(iv) RAMデータ連続読み出し動作
この場合、CPU2は、前述した「RAM連続書
き込み動作」の場合と同様に、まずモードレジス
タ25の第0,第1,第5ビツトに各々“0”を
書き込み、次に、スタートアドレスの下位2ビツ
トをバイトカウンタ44に、上位8ビツトをワー
ドカウンタ43に書き込む。次に、ポインタカウ
ンタ19にデータ番号「0」を書き込み、以後、
第3の処理を繰り返し行う。この第3の処理の繰
り返しにより、ストローブ信号S|MRが繰り返し
出力され、このストローブ信号S|MRによりレジ
スタ43,44からなる10ビツトのカウンタが逐
次インクリメントされる。これにより、デユアル
ポートRAM11内のデータがバイト単位で順次
読み出され、バツフア27を介してCPU2のデ
ータバスへ出力される。
(v) RAMデータ選択読み出し動作
この動作は、第5図に示すRAM11a内のR
カラーデータのみ、またはGカラーデータのみ、
またはBカラーデータのみ、またはアトリビユー
トビツトのみを連続的に読み出す場合の動作であ
る。この場合、CPU2は、まずモードレジスタ
25の第0,第1,第5ビツトに各々“1”,
“1”,“0”を書き込む。これにより、信号FIX
−BA,AUT−INCが“1”、信号DIF−RDが
“0”となる。信号FIX−BAが“1”になると、
インバータ66(第3図)の出力が“0”信号と
なり、この“0”信号がバイトカウンタ44のエ
ネーブル端子ENへ供給される。これにより、以
後バイトカウンタ44のアツプ端子へパルス信号
が供給されても、バイトカウンタ44のアツプカ
ウントが行なわれず、バイトカウンタ44の出力
が一定値に保たれる。また、信号FIX−BAが
“0”信号になると、オアゲート45(第3図)
の出力が“1”信号となり、この“1”信号がワ
ードカウンタ43のエネーブル端子ENへ出力さ
れる。これにより、以後ワードカウンタ43が単
独で8ビツトのカウンタとして動作し、そのアツ
プ端子UPへ供給されるパルス信号をアツプカウ
ントとする。また、信号AUT−INCが“1”に
なると、アンドゲート63(第2図)が開状態と
なり、信号DIR−RDが“0”になると、ワード
カウンタ43の出力が、マルチプレクサ42(第
3図)から出力される。
次に、CPU2は、バイトカウンタ44に、読
み出すべきデータの種類に対応する数値を書き込
む。すなわち、Rカラーデータを読み出す場合は
「0」を、Gカラーデータを読み出す場合は「1」
を、Bカラーデータを読み出す場合は「2」を、
アトリビユートビツトを読み出す場合は「3」を
各々書き込む(第5図参照)。次にCPU2は、ス
タートアドレスをワードカウンタ43に書き込
み、次いでポインタカウンタ19に「0」を書き
込む。以後、前述した第3の処理を繰り返し行
う。この第3の処理の繰り返しにより、ワードカ
ウンタ43が逐次インクリメントされ、バイトカ
ウンタ44の出力(アドレスデータBA1−0)
によつて決まるデータのみがRAM11aから順
次読み出される。
(vi) 外部アドレスデータに基づくRAM読み出し
動作
モードレジスタ25の第5ビツトに“1”を書
き込むと、信号DIR−RDが“11”信号となり、
マルチプレクサ42の入力端子<1>のデータ
が、同マルチプレクサ42から出力される。した
がつて、この場合、端子T7(第1図,第3図)
へアドレスデータを供給すると、そのアドレスデ
ータが同期用レジスタ41、マルチプレクサ42
を介してデユアルポートRAM11へ供給され
る。すなわち、外部アドレスデータに基づくデー
タ読み出しが可能となる。
(3-3) 基本表示動作
表示コントローラ1の最も基本的な動作は、
VDP4(第1図)から出力されるドツトデータ
DD7−0をR,G,Bカラーデータに変換し、
次いでこれらのカラーデータをアナログカラー信
号RS,GS,BSに変換し、CRT表示装置8へ出
力することである。以下、この場合の動作につい
て説明する。
この場合、CPU2は、まずモードレジスタ2
5の第2ビツトに“1”を書き込む。これによ
り、信号DISP−ENBが“1”信号となり、アン
ドゲート71(第2図)が開状態となる。次にペ
ージマスクレジスタ34(第3図)に4ビツトの
データ「0」を書き込む。これにより、マルチプ
レクサ36〜39の各制御端子Cへ“0”信号が
供給され、同期用レジスタ33の出力がマルチプ
レクサ36〜39を通して出力される。すなわ
ち、この場合、ドツトデータDD7−0が同期用
レジスタ33,35を介して、ドツトデータ
DDa7−0としてデユアルポートRAM11のア
ドレス端子AT2へ印加される状態となる。次
に、デユアルポートRAM11にR,G,Bカラ
ーデータを書き込み、また、各アトリビユートビ
ツトとして“0…0”(8ビツト)を書き込む。
次に、ボーダレジスタ50r,50g,50b
(第4図)に各々ボーダ領域の色を指定するカラ
ーデータを書き込む。次にCPU2は、VDP4を
介してVRAM5内にドツトデータ(カラーコー
ド)を書き込み、そして、VDP4へスタート指
令を出力する。VDP4は、このスタート指令を
受け、以後VRAM5からドツトデータを読み出
し、読み出したドツトデータをドツトデータDD
7−0として表示コントローラ1の端子T2へ逐
次出力する。また、このドツトデータDD7−0
の出力と並行して、同期信号SYN・I、ブラン
キング信号BLANK、デイスプレイタイミング信
号DTMG、ドツトクロツクDCLKを各々表示コ
ントローラ1の端子T3,T4,T5,T17へ
出力する。
表示コントローラ1の端子T2へ供給されたド
ツトデータDD7−0は、レジスタ33,35
(第3図)およびマルチプレクサ36〜39(上
位4ビツト)を介して、ドツトデータDDa7−
0としてデユアルポートRAM11のアドレス端
子AT2へ印加される。これにより、デユアルポ
ートRAM11の出力端子Q2〜Q4から各々、
ドツトデータDDa7−0に対応するR,G,B
カラーデータRD7−0,GD7−0,BD7−0
およびアトリビユートデータAD7,AD6(共
に“0”)が出力される。そして、カラーデータ
RD7−0は、1タイミング遅延用のレジスタ4
7rを介して、加算回路49rの一方の入力端へ
印加される。この時、マルチプレクサ48rの制
御端子Cには、アトリビユート信号AS“0”が印
加されており、したがつて、マルチプレクサ48
rから、その入力端子<0>のデータ「0」が出
力されている。この結果、加算回路49rの出力
は、レジスタ49rの出力と同一のカラーデータ
となり、このカラーデータがマルチプレクサ51
rの入力端子<1>へ供給される。
このマルチプレクサ51rは、画像表示期間に
おいては加算回路49rから出力される画像表示
用のカラーデータを出力し、それ以外の期間にお
いては、ボーダレジスタ50r内のボーダ色用の
カラーデータを出力するものである。すなわち、
VDP4から出力されるデイスプレイタイミング
信号DTMG(画像表示期間を示す信号)は、DFF
72(第2図下部)によつてドツトクロツク
DCLKと同期がとられ、DFF73によつて1タ
イミング遅延され、アンドゲート71を介してマ
ルチプレクサ51rの制御端子Cへ供給される。
これにより、画像表示期間においては加算回路4
9rから出力されるカラーデータが、それ以外の
期間においてはレジスタ50r内のカラーデータ
がマルチプレクサ51rから出力され、レジスタ
52rへ供給される。レジスタ52rは、マルチ
プレクサ51rから出力されるカラーデータを1
タイミング遅延させてゲート回路54rへ供給す
る。ゲート回路54rは信号BLANK3によつて
開閉制御される回路である。ここで、信号
BLANK3は、第4図下部に示すように、VDP
4から出力されるブランキング信号BLANK(画
面表示期間を示す信号)を同期用レジスタ75に
よつてドツトクロツクDCLKと同期させ、遅延用
レジスタ46,76によつて2タイミング遅延さ
せた信号であり、したがつて、ゲート回路54r
は、画面表示期間において開となり、レジスタ5
2r内のカラーデータをDAC55rへ出力する。
なお、ドツトデータDD7−0は、タイミング的
には、第3図のレジスタ33,35によつて同期
がとられ、第4図のレジスタ47r,52rによ
つて2タイミング遅延されてゲート回路54rへ
印加される。したがつて、ドツトデータDD7−
0がカラーデータに変換されてゲート回路54r
に印加されるタイミングと、ブランキング信号
BLANKが信号BLANK3として出力されるタイ
ミングと同じである。ゲート回路54rを通過し
たカラーデータは、DAC55rにおいてアナロ
グカラー信号に変換され、アンプ56rを介して
カラー信号RSとしてCRT表示装置8へ出力され
る。
以上が、カラーデータRD7−0がカラー信号
RSに変換される過程である。カラーデータGD7
−0,BD−0も全く同様の過程によつて、カラ
ー信号GS,BSに変換される。
他方、VDP4から出力された同期信号SYN・
Iは、レジスタ75(第4図下部)によつて同期
がとられ、レジスタ46,76によつて2タイミ
ング遅延され、アンプ78を介して同期信号
SYN・OとしてCRT表示装置8へ出力される。
そして、上述したカラー信号RS,GS,BSおよ
び同期信号SYN・Oに基づいてCRT表示装置8
における画像表示が行なわれる。
(3-4) ブリンク表示動作
この動作は、上述した基本表示動作に基づいて
表示されている画像をブリンクさせる場合の動作
である。この場合、CPU2は、ページレジスタ
30,31(第3図)に各々、第1,第2のデー
タ(各4ビツト)を書き込み、次に、モードレジ
スタ25の第4ビツトに“1”を書き込み、次い
でページマスクレジスタ34にデータ“1,1,
1,1”を書き込む。モードレジスタ25の第4
ビツトに“1”が書き込まれると、信号PG−
ENBが“1”信号となり、この“1”信号がア
ンドゲート75(第3図左部)の第1入力端へ供
給される。このアンドゲート75の第2入力端へ
は、VDP4から出力される信号PG−SEL(0.5秒
“1”,0.5秒“0”となる信号)が、同期用DFF
76を介して供給されている。したがつて、信号
PG−ENBが“1”信号になると、アンドゲート
75から0.5秒“1”,0.5秒“0”の信号がマル
チプレクサ32の制御端子Cへ出力され、これに
より、マルチプレクサ32から、ページレジスタ
30内の第1のデータ、ページレジスタ31内の
第2のデータが0.5秒おきに交互に出力される。
そして、出力されたデータがマルチプレクサ36
〜39の入力端子<1>へ印加される。次に、ペ
ージマスクレジスタ34に“1,1,1,1”が
書き込まれると、マルチプレクサ36〜39の各
制御端子Cへ“1”信号が供給されることから、
ドツトデータDD7−0の上位4ビツトに代え
て、ページレジスタ30,31内の第1,第2の
データが交互にマルチプレクサ36〜39から出
力され、ドツトデータDD7−0の下位4ビツト
と共に、ドツトデータDDa7−0としてデユア
ルポートRAM11のアドレス端子AT2へ出力
される。すなわち、ドツトデータDDa7−0が
0.5秒ごとに変化することになり、したがつて、
表示画像がブリンクする。
また、ページマスクレジスタ34内に、例えば
“1,1,0,0”を書き込んだ場合は、ドツト
データDD7a−0の上位2ビツトのみをページ
レジスタ30,31内のデータに変えることがで
き、また、例えばページマスクレジスタ34内に
“1,0,0,0”を書き込んだ場合は、ドツト
データDDa7−0の最上位ビツトのみを変える
ことができる。すなわち、ページマスクレジスタ
34内のデータを変えることによつて、ブリンク
時の表示色を種々変えることが可能となる。
(3-5) カラーデータ修飾動作
この表示コントローラ1は、デユアルポート
RAM11のアトリビユートビツトの第7ビツト
に“1”を書き込んでおくことにより、VRAM
4の書き換えを行うことなくカラーデータRP7
−0,GD7−0,BD7−0を変化させること
ができる。以下、この場合の動作を説明する。
いま、例えばあるカラーコードK1に対応する
アトリビユートビツトの第7ビツトに“1”を書
き込んだとする。この場合、ドツトデータDDa
7−0として、カラーコードK1がデユアルポー
トRAM11のアドレス端子AT2へ印加される
と、デユアルポートRAM11からカラーコード
K1に対応するカラーデータRD7−0,GD7
−0,BD7−0が各々出力されると共に、アト
リビユートデータAD7として“1”が出力され
る。そして、次のドツトクロツクDCLKによつ
て、これらのカラーデータがレジスタ47r,4
7g,47bに読み込まれると共に、アトリビユ
ートデータAD7“1”がレジスタ46に読み込
まれ、これにより、アトリビユート信号ASが
“1”信号となる。アトリビユート信号ASが
“1”信号になり、この“1”信号がマルチプレ
クサ48rの制御端子Cへ印加されると、レジス
タ52r内のカラーデータがマルチプレクサ48
rを介して加算回路49rへ供給され、これによ
り、加算回路49rから、レジスタ47rのカラ
ーデータと、レジスタ52r内のカラーデータと
を加算した新たなカラーデータが出力される。こ
こで、レジスタ52r内のカラーデータは、レジ
スタ47r内のカラーデータより1ドツトクロツ
クDCLK前に表示されるドツトの色を決めるデー
タである。したがつて、レジスタ49r内のカラ
ーデータにレジスタ52r内のカラーデータを加
算するということは、レジスタ47r内のカラー
データに、1ドツトクロツクDCLK前に表示され
るドツトのカラーデータを加算することを意味す
る。
以上がカラーデータRD7−0についての修飾
動作である。カラーデータGD7−0,BD7−
0についても、アトリビユート信号ASが“1”
の場合に、同様の修飾が行なわれる。
「発明の効果」
以上説明したように、この発明によれば、カラ
ーデータを変更するカラー変更データが書き込ま
れる第1,第2のレジスタと、前記第1,第2の
レジスタに書き込まれた前記カラー変更データ
を、所定のタイミングで交互に出力する第1の選
択手段と、前記第1の選択手段の出力のうち、い
ずれのビツトを前記カラーデータの対応するビツ
トと入れ換えるかを指定するビツト指定データを
出力する第3のレジスタと、前記第1の選択手段
が出力するカラー変更データのうち、前記ビツト
指定データによつて指定される複数ビツトを、前
記カラーコードの対応するビツトと入れ換えて、
新たなカラーコードとして出力する第2の選択手
段と、前記第2の選択手段が出力する前記新たな
カラーコードを、前記カラーデータに変換する変
換手段とを設けたので、上記第3のレジスタ内の
データを変更することにより、ブリンク時の表示
色を種々変えることができる効果がある。
"Field of Industrial Application" The present invention relates to a display controller used in a color display device or the like controlled by a CPU (Central Processing Unit). ``Prior Art'' In CPU-controlled color display devices, blinking (flickering) display is often used to improve the display effect. To perform this blinking display, display data (color code) in VRAM (video RAM) can be rewritten at regular intervals, but this method has the problem of placing a heavy burden on the CPU. Therefore, a display device is known in which two registers are provided in the display controller in advance, data is written in the registers, and the data in the registers are alternately used to perform a blink display. "Problems to be Solved by the Invention" However, in the conventional blinking display, the display color during blinking is determined by data in two registers, and in order to change this display color, The data in the register had to be changed. Therefore, an object of the present invention is to provide a display controller that can change the display color during blinking without changing the data in the register. "Means for Solving the Problem" This invention provides first and second registers into which color change data for changing color data is written, and the color change data written in the first and second registers. a first selection means that alternately outputs at a predetermined timing, and outputs bit designation data that specifies which bit of the output of the first selection means is to be replaced with a corresponding bit of the color data. a third register to
A second color code that replaces a plurality of bits specified by the bit designation data with corresponding bits of the color code among the color change data output by the first selection means and outputs the color code as a new color code. It is characterized by comprising a selection means and a conversion means for converting the new color code outputted by the second selection means into the color data. "Embodiment" Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a color display device with dot display using a display controller 1 according to an embodiment of the present invention. This display device will be described in detail below. (1) General configuration In Figure 1, 2 is a CPU, 3 is a memory consisting of a ROM that stores programs used by the CPU 2, and a RAM for data storage, 4 is a video display processor (hereinafter referred to as VDP), 5 is VRAM. VDP4 is CPU2
The color code supplied via the bus line 6 is written into the VRAM5, the written color code is read out, and the dot data DD7-
It is sequentially output to the display controller 1 as 0 (8 bits). In addition, this VDP4 has a synchronization signal
SYN.I, blanking signal BLANK, display timing signal DTMG, page select signal PG-SEL and dot clock DCLK are output to the display controller 1, respectively. Here, the synchronization signal SYN・I is a signal for synchronizing the display on the CRT display device, and a blanking signal.
BLANK is a signal that is "1" during the screen display period and "0" during other periods, and the display timing signal DTMG is a signal that is "1" during the image display period and "0" during other periods. Note that the screen display period and the image display period are different. That is, the display screen is divided into an image display area and a border area, the image is displayed only in the image display area, and the border area is displayed in one color. The image display period is a period during which the image display area is scanned, and the screen display period is a period during which the screen (image display area and border area) is scanned. In addition, the page select signal PG-SEL is a signal that repeats "1" for 0.5 seconds and "0" for 0.5 seconds, for example.
The dot clock DCLK is a signal indicating the timing of displaying each dot on the display screen. The interface circuit 7 is a circuit for connecting the CPU 2 and the display controller 1. The display controller 1 receives dot data DD7 supplied from the VDP4.
-0 into R, G, B color data, and then convert these color data into red color signals RS,
Green color signal GS, blue color signal BS
(both are analog signals) and output to the CRT display device 8. Also, this display controller 1
outputs the signal YS and the synchronizing signals SYN and O to the CRT display device 8. Note that in this controller 1, the terminal T1 is directly connected to the data bus of the CPU 2. The CRT display device 8 is a color display device that has the function of a television receiver, and the CRT display device 8 is a color display device that has the function of a television receiver.
When is “1”, the red color signal RS, green color signal GS,
Color display is performed based on the blue color signal BS and the synchronization signal SYN/O, and when the signal YS is "0", the display is performed using a television signal. (2) Detailed configuration of display controller 1 FIGS. 2 to 4 are circuit diagrams each showing a detailed configuration of display controller 1. This display controller 1 can be roughly divided into a control section shown in FIG.
It is divided into a RAM address forming section shown in FIG. 3, and a dual port RAM 11 and color data modification circuits 12r, 12g, and 12b shown in FIG. The configuration of each part will be explained below. Note that the operation of each part will be explained in detail later. (2-1) Control unit; FIG. 2 This control unit is a circuit that mainly controls data exchange between the CPU 2 and the display controller 1. In the figure, 17 is a 3-bit register, which reads input data based on the dot clock DCLK supplied to its load terminal L, and outputs it from its output terminal. This register 17 is a register for synchronization. That is, the clock pulse of the CPU 2 and the dot clock DCLK output from the VDP 4 are not synchronized. Therefore, for signals and data synchronized with the clock pulse of CPU2, the dot clock DCLK
signals and data that are synchronized with Register 17 is provided for this purpose. Also, the DF shown below the same register 17
(D-type flip-flop) 18 is also provided for this purpose. The pointer counter 19 is 4
It is a bit up counter and its up terminal
Up-counts the signal supplied to UP, and also
Data WD3 when signal is supplied to load terminal L
Read -0. Note that data WD3-0 is the lower four bits of the output of the register 60 shown at the bottom of the figure. The write decoder 20 decodes the output of the pointer counter 19, becomes enabled only when the write strobe WRST is supplied to its enable terminal EN, and outputs the decoding result as a strobe signal S|MW, . Similarly, the read decoder 21 decodes the output of the pointer counter 19, and outputs the decoding result as a strobe signal S|MR only when the read strobe RDST is supplied. 21 and 22 are buffers, and when a "1" signal is supplied to the control terminal C, the input data is output as is from the output terminal, and when a "0" signal is supplied, the output terminal becomes high impedance. state. Further, the line connecting the buffer 27 and the terminal T1 is an 8-bit bidirectional bus. When the signal CS is supplied to the load terminal L of the register 60, the terminal T1
The data obtained from the CPU 2, that is, the data on the data bus of the CPU 2, is read and output to the register 24. Register 24 is the write strobe WRST
When supplied, the output data of the register 23 is read and output as data WDB7-0. The mode register 25 receives data WD5-0 (data WDB7-0) when the strobe signal S|MD is supplied.
This is a 6-bit register that reads the lower 6 bits of (2-2) RAM address forming unit; Figure 3 This RAM address forming unit includes a block B1 that converts dot data (color code) DD7-0 to new dot data DDa7-0,
Address data RWA7-0 (8 bits) and
Block B2 forming BA1-0 (2 bits)
Each data is divided into dual ports.
Address terminals AT2, AT of RAM11 (Figure 4)
1 (AT1, AT1-0). In block B1, 30 and 31 are each 4-bit page registers, and 32 is a multiplexer. The multiplexer 32 outputs the data at the input terminal <1> when a "1" signal is supplied to its control terminal C, and outputs the data at the input terminal <0> when a "0" signal is supplied. do. 33 is a synchronization register, 34 is a 4-bit page mask register,
35 is a synchronization register, and 36 to 39 are multiplexers. Also, in block B2, 41
is a synchronization register, 42 is a multiplexer, 43
is a word counter, and 44 is a byte counter. These counters 43 and 44 each output data WDB7- when a signal is supplied to the load terminal L.
0, WDB1-0 is read, and when a “1” signal is supplied to the enable terminal EN,
Outputs the signal from the up terminal UP. Also,
A carry-out signal CO of the byte counter 44 is supplied to an input terminal of an OR gate 45. (2-3) Dual port RAM 11; Figures 4 and 5 This dual port RAM 11 is a LUT that converts color codes into color data, and has 1024
It consists of a byte RAM 11a and peripheral circuits. FIG. 5 is a diagram showing the configuration of the RAM 11a, and addresses 0 to 3 of this RAM 11a each have
R, G, B color data and attribute bits (8 bits each) corresponding to color code "0" are stored, and R, G, B colors corresponding to color code "1" are stored in addresses 4 to 7. Data and attribute bits are stored, ..., 1020 ~
At address 1023, R, G, and B color data and attribute bits each corresponding to the color code "255" are stored. Then, based on the dot data DDa7-0 (color code) supplied to the address terminal AT2 of the dual port RAM 11, the corresponding R, G, B color data and attribute bits are read out, and the R, G, B
Color data is output as color data RD7-0, GD7-0, BD7-0 from output terminals Q2 to Q4, respectively, and attribute bits are output from output terminal Q5. In this case, the seventh and sixth bits of the attribute bits are output as attribute data AD7 and AD6. In addition,
Bits 5 to 0 of the attribute bits are not used in this embodiment. Further, the function of the attribute bit will be explained later. In this way, the dual port shown in Figure 4
When dot data DDa7-0 is applied to the address terminal AT2, the RAM11 responds to R, G,
B color data and attribute bits are read out, but completely independent of this readout,
Writing/reading of the RAM 11a can be performed in byte units. That is, by applying address data (10 bits) to the address terminal AT1 of this dual port RAM 11, applying 8-bit data to the data terminal WDT, and applying a pulse signal to the write terminal WT, writing to the RAM 11a can be performed. done,
Furthermore, by applying address data to the address terminal AT1 and applying a pulse signal to the read terminal RT, data within the address indicated by the address data is read out and output from the output terminal Q1. Address data RWA7-0 and
BA1-0 is data that specifies the address for reading/writing as described above, and address data RWA7-0 is the upper 8 of the address terminal AT1.
Address data BA1-0 is applied to the lower two bits, respectively. (2-4) Color data modification circuit 12r, 12g,
12b; FIG. 4 These color data modification circuits 12r to 12b have the same configuration, and color data RD7
-0, GD7-0, BD7-0 are modified according to the attribute signal AS, then the modified data is converted to an analog signal, and the color signals RS,
Output as GS, BS. The attribute signal AS is a signal obtained by delaying the attribute data AD7 by one dot clock timing (hereinafter simply referred to as timing) by the register 46. Next, in the color data modification circuit 12r,
47r is a register that outputs color data RD7-0 with one timing delay, and 48r is the above signal.
Multiplexer controlled by AS, 49r
is an adder circuit, and 50r is a border register into which color data for determining the color of the border area is written. 51r is a multiplexer, 52r is a register that delays the output of the multiplexer 51r by one timing, 53r is a buffer, and 56r is a gate circuit. This gate circuit 54r becomes open when a "1" signal is applied to its control terminal C, and becomes closed when a "0" signal is applied. 55r is DAC
(digital/analog converter), and this
The output of the DAC 55r is output as a color signal RS via an amplifier 56r. (3) Operation of display controller 1 (3-1) Operation during writing by CPU 2 Prior to display processing, CPU 2 controls each register and dual port in display controller 1.
Write data to RAM11. During this writing, a strobe signal is output from the write decoder 20 (FIG. 2). Further, a register number is assigned to each register. The relationship between the register number, the strobe signal, the register to which writing is performed, etc. is as follows. 0 S|MW...Dual port RAM 11 1 S|MD...Mode register 25 (Fig. 2) 2 S|WA...Word counter 43 (Fig. 3) 3 S|BA...Byte counter 44 (Fig. 3) ) 4 S|MA...Page mask register 34 (3rd
(Figure) 5 S|P0...Page register 30 (Figure 3) 6 S|P1...Page register 31 (Figure 3) 7 S|BR...Border register 50r (Figure 4) 8 S|BG... Border register 50g (FIG. 4) 9 S|BB...Border register 50b (FIG. 4) Next, the operation at the time of writing will be explained. Note that two addresses are assigned to the interface (FIG. 1) as port addresses. Hereinafter, these addresses will be referred to as port addresses PA0 and PA1. (i) Register individual write operation This operation is performed by registers 25, 43,...
This is an operation when writing data to any one of the 50b. In this case, the CPU 2 first outputs the port address PA0 to the address bus, then outputs the register number to the data bus, and then outputs a write pulse (hereinafter referred to as the first process). When the port address PA0 is output, the interface 7 detects this and outputs "0" as the signal AO. Next, when the write pulse is output, the interface 7 outputs "1" as the read/write signal WR and also outputs the pulse signal CS at the same timing as the write pulse. When the pulse signal CS is output from the interface 7, this signal CS is sent to the register 60.
(Figure) is supplied to the load terminal L, thereby,
The register number on the data bus is read into register 60 and supplied to the input end of pointer counter 19. On the other hand, when the signal AO becomes "0" and the signal WR becomes "1", the AND gate 61 (FIG. 2) becomes open, and the pulse signal CS passes through the AND gate 61 and the synchronization register 17 to the pointer counter 19. is applied to the load terminal L of. As a result, the register number read into the register 60 is read into the pointer counter 19 and output to the write decoder 20. Next, the CPU 2 outputs the port address PA1 to the address bus, then outputs write data to the data bus, and then outputs a write pulse (hereinafter referred to as second processing). Interface 7 receives port address PA1 and outputs signal AO.
In response to a write pulse, it outputs "1" as a read/write signal WR and outputs a pulse signal CS. When the pulse signal CS is output, data on the data bus is read into the register 60. Also, the signal
When AO and WR become “1”, AND gate 62
is in the open state, and the signal CS is the AND gate 62,
Write strobe via register 17
Output as WRST. This write strobe WRST causes the data in the register 60 to be read into the register 24, and this read data is supplied to the registers 25, 43, . . . . Also, when the write strobe WRST is output,
While this strobe WRST is being output, the write decoder 20 is enabled, and the strobe signal S|MW corresponding to the output of the pointer counter 19 is output from the write decoder 20. As a result, the data in the register 24 is read into the registers 25, 43, . . . to which the same strobe signal is applied. (ii) Register continuous write operation This operation is an operation when data is continuously written into a plurality of registers 25, 43, . . . . In this case, the CPU 2 first stores the first value in the mode register 25 (FIG. 2) by the process described in (i) above.
Write data that makes the bit “1”. As a result, the signal AUT output from the same register 25
-INC becomes "1", this "1" signal is supplied to the AND gate 63 (upper left in FIG. 2), and the AND gate 63 becomes open. Next, for example, each register 34, 30 with register numbers "4" to "9"...
When writing data to the register 50b, the CPU 2 writes the data into the register 34 with register number "4" by performing the process (i) above. When this writing is completed, the register number "4" is held in the pointer counter 19. Next, the CPU 2 performs the second process in the process (i) above, that is, outputs the port address PA1, outputs the data to be written to the register 30 with register number "5", and outputs a write pulse. As a result, "1" is output from the interface 7 as the signals AO and WR, and the pulse signal CS is output, and the above data is transferred to the register 60 by the pulse signal CS.
is loaded into. Then light strobe
WRST is output and this light strobe
The data in register 60 is read into register 24 by WRST. Also, the write strobe WRST is sent to the pointer counter 1 via the OR gate 64, the AND gate 63, and the register 17.
As a result, the pointer counter 19 is incremented, its count output becomes "5", and this count output "5" is supplied to the write decoder 20. As a result, the strobe signal S|P0 is output from the write decoder 20 at the timing of the write strobe WRST, and the data in the register 24 is transferred to the register 30 (FIG. 2) by this strobe signal S|P0.
loaded within. Similarly, when the CPU 2 sequentially outputs data to be written into the registers 31, 50r, 50g, and 50b by the second process, these data are sequentially written into each register. (iii) RAM individual write operation This operation is for writing data only into any one address of the RAM 11a.
In this case, the CPU 2 first writes "0" to the fifth bit of the mode register 25. As a result, the signal DIF-RD becomes "0". When the signal DIR-RD becomes “0”, the multiplexer 42 (Fig. 3)
The data at the input terminal <0>, that is, the output data WA7-0 of the word counter 43 is outputted from the multiplexer 42 as data RWA7-0 and supplied to the dual port RAM 11. Next, the CPU 2 writes the lower two bits of the address at which data is to be written in the RAM 11a to the byte counter 44, and then writes the upper eight bits to the word counter 43. As a result, the same address is set to address terminal AT1 of dual port RAM11.
supplied to Next, the CPU 2 writes "0" to the pointer counter 19 (the first process),
Next, write data is output (second process). This data is temporarily stored in the register 24 (Fig. 2).
Then, it is written into the corresponding address of the RAM 11a by the strobe signal S|MW. (iv) RAM continuous write operation When writing data continuously into the dual port RAM 11, the CPU 2 first sets the 0th, 1st, and 5th bits of the mode register 25 to “0”.
Write. This allows the signal FIX−BA,AUT
-INC and DIR-RD become "0". Signal FIX−
When BA becomes “0”, inverter 66 (third
(Figure) becomes “1” and the byte counter 44
is enabled, and OR gate 45 is enabled.
is in a through state. As a result, the two counters 44 and 43 are configured into one 10-bit up counter. Further, when the signal DIR-RD becomes "0", the data at the input terminal <0> of the multiplexer 42 (FIG. 3) is output from the multiplexer 42. Next, the CPU 2 writes the lower two bits of the start address to the byte counter 44, and
Then, the upper 8 bits are written into the word counter 43. For example, when writing data to the entire area (1024 bytes) of the RAM 11a (this case will be explained below), data "0" is written to each of the counters 44 and 43. Next, the CPU 2 writes "0" to the pointer counter 19, and then writes "0" to the pointer counter 19, and then
The data to be written to address 0 of 11a is output. This data is temporarily stored in the register 24 (Fig. 1).
Then, it is written to address 0 of the RAM 11a by the strobe signal S|MW.
In addition, the strobe signal S | MW is the OR gate 67
(FIG. 3) and is supplied to each up terminal UP of registers 44 and 43. As a result, a 10-bit counter constituted by counters 44 and 43 is incremented. Below, CPU2 is
The data to be written to the first address, second address, etc. of the RAM 11a is sequentially outputted by the above-described second process. As a result, data is sequentially written into each address of the RAM 11a, and the above-mentioned 10-bit counter is sequentially incremented. (3-2) Operation when reading by CPU2 CPU2 has registers and dual ports.
Data in the RAM 11 can be read out at any time regardless of image display. At the time of reading, a strobe signal S|MR... is output from the read decoder 21 (FIG. 2). Furthermore, data numbers are assigned in advance to readable data. The relationship among this data number, strobe signal, and read data is as follows. 0 S|MR...Data 1 in dual port RAM 11 S|ST...Status data 2 S|RR...Border register 52r (Figure 4)
Data 3 in S|RG……Border register 52g (Figure 4)
Data 4 in S|RB...Border register 52b (Figure 4)
Here, the status data refers to the signal DTMG
(lower part of Figure 2), PG-GEL (left part of Figure 3),
This is data indicating each state of BLANK3 (lower part of Figure 4), and these signals are buffer 22 (Figure 2).
is applied to the input terminal of Next, the operation at the time of reading will be explained. (i) Data individual read operation This operation is for reading any one of the data numbers "1" to "4". In this case, the CPU 2 first writes the data number into the pointer counter 19 by the first process described above. Next, after outputting the port address PA1 to the address bus, a read pulse is output (hereinafter referred to as the third process). port address PA
When 1 is output, interface 7 outputs the signal
When the AO outputs “1” and the read pulse is output, the interface 7 outputs the signal.
It outputs "0" as WR and also outputs a pulse signal CS at the same timing as the read pulse.
When the signal AO becomes "1" and the signal WR becomes "0", the AND gate 69 shown in FIG. 2 becomes open, and the pulse signal CS is outputted through the AND gate 69. This causes the buffer 27 to enter the through state. Further, the pulse signal that has passed through the AND gate 69 is outputted as a read strobe RDST via the synchronization DFF 18 and applied to the read decoder 21 . As a result, a strobe signal corresponding to the data number in the pointer counter 19 is output from the read decoder 21. For example, when the strobe signal S|ST is output, the buffer 22 becomes a through state, and the status data is passed through the buffers 22 and 21 to the CPU.
It is output to the second data bus. Further, for example, when the strobe signal S|RR is output, the buffer 53r in FIG. 4 becomes a through state, and the register 5
The data (R color data) in 2r is output to the data bus of the CPU 2 via the buffer 53r and the buffer 27. The data output to the data bus of the CPU 2 is read into the CPU 2 at a predetermined timing. (ii) Continuous data read operation In this operation, CPU2 reads data number “1”
This is an operation when a plurality of data out of "4" data are read out consecutively. This operation is almost the same as the register continuous write operation described above, so a detailed explanation will be omitted. in this case,
The CPU 2 first writes "1" to the first bit of the mode register 25, then writes the first data number to the pointer counter 19, and thereafter repeats the third process described above. As a result, each piece of data is sequentially output to the data bus of the CPU 2. (iii) RAM data individual read operation When reading one of the data in the dual port RAM 11, the CPU 2 first writes “0” to the fifth bit of the mode register 25, and then reads the word counter 43. , writes the address of the RAM 11a into the byte counter 44 (FIG. 3). Next, data number "0" is written in the pointer counter 19, and then the third process is performed. With this third process, the read decoder 2
The strobe signal S|MR is output from 1 (Fig. 2), and the lead terminal RT of the dual port RAM 11
supplied to As a result, registers 43 and 44
Data within the address indicated by the output is read out and output from the output terminal Q1, and this output data is sent to the data bus of the CPU 2 via the buffer 27. (iv) RAM data continuous read operation In this case, the CPU 2 first writes “0” to the 0th, 1st, and 5th bits of the mode register 25, as in the case of the “RAM continuous write operation” described above. Next, the lower two bits of the start address are written into the byte counter 44, and the upper eight bits are written into the word counter 43. Next, write the data number "0" to the pointer counter 19, and from then on,
Repeat the third process. By repeating this third process, the strobe signal S|MR is repeatedly output, and a 10-bit counter consisting of registers 43 and 44 is successively incremented by this strobe signal S|MR. As a result, the data in the dual port RAM 11 is sequentially read out in byte units and output to the data bus of the CPU 2 via the buffer 27. (v) RAM data selection read operation This operation is performed by selecting the R in the RAM 11a shown in FIG.
Color data only or G color data only,
Alternatively, this operation is performed when only B color data or only attribute bits are read out continuously. In this case, the CPU 2 first sets the 0th, 1st, and 5th bits of the mode register 25 to "1" and
Write “1” and “0”. This allows the signal FIX
-BA, AUT-INC become "1" and signal DIF-RD becomes "0". When the signal FIX-BA becomes “1”,
The output of the inverter 66 (FIG. 3) becomes a "0" signal, and this "0" signal is supplied to the enable terminal EN of the byte counter 44. As a result, even if a pulse signal is thereafter supplied to the up terminal of the byte counter 44, the up-counting of the byte counter 44 is not performed, and the output of the byte counter 44 is maintained at a constant value. Also, when the signal FIX-BA becomes a “0” signal, the OR gate 45 (Fig. 3)
The output becomes a "1" signal, and this "1" signal is output to the enable terminal EN of the word counter 43. As a result, the word counter 43 thereafter operates independently as an 8-bit counter, and uses the pulse signal supplied to its up terminal UP as an up count. Furthermore, when the signal AUT-INC becomes "1", the AND gate 63 (Fig. 2) becomes open, and when the signal DIR-RD becomes "0", the output of the word counter 43 is transferred to the multiplexer 42 (Fig. 3). ) is output. Next, the CPU 2 writes a numerical value corresponding to the type of data to be read into the byte counter 44. In other words, when reading R color data, set "0", and when reading G color data, set "1".
, "2" to read B color data,
When reading the attribute bits, write "3" to each (see FIG. 5). Next, the CPU 2 writes the start address into the word counter 43 and then writes "0" into the pointer counter 19. Thereafter, the third process described above is repeated. By repeating this third process, the word counter 43 is sequentially incremented, and the output of the byte counter 44 (address data BA1-0)
Only the data determined by is sequentially read from the RAM 11a. (vi) RAM read operation based on external address data When “1” is written to the 5th bit of the mode register 25, the signal DIR-RD becomes a “11” signal,
Data at the input terminal <1> of the multiplexer 42 is output from the multiplexer 42. Therefore, in this case, terminal T7 (Fig. 1, Fig. 3)
When address data is supplied to the synchronization register 41 and multiplexer 42
The data is supplied to the dual port RAM 11 via the dual port RAM 11. In other words, it becomes possible to read data based on external address data. (3-3) Basic display operation The most basic operation of the display controller 1 is as follows.
Dot data output from VDP4 (Figure 1)
Convert DD7-0 to R, G, B color data,
Next, these color data are converted into analog color signals RS, GS, BS and output to the CRT display device 8. The operation in this case will be explained below. In this case, CPU2 first registers mode register 2.
Write “1” to the second bit of 5. As a result, the signal DISP-ENB becomes a "1" signal, and the AND gate 71 (FIG. 2) becomes open. Next, 4-bit data "0" is written into the page mask register 34 (FIG. 3). As a result, a "0" signal is supplied to each control terminal C of the multiplexers 36-39, and the output of the synchronization register 33 is outputted through the multiplexers 36-39. That is, in this case, the dot data DD7-0 is transferred to the dot data DD7-0 via the synchronization registers 33 and 35.
The signal is applied to the address terminal AT2 of the dual port RAM 11 as DDa7-0. Next, R, G, and B color data are written in the dual port RAM 11, and "0...0" (8 bits) is written as each attribute bit.
Next, border registers 50r, 50g, 50b
(Fig. 4), color data specifying the color of each border area is written. Next, the CPU 2 writes dot data (color code) into the VRAM 5 via the VDP 4, and outputs a start command to the VDP 4. VDP4 receives this start command, reads the dot data from VRAM5, and stores the read dot data as dot data DD.
7-0 and is sequentially output to the terminal T2 of the display controller 1. Also, this dot data DD7-0
In parallel with the output of , a synchronizing signal SYN.I, a blanking signal BLANK, a display timing signal DTMG, and a dot clock DCLK are output to terminals T3, T4, T5, and T17 of the display controller 1, respectively. The dot data DD7-0 supplied to the terminal T2 of the display controller 1 is sent to the registers 33 and 35.
(Fig. 3) and multiplexers 36 to 39 (upper 4 bits), the dot data DDa7-
It is applied as 0 to the address terminal AT2 of the dual port RAM 11. As a result, from the output terminals Q2 to Q4 of the dual port RAM 11,
R, G, B corresponding to dot data DDa7-0
Color data RD7-0, GD7-0, BD7-0
and attribute data AD7, AD6 (both "0") are output. And color data
RD7-0 is register 4 for one timing delay.
It is applied to one input terminal of the adder circuit 49r via the adder circuit 7r. At this time, the attribute signal AS "0" is applied to the control terminal C of the multiplexer 48r.
Data "0" of its input terminal <0> is output from r. As a result, the output of the adder circuit 49r becomes the same color data as the output of the register 49r, and this color data is transferred to the multiplexer 51.
It is supplied to the input terminal <1> of r. This multiplexer 51r outputs the color data for image display output from the adder circuit 49r during the image display period, and outputs the color data for the border color in the border register 50r during other periods. be. That is,
The display timing signal DTMG (signal indicating the image display period) output from VDP4 is DFF
72 (lower part of Figure 2)
It is synchronized with DCLK, delayed by one timing by DFF 73, and supplied to control terminal C of multiplexer 51r via AND gate 71.
As a result, during the image display period, the addition circuit 4
During the other periods, the color data in the register 50r is outputted from the multiplexer 51r and supplied to the register 52r. The register 52r converts the color data output from the multiplexer 51r into 1
The timing is delayed and the signal is supplied to the gate circuit 54r. The gate circuit 54r is a circuit whose opening/closing is controlled by the signal BLANK3. Here, the signal
BLANK3 is VDP as shown in the lower part of Figure 4.
This signal is obtained by synchronizing the blanking signal BLANK (signal indicating the screen display period) outputted from 4 with the dot clock DCLK by the synchronization register 75 and delaying it by 2 timings by the delay registers 46 and 76. Then, the gate circuit 54r
is open during the screen display period, and register 5
The color data within 2r is output to the DAC55r.
In terms of timing, the dot data DD7-0 is synchronized by the registers 33 and 35 in FIG. 3, is delayed by two timings by the registers 47r and 52r in FIG. 4, and is sent to the gate circuit 54r. applied. Therefore, dot data DD7-
0 is converted into color data and sent to the gate circuit 54r.
The timing and blanking signal applied to
This is the same timing as when BLANK is output as signal BLANK3. The color data that has passed through the gate circuit 54r is converted into an analog color signal by the DAC 55r, and output to the CRT display device 8 as a color signal RS via the amplifier 56r. The above is how color data RD7-0 is a color signal.
This is the process of being converted to RS. Color data GD7
-0 and BD-0 are also converted into color signals GS and BS through the same process. On the other hand, the synchronization signal SYN・
I is synchronized by register 75 (lower part of FIG. 4), delayed by two timings by registers 46 and 76, and outputted as a synchronizing signal via amplifier 78.
It is output to the CRT display device 8 as SYN・O.
Then, the CRT display device 8
Image display is performed in . (3-4) Blink display operation This operation is for blinking the displayed image based on the basic display operation described above. In this case, the CPU 2 writes the first and second data (4 bits each) to the page registers 30 and 31 (FIG. 3), respectively, and then writes "1" to the fourth bit of the mode register 25. , then data "1, 1," is stored in the page mask register 34.
1, 1” is written. The fourth
When “1” is written to the bit, the signal PG-
ENB becomes a "1" signal, and this "1" signal is supplied to the first input terminal of the AND gate 75 (left side in FIG. 3). The signal PG-SEL output from VDP4 (a signal that is "1" for 0.5 seconds and "0" for 0.5 seconds) is input to the second input terminal of this AND gate 75.
76. Therefore, the signal
When PG-ENB becomes a “1” signal, a signal of “1” for 0.5 seconds and “0” for 0.5 seconds is output from the AND gate 75 to the control terminal C of the multiplexer 32. As a result, the multiplexer 32 outputs a signal in the page register 30. The first data in the page register 31 and the second data in the page register 31 are output alternately every 0.5 seconds.
Then, the output data is sent to the multiplexer 36
~39 input terminal <1>. Next, when "1, 1, 1, 1" is written in the page mask register 34, a "1" signal is supplied to each control terminal C of the multiplexers 36 to 39.
Instead of the upper 4 bits of dot data DD7-0, the first and second data in page registers 30 and 31 are alternately output from multiplexers 36 to 39, and together with the lower 4 bits of dot data DD7-0, the first and second data in page registers 30 and 31 are output as dots. The data is outputted to the address terminal AT2 of the dual port RAM 11 as data DDa7-0. In other words, dot data DDa7-0 is
It will change every 0.5 seconds, so
The displayed image blinks. Furthermore, if, for example, "1, 1, 0, 0" is written in the page mask register 34, only the upper 2 bits of the dot data DD7a-0 can be changed to the data in the page registers 30 and 31. Further, for example, if "1, 0, 0, 0" is written in the page mask register 34, only the most significant bit of the dot data DDa7-0 can be changed. That is, by changing the data in the page mask register 34, it is possible to variously change the display color during blinking. (3-5) Color data modification operation This display controller 1 has dual ports.
By writing “1” to the 7th bit of the attribute bit of RAM11, the VRAM
Color data RP7 without rewriting 4.
-0, GD7-0, and BD7-0 can be changed. The operation in this case will be explained below. For example, suppose that "1" is written to the seventh bit of the attribute bit corresponding to a certain color code K1. In this case, dot data DDa
7-0, when the color code K1 is applied to the address terminal AT2 of the dual port RAM 11, the color data RD7-0, GD7 corresponding to the color code K1 is sent from the dual port RAM 11.
-0 and BD7-0 are respectively output, and "1" is output as attribute data AD7. Then, by the next dot clock DCLK, these color data are transferred to registers 47r and 47r.
At the same time, the attribute data AD7 "1" is read into the register 46, and thereby the attribute signal AS becomes a "1" signal. When the attribute signal AS becomes a "1" signal and this "1" signal is applied to the control terminal C of the multiplexer 48r, the color data in the register 52r is transferred to the multiplexer 48.
The color data is supplied to the adder circuit 49r via r, and the adder circuit 49r outputs new color data obtained by adding the color data in the register 47r and the color data in the register 52r. Here, the color data in register 52r is data that determines the color of a dot to be displayed one dot clock DCLK before the color data in register 47r. Therefore, adding the color data in register 52r to the color data in register 49r means adding the color data of a dot displayed one dot clock DCLK ago to the color data in register 47r. do. The above is the modification operation for color data RD7-0. Color data GD7-0, BD7-
Also for 0, the attribute signal AS is “1”
A similar modification is made in the case of "Effects of the Invention" As explained above, according to the present invention, there are first and second registers into which color change data for changing color data is written, and color change data written in the first and second registers. a first selection means for alternately outputting color change data at predetermined timing; and a bit specification for specifying which bit of the output of the first selection means is to be replaced with a corresponding bit of the color data. replacing the plurality of bits specified by the bit designation data among the color change data output by the third register for outputting data and the first selection means with the corresponding bits of the color code;
Since the second selection means outputs as a new color code and the conversion means converts the new color code outputted by the second selection means into the color data, By changing the data, the display color during blinking can be changed in various ways.
第1図はこの発明の一実施例による表示コント
ローラ1を用いたカラーデイスプレイ装置の構成
を示すブロツク図、第2図〜第4図は各々表示コ
ントローラ1の詳細を示す回路図であり、第2図
は制御部の構成を示す図、第3図はRAMアドレ
ス形成部の構成を示す図、第4図はデユアルポー
トRAM11およびカラーデータ変換回路12
r,12g,12bの構成を示す図、第5図はデ
ユアルポートRAM11内に設けられている
RAM11aの構成を示す図である。
1…表示コントローラ、11…デユアルポート
RAM、12r,12g,12b…カラーデータ
変換回路、30,31…ページレジスタ、32,
36〜39…マルチプレクサ、34…ページマス
クレジスタ。
FIG. 1 is a block diagram showing the configuration of a color display device using a display controller 1 according to an embodiment of the present invention, FIGS. 2 to 4 are circuit diagrams showing details of the display controller 1, and FIG. The figure shows the configuration of the control section, FIG. 3 shows the configuration of the RAM address forming section, and FIG. 4 shows the dual port RAM 11 and color data conversion circuit 12.
FIG.
It is a figure showing the composition of RAM11a. 1...Display controller, 11...Dual port
RAM, 12r, 12g, 12b...Color data conversion circuit, 30, 31...Page register, 32,
36 to 39...Multiplexer, 34...Page mask register.
Claims (1)
カラーデータに変換し、これらのカラーデータを
さらにアナログカラー信号に変換して出力する表
示コントローラにおいて、 (a) 前記カラーデータを変更するカラー変更デー
タが書き込まれる第1,第2のレジスタと、 (b) 前記第1,第2のレジスタに書き込まれた前
記カラー変更データを、所定のタイミングで交
互に出力する第1の選択手段と、 (c) 前記第1の選択手段の出力のうち、いずれの
ビツトを前記カラーデータの対応するビツトと
入れ換えるかを指定するビツト指定データを出
力する第3のレジスタと、 (d) 前記第1の選択手段が出力するカラー変更デ
ータのうち、前記ビツト指定データによつて指
定される複数ビツトを、前記カラーコードの対
応するビツトと入れ換えて、新たなカラーコー
ドとして出力する第2の選択手段と、 (e) 前記第2の選択手段が出力する前記新たなカ
ラーコードを、前記カラーデータに変換する変
換手段と を具備することを特徴とする表示コントローラ。[Claims] 1. A color code that corresponds one-to-one to the display color,
In a display controller that converts the color data into color data, further converts these color data into analog color signals, and outputs the analog color signals, the display controller includes: (a) first and second registers into which color change data for changing the color data is written; b) a first selection means that alternately outputs the color change data written in the first and second registers at a predetermined timing; and (c) an output of the first selection means. a third register that outputs bit designation data specifying whether to replace the bits of the color data with the corresponding bits of the color data; (d) of the color change data output by the first selection means, the bit designation data; (e) a second selection means for replacing a plurality of bits specified by the color code with corresponding bits of the color code and outputting the resultant color code as a new color code; A display controller comprising: conversion means for converting a color code into the color data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60277366A JPS62135886A (en) | 1985-12-10 | 1985-12-10 | Display controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60277366A JPS62135886A (en) | 1985-12-10 | 1985-12-10 | Display controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62135886A JPS62135886A (en) | 1987-06-18 |
| JPH0429073B2 true JPH0429073B2 (en) | 1992-05-15 |
Family
ID=17582523
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60277366A Granted JPS62135886A (en) | 1985-12-10 | 1985-12-10 | Display controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS62135886A (en) |
-
1985
- 1985-12-10 JP JP60277366A patent/JPS62135886A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62135886A (en) | 1987-06-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2572373B2 (en) | Color display device | |
| US5254984A (en) | VGA controller for displaying images having selective components from multiple image planes | |
| JP3385135B2 (en) | On-screen display device | |
| US4857899A (en) | Image display apparatus | |
| EP0128051A1 (en) | Video display system | |
| TWI230013B (en) | System and method for processing memory with YCbCr 4:2:0 planar video data format | |
| JPH0690608B2 (en) | Display controller | |
| JPH052239B2 (en) | ||
| JPH0429072B2 (en) | ||
| JP5125205B2 (en) | Data signal processing device, image processing device, image output device, and data signal processing method | |
| JPH0229186A (en) | Color crt control circuit | |
| JPH0437435B2 (en) | ||
| JPH03171087A (en) | Image processor | |
| JPS6090387A (en) | Writing/reading controller for graphic memory | |
| JPS62135886A (en) | Display controller | |
| KR100206265B1 (en) | Address decoding method for crt display interface | |
| JPS6275586A (en) | Color graphic display controller | |
| JPH06161408A (en) | Display controller | |
| JPH01283593A (en) | Access system for display memory | |
| JPH01197834A (en) | Vram control circuit | |
| JPH04336595A (en) | Graphic display device | |
| JPS622373A (en) | Automate color varying device | |
| JPS63172332A (en) | Semiconductor integrated circuit device | |
| JPS62109121A (en) | Display device for still picture | |
| JPS62174791A (en) | Display unit |