JPH0581170A - Dma transfer device - Google Patents

Dma transfer device

Info

Publication number
JPH0581170A
JPH0581170A JP23961391A JP23961391A JPH0581170A JP H0581170 A JPH0581170 A JP H0581170A JP 23961391 A JP23961391 A JP 23961391A JP 23961391 A JP23961391 A JP 23961391A JP H0581170 A JPH0581170 A JP H0581170A
Authority
JP
Japan
Prior art keywords
address
dma transfer
counter
dma
transfer
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
JP23961391A
Other languages
Japanese (ja)
Inventor
Yukihiro Sugimoto
行弘 杉本
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.)
Olympus Corp
Original Assignee
Olympus Optical Co Ltd
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 Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP23961391A priority Critical patent/JPH0581170A/en
Publication of JPH0581170A publication Critical patent/JPH0581170A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To make it possible to make the loss of transfer time and the handling time of software development minimum by performing a DMA transfer providing an address counter every dimension of memory space. CONSTITUTION:When the number of picture elements in the horizontal direction memory space is 2N and the number of picture elements in the vertical direction is 2M (M=N+A), an address is shown by a N+M bit. When a horizontal direction address counter of N bit (H counter) 4 is counted to a termination address set by a DMA transfer termination detection circuit 9, a vertical direction address counter (V counter) of N+A bit 5 is counted by a H direction DMA transfer termination detection circuit 8. Thus, the DMA transfer is proceeded and the DMA transfer termination detection circuit 9 detects the DMA transfer termination by the count value of a V counter 5 and the output of a H direction DMA transfer termination detection circuit 8. Thus, only by setting of a transfer start address of the left up of picture data and a transfer termination address of the right down of picture data, the DMA transfer can be performed for the picture data within a window shown by the diagonal at one time.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は入力装置とメモリ間のデ
ータの転送に係り、特に、中央演算処理装置(以下、C
PUと略す)の介入なしに直接データを転送するダイレ
クト・メモリ・アクセス(以下、DMAと略す)転送に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to data transfer between an input device and a memory, and more particularly to a central processing unit (hereinafter referred to as C
The present invention relates to a direct memory access (hereinafter abbreviated as DMA) transfer that directly transfers data without intervention of PU.

【0002】[0002]

【従来の技術】一般に、画像処理装置等においては、処
理すべき画像データの量は非常に多くそのためデータの
転送には入出力装置と主メモリの間で、CPUの介入な
しに直接データを転送するDMA転送が用いられてい
る。
2. Description of the Related Art Generally, in an image processing device or the like, the amount of image data to be processed is so large that data is directly transferred between an input / output device and a main memory without CPU intervention. DMA transfer is used.

【0003】このDMA転送では、DMA転送装置を使
用し、データ転送の間は、このDMA転送装置がバスを
管理して転送を制御する。CPUは、DMA転送の必要
に応じて制御信号をDMA転送装置に送り、DMA転送
装置はこの制御信号を受けて入力機器の起動及びメモリ
の専有を行い、データの転送を開始し、転送が終了する
とメモリの専有を解除する。つまり、CPUからのメモ
リアクセスを禁止した後、データを転送するため、上記
したような大量なデータも高速に処理することができ
る。以下、図4を参照して、従来のDMA転送装置によ
るDMA転送について説明する。
In this DMA transfer, a DMA transfer device is used, and during the data transfer, this DMA transfer device manages the bus and controls the transfer. The CPU sends a control signal to the DMA transfer device as needed for the DMA transfer, and the DMA transfer device receives the control signal, activates the input device and occupies the memory, starts the data transfer, and ends the transfer. Then, the monopolization of the memory is released. That is, since the data is transferred after the memory access from the CPU is prohibited, a large amount of data as described above can be processed at high speed. The DMA transfer performed by the conventional DMA transfer device will be described below with reference to FIG.

【0004】同図に示すように、従来のDMA転送装置
は、CPUを含むマイクロコンピュータ40(以下、マ
イコンと略す)と、メモリ41、タイミング制御回路4
2、アドレスカウンタ43、バスコントローラ44、D
MA転送終了検出回路45により構成されている。上記
マイクロコンピュータ40はCPUを含み、全体の制御
を司る。上記メモリ41は外部バス47との間で転送す
るデータを格納する。上記タイミング制御回路42は、
上記メモリ41と上記外部バス47とのデータのやりと
りのタイミングを制御する。
As shown in FIG. 1, a conventional DMA transfer device includes a microcomputer 40 including a CPU (hereinafter abbreviated as a microcomputer), a memory 41, and a timing control circuit 4.
2, address counter 43, bus controller 44, D
It is composed of an MA transfer end detection circuit 45. The microcomputer 40 includes a CPU and controls the entire operation. The memory 41 stores data to be transferred to and from the external bus 47. The timing control circuit 42 is
The timing of data exchange between the memory 41 and the external bus 47 is controlled.

【0005】上記アドレスカウンタ43は、上記タイミ
ング制御回路42からの信号によりマイコン40により
設定されたメモリ41上の転送するデータのアドレスを
インクリメント、またはデクリメントする。
The address counter 43 increments or decrements the address of the data to be transferred on the memory 41 set by the microcomputer 40 in response to the signal from the timing control circuit 42.

【0006】上記バスコントローラ44は、上記タイミ
ング制御回路42からの信号によってメモリデータバス
をマイコン40側、または外部バス側に切り替え、また
メモリアドレスバスをマイコン側またはアドレスカウン
タ43側に切り替える。上記DMA転送終了検出回路4
5は、上記マイコン40により設定された値までデータ
の転送を行ったことを検出する。
The bus controller 44 switches the memory data bus to the microcomputer 40 side or the external bus side and the memory address bus to the microcomputer side or the address counter 43 side according to the signal from the timing control circuit 42. The DMA transfer end detection circuit 4
5 detects that data has been transferred up to the value set by the microcomputer 40.

【0007】このような構成のDMA転送装置により、
DMA転送を行う場合には、まずマイコン40がDMA
転送を開始するアドレスをアドレスカウンタ43に、D
MA転送を終了するアドレスをDMA転送終了検出回路
45にそれぞれ設定する。そして、タイミング制御回路
42に送信、または受信のモードを設定した後、DMA
転送を開始させる。
With the DMA transfer device having such a configuration,
When performing the DMA transfer, first, the microcomputer 40 executes the DMA
The address to start the transfer is set to D in the address counter 43.
An address for ending the MA transfer is set in the DMA transfer end detection circuit 45, respectively. Then, after setting the transmission or reception mode in the timing control circuit 42, the DMA
Start the transfer.

【0008】この送受信のモードが設定されると、タイ
ミング制御回路42が、外部バスとのデータのやりとり
を開始する。そして、アドレスカウンタ43が、データ
が送受信される度にアドレスを更新し、次のデータのア
ドレスを示す。
When the transmission / reception mode is set, the timing control circuit 42 starts exchanging data with the external bus. Then, the address counter 43 updates the address each time data is transmitted / received and indicates the address of the next data.

【0009】そして、DMA転送終了検出回路45がア
ドレスカウンタ43の値を参照し、マイコン40により
設定されたカウント値までデータが転送されたか否かを
比較し、設定値まで転送されたときに、タイミング制御
回路42を停止させ、マイコン40にDMA転送終了を
知らせる。従来は、以上のような方法によってDMA転
送を実現していた。次に、図5は上記した従来のDMA
転送装置によりDMA転送を行う際に、画像データがお
かれるメモリ空間を示したものである。
Then, the DMA transfer end detection circuit 45 refers to the value of the address counter 43, compares whether or not the data has been transferred up to the count value set by the microcomputer 40, and when the data is transferred up to the set value, The timing control circuit 42 is stopped and the microcomputer 40 is notified of the end of the DMA transfer. Conventionally, DMA transfer has been realized by the above method. Next, FIG. 5 shows the conventional DMA described above.
3 shows a memory space in which image data is stored when performing DMA transfer by the transfer device.

【0010】同図に示すように本実施例においては、画
像データがおかれるメモリ空間が、横A画素、縦N画素
となっており、左上の画素より右下の画素まで連続した
メモリ空間となっている。そして、外部の装置、又はメ
モリに画像データを転送する場合に全画面を転送するた
めには、データはすべて連続しているため、転送の開始
アドレスとして左上の画素データのアドレスを、終了ア
ドレスとして右下の画素のアドレスを設定するだけで、
データを転送することができる。
As shown in the figure, in the present embodiment, the memory space in which the image data is placed has horizontal A pixels and vertical N pixels, and is a continuous memory space from the upper left pixel to the lower right pixel. Is becoming When transferring image data to an external device or memory, in order to transfer the entire screen, the data is all continuous, so the upper left pixel data address is used as the transfer start address and the end address is used as the end address. Just set the address of the lower right pixel,
Data can be transferred.

【0011】[0011]

【発明が解決しようとする課題】しかし、通常データと
して必要なのは画像のごく一部であり、画像の一部を例
えば、図5に示すようなウィンドウ500として転送す
る場合には、画像データは各行毎に不連続なメモリ空間
に存在することになり、上記した方法では一度にデータ
の転送を行うことできず、そのためライン毎にDMA転
送を行わなければならない。つまり、ウィンドウ500
の左端の画像データのアドレスとその行の右端のアドレ
スを設定し、次に次行の左端及び右のアドレスを設定す
る。こうして、ウィンドウ内の画像データをライン毎に
設定、転送する。従って、このようにライン毎にDMA
転送の設定を行った場合、転送時間が遅くなるという欠
点がある。さらにソフト開発時にも煩わしいものとな
る。
However, only a small part of the image is required as normal data, and when a part of the image is transferred as a window 500 as shown in FIG. Each of them is located in a discontinuous memory space, and the above method cannot transfer data at one time. Therefore, DMA transfer must be performed for each line. That is, the window 500
The address of the image data at the left end and the address at the right end of the line are set, and then the left end and the right address of the next line are set. In this way, the image data in the window is set and transferred line by line. Therefore, in this way, DMA is performed line by line.
If the transfer is set, there is a drawback that the transfer time is delayed. Furthermore, it becomes annoying when developing software.

【0012】本発明は、このような課題に着目してなさ
れたもので、その目的とする所は、DMA転送時間のロ
ス、及びソフトウェア開発の手間を最小限にするための
DMA転送装置を提供することにある。
The present invention has been made in view of such a problem, and an object thereof is to provide a DMA transfer device for minimizing the loss of DMA transfer time and the effort of software development. To do.

【0013】[0013]

【課題を解決するための手段】上記目的を達成するため
に、本発明のDMA転送装置では、画像データがおかれ
る複数(M)次元のメモリ空間の少なくとも(M−1)
個の各次元の大きさが、2の累乗の画素数で示される画
像処理装置において、DMAアドレスカウンタとして上
記各次元毎にカウンタを設けることにより、DMA転送
することを特徴とする。
To achieve the above object, in the DMA transfer apparatus of the present invention, at least (M-1) of a plurality (M) -dimensional memory space in which image data is placed.
In an image processing apparatus in which the size of each dimension is represented by the number of pixels of a power of 2, DMA transfer is performed by providing a counter for each dimension as a DMA address counter.

【0014】[0014]

【作用】即ち、本発明の作用は、例えば画像データがお
かれる2次元のメモリ空間の横方向の画素数を2N
し、縦方向の画素数を2M (M=N+A)とすることに
より、アドレスをN+Mビットで示し、アドレスの下位
Nビットを横方向の位置を示す部分とし、他の上位下位
Mビットを縦方向の位置を示すものとしている。
That is, the operation of the present invention is such that the number of pixels in the horizontal direction of the two-dimensional memory space in which image data is placed is 2 N, for example. And the number of pixels in the vertical direction is 2 M By setting (M = N + A), the address is indicated by N + M bits, the lower N bits of the address are the portion indicating the horizontal position, and the other upper lower M bits are indicating the vertical position.

【0015】よって、不連続なメモリ空間上におかれた
ウィンドウ内の画像データも、各次元毎に設けられたカ
ウンタにより、DMA転送の開始アドレスと終了アドレ
スを設定するだけで、その対角で示されるウィンドウ内
の画像データを一度にDMA転送することができる。
Therefore, even for image data in a window placed in a discontinuous memory space, a counter provided for each dimension simply sets a start address and an end address of DMA transfer, and the diagonally crosses the address. The image data in the window shown can be DMA-transferred at one time.

【0016】[0016]

【実施例】図1は本発明のDMA転送装置の一実施例の
構成を示した図である。
1 is a diagram showing the configuration of an embodiment of a DMA transfer apparatus of the present invention.

【0017】本実施例のDMA転送装置は、CPUを含
むマイクロコンピュータ1(以下、マイコンと略す)
と、メモリ2、タイミング制御回路3、Nビットの横方
向アドレスカウンタ4(以下、Hカウンタ)及びN+A
ビットの縦方向アドレスカウンタ5(以下、Vカウン
タ)、Nビットラッチ6、バスコントローラ7、H方向
DMA転送終了検出回路8、DMA転送終了検出回路9
により構成されている。上記マイコン1はCPUを含
み、全体の制御を司る。上記メモリ2は、外部バスとの
間で転送するデータを格納するもので、図2のようなア
ドレス空間を示している。
The DMA transfer device of this embodiment is a microcomputer 1 including a CPU (hereinafter abbreviated as a microcomputer).
And a memory 2, a timing control circuit 3, an N-bit lateral address counter 4 (hereinafter, H counter), and N + A
Bit vertical address counter 5 (hereinafter, V counter), N bit latch 6, bus controller 7, H direction DMA transfer end detection circuit 8, DMA transfer end detection circuit 9
It is composed by. The microcomputer 1 includes a CPU and is responsible for overall control. The memory 2 stores data to be transferred to and from the external bus, and has an address space as shown in FIG.

【0018】即ち、本実施例では、画像データがおかれ
る2次元のメモリ空間の横方向の画素数を2N とし、縦
方向の画素数を2M (M=N+A)とし、アドレスをそ
の和のN+Mビットで示すことにより、下位Nビットを
横方向の位置を示す部分とし、他の上位Mビットを縦方
向の位置を示すものとしている。
That is, in this embodiment, image data is stored
The number of horizontal pixels in the two-dimensional memory spaceN And vertical
Number of pixels in the direction is 2M (M = N + A) and enter the address
The lower N bits are indicated by N + M bits of the sum of
The other upper M bits are set vertically to indicate the horizontal position.
It indicates the position of the direction.

【0019】例えば、図中位置21のアドレスは、縦方
向の位置を示す“2N+A-2 ”と横方向の位置を示す“2
N −1”との和により“2N+A-1 −1”と示される。上
記タイミング制御回路3は、上記メモリ2と上記外部バ
ス10とのデータのやりとりのタイミングを制御する。
For example, the address at position 21 in the figure is "2 N + A-2 " indicating the vertical position. ", And" 2 "indicating the horizontal position
N The sum of "-1" and "2 N + A-1" -1 ". The timing control circuit 3 controls the timing of data exchange between the memory 2 and the external bus 10.

【0020】上記NビットのHカウンタ4は、上記タイ
ミング制御回路3からの信号によりマイコン1により設
定された上記メモリ2上の転送データのアドレスをイン
クリメント、またはデクリメントする。
The N-bit H counter 4 increments or decrements the address of the transfer data on the memory 2 set by the microcomputer 1 in response to a signal from the timing control circuit 3.

【0021】上記バスコントローラ7は、上記タイミン
グ制御回路3からの信号によってメモリデータバスを上
記マイコン1側、または外部バス側に切り替え、またメ
モリアドレスバスをマイコン側または上記アドレスカウ
ンタ側に切り替える。
The bus controller 7 switches the memory data bus to the microcomputer 1 side or the external bus side and the memory address bus to the microcomputer side or the address counter side in response to the signal from the timing control circuit 3.

【0022】上記H方向DMA転送終了検出回路8は、
上記Hカウンタ4がマイコン1によって設定されたアド
レスまでカウントした際に、再びカウント開始データを
ロードさせ、上記Vカウンタをインクリメント又はデク
リメントさせる。上記DMA転送終了検出回路9は、上
記Vカウンタ5のカウント値と上記H方向転送終了検出
回路8の出力よりDMA転送終了を検出する。
The H-direction DMA transfer end detection circuit 8 is
When the H counter 4 counts up to the address set by the microcomputer 1, the count start data is loaded again and the V counter is incremented or decremented. The DMA transfer end detection circuit 9 detects the end of the DMA transfer from the count value of the V counter 5 and the output of the H direction transfer end detection circuit 8.

【0023】このような構成のDMA転送装置によりD
MA転送を行う場合には、まずマイコン1が、DMA転
送を開始する開始アドレスを各アドレスカウンタに、D
MA転送を終了する終了アドレスをDMA転送終了検出
回路9に、それぞれ設定する。そして上記設定後、タイ
ミング制御回路3に送信・受信のモードを設定し、DM
A転送を開始させる。
With the DMA transfer device having such a configuration, D
When performing the MA transfer, the microcomputer 1 first sets the start address for starting the DMA transfer to each address counter by D
The end address for ending the MA transfer is set in the DMA transfer end detection circuit 9, respectively. After the above setting, the transmission / reception mode is set in the timing control circuit 3, and the DM
A Transfer is started.

【0024】DMA転送が開始されると、上記タイミン
グ制御回路3が、上記メモリ2と外部バス10とのデー
タのやりとりのタイミングを制御する。このタイミング
制御回路3の制御により、バスコントローラ7はメモリ
データバスをマイコン側または外部バス側に切り替え、
またはメモリアドレスバスをマイコン側またはアドレス
カウンタ側に切り替える。
When the DMA transfer is started, the timing control circuit 3 controls the timing of data exchange between the memory 2 and the external bus 10. Under the control of the timing control circuit 3, the bus controller 7 switches the memory data bus to the microcomputer side or the external bus side,
Alternatively, switch the memory address bus to the microcomputer side or address counter side.

【0025】DMA転送する画像データが2次元の場合
には、アドレスカウンタはNビットのHカウンタ4とN
+AビットのVカウンタ5との2つが設けられており、
Hカウンタ4が、上記タイミング制御回路3からの信号
により、先にマイコン1により設定されたメモリ2上の
転送データのアドレスをインクリメント、或いはデクリ
メントする。
When the image data to be DMA-transferred is two-dimensional, the address counters are N-bit H counter 4 and N-bit.
Two + A bit V counters 5 are provided,
The H counter 4 increments or decrements the address of the transfer data on the memory 2 previously set by the microcomputer 1 in response to the signal from the timing control circuit 3.

【0026】そして、上記Hカウンタ4が、先にマイコ
ン1によってDMA転送終了検出回路9に設定された終
了アドレスまでカウントされると、H方向DMA転送終
了検出回路8が再びカウント開始アドレスのデータをロ
ードさせ、またVカウンタ5をインクリメント又はデク
リメントさせる。
When the H counter 4 counts up to the end address previously set in the DMA transfer end detection circuit 9 by the microcomputer 1, the H direction DMA transfer end detection circuit 8 again outputs the data of the count start address. It is loaded, and the V counter 5 is incremented or decremented.

【0027】こうしてDMA転送を進め、DMA転送終
了検出回路9がVカウンタ5のカウント値とH方向転送
終了検出回路8の出力よりDMA転送終了を検出する
と、タイミング制御回路3を停止させ、DMA転送終了
検出信号によりマイコン1にDMA転送終了を知らせ、
DMA転送を終了する。
Thus, the DMA transfer is advanced, and when the DMA transfer end detection circuit 9 detects the end of the DMA transfer from the count value of the V counter 5 and the output of the H direction transfer end detection circuit 8, the timing control circuit 3 is stopped and the DMA transfer is completed. Notify the microcomputer 1 of the end of the DMA transfer by the end detection signal,
The DMA transfer ends.

【0028】よって、本実施例によれば、例えば画像デ
ータの一部を図2に示すようなウィンドウ20としてD
MA転送する場合にも、従来のように画像データを各ラ
イン毎に転送することなく、上記ウィンドウ20で示さ
れた画像データの左上の転送開始アドレスと右下の転送
終了アドレスを指定するだけで、その対角で示されるウ
インドウ内のデータを一度に転送することができる。以
下、図3を参照して、本発明の一実施例に係るDMA転
送装置の詳細な構成について説明する。
Therefore, according to this embodiment, for example, a part of the image data is displayed as a window 20 as shown in FIG.
Even in the case of MA transfer, it is only necessary to specify the upper left transfer start address and the lower right transfer end address of the image data shown in the window 20 without transferring the image data line by line as in the conventional case. , The data in the window indicated by the diagonal can be transferred at one time. The detailed configuration of the DMA transfer device according to the embodiment of the present invention will be described below with reference to FIG.

【0029】尚、本実施例は横方向(以下、H方向)は
11=2048(11ビット)画素、縦方向(以下、V
方向)は210=1024(10ビット)画素とし、1画
素のデータは8ビットのB/Wのデータとする場合のも
のである。
In this embodiment, 2 11 = 2048 (11 bits) pixels in the horizontal direction (hereinafter, H direction) and the vertical direction (hereinafter, V
The direction is 2 10 = 1024 (10 bits) pixels, and the data of one pixel is B / W data of 8 bits.

【0030】本実施例のDMA転送装置は、11ビット
ラッチ31と、11ビットカウンタ32、11ビットラ
ッチ33、11ビットコンパレータ34、10ビットカ
ウンタ35、10ビットラッチ36、10ビットコンパ
レータ37、ロードパルス発生回路38、ネガティブO
R回路39により構成されている。
The DMA transfer apparatus according to this embodiment includes an 11-bit latch 31, an 11-bit counter 32, an 11-bit latch 33, an 11-bit comparator 34, a 10-bit counter 35, a 10-bit latch 36, a 10-bit comparator 37, a load pulse. Generation circuit 38, negative O
It is composed of an R circuit 39.

【0031】このような構成のDMA転送装置によりD
MA転送を行う場合、マイコン1はまずデータバスを介
してDMA開始アドレスを出力し、続いて開始アドレス
セット信号(以下、S信号)を出力する。この信号は、
アドレスデコーダの出力とマイコン1のリード信号との
ANDをとることにより、簡単に作り出すことができ
る。そして、このS信号により、H方向のDMA開始ア
ドレスが11ビットラッチ31にラッチされると共に、
V方向の開始アドレスが10ビットカウンタ35にロー
ドされる。
With the DMA transfer device having such a configuration, D
When performing the MA transfer, the microcomputer 1 first outputs the DMA start address via the data bus, and then outputs the start address set signal (hereinafter, S signal). This signal is
It can be easily created by ANDing the output of the address decoder and the read signal of the microcomputer 1. The S signal causes the DMA start address in the H direction to be latched in the 11-bit latch 31, and
The start address in the V direction is loaded into the 10-bit counter 35.

【0032】次に、マイコン1は、DMA終了アドレス
をデータバスに出力し、終了アドレスセット信号(以
下、E信号)を出力し、このE信号により、H方向のD
MA終了アドレスが11ビットラッチ33にラッチされ
ると共に、V方向の終了アドレスが10ビットラッチ3
6にラッチされる。
Next, the microcomputer 1 outputs the DMA end address to the data bus and outputs an end address set signal (hereinafter referred to as E signal).
The MA end address is latched by the 11-bit latch 33, and the end address in the V direction is the 10-bit latch 3.
Latched to 6.

【0033】さて、タイミング制御回路3をイネーブル
にすると、タイミング制御回路3は外部バスからのDM
Aリクエスト信号に対してACK信号(アクティブlo
w)を出力し、メモリ2よりデータの出力を開始する。
そして、データを出力した後ACK信号を立ち上げ、次
のDMAリクエスト信号を待つ。このとき、DMA転送
時のACK信号の立上がりにより11ビットカウンタ3
2はカウントを行う。そして、上記11ビットラッチ3
1は、後述するロードパルス発生回路38のパルスによ
り開始アドレスを11ビットカウンタ32にロードす
る。
When the timing control circuit 3 is enabled, the timing control circuit 3 receives DM from the external bus.
ACK signal (active lo
w) is output, and the output of data from the memory 2 is started.
Then, after outputting the data, the ACK signal is raised to wait for the next DMA request signal. At this time, the 11-bit counter 3 is caused by the rise of the ACK signal during the DMA transfer.
2 counts. Then, the 11-bit latch 3
1 loads the start address into the 11-bit counter 32 by the pulse of the load pulse generating circuit 38 described later.

【0034】これを繰り返し、11ビットコンパレータ
34が上記11ビットカウンタ32の出力と11ビット
ラッチ33の出力とを比較し、等しい時には=H信号
(アクティブlow)をロードパルス発生回路38に出
力し、次のACK信号の立上がりで、10ビットカウン
タ35はカウント動作を行い、またロードパルス発生回
路38は11ビットカウンタ32にネガティブOR回路
39を介してロードパルスを出力し、再びH方向開始ア
ドレスをロードさせる。
By repeating this, the 11-bit comparator 34 compares the output of the 11-bit counter 32 with the output of the 11-bit latch 33, and when they are equal, outputs the = H signal (active low) to the load pulse generating circuit 38, At the next rise of the ACK signal, the 10-bit counter 35 performs a counting operation, the load pulse generation circuit 38 outputs a load pulse to the 11-bit counter 32 via the negative OR circuit 39, and the H-direction start address is loaded again. Let

【0035】以上の動作を繰り返し、10ビットカウン
タ35の値と10ビットラッチ36の値が等しくなる。
その後、更に11ビットカウンタ32の値も11ビット
ラッチ33の値とが等しくなったときにACK信号が立
ち上がると、即ちDMA転送する最終データが転送され
ると、10ビットカウンタ35がカウントされ、そのカ
ウント値が10ビットラッチ36の値と異なる。この
時、10ビットコンパレータ37よりDMA終了信号
(=V信号)が立上がり、マイコン1に割り込みをかけ
DMA転送を終了する。尚、上記説明においては、デー
タを送信する場合について述べたが、データを受信する
場合も同様の過程により可能である。
By repeating the above operation, the value of the 10-bit counter 35 and the value of the 10-bit latch 36 become equal.
Thereafter, when the value of the 11-bit counter 32 becomes equal to the value of the 11-bit latch 33, the ACK signal rises, that is, when the final data to be DMA-transferred is transferred, the 10-bit counter 35 is counted. The count value is different from the value of the 10-bit latch 36. At this time, a DMA end signal (= V signal) rises from the 10-bit comparator 37 and interrupts the microcomputer 1 to end the DMA transfer. In the above description, the case of transmitting data has been described, but the case of receiving data can be performed by the same process.

【0036】以上説明したように、本実施例によれば、
ごく簡単な回路構成のDMA転送装置により、画像のデ
ータの一部を従来のようにライン毎に転送しなくても1
度の設定によりDMA転送できるため、非常に高速にデ
ータが転送できる。さらに、DMA転送の設定も簡単に
できるので、ソフトの開発も非常に簡単に行うことがで
きる。以上、本発明の一実施例について説明したが、本
発明はこれに限定されず、その他の変更及び変形が可能
であることは勿論である。
As described above, according to this embodiment,
With a DMA transfer device with a very simple circuit configuration, even if part of image data is not transferred line by line as in the conventional case,
The data can be transferred at an extremely high speed because the DMA transfer can be performed depending on the degree setting. Furthermore, since the setting of DMA transfer can be easily done, the software can be developed very easily. Although one embodiment of the present invention has been described above, the present invention is not limited to this, and it goes without saying that other changes and modifications can be made.

【0037】例えば、2次元の画像データに限らず、例
えばX軸、Y軸の他にZ軸や時間軸等を含めた3次元以
上のデータの転送についても、その方向のアドレスカウ
ンタを追加することにより簡単に対応でき、転送速度の
高速化と設定の簡易さの効果はさらに高いものとなる。
For example, not only two-dimensional image data, but also for transfer of three-dimensional or more data including, for example, the Z axis, the time axis, etc. in addition to the X and Y axes, an address counter in that direction is added. By doing so, it is possible to easily deal with this, and the effect of increasing the transfer speed and the ease of setting is further enhanced.

【0038】[0038]

【発明の効果】以上詳述したように、本発明において
は、画像のデータの一部をライン毎に転送しなくても1
度の設定によりDMA転送できるため、DMA転送時間
のロス及びソフトウェア開発の手間を最小限にすること
ができるDMA転送装置を提供することができる。
As described above in detail, according to the present invention, even if a part of the image data is not transferred line by line.
Since the DMA transfer can be performed by setting the degree, it is possible to provide a DMA transfer device that can minimize the loss of the DMA transfer time and the labor of software development.

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

【図1】本発明の実施例のDMA転送装置の構成を示す
ブロック図である。
FIG. 1 is a block diagram showing a configuration of a DMA transfer device according to an embodiment of the present invention.

【図2】実施例のDMA転送装置のメモリ空間を示す図
である。
FIG. 2 is a diagram showing a memory space of a DMA transfer device according to an embodiment.

【図3】実施例のDMA転送装置の詳細な回路構成を示
す図である。
FIG. 3 is a diagram showing a detailed circuit configuration of a DMA transfer device of the embodiment.

【図4】従来のDMA転送装置の構成を示すブロック図
である。
FIG. 4 is a block diagram showing a configuration of a conventional DMA transfer device.

【図5】従来のDMA転送装置において、画像データが
おかれるメモリ空間を示す図である。
FIG. 5 is a diagram showing a memory space in which image data is stored in a conventional DMA transfer device.

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

1…マイクロコンピュータ、2…メモリ、3…タイミン
グ制御回路、4…Hカウンタ、5…Vカウンタ、6…ラ
ッチ、7…バスコントローラ、8…H方向DMA転送終
了検出回路、9…DMA検出終了回路、10…外部バ
ス、11…マイコンアドレスデータバス、12…DMA
アドレスバス、13…DMAアドレスバス、14…メモ
リアドレスデータバス。
DESCRIPTION OF SYMBOLS 1 ... Microcomputer, 2 ... Memory, 3 ... Timing control circuit, 4 ... H counter, 5 ... V counter, 6 ... Latch, 7 ... Bus controller, 8 ... H direction DMA transfer completion detection circuit, 9 ... DMA detection completion circuit 10 ... External bus, 11 ... Microcomputer address data bus, 12 ... DMA
Address bus, 13 ... DMA address bus, 14 ... Memory address data bus.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 画像データがおかれる複数(M)次元の
メモリ空間の少なくとも(M−1)個の各次元の大きさ
が、2の累乗の画素数で示される画像処理装置におい
て、DMAアドレスカウンタとして上記各次元毎にカウ
ンタを設けて、DMA転送することを特徴とするDMA
転送装置。
1. A DMA address in an image processing device, wherein the size of at least (M-1) dimensions of a plurality of (M) -dimensional memory spaces in which image data is placed is represented by a power of 2 pixels. A DMA provided by providing a counter for each of the above dimensions as a counter to perform DMA transfer
Transfer device.
JP23961391A 1991-09-19 1991-09-19 Dma transfer device Pending JPH0581170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23961391A JPH0581170A (en) 1991-09-19 1991-09-19 Dma transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23961391A JPH0581170A (en) 1991-09-19 1991-09-19 Dma transfer device

Publications (1)

Publication Number Publication Date
JPH0581170A true JPH0581170A (en) 1993-04-02

Family

ID=17047347

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23961391A Pending JPH0581170A (en) 1991-09-19 1991-09-19 Dma transfer device

Country Status (1)

Country Link
JP (1) JPH0581170A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7096312B2 (en) 2002-03-20 2006-08-22 Seiko Epson Corporation Data transfer device and method for multidimensional memory

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7096312B2 (en) 2002-03-20 2006-08-22 Seiko Epson Corporation Data transfer device and method for multidimensional memory

Similar Documents

Publication Publication Date Title
EP0458304B1 (en) Direct memory access transfer controller and use
EP0428330A2 (en) Computer interface circuit
US5119496A (en) Method and apparatus for interrupt processing in a computer system having peripheral units connected in a daisy chain
US4177515A (en) Interrupt adapter for data processing systems
JPS63502535A (en) multiprocessor equipment
US6944696B2 (en) Data processing processor
JPH0581170A (en) Dma transfer device
JP3058430B2 (en) Key scan device
JP4098892B2 (en) Image transmission apparatus, digital camera, image processing apparatus, image transmission method, image transmission method, and effective area designation method of image
JPS6352235A (en) Picture display system
JP2667817B2 (en) Graphic processing device and information processing system using the same
JPH03204254A (en) Data receiver
JP2000299716A (en) Data receiver and data receiving method
JPH0611552B2 (en) Printer controller
JPS60196857A (en) Buffer memory device
JPS58178468A (en) Interruption system of data processing system
JP2842639B2 (en) Data transfer method
JP2000293482A (en) Computer system and display control method therefor
JPH07287561A (en) Hardware cursor display device
JPH0573484A (en) Information processing system
JPS62232060A (en) Data processor
JPH04156031A (en) Facsimile equipment
JPS62173854A (en) Density conversion circuit
JPH05289973A (en) Input/output control system
JPS5923659A (en) Data transmission controller

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19991214