JPH09160528A - Micro-controller - Google Patents

Micro-controller

Info

Publication number
JPH09160528A
JPH09160528A JP7320842A JP32084295A JPH09160528A JP H09160528 A JPH09160528 A JP H09160528A JP 7320842 A JP7320842 A JP 7320842A JP 32084295 A JP32084295 A JP 32084295A JP H09160528 A JPH09160528 A JP H09160528A
Authority
JP
Japan
Prior art keywords
address
video memory
instruction
data
instruction decoder
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
JP7320842A
Other languages
Japanese (ja)
Inventor
Hisashi Tada
久 多田
Eiji Yokogawa
英二 横川
Kazuhiro Yamamoto
和弘 山本
Isao Teranishi
勲 寺西
Yuichi Kubo
雄一 久保
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.)
Kokusai Electric Corp
Original Assignee
Kokusai 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 Kokusai Electric Corp filed Critical Kokusai Electric Corp
Priority to JP7320842A priority Critical patent/JPH09160528A/en
Publication of JPH09160528A publication Critical patent/JPH09160528A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)
  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve the image processing speed by generating each address in accordance with the instruction from an instruction decoder in a synchronous manner with strobe signal. SOLUTION: The instruction decoder 5' receives the instruction to read the data, and outputs selected signal to a video memory. When the instruction decoder 5' outputs the address data of line address to an address signal generating circuit 2 at the timing of the output of the line address strobe signal, the video memory receives the address data from the address signal generating circuit 2 to select the corresponding memory region. When a video memory control signal generating circuit 9' generates the column address strobe signal, the instruction decoder 5' outputs the address data of the column address to the address signal generating circuit 2 at the timing, and selects the column address present in the selected line address.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、容量の大きい画像
を取り扱う画像データ制御システムを制御するマイクロ
コントローラに係り、特に、処理速度を向上できるマイ
クロコントローラに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcontroller for controlling an image data control system that handles a large volume image, and more particularly to a microcontroller capable of improving processing speed.

【0002】[0002]

【従来の技術】従来のマイクロコントローラについて図
3を使って説明する。図3は、従来のマイクロコントロ
ーラとその周辺部分の一部を表す構成ブロック図であ
る。従来のマイクロコントローラは、図3に示すよう
に、プログラムカウンタ1と、アドレス信号発生回路2
と、データ入出力制御回路3と、内部データバス4と、
インストラクションデコーダ5と、外部メモリ制御信号
発生回路6と、外部入出力データ制御信号発生回路7
と、内部メモリ8とから構成されている。
2. Description of the Related Art A conventional microcontroller will be described with reference to FIG. FIG. 3 is a configuration block diagram showing a conventional microcontroller and part of its peripheral portion. As shown in FIG. 3, the conventional microcontroller includes a program counter 1 and an address signal generating circuit 2.
A data input / output control circuit 3, an internal data bus 4,
Instruction decoder 5, external memory control signal generation circuit 6, and external input / output data control signal generation circuit 7
And an internal memory 8.

【0003】また、マイクロコントローラの周辺部分と
して、ビデオメモリ制御信号発生回路9と、スイッチ1
0とを図示している。さらに、図示していないが、少な
くとも外部メモリと、プログラムとしてインストラクシ
ョンを格納しているROMとが接続されるようになって
いる。
As a peripheral part of the microcontroller, a video memory control signal generating circuit 9 and a switch 1 are provided.
0 is illustrated. Further, although not shown, at least an external memory and a ROM storing instructions as a program are connected.

【0004】以下、各部の働きを具体的に説明する。プ
ログラムカウンタ1は、カウンタであって、一定時間毎
にカウント値をインクリメントし、それをアドレス信号
発生回路2に出力するものである。また、プログラムカ
ウンタ1は、後述するインストラクションデコーダ5か
ら入力する値にカウント値をリセットするものである。
さらに、プログラムカウンタ1は、電源投入直後は、あ
らかじめ設定されている特定の値にカウント値をリセッ
トするものである。
The functions of the respective parts will be specifically described below. The program counter 1 is a counter, which increments the count value at regular time intervals and outputs it to the address signal generation circuit 2. The program counter 1 resets the count value to a value input from the instruction decoder 5 described later.
Further, the program counter 1 resets the count value to a preset specific value immediately after the power is turned on.

【0005】アドレス信号発生回路2は、インストラク
ションデコーダ5からの指示を受けて、プログラムカウ
ンタ1からの入力されるカウント値をアドレスとして出
力するものである。また、アドレス信号発生回路2は、
インストラクションデコーダ5からの指示を受けて、イ
ンストラクションデコーダ5及び内部メモリ8から入力
される値を出力するものである。
The address signal generating circuit 2 receives an instruction from the instruction decoder 5 and outputs the count value input from the program counter 1 as an address. Further, the address signal generation circuit 2 is
Upon receiving an instruction from the instruction decoder 5, the value input from the instruction decoder 5 and the internal memory 8 is output.

【0006】データ入出力制御回路3は、従来のマイク
ロコントローラの外部(周辺部)のデータバスに接続さ
れており、周辺部と内部データバス4との間でデータの
やりとりを行うものである。内部データバス4は、デー
タ入出力制御回路3とインストラクションデコーダ5と
内部メモリ8とに接続され、相互にデータのやりとりを
行うものである。尚、内部データバス4は、図3には図
示されていないが、外部に出力するためのデータバスA
(出力用データバス)と、外部から入力されるためのデ
ータバスB(入力用データバス)の2つに分離されてい
るのが普通である。そこで、以下でこの両者について特
に区別する必要がある場合には、上記の符号、A又はB
をつけて区別することにする。
The data input / output control circuit 3 is connected to an external (peripheral portion) data bus of the conventional microcontroller, and exchanges data between the peripheral portion and the internal data bus 4. The internal data bus 4 is connected to the data input / output control circuit 3, the instruction decoder 5, and the internal memory 8 and exchanges data with each other. Although not shown in FIG. 3, the internal data bus 4 is a data bus A for outputting to the outside.
It is usually separated into two (output data bus) and data bus B (input data bus) for input from the outside. Therefore, in the following, when it is necessary to make a distinction between these two, the above-mentioned code, A or B
Will be attached to distinguish.

【0007】インストラクションデコーダ5は、データ
入出力制御回路3及び内部データバス4を介して周辺部
にあるROMからインストラクションの入力を受け、そ
のインストラクションに従って、外部メモリ制御信号発
生回路6と、外部入出力データ制御信号発生回路7とに
読み出し信号(以下、単にリード信号と称する)又は、
書き込み信号(以下、単にライト信号と称する)又は、
選択信号を出力するものである。ここで、選択信号と
は、特定の外部装置、例えば外部メモリ、伝送装置、デ
ィスク装置等のどの装置に対して書き込みの命令又は読
み出しの命令を出力するのかを選択する信号である。
The instruction decoder 5 receives an instruction input from the ROM in the peripheral portion via the data input / output control circuit 3 and the internal data bus 4, and in accordance with the instruction, the external memory control signal generation circuit 6 and the external input / output. A read signal (hereinafter simply referred to as a read signal) to the data control signal generation circuit 7, or
Write signal (hereinafter simply referred to as write signal), or
It outputs a selection signal. Here, the selection signal is a signal for selecting which of a specific external device, for example, an external memory, a transmission device, a disk device, or the like, to which the write command or the read command is output.

【0008】また、インストラクションデコーダ5は、
周辺部のROMに選択信号を出力している間は、アドレ
ス信号発生回路2にプログラムカウンタ1のカウント値
を出力させ、データ入出力制御回路3及び内部データバ
ス4を介して周辺部にあるROMからインストラクショ
ンの入力を受けるものである。
Further, the instruction decoder 5 is
While the selection signal is being output to the peripheral ROM, the address signal generating circuit 2 is caused to output the count value of the program counter 1, and the ROM in the peripheral portion is supplied via the data input / output control circuit 3 and the internal data bus 4. It receives input of instructions from.

【0009】そして、ROMからのインストラクション
がアドレス信号発生回路2からの出力を当該外部メモリ
以外の装置の制御のための信号として使うものである場
合には、インストラクションデコーダ5は、そのインス
トラクションに指定された値をアドレス信号発生回路2
に出力するものである。
When the instruction from the ROM uses the output from the address signal generating circuit 2 as a signal for controlling a device other than the external memory, the instruction decoder 5 is designated by the instruction. Address signal generation circuit 2
Is output to

【0010】また、該インストラクションが、内部メモ
リ8に格納されている値を出力するよう指示するもので
ある場合には、インストラクションデコーダ5は、内部
メモリ8に格納されている値をアドレス信号発生回路2
に出力させるものである。
When the instruction is an instruction to output the value stored in the internal memory 8, the instruction decoder 5 outputs the value stored in the internal memory 8 to the address signal generating circuit. Two
To output.

【0011】さらに、インストラクションデコーダ5
は、内部メモリ8に対して、内部データバス4から入力
されるデータを格納するように又は格納しているデータ
を内部データバス4に出力するように指示するものであ
る。
Further, the instruction decoder 5
Is to instruct the internal memory 8 to store the data input from the internal data bus 4 or to output the stored data to the internal data bus 4.

【0012】外部メモリ制御信号発生回路6は、インス
トラクションデコーダ5から入力されるリード信号又は
ライト信号を外部メモリ制御信号として周辺部のスイッ
チ10に出力するものである。外部入出力データ制御信
号発生回路7は、伝送装置、ディスク装置等の外部装置
を駆動する信号を出力するものであり、具体的には、イ
ンストラクションデコーダ5から入力されるリード信号
又はライト信号を外部入出力データ制御信号として出力
するものである。
The external memory control signal generation circuit 6 outputs the read signal or the write signal input from the instruction decoder 5 to the peripheral switch 10 as an external memory control signal. The external input / output data control signal generation circuit 7 outputs a signal for driving an external device such as a transmission device or a disk device. Specifically, the read / write signal input from the instruction decoder 5 is output to the outside. It is output as an input / output data control signal.

【0013】内部メモリ8は、インストラクションデコ
ーダ5の指示によって内部データバス4から入力される
データを格納し、または格納しているデータを内部デー
タバス4に出力するものである。
The internal memory 8 stores data input from the internal data bus 4 according to an instruction from the instruction decoder 5 or outputs the stored data to the internal data bus 4.

【0014】次に、図3に図示されている周辺部の各部
について説明する。ビデオメモリ制御信号発生回路9
は、スイッチ10から入力される外部メモリ制御信号を
ビデオメモリ(図示せず)に出力するものである。尚、
ビデオメモリは、図4に示すように、外部メモリの一部
を用いて実現されていてもよい。図4は、本従来のマイ
クロコントローラを用いた画像データ制御システムにお
けるメモリの利用形態の一例を表す説明図である。
Next, each part of the peripheral part shown in FIG. 3 will be described. Video memory control signal generation circuit 9
Outputs an external memory control signal input from the switch 10 to a video memory (not shown). still,
The video memory may be realized by using a part of an external memory as shown in FIG. FIG. 4 is an explanatory diagram showing an example of the usage pattern of the memory in the image data control system using the conventional microcontroller.

【0015】スイッチ10は、選択信号の入力を受け
て、マイクロコントローラがビデオメモリをアクセスす
るものと判断すると、外部メモリ制御信号発生回路6の
出力をビデオメモリ制御信号発生回路9に出力するよう
接続するものである。また、スイッチ10は、選択信号
の入力を受けて、マイクロコントローラがビデオメモリ
をアクセスしないものと判断すると、外部メモリ制御信
号発生回路6の出力を外部メモリに出力するよう接続す
るものである。
The switch 10 is connected so as to output the output of the external memory control signal generating circuit 6 to the video memory control signal generating circuit 9 when receiving the selection signal and determining that the microcontroller accesses the video memory. To do. Further, the switch 10 is connected so as to output the output of the external memory control signal generating circuit 6 to the external memory when receiving the selection signal and determining that the microcontroller does not access the video memory.

【0016】次に、従来のマイクロコントローラの動作
について、マイクロコントローラが画像制御を行う場合
を例にとって説明する。まず、周辺部のROMからイン
ストラクションを得る動作について説明すると、インス
トラクションデコーダ5が周辺部のROMに選択信号を
出力し、それに伴ってインストラクションデコーダ5が
プログラムカウンタ1のカウント値を特定値にリセット
させると、プログラムカウンタ1がアドレス信号発生回
路2はそのカウント値をアドレスとして出力するように
なる。
Next, the operation of the conventional microcontroller will be described by taking the case where the microcontroller performs image control as an example. First, the operation of obtaining an instruction from the peripheral ROM will be described. When the instruction decoder 5 outputs a selection signal to the peripheral ROM, the instruction decoder 5 resets the count value of the program counter 1 to a specific value accordingly. The program counter 1 causes the address signal generation circuit 2 to output the count value as an address.

【0017】すると、ROMがそのアドレスに格納され
ているインストラクションを外部データバスを介してデ
ータ入出力制御回路3に出力する。そしてインストラク
ションはデータ入出力制御回路3によって内部データバ
ス4に出力され、インストラクションデコーダ5に出力
される。
Then, the ROM outputs the instruction stored at the address to the data input / output control circuit 3 via the external data bus. Then, the instruction is output to the internal data bus 4 by the data input / output control circuit 3 and output to the instruction decoder 5.

【0018】次に、インストラクションが、画像制御を
行うためのものである場合について説明する。従来のマ
イクロコントローラでは、画像制御を行うための専用の
インストラクションがないので、その内容は、インスト
ラクションデコーダ5に対して第一段階としてビデオメ
モリのアクセスを行う選択信号を出力させ、第二段階と
して外部メモリ制御信号発生回路6にリード信号又はラ
イト信号を出力させ、第三段階として、アドレス信号発
生回路2にアクセスするアドレスを出力させ、そして、
第四段階として内部データバス4とデータのやりとりを
させるものになっている。
Next, a case where the instruction is for performing image control will be described. Since the conventional microcontroller does not have a dedicated instruction for performing image control, the contents of the instruction are as follows: the instruction decoder 5 outputs the selection signal for accessing the video memory as the first step, and the external step as the second step. The memory control signal generating circuit 6 is caused to output a read signal or a write signal, and the third step is to cause the address signal generating circuit 2 to output an address to be accessed, and
As the fourth step, data is exchanged with the internal data bus 4.

【0019】そこで、以下、各段階について動作を具体
的に説明する。尚、説明を容易にするために、以下では
ビデオメモリに対して書き込みを行う場合を特に説明す
ることとする。第一段階では、インストラクションデコ
ーダ5が、内部データバス4のデータバスB(入力用デ
ータバス)を介して受け取ったインストラクションに従
って、ビデオメモリをアクセスするための選択信号を出
力する。すると、その入力を受けたスイッチ10が、外
部メモリ制御信号発生回路6の出力をビデオメモリ制御
信号発生回路9に接続する。
Therefore, the operation of each stage will be specifically described below. In order to facilitate the description, the case of writing to the video memory will be particularly described below. In the first stage, the instruction decoder 5 outputs a selection signal for accessing the video memory according to the instruction received via the data bus B (input data bus) of the internal data bus 4. Then, the switch 10 receiving the input connects the output of the external memory control signal generating circuit 6 to the video memory control signal generating circuit 9.

【0020】そして、第二段階では、インストラクショ
ンデコーダ5が外部メモリ制御信号発生回路6にライト
信号を出力する。ライト信号は、外部メモリ制御信号発
生回路6から外部メモリ制御信号としてスイッチ10を
介してビデオメモリ制御信号発生回路9に出力され、そ
して、ビデオメモリは、書き込み可能状態になる。
Then, in the second stage, the instruction decoder 5 outputs a write signal to the external memory control signal generating circuit 6. The write signal is output from the external memory control signal generation circuit 6 to the video memory control signal generation circuit 9 as an external memory control signal via the switch 10, and the video memory is put into a writable state.

【0021】そして、第三段階では、インストラクショ
ンデコーダ5が、内部データバス4のデータバスB(入
力用データバス)を介してインストラクションを受け取
り、演算装置(図示せず)を用いて画面上の特定の座標
に描画を行うために、その座標のデータが格納されてい
るアドレスを演算させて求め、内部メモリ8にそのアド
レスを格納させる。
Then, in the third stage, the instruction decoder 5 receives the instruction via the data bus B (input data bus) of the internal data bus 4 and specifies it on the screen by using an arithmetic unit (not shown). In order to draw at the coordinates of, the address at which the data of the coordinates is stored is calculated and obtained, and that address is stored in the internal memory 8.

【0022】この演算について具体的に図4を用いて説
明すると、画面のイメージは走査方向にピクセル毎に1
つのアドレスを割り当てられて格納されており、従っ
て、画面のイメージはメモリ上にリニアに展開されてい
るようになっている。そして、インストラクションデコ
ーダ5が、内部メモリ8に格納されたアドレスをアドレ
ス信号発生回路2を介して出力させる。
This operation will be specifically described with reference to FIG. 4. The image on the screen is 1 for each pixel in the scanning direction.
One address is allocated and stored, so that the screen image is linearly expanded in the memory. Then, the instruction decoder 5 outputs the address stored in the internal memory 8 via the address signal generating circuit 2.

【0023】更に、第四段階では、インストラクション
デコーダ5が、内部データバス4のデータバスA(出力
用データバス)にデータを送信する。すると、データ入
出力制御回路3が、このデータをビデオメモリに出力す
るようになり、ビデオメモリの当該アドレスにデータが
格納されるようになる。
Further, in the fourth stage, the instruction decoder 5 transmits data to the data bus A (output data bus) of the internal data bus 4. Then, the data input / output control circuit 3 outputs this data to the video memory, and the data is stored in the address of the video memory.

【0024】[0024]

【発明が解決しようとする課題】しかしながら、上記従
来のマイクロコントローラでは、上記第三段階における
演算の過程、つまり、リニアに展開されたデータを画面
イメージに変換する作業がビデオメモリにアクセスする
毎に発生しているので、効率が悪く、特に容量の大きい
画像を取り扱う画像制御システムの制御を行う際には処
理速度が著しく低下するという問題点があった。
However, in the above-mentioned conventional microcontroller, the process of the operation in the third step, that is, the work of converting the linearly expanded data into the screen image, every time the video memory is accessed. Since it occurs, there is a problem that the efficiency is low and the processing speed is remarkably reduced when controlling the image control system which handles an image having a large capacity.

【0025】本発明は上記実情に鑑みて為されたもの
で、処理速度を低下させることなく、画像制御システム
を効率的に制御することができるマイクロコントローラ
を提供することを目的とする。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a microcontroller capable of efficiently controlling an image control system without reducing the processing speed.

【0026】[0026]

【課題を解決するための手段】上記従来例の問題点を解
決するための本発明は、マイクロコントローラにおい
て、ラインとコラムからなる2次元配列構造のビデオメ
モリをアクセスするための命令を解釈し、前記ビデオメ
モリに選択信号を出力するインストラクションデコーダ
と、前記ビデオメモリに対するデータの入出力を行うデ
ータ入出力制御回路と、前記インストラクションデコー
ダからの指示で前記ビデオメモリのラインとコラムのい
ずれかを選択するストローブ信号を発生させるビデオメ
モリ制御信号発生回路と、前記インストラクションデコ
ーダからの指示でラインとコラムのアドレスを前記スト
ローブ信号に同期して発生させるアドレス信号発生回路
とを有することを特徴としており、ビデオメモリのアド
レスと画面イメージの間の変換の演算を省略でき、画像
処理の速度向上を図ることができる。
SUMMARY OF THE INVENTION The present invention for solving the above-mentioned problems of the prior art is to interpret an instruction for accessing a video memory having a two-dimensional array structure consisting of lines and columns in a microcontroller, An instruction decoder that outputs a selection signal to the video memory, a data input / output control circuit that inputs and outputs data to and from the video memory, and selects one of a line and a column of the video memory according to an instruction from the instruction decoder. A video memory control signal generating circuit for generating a strobe signal; and an address signal generating circuit for generating a line and column address in synchronization with the strobe signal in response to an instruction from the instruction decoder. Address and screen image Can be omitted computing of the conversion between, it is possible to speed up the image processing.

【0027】[0027]

【発明の実施の形態】本発明の実施の形態を図面を参照
しながら説明する。本発明に係るマイクロコントローラ
(本マイクロコントローラ)は、ビデオメモリにアクセ
スをするための専用のインストラクションをインストラ
クションデコーダに解釈させることによって、外部メモ
リとビデオメモリとの間で異なるメモリアクセス方式を
採用できるようにし、それを利用してビデオメモリのア
ドレスと画面イメージの間の変換の演算を省略できるよ
うにして、処理速度の向上を図るものである。
Embodiments of the present invention will be described with reference to the drawings. The micro controller according to the present invention (the present micro controller) allows the instruction decoder to interpret a dedicated instruction for accessing the video memory so as to adopt different memory access methods between the external memory and the video memory. By utilizing this, the calculation of conversion between the address of the video memory and the screen image can be omitted to improve the processing speed.

【0028】本マイクロコントローラを図1を使って説
明する。図1は、本発明に係るマイクロコントローラの
構成ブロック図である。図1に示すように、本マイクロ
コントローラは、プログラムカウンタ1と、アドレス信
号発生回路2と、データ入出力制御回路3と、内部デー
タバス4と、インストラクションデコーダ5′と、外部
メモリ制御信号発生回路6と、外部入出力データ制御信
号発生回路7と、内部メモリ8と、ビデオメモリ制御信
号発生回路9′とから構成されている。
The present microcontroller will be described with reference to FIG. FIG. 1 is a configuration block diagram of a microcontroller according to the present invention. As shown in FIG. 1, the present microcontroller includes a program counter 1, an address signal generation circuit 2, a data input / output control circuit 3, an internal data bus 4, an instruction decoder 5 ', and an external memory control signal generation circuit. 6, an external input / output data control signal generation circuit 7, an internal memory 8 and a video memory control signal generation circuit 9 '.

【0029】また、本マイクロコントローラの周辺部分
として、図示はしていないが、少なくとも外部メモリ
と、インストラクションを格納しているROMと、ビデ
オメモリとが接続されている。尚、ここで、ビデオメモ
リは、2次元の配列の構造を有するメモリであり、具体
的には、第1のアドレス(ラインアドレス)と第2のア
ドレス(カラムアドレス)との2つのアドレスの指定を
受けて読み出し、書き込みを行うものである。
Although not shown, as a peripheral portion of the present microcontroller, at least an external memory, a ROM storing instructions, and a video memory are connected. Here, the video memory is a memory having a two-dimensional array structure, and specifically, two addresses of a first address (line address) and a second address (column address) are designated. In response to this, reading and writing are performed.

【0030】以下、各部を具体的に説明するが、プログ
ラムカウンタ1と、アドレス信号発生回路2と、データ
入出力制御回路3と、内部データバス4と、外部メモリ
制御信号発生回路6と、外部入出力データ制御信号発生
回路7と、内部メモリ8とは、従来のものと同様のもの
であるので、ここではその説明を省略する。
Each part will be specifically described below. A program counter 1, an address signal generating circuit 2, a data input / output control circuit 3, an internal data bus 4, an external memory control signal generating circuit 6 and an external circuit. Since the input / output data control signal generating circuit 7 and the internal memory 8 are the same as those of the conventional one, their explanations are omitted here.

【0031】インストラクションデコーダ5′は、従来
のものとほぼ同様のものであるが、画像制御専用のイン
ストラクションを解釈できるところが従来と異なってい
る。そこで、ここでは画像制御専用のインストラクショ
ンを受けたときの動作についてのみ説明すると、インス
トラクションデコーダ5′は、画像制御専用のインスト
ラクションを解釈し、ビデオメモリにアクセスする必要
があると判断すると、ビデオメモリに選択信号を出力
し、ビデオメモリ制御信号発生回路9′にリード信号又
はライト信号を制御信号として出力するようになってい
る。
The instruction decoder 5'is almost the same as the conventional one, but is different from the conventional one in that it can interpret an instruction dedicated to image control. Therefore, here, only the operation when receiving the instruction dedicated to the image control will be described. The instruction decoder 5'interprets the instruction dedicated to the image control, and if it judges that the video memory needs to be accessed, the instruction memory 5'will be stored in the video memory. A selection signal is output and a read signal or a write signal is output as a control signal to the video memory control signal generation circuit 9 '.

【0032】そして、インストラクションデコーダ5′
は、ビデオメモリに選択信号を出力している間は、アド
レス信号発生回路2にインストラクションデコーダ5′
又は内部メモリ8から入力されるデータを出力させるよ
うにする。
The instruction decoder 5 '
Is outputting an instruction decoder 5'to the address signal generating circuit 2 while the selection signal is being output to the video memory.
Alternatively, the data input from the internal memory 8 is output.

【0033】ビデオメモリ制御信号発生回路9′は、外
部のビデオメモリに接続されており、入力される制御信
号をビデオメモリ制御信号としてビデオメモリに出力す
るものである。
The video memory control signal generating circuit 9'is connected to an external video memory and outputs the input control signal to the video memory as a video memory control signal.

【0034】また、ビデオメモリ制御信号発生回路9′
は、ラインアドレスストローブ信号と、カラムアドレス
ストローブ信号とを、この順番でビデオメモリに出力す
るものである。
The video memory control signal generation circuit 9 '
Outputs the line address strobe signal and the column address strobe signal to the video memory in this order.

【0035】ここでインストラクションデコーダ5′が
アドレス信号発生回路2にアドレスデータを出力し、ビ
デオメモリをアクセスする方法について、図2を参照し
ながら以下に具体的に説明する。図2は、本実施の形態
のマイクロコントローラが管理するビデオメモリの内容
を表す説明図である。
Here, a method in which the instruction decoder 5'outputs address data to the address signal generating circuit 2 to access the video memory will be specifically described below with reference to FIG. FIG. 2 is an explanatory diagram showing the contents of the video memory managed by the microcontroller of this embodiment.

【0036】インストラクションデコーダ5′は、ビデ
オメモリ制御信号発生回路9′がラインアドレスストロ
ーブ信号を出力しているタイミングに同期して、ライン
アドレスを出力する。すると、例えば、ラインアドレス
として、「0」が出力されているとすると、ビデオメモ
リ上では、「0,0」から「1023,0」が選択され
ているようになっている。
The instruction decoder 5'outputs the line address in synchronization with the timing at which the video memory control signal generating circuit 9'outputs the line address strobe signal. Then, for example, if "0" is output as the line address, "0,0" to "1023,0" are selected on the video memory.

【0037】そして、インストラクションデコーダ5′
は、ビデオメモリ制御信号発生回路9′がカラムアドレ
スストローブ信号を出力するタイミングに同期して、カ
ラムアドレスを出力するようになる。すると、例えば、
カラムアドレスとして「1023」が出力されている
と、ビデオメモリ上では、先に選択された「0,0」か
ら「1023,0」の範囲から、「1023,0」が選
択される。
Then, the instruction decoder 5 '
Outputs the column address in synchronization with the timing at which the video memory control signal generation circuit 9'outputs the column address strobe signal. Then, for example,
When “1023” is output as the column address, “1023,0” is selected from the previously selected range of “0,0” to “1023,0” on the video memory.

【0038】そして、ビデオメモリが「1023,0」
の画素の情報を出力し(リードの場合)、若しくは変更
する(ライトの場合)。
The video memory is "1023,0".
The pixel information of is output (for reading) or changed (for writing).

【0039】次に、本マイクロコントローラの動作につ
いて本マイクロコントローラの特徴部分である、ビデオ
メモリにアクセスする動作について説明する。尚、以下
ではビデオメモリの内容を読み取る動作を説明している
が、書き込み動作も本質的には同じものであるので、そ
の説明を省略する。
Next, the operation of the present microcontroller, which is a characteristic part of the present microcontroller, will be described. Although the operation of reading the contents of the video memory is described below, the writing operation is essentially the same, and therefore the description thereof is omitted.

【0040】インストラクションデコーダ5′が、イン
ストラクションとして、データをビデオメモリから読み
取るべき指示を受けると、ビデオメモリに選択信号を出
力し、そして、ビデオメモリ制御信号発生回路9′にリ
ード信号を制御信号として出力する。
When the instruction decoder 5'receives, as an instruction, an instruction to read data from the video memory, it outputs a selection signal to the video memory, and the video memory control signal generation circuit 9'uses the read signal as a control signal. Output.

【0041】そして、ビデオメモリ制御信号発生回路
9′が、ラインアドレスストローブ信号を出力すると、
そのタイミングに一致して、インストラクションデコー
ダ5′がアドレス信号発生回路2にラインアドレスのア
ドレスデータを出力する。
When the video memory control signal generation circuit 9'outputs the line address strobe signal,
At the same timing, the instruction decoder 5'outputs the address data of the line address to the address signal generating circuit 2.

【0042】すると、ビデオメモリがアドレス信号発生
回路2からラインアドレスのアドレスデータの入力を受
け、そのラインアドレスに対応するメモリの領域を選択
する。そして、ビデオメモリ制御信号発生回路9′が、
カラムアドレスストローブ信号を出力すると、そのタイ
ミングに一致して、インストラクションデコーダ5′が
アドレス信号発生回路2にカラムアドレスのアドレスデ
ータを出力する。
Then, the video memory receives the address data of the line address from the address signal generating circuit 2 and selects the memory area corresponding to the line address. Then, the video memory control signal generation circuit 9 '
When the column address strobe signal is output, the instruction decoder 5 ′ outputs the address data of the column address to the address signal generating circuit 2 at the same timing.

【0043】すると、ビデオメモリがアドレス信号発生
回路2からカラムアドレスのアドレスデータの入力を受
けて、すでに選択されたラインアドレスに在中するカラ
ムアドレスを選択する。すると、ビデオメモリ上の1画
素に対応するアドレスが選択されているようになる。
Then, the video memory receives the address data of the column address from the address signal generating circuit 2 and selects the column address existing in the already selected line address. Then, the address corresponding to one pixel on the video memory is selected.

【0044】そして、データ入出力制御回路3がビデオ
メモリから、外部データバス(図示せず)を介してデー
タを受け取るようになり、これを内部データバス4に出
力する。そして、インストラクションデコーダ5′がイ
ンストラクションに従って、内部データバス4からデー
タを受け取るようになる。
Then, the data input / output control circuit 3 comes to receive data from the video memory via the external data bus (not shown), and outputs it to the internal data bus 4. Then, the instruction decoder 5 ′ receives data from the internal data bus 4 according to the instruction.

【0045】本実施の形態のマイクロコントローラによ
れば、ビデオメモリでのデータ格納状態と画面イメージ
の状態とを同様にして、画面上の座標からアドレスに変
換する処理を行わずに、ビデオメモリの該当するアドレ
スにアクセスできるようにしているので、画像制御の処
理速度を向上できる効果がある。
According to the microcontroller of the present embodiment, the data storage state in the video memory and the state of the screen image are set in the same manner without performing the process of converting the coordinates on the screen to the address. Since the corresponding address can be accessed, the processing speed of image control can be improved.

【0046】[0046]

【発明の効果】本発明によれば、インストラクションデ
コーダでビデオメモリをアクセスするための命令を解釈
してビデオメモリに選択信号を出力し、データ入出力制
御回路でビデオメモリに対するデータの入出力を行い、
ビデオメモリ制御信号発生回路でインストラクションデ
コーダからの指示に従ってビデオメモリのラインとカラ
ムのいずれかを選択するストローブ信号を発生させ、ア
ドレス信号発生回路でインストラクションデコーダから
の指示に従ったライン又はコラムのアドレスをストロー
ブ信号に同期して発生させるマイクロコントローラとし
ているので、ビデオメモリでのデータ格納状態と画面イ
メージの状態とを同様にでき、ビデオメモリのアドレス
と画面イメージの間の変換の演算を省略でき、画像処理
の速度向上を図ることができる効果がある。
According to the present invention, an instruction decoder interprets an instruction for accessing a video memory, outputs a selection signal to the video memory, and a data input / output control circuit inputs / outputs data to / from the video memory. ,
The video memory control signal generation circuit generates a strobe signal for selecting either the line or the column of the video memory according to the instruction from the instruction decoder, and the address signal generation circuit generates the address of the line or column according to the instruction from the instruction decoder. Since it is a microcontroller that is generated in synchronism with the strobe signal, the data storage state in the video memory and the screen image state can be made the same, the calculation of conversion between the video memory address and the screen image can be omitted, and the image There is an effect that the processing speed can be improved.

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

【図1】本発明に係るマイクロコントローラの構成ブロ
ック図である。
FIG. 1 is a configuration block diagram of a microcontroller according to the present invention.

【図2】本実施の形態のマイクロコントローラが管理す
るビデオメモリの内容を表す説明図である。
FIG. 2 is an explanatory diagram showing the contents of a video memory managed by the microcontroller of the present embodiment.

【図3】従来のマイクロコントローラとその周辺部分の
一部を表す構成ブロック図である。
FIG. 3 is a configuration block diagram showing a conventional microcontroller and part of its peripheral portion.

【図4】本従来のマイクロコントローラを用いた画像デ
ータ制御システムにおけるメモリの利用形態の一例を表
す説明図である。
FIG. 4 is an explanatory diagram showing an example of a usage form of a memory in an image data control system using the conventional microcontroller.

【符号の説明】[Explanation of symbols]

1…プログラムカウンタ、 2…アドレス信号発生回
路、 3…データ入出力回路、 4…内部データバス、
5,5′…インストラクションデコーダ、 6…外部
メモリ制御信号発生回路、 7…外部入出力データ制御
信号発生回路、8…内部メモリ、 9,9′…ビデオメ
モリ制御信号発生回路、 10…スイッチ
1 ... Program counter, 2 ... Address signal generation circuit, 3 ... Data input / output circuit, 4 ... Internal data bus,
5, 5 '... Instruction decoder, 6 ... External memory control signal generating circuit, 7 ... External input / output data control signal generating circuit, 8 ... Internal memory, 9, 9' ... Video memory control signal generating circuit, 10 ... Switch

───────────────────────────────────────────────────── フロントページの続き (72)発明者 寺西 勲 東京都中野区東中野三丁目14番20号 国際 電気株式会社内 (72)発明者 久保 雄一 東京都中野区東中野三丁目14番20号 国際 電気株式会社内 ─────────────────────────────────────────────────── ─── Continued Front Page (72) Inventor Isao Teranishi 3-14-20 Higashi-Nakano, Nakano-ku, Tokyo Kokusai Electric Co., Ltd. (72) Inventor Yuichi Kubo 3-14-20 Higashi-Nakano, Nakano-ku, Tokyo Kokusai Electric Within the corporation

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ラインとコラムからなる2次元配列構造
のビデオメモリをアクセスするための命令を解釈し、前
記ビデオメモリに選択信号を出力するインストラクショ
ンデコーダと、前記ビデオメモリに対するデータの入出
力を行うデータ入出力制御回路と、前記インストラクシ
ョンデコーダからの指示で前記ビデオメモリのラインと
コラムのいずれかを選択するストローブ信号を発生させ
るビデオメモリ制御信号発生回路と、前記インストラク
ションデコーダからの指示でラインとコラムのアドレス
を前記ストローブ信号に同期して発生させるアドレス信
号発生回路とを有することを特徴とするマイクロコント
ローラ。
1. An instruction decoder for interpreting an instruction for accessing a video memory having a two-dimensional array structure including lines and columns and outputting a selection signal to the video memory, and inputting / outputting data to / from the video memory. A data input / output control circuit, a video memory control signal generation circuit that generates a strobe signal that selects one of a line and a column of the video memory according to an instruction from the instruction decoder, and a line and a column according to an instruction from the instruction decoder. And an address signal generation circuit for generating the address of 1 in synchronization with the strobe signal.
JP7320842A 1995-12-08 1995-12-08 Micro-controller Pending JPH09160528A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7320842A JPH09160528A (en) 1995-12-08 1995-12-08 Micro-controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7320842A JPH09160528A (en) 1995-12-08 1995-12-08 Micro-controller

Publications (1)

Publication Number Publication Date
JPH09160528A true JPH09160528A (en) 1997-06-20

Family

ID=18125859

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7320842A Pending JPH09160528A (en) 1995-12-08 1995-12-08 Micro-controller

Country Status (1)

Country Link
JP (1) JPH09160528A (en)

Similar Documents

Publication Publication Date Title
JPH06105429B2 (en) Micro program controller
JPH09160528A (en) Micro-controller
JP2000187983A (en) Memory device
JP4071930B2 (en) Synchronous DRAM
JPH0713869A (en) Data processing system with dynamic address converting function
JPH0246970B2 (en) MEMORIKA KUCHOHOSHIKI
KR0153537B1 (en) Signal processing structure preselecting memory address data
JP3131918B2 (en) Memory device
JP2622553B2 (en) Microcomputer
JPH01177145A (en) Information processor
JPH0512107A (en) Program execution system
JPH09251545A (en) Picture processor
CA1209273A (en) High-speed auxiliary computer plug-in units
JPH0314145A (en) Memory access circuit
JPH03214275A (en) Semiconductor integrated circuit
JPH01269140A (en) Memory extending circuit
JPH04120593A (en) Display data processing method for display device
JPH0540686A (en) Memory device
JPH05134921A (en) Memory space expanding system
JPH09269899A (en) Information processor
JPH058836B2 (en)
JPH05197615A (en) Rom/ram switching circuit for starting cpu
JPS63646A (en) Control circuit for memory access waiting
JPH01241644A (en) Microcomputer control circuit
JPH03141425A (en) Logic arithmetic system