JPH05108549A - Access method for memory - Google Patents
Access method for memoryInfo
- Publication number
- JPH05108549A JPH05108549A JP26501191A JP26501191A JPH05108549A JP H05108549 A JPH05108549 A JP H05108549A JP 26501191 A JP26501191 A JP 26501191A JP 26501191 A JP26501191 A JP 26501191A JP H05108549 A JPH05108549 A JP H05108549A
- Authority
- JP
- Japan
- Prior art keywords
- data
- memory
- cycle
- display
- memory access
- 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
Links
Landscapes
- Bus Control (AREA)
Abstract
(57)【要約】
【目的】 サイクルスチール法のメモリのアクセス方法
において、メモリに対し、大量のデータを高速に書き込
み及び読み出すことのできる方法を提供する。
【構成】 交互のインストラクションサイクル及びダイ
レクトメモリアクセスサイクルにおいて、それぞれメモ
リにデータを書き込み、そのメモリからデータを読み出
すようにしたサイクルスチール法のメモリのアクセス方
法において、ダイレクトメモリアクセスサイクルにおい
て、メモリから複数単位分ずつのデータを読み出して、
それぞれラッチし、そのラッチされた複数単位分ずつの
データを、インストラクションサイクル及びダイレクト
メモリサイクルにおいて所定単位分ずつ読み出す。
(57) [Summary] [Object] To provide a method of writing and reading a large amount of data to and from a memory at high speed in a memory access method of the cycle steal method. [Structure] In a memory access method of the cycle stealing method, in which data is written to a memory and data is read from the memory in alternate instruction cycles and direct memory access cycles, in a direct memory access cycle, a plurality of units from the memory Read the data for each minute,
The data is latched, and the latched data for each unit is read for each predetermined unit in the instruction cycle and the direct memory cycle.
Description
【0001】[0001]
【産業上の利用分野】本発明はサイクルスチール法のメ
モリのアクセス方法の改良に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to improvement of a memory access method of the cycle steal method.
【0002】[0002]
【従来の技術】マイクロコンピュータ(CPU:中央処
理装置)の制御の下に、データメモリに記憶されている
データをフレームメモリに書き込み、そのフレームメモ
リに記憶されているデータを読み出してディスプレイに
転送して表示させる場合のフレームメモリのアクセス方
法の従来例としては、2分割法やサイクルスチール法が
ある。これらの従来例を図1のタイミングチャートを参
照して説明する。2. Description of the Related Art Under the control of a microcomputer (CPU: central processing unit), data stored in a data memory is written in a frame memory, the data stored in the frame memory is read out and transferred to a display. As a conventional example of a frame memory access method in the case of displaying as a display, there are a two division method and a cycle steal method. These conventional examples will be described with reference to the timing chart of FIG.
【0003】2分割法では、ディスプレイに走査方式を
以て表示を行う場合の水平走査期間の内、水平帰線期間
でマイクロコンピュータの制御の下にフレームメモリに
データを書き込み、水平描画期間でそのフレームメモリ
からデータD0、D1、D2、‥‥‥‥‥‥を読み出し
て、所定の周波数のラッチクロック信号によってラッチ
回路にラッチし、それを読み出してディスプレイに転送
して表示させる。In the two-division method, data is written in a frame memory under the control of the microcomputer during the horizontal blanking period of the horizontal scanning period when the display is performed by the scanning method, and the frame memory is written during the horizontal drawing period. The data D0, D1, D2, ... Are read from the above, latched in the latch circuit by the latch clock signal of a predetermined frequency, read out, transferred to the display and displayed.
【0004】サイクルスチール法では、ディスプレイに
走査方式を以て表示を行う場合の水平走査期間内に交互
のインストラクションサイクル(CPUがバスを占有す
る期間)及びダイレクトメモリアクセスサイクルを設
け、インストラクションサイクルではマイクロコンピュ
ータの制御の下にフレームメモリにデータを書き込み、
ダイレクトメモリアクセスサイクルでそのフレームメモ
リからデータD0、D1、D2、‥‥‥‥‥‥を読み出
して、所定の周波数(2分割法の場合のラッチクロック
信号の周波数の1/2の周波数)のラッチクロック信号
によってラッチ回路にラッチし、それを読み出してディ
スプレイに転送して表示させるようにしている。In the cycle stealing method, alternating instruction cycles (the period in which the CPU occupies the bus) and direct memory access cycles are provided within the horizontal scanning period when the display is performed by the scanning method. Write data to frame memory under control,
In the direct memory access cycle, data D0, D1, D2, ... are read from the frame memory and latched at a predetermined frequency (half the frequency of the latch clock signal in the case of the two division method). It is latched in a latch circuit by a clock signal, read out and transferred to a display for display.
【0005】[0005]
【発明が解決しようとする課題】ところで、2分割法の
場合、ディスプレイに表示する画素の数が頗る多い場合
には、フレームメモリに書き込むデータの量も多く成る
ため、書き込みに要する時間もかなり長く成るため、デ
ィスプレイの表示のフィールド周波数がかなり低下して
しまう。又、ディスプレイに動画を表示させる場合に
は、フレームメモリに対するデータの書き込み自体が間
に合わなく成ってしまう。又、そのフレームメモリから
の読み出しタイミングは、ディスプレイの走査タイミン
グに合わせることに成るが、その場合、ダイレクトメモ
リアクセスサイクルの占有時間が長く成ってしまい、こ
のためインストラクションサイクルが短く成って、マイ
クロコンピュータの処理能力が低下してしまう。In the case of the two-division method, when the number of pixels displayed on the display is large, the amount of data to be written in the frame memory is large, so that the time required for writing is considerably long. Therefore, the display field frequency of the display is considerably lowered. Further, when a moving image is displayed on the display, the writing of data to the frame memory itself may be too late. Further, the read timing from the frame memory is adjusted to the scan timing of the display, but in that case, the occupied time of the direct memory access cycle becomes long, and therefore the instruction cycle becomes short and the microcomputer The processing capacity will decrease.
【0006】又、サイクルスチール法の場合は、インス
トラクションサイクルでは、フレームメモリから読み出
されたデータがディスプレイに転送されないという無駄
がある。Further, in the case of the cycle steal method, there is a waste that the data read from the frame memory is not transferred to the display in the instruction cycle.
【0007】かかる点に鑑み、本発明は、交互のインス
トラクションサイクル及びダイレクトメモリアクセスサ
イクルにおいて、それぞれメモリにデータを書き込み、
そのメモリからデータを読み出すようにしたサイクルス
チール法のメモリのアクセス方法において、メモリに対
し、大量のデータを高速に書き込み及び読み出すことの
できる方法を提案しようとするものである。In view of the above point, the present invention writes data in the memory in alternate instruction cycles and direct memory access cycles,
In a memory access method of the cycle steal method in which data is read from the memory, a method capable of writing and reading a large amount of data to and from the memory at high speed is proposed.
【0008】[0008]
【課題を解決するための手段及び作用】本発明は、交互
のインストラクションサイクル及びダイレクトメモリア
クセスサイクルにおいて、それぞれメモリにデータを書
き込み、そのメモリからデータを読み出すようにしたサ
イクルスチール法のメモリのアクセス方法において、ダ
イレクトメモリアクセスサイクルにおいて、上記メモリ
から複数単位分ずつのデータを読み出して、それぞれラ
ッチし、そのラッチされた複数単位分ずつのデータを、
インストラクションサイクル及びダイレクトメモリサイ
クルにおいて所定単位分ずつ読み出すようにしたもので
ある。SUMMARY OF THE INVENTION The present invention relates to a cycle steal method memory access method for writing data to a memory and reading data from the memory in alternate instruction cycles and direct memory access cycles. In the direct memory access cycle, a plurality of units of data are read from the memory, latched respectively, and the latched data of a plurality of units are
In the instruction cycle and the direct memory cycle, a predetermined unit is read out.
【0009】[0009]
【実施例】以下に、図1のタイミングチャート及び図2
の回路を参照して、本発明の実施例を詳細に説明する。
図1に示す如く、図2のディスプレイ3の表示の走査の
水平走査期間において、交互のインストラクションサイ
クル及びダイレクトメモリアクセスサイクルを設定す
る。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The timing chart of FIG. 1 and FIG.
Embodiments of the present invention will be described in detail with reference to the circuit of FIG.
As shown in FIG. 1, alternate instruction cycles and direct memory access cycles are set in the horizontal scanning period of the display scanning of the display 3 of FIG.
【0010】メインコントロール部1は、マイクロコン
ピュータ(CPU)4とデータメモリ5から構成され、
マイクロコンピュータ4の制御の下に、メモリ5からら
読み出されたデータを、インストラクションサイクルで
ディスプレイコントロール部2のフレームメモリ7に書
き込む。The main control section 1 is composed of a microcomputer (CPU) 4 and a data memory 5,
Under the control of the microcomputer 4, the data read from the memory 5 is written in the frame memory 7 of the display control unit 2 in the instruction cycle.
【0011】マイクロコンピュータ4からの制御信号が
ディスプレイコントローラ6に供給される。そして、デ
ィスプレイコントローラ6の制御の下に、フレーム7に
高速にアドレス信号を供給して、ダイレクトメモリアク
セスサイクルで、フレームメモリ7から例えば2単位
(3単位以上も可)分ずつのデータ(データ1)D0:
D1、D2:D3、‥‥‥‥を読み出して、それぞれラ
ッチ回路8、9にラッチさせる。ディスプレイコントロ
ーラ6は、ディスプレイ3の走査期間、行数等を制御す
る。A control signal from the microcomputer 4 is supplied to the display controller 6. Then, under the control of the display controller 6, an address signal is supplied to the frame 7 at high speed, and in the direct memory access cycle, for example, two units (three units or more) of data (data 1) can be supplied from the frame memory 7. ) D0:
D1, D2: D3, ... Are read and latched by the latch circuits 8 and 9, respectively. The display controller 6 controls the scanning period, the number of rows, etc. of the display 3.
【0012】ラッチ回路8、9にラッチされている2単
位分ずつのデータD0:D1、D2:D3、‥‥‥‥
を、サイクルスチール法と同じ周波数のラッチクロック
信号信号によって、インストラクションサイクル及びダ
イレクトメモリサイクルにおいてそれぞれ1単位(2単
位以上も可)分ずつ読み出し、マルチプレクサ10によ
って切り換えこのデータD0、D1、D2、D3、‥‥
‥‥をディスプレイ(CRT、LCD、プラズマディス
プレイ等)3に転送して表示させるようにする。The data D0: D1, D2: D3, which is latched by the latch circuits 8 and 9 for every two units, is ...
Is read by the latch clock signal signal of the same frequency as the cycle steal method in units of one unit (two units or more are possible) in each of the instruction cycle and the direct memory cycle, and is switched by the multiplexer 10 to output the data D0, D1, D2, D3, ‥‥‥
... is transferred to the display (CRT, LCD, plasma display, etc.) 3 and displayed.
【0013】かかるメモリのアクセス方法によれば、フ
レームメモリ7に対し大量のデータを高速に書き込み及
び読み出すことができる。大画素数のディスプレイ3
に、フレームメモリ7から高速にデータを供給すること
ができる。周辺コントローラの処理速度の低下が少な
い。既存のディスプレイコントローラを流用できる。According to such a memory access method, a large amount of data can be written in and read from the frame memory 7 at high speed. Large pixel display 3
In addition, the data can be supplied at high speed from the frame memory 7. Little decrease in processing speed of peripheral controller. The existing display controller can be used.
【0014】表示用メモリ以外にも本発明を適用でき
る。The present invention can be applied to other than the display memory.
【0015】[0015]
【発明の効果】かかる本発明によれば、交互のインスト
ラクションサイクル及びダイレクトメモリアクセスサイ
クルにおいて、それぞれメモリにデータを書き込み、そ
のメモリからデータを読み出すようにしたサイクルスチ
ール法のメモリのアクセス方法において、メモリに対
し、大量のデータを高速に書き込み及び読み出すことが
できる。しかもインストラクションサイクルを短縮しな
いで済む。According to the present invention, in the memory access method of the cycle stealing method, the data is written to the memory and the data is read from the memory in the alternate instruction cycle and the direct memory access cycle. On the other hand, a large amount of data can be written and read at high speed. Moreover, it is not necessary to shorten the instruction cycle.
【図1】従来例及び本発明の実施例のタイミングチャー
トFIG. 1 is a timing chart of a conventional example and an example of the present invention.
【図2】本発明の実施例を示すブロック線図FIG. 2 is a block diagram showing an embodiment of the present invention.
1 メインコントロール部 2 ディスプレイコントロール部 3 ディスプレイ 4 マイクロコンピュータ(CPU) 5 メモリ 6 ディスプレイコントロール部 7 フレームメモリ 8 ラッチ回路 9 ラッチ回路 10 マルチプレクサ 1 Main Control Section 2 Display Control Section 3 Display 4 Microcomputer (CPU) 5 Memory 6 Display Control Section 7 Frame Memory 8 Latch Circuit 9 Latch Circuit 10 Multiplexer
Claims (1)
ダイレクトメモリアクセスサイクルにおいて、それぞれ
メモリにデータを書き込み、該メモリからデータを読み
出すようにしたサイクルスチール法のメモリのアクセス
方法において、 上記ダイレクトメモリアクセスサイクルにおいて、上記
メモリから複数単位分ずつのデータを読み出して、それ
ぞれラッチし、 該ラッチされた複数単位分ずつのデータを、上記インス
トラクションサイクル及び上記ダイレクトメモリサイク
ルにおいて所定単位分ずつ読み出すようにしたことを特
徴とするメモリのアクセス方法。1. A memory access method of a cycle stealing method, wherein data is written to a memory and data is read from the memory in alternate instruction cycles and direct memory access cycles, and in the direct memory access cycle, A plurality of units of data are read out from the memory and latched respectively, and the latched plurality of units of data are read out every predetermined unit in the instruction cycle and the direct memory cycle. Memory access method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP26501191A JPH05108549A (en) | 1991-10-14 | 1991-10-14 | Access method for memory |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP26501191A JPH05108549A (en) | 1991-10-14 | 1991-10-14 | Access method for memory |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH05108549A true JPH05108549A (en) | 1993-04-30 |
Family
ID=17411342
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP26501191A Pending JPH05108549A (en) | 1991-10-14 | 1991-10-14 | Access method for memory |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH05108549A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100427744B1 (en) * | 1997-04-30 | 2004-09-16 | 주식회사 대우일렉트로닉스 | Method for data interface of plasma display panel |
-
1991
- 1991-10-14 JP JP26501191A patent/JPH05108549A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100427744B1 (en) * | 1997-04-30 | 2004-09-16 | 주식회사 대우일렉트로닉스 | Method for data interface of plasma display panel |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS63153583A (en) | Display device | |
| KR100196686B1 (en) | Device for high speed copying between frame buffers in dual buffer output display system | |
| WO1987005428A1 (en) | Image display device | |
| JPH07175445A (en) | LCD driver with built-in memory and LCD display | |
| JPS60117327A (en) | Display device | |
| JPH0234894A (en) | display controller | |
| JP3809242B2 (en) | Image data transfer device | |
| JPH0693180B2 (en) | Bitmap Display Device | |
| JP2623541B2 (en) | Image processing device | |
| JPS632116B2 (en) | ||
| JP2609628B2 (en) | Memory address controller | |
| JP2585509B2 (en) | Display device | |
| JP3694622B2 (en) | Generating image display data | |
| JPH052877A (en) | System for accessing video display memory | |
| JPS62113193A (en) | memory circuit | |
| US6339452B1 (en) | Image display device and image displaying method | |
| JPS60129786A (en) | Image memory | |
| JP3226939B2 (en) | Image display device | |
| JPH0389395A (en) | Image memory controller | |
| JP2001243446A (en) | Device and method for image input processing | |
| JPS6146978A (en) | Crt display unit | |
| JPS61174592A (en) | Image data display unit | |
| JPH03188545A (en) | Picture memory controller | |
| JPS63175885A (en) | CRT display device display memory clear method | |
| JPH0760458B2 (en) | Image memory writing controller |