JPH04288653A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH04288653A
JPH04288653A JP3023076A JP2307691A JPH04288653A JP H04288653 A JPH04288653 A JP H04288653A JP 3023076 A JP3023076 A JP 3023076A JP 2307691 A JP2307691 A JP 2307691A JP H04288653 A JPH04288653 A JP H04288653A
Authority
JP
Japan
Prior art keywords
memory
dmac
address
bus
local
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
JP3023076A
Other languages
Japanese (ja)
Inventor
Yoshikazu Shimooka
下岡 美和
Satoru Tashiro
哲 田代
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP3023076A priority Critical patent/JPH04288653A/en
Publication of JPH04288653A publication Critical patent/JPH04288653A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the DMA transfer time of a microcomputer having the DMA transfer function. CONSTITUTION:A DMAC consists of a main DMAC 5 and a local DMAC 6, and the DMA transfer address of a memory 2 is designated through a main address bus 21 by the main DMAC 5, and the DMA transfer address or an I/O 3 us designated through a local address bus 22 by the local DMAC 6 synchronously with this operation. Since DMA transfer which requires two memory cycles in the conventional method is performed in one memory cycle without temporarily storing data in an internal register or the like, the DMA transfer time is shortened.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明はメモリ,周辺装置間の
データ転送を直接行うDMA機能を有するマイクロコン
ピュータに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer having a DMA function for directly transferring data between memory and peripheral devices.

【0002】0002

【従来の技術】図3は従来のDMA機能を有するマイク
ロコンピュータの内部を示すブロック図である。
2. Description of the Related Art FIG. 3 is a block diagram showing the inside of a conventional microcomputer having a DMA function.

【0003】同図に示すように、CPU1,メモリ2,
入出力装置3(以下、「I/O」という)及びDMAコ
ントローラ4(以下、「DMAC」という)がそれぞれ
共通にデータバス11及びアドレスバス12に接続され
ている。DMAC4はCPU1の指示に従い後述するD
MA転送の制御を行う。
As shown in the figure, a CPU 1, a memory 2,
An input/output device 3 (hereinafter referred to as "I/O") and a DMA controller 4 (hereinafter referred to as "DMAC") are commonly connected to a data bus 11 and an address bus 12, respectively. DMAC4 follows the instructions from CPU1.
Controls MA transfer.

【0004】このような構成において、I/O3からメ
モリ2へのデータのDMA転送は、以下に示すように行
われる。
In such a configuration, DMA transfer of data from the I/O 3 to the memory 2 is performed as shown below.

【0005】まず、CPU1がDMA転送を指示する制
御信号S1をDMAC4に出力する。さらに、CPU1
はアドレスバス12を介してメモリ2の転送先アドレス
、I/O3の転送元アドレスを順次、DMAC4に出力
する。
First, the CPU 1 outputs a control signal S1 instructing DMA transfer to the DMAC 4. Furthermore, CPU1
sequentially outputs the transfer destination address of the memory 2 and the transfer source address of the I/O 3 to the DMAC 4 via the address bus 12.

【0006】これを受けたDMAC4は、アドレスバス
12を介してI/O3に転送元アドレスを出力した後、
I/O3から出力されたデータをデータバス11を介し
て内部のレジスタに取り込む。
[0006] Upon receiving this, the DMAC 4 outputs the transfer source address to the I/O 3 via the address bus 12, and then
Data output from I/O 3 is taken into an internal register via data bus 11.

【0007】その後、アドレスバス12を介してメモリ
2に転送先アドレスを出力した後、メモリ2に内部のレ
ジスタに格納したデータをデータバス11を介してメモ
リ2の転送先アドレスに転送する。
After that, the transfer destination address is output to the memory 2 via the address bus 12, and then the data stored in the internal register of the memory 2 is transferred to the transfer destination address of the memory 2 via the data bus 11.

【0008】一方、メモリ2からI/O3へのDMA転
送も同様にして、メモリ2における転送元アドレスの格
納データをDMAC4の内部レジスタに転送した後、D
MAC4の内部レジスタに格納したデータをI/O3の
転送先アドレスに出力する。
On the other hand, DMA transfer from memory 2 to I/O 3 is performed in the same way, after the data stored at the transfer source address in memory 2 is transferred to the internal register of DMAC 4,
The data stored in the internal register of MAC4 is output to the transfer destination address of I/O3.

【0009】このように、DMAC4の制御下でメモリ
2とI/O3との直接データ転送を行うDMA機能を備
えることにより、その間、CPU1は他の処理を実行す
ることができるため、CPU1の有効利用が図れる。
In this way, by providing the DMA function for direct data transfer between the memory 2 and the I/O 3 under the control of the DMAC 4, the CPU 1 can perform other processing during that time, so the effective use of the CPU 1 can be reduced. It can be used.

【0010】0010

【発明が解決しようとする課題】従来のDMA機能を有
するマイクロコンピュータは以上のように構成されてお
り、メモリ2,I/O3間のDMA転送は、転送元から
DMAC4の内部レジスタに一旦データ転送した後、D
MAC4の内部レジスタから転送先にデータ転送すると
いう2メモリサイクルで行われていた。
[Problems to be Solved by the Invention] A conventional microcomputer having a DMA function is configured as described above, and DMA transfer between the memory 2 and I/O 3 is performed by first transferring data from the transfer source to the internal register of the DMAC 4. After that, D
Data was transferred from the internal register of the MAC4 to the transfer destination in two memory cycles.

【0011】DMA転送実行中はデータバス11が占有
され、DMA転送時間が長いとその間CPU1はデータ
バス11を利用する処理を行うことができないため、マ
イクロコンピュータシステム全体の処理速度が遅くなる
という問題点があった。
[0011] During execution of a DMA transfer, the data bus 11 is occupied, and if the DMA transfer time is long, the CPU 1 cannot perform processing using the data bus 11 during that time, resulting in a problem that the processing speed of the entire microcomputer system becomes slow. There was a point.

【0012】この発明は上記問題点を解決するためにな
されたもので、DMA転送時間の短縮化を図ったマイク
ロコンピュータを得ることを目的とする。
The present invention was made to solve the above problems, and an object of the present invention is to provide a microcomputer in which the DMA transfer time is shortened.

【0013】[0013]

【課題を解決するための手段】この発明にかかるマイク
ロコンピュータは、メモリ,周辺装置間のデータ転送を
直接行うDMA機能を有しており、CPUと、前記メモ
リ及び前記周辺装置に共通に接続されたデータバスと、
前記メモリに接続された第1のアドレスバスと、前記第
1のアドレスバスと独立して前記周辺装置に接続された
第2のアドレスバスと、前記CPUの命令に従い前記第
1のアドレスバスを介して前記メモリのアドレス指定を
行う第1のDMA制御部と、前記CPUの命令に従い前
記第1のDMA制御部のアドレス指定と同期して、前記
第2のアドレスバスを介して前記周辺装置のアドレス指
定を行う第2のDMA制御部とを備えて構成されている
[Means for Solving the Problems] A microcomputer according to the present invention has a DMA function for directly transferring data between a memory and a peripheral device, and has a DMA function that is commonly connected to a CPU, the memory, and the peripheral device. data bus,
a first address bus connected to the memory; a second address bus connected to the peripheral device independently of the first address bus; a first DMA control unit that specifies the address of the memory via the second address bus in synchronization with the address specification of the first DMA control unit according to instructions from the CPU; and a second DMA control section that performs specification.

【0014】[0014]

【作用】この発明においては、第1のDMA制御部はC
PUの命令に従い第1のアドレスバスを介してメモリの
アドレス指定を行い、第2のDMA制御部は第1のDM
A制御部のアドレス指定と同期して、第2のアドレスバ
スを介して周辺装置のアドレス指定を行っているため、
DMA転送時において、メモリと周辺装置とのアドレス
指定が同時に行える。
[Operation] In this invention, the first DMA control section
The memory is addressed via the first address bus according to the instructions of the PU, and the second DMA controller
Because the addressing of the peripheral device is performed via the second address bus in synchronization with the addressing of the A control unit,
During DMA transfer, addresses can be specified for memory and peripheral devices at the same time.

【0015】[0015]

【実施例】図1はこの発明の一実施例であるDMA転送
機能を有するマイクロコンピュータの内部構成を示すブ
ロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing the internal structure of a microcomputer having a DMA transfer function, which is an embodiment of the present invention.

【0016】同図に示すように、CPU1及びメモリ2
がそれぞれ共通にデータバス11及びメインアドレスバ
ス21に接続されている。そして、メインDMAC5が
メインアドレスバス21に接続されている。
As shown in the figure, a CPU 1 and a memory 2
are commonly connected to the data bus 11 and the main address bus 21, respectively. The main DMAC 5 is connected to the main address bus 21.

【0017】一方、I/O3及びローカルDMAC6が
それぞれ共通にデータバス11及びローカルアドレスバ
ス22に接続されている。なお、通常と異なり、ローカ
ルDMAC6のアドレス端子にデータバス11が接続さ
れており、単方向(データバス11→ローカルDMAC
6)のみ有効である。
On the other hand, I/O 3 and local DMAC 6 are commonly connected to data bus 11 and local address bus 22, respectively. Note that, unlike usual, the data bus 11 is connected to the address terminal of the local DMAC 6, and the data bus 11 is unidirectional (data bus 11 → local DMAC 6).
Only 6) is valid.

【0018】メインDMAC5及びローカルDMAC6
はCPU1の指示に従い、互いに協調してメモリ2,I
/O3間のDMA転送の制御を行う。この際、メモリ2
へのアドレス指定はメインDMAC5によりメインアド
レスバス21を介して行われ、I/O3へのアドレス指
定はローカルDMAC6によりローカルアドレスバス2
2を介して、メインDMAC5によるメモリ2へのアド
レス指定と同期して行われる。
[0018] Main DMAC 5 and local DMAC 6
follow instructions from CPU 1 and cooperate with each other to store memories 2 and I.
Controls DMA transfer between /O3. At this time, memory 2
Addressing to I/O3 is done by main DMAC 5 via main address bus 21, and addressing to I/O3 is done by local DMAC 6 via local address bus 21.
This is done in synchronization with the address designation to the memory 2 by the main DMAC 5 via the main DMAC 2.

【0019】このような構成において、I/O3からメ
モリ2へのデータのDMA転送は、以下に示すように行
われる。
In such a configuration, DMA transfer of data from the I/O 3 to the memory 2 is performed as shown below.

【0020】まず、CPU1がDMA転送を指示する制
御信号S1をメインDMAC5及びローカルDMAC6
に出力する。さらに、CPU1はメインアドレスバス2
1を介してメモリ2の転送先アドレスをDMAC5に出
力するとともに、データバス11を介してI/O3の転
送元アドレスをローカルDMAC6に出力する。
First, the CPU 1 sends a control signal S1 instructing DMA transfer to the main DMAC 5 and the local DMAC 6.
Output to. Furthermore, CPU1 has main address bus 2.
It outputs the transfer destination address of the memory 2 to the DMAC 5 via the data bus 11, and outputs the transfer source address of the I/O 3 to the local DMAC 6 via the data bus 11.

【0021】これを受けたメインDMAC5はアドレス
バス21を介してメモリ2に転送先アドレスを出力し、
これと同期してローカルDMAC6によりローカルアド
レスバス22を介してI/O3に転送元アドレスを出力
する。
Upon receiving this, the main DMAC 5 outputs the transfer destination address to the memory 2 via the address bus 21.
In synchronization with this, the local DMAC 6 outputs the transfer source address to the I/O 3 via the local address bus 22.

【0022】その結果、メモリ2,I/O3間のDMA
転送時において、I/O3の転送元アドレスの指定とメ
モリ2の転送先アドレスの指定が同時に行われるため、
メインDMAC5あるいはローカルDMAC6の内部レ
ジスタ等に一時的に転送することなく、I/O3から出
力されたデータがデータバス11を介して1メモリサイ
クルでメモリ2の転送先アドレスに転送される。
As a result, the DMA between memory 2 and I/O3
At the time of transfer, the transfer source address of I/O3 and the transfer destination address of memory 2 are specified at the same time, so
The data output from the I/O 3 is transferred to the destination address of the memory 2 in one memory cycle via the data bus 11 without being temporarily transferred to the internal registers of the main DMAC 5 or the local DMAC 6.

【0023】また、メモリ2からI/O3へのDMA転
送も同様に、メインDMAC5及びローカルDMAC6
の制御下で、メモリ2への転送元アドレスの指定がメイ
ンDMAC5によりメインアドレスバス21を介して行
われ、これと同期して、I/O4への転送先アドレスの
指定がローカルDMAC6によりローカルアドレスバス
22を介して行われることにより、メモリ2における転
送元アドレスの格納データが1メモリサイクルでI/O
3の転送先アドレスに転送される。
Similarly, DMA transfer from memory 2 to I/O 3 is performed by main DMAC 5 and local DMAC 6.
Under the control of the main DMAC 5, the transfer source address to the memory 2 is specified via the main address bus 21, and in synchronization with this, the transfer destination address to the I/O 4 is specified by the local DMAC 6 using the local address. By performing this via the bus 22, data stored at the transfer source address in the memory 2 can be input/output in one memory cycle.
It will be forwarded to the forwarding address of 3.

【0024】このように、メインDMAC5及びローカ
ルDMAC6の制御下でメモリ2とI/O3とのデータ
のDMA転送を行うことにより、一旦、DMAC内部の
レジスタ等に一時的に格納することなく1メモリサイク
ルでDMA転送を行うことができる。その結果、1メモ
リサイクル分DMA転送時間を短縮でき、DMA転送に
よりデータバス11が占有される時間を短縮できる分マ
イクロコンピュータシステム全体の処理速度を向上させ
ることができる。
In this way, by performing DMA transfer of data between the memory 2 and I/O 3 under the control of the main DMAC 5 and the local DMAC 6, one memory can be transferred without temporarily storing it in a register etc. inside the DMAC. DMA transfer can be performed by recycling. As a result, the DMA transfer time can be reduced by one memory cycle, and the processing speed of the entire microcomputer system can be improved by reducing the time during which the data bus 11 is occupied by DMA transfer.

【0025】図2はこの発明の他の実施例であるDMA
転送機能を有するマイクロコンピュータの内部構成を示
すブロック図である。
FIG. 2 shows a DMA which is another embodiment of the present invention.
FIG. 2 is a block diagram showing the internal configuration of a microcomputer with a transfer function.

【0026】同図に示すように、CPU1及びメモリ2
がそれぞれ共通にメインデータバス13及びメインアド
レスバス21に接続されている。そして、メインDMA
C5がメインアドレスバス21に接続されている。
As shown in the figure, CPU 1 and memory 2
are commonly connected to the main data bus 13 and main address bus 21, respectively. And the main DMA
C5 is connected to the main address bus 21.

【0027】一方、I/O3及びローカルDMAC6が
それぞれ共通にローカルデータバス14及びローカルア
ドレスバス22に接続されている。なお、ローカルDM
AC6のアドレス端子にローカルデータバス14が接続
されており、単方向(ローカルデータバス14→ローカ
ルDMAC6)のみ有効である。
On the other hand, I/O 3 and local DMAC 6 are commonly connected to local data bus 14 and local address bus 22, respectively. In addition, local DM
A local data bus 14 is connected to the address terminal of AC6, and only one direction (local data bus 14→local DMAC6) is valid.

【0028】そして、メインアドレスバス13,ローカ
ルアドレスバス14間にバススイッチ15を設けている
。このバススイッチ15を導通状態にすると、図1で示
した構成と等価にできる。
A bus switch 15 is provided between the main address bus 13 and the local address bus 14. When this bus switch 15 is turned on, the configuration can be equivalent to that shown in FIG. 1.

【0029】一方、バススイッチ15を非道通状態にす
ることによりメモリ2側とI/O3側とでアドレスバス
に加えデータバスも独立させることができ、例えば、I
/O3側にサブのCPUが存在する場合、メインのCP
U1とサブのCPUとでそれぞれ独立してアドレスバス
及びデータバスを利用することができ、マイクロコンピ
ュータシステムの利用効率の向上が図れる。
On the other hand, by setting the bus switch 15 to a non-conducting state, it is possible to make the data bus in addition to the address bus independent between the memory 2 side and the I/O 3 side.
/If there is a sub CPU on the O3 side, the main CPU
The address bus and data bus can be used independently by U1 and the sub CPU, thereby improving the usage efficiency of the microcomputer system.

【0030】[0030]

【発明の効果】以上説明したように、この発明によれば
、第1のDMA制御部により、第1のアドレスバスを介
してメモリのアドレス指定を行い、第2のDMA制御部
により第1のDMA制御部のメモリへのアドレス指定と
同期して、第2のアドレスバスを介して周辺装置のアド
レス指定を行っているため、DMA転送時において、メ
モリと周辺装置とのアドレス指定が同時に行える。
As explained above, according to the present invention, the first DMA control section specifies the address of the memory via the first address bus, and the second DMA control section specifies the address of the memory via the first address bus. Since the addressing of the peripheral device is performed via the second address bus in synchronization with the addressing of the memory by the DMA control unit, the addressing of the memory and the peripheral device can be done simultaneously during DMA transfer.

【0031】その結果、一旦、レジスタ等の一時記憶装
置に中間転送することなく、メモリ,周辺装置間のDM
A転送がデータバスを介して1メモリサイクルで行われ
るため、DMA転送時間を大幅に短縮することができる
As a result, DM between memory and peripheral devices can be performed without intermediate transfer to a temporary storage device such as a register.
Since the A transfer is performed in one memory cycle via the data bus, the DMA transfer time can be significantly shortened.

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

【図1】この発明の一実施例であるDMA転送機能を有
するマイクロコンピュータの内部構成を示すブロック図
である。
FIG. 1 is a block diagram showing the internal configuration of a microcomputer having a DMA transfer function, which is an embodiment of the present invention.

【図2】この発明の他の実施例であるDMA転送機能を
有するマイクロコンピュータの内部構成を示すブロック
図である。
FIG. 2 is a block diagram showing the internal configuration of a microcomputer having a DMA transfer function, which is another embodiment of the present invention.

【図3】従来のDMA転送機能を有するマイクロコンピ
ュータの内部構成を示すブロック図である。
FIG. 3 is a block diagram showing the internal configuration of a conventional microcomputer with a DMA transfer function.

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

1    CPU 2    メモリ 3    I/O 5    メインDMAC 6    ローカルDMAC 11  データバス 13  メインデータバス 14  ローカルデータバス 15  バススイッチ 21  メインアドレスバス 22  ローカルアドレスバス 1 CPU 2. Memory 3 I/O 5 Main DMAC 6 Local DMAC 11 Data bus 13 Main data bus 14 Local data bus 15 Bus switch 21 Main address bus 22 Local address bus

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】    メモリ,周辺装置間のデータ転送
を直接行うDMA機能を有するマイクロコンピュータで
あって、CPUと、前記メモリ及び前記周辺装置に共通
に接続されたデータバスと、前記メモリに接続された第
1のアドレスバスと、前記第1のアドレスバスと独立し
て、前記周辺装置に接続された第2のアドレスバスと、
前記CPUの命令に従い前記第1のアドレスバスを介し
て前記メモリのアドレス指定を行う第1のDMA制御部
と、前記CPUの命令に従い前記第1のDMA制御部の
アドレス指定と同期して、前記第2のアドレスバスを介
して前記周辺装置のアドレス指定を行う第2のDMA制
御部とを備えたマイクロコンピュータ。
1. A microcomputer having a DMA function for directly transferring data between a memory and a peripheral device, the microcomputer comprising a CPU, a data bus commonly connected to the memory and the peripheral device, and a data bus connected to the memory. a second address bus connected to the peripheral device independently of the first address bus;
a first DMA control unit that specifies an address of the memory via the first address bus in accordance with an instruction from the CPU; a second DMA control unit that specifies the address of the peripheral device via a second address bus.
JP3023076A 1991-02-18 1991-02-18 Microcomputer Pending JPH04288653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3023076A JPH04288653A (en) 1991-02-18 1991-02-18 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3023076A JPH04288653A (en) 1991-02-18 1991-02-18 Microcomputer

Publications (1)

Publication Number Publication Date
JPH04288653A true JPH04288653A (en) 1992-10-13

Family

ID=12100316

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3023076A Pending JPH04288653A (en) 1991-02-18 1991-02-18 Microcomputer

Country Status (1)

Country Link
JP (1) JPH04288653A (en)

Similar Documents

Publication Publication Date Title
US4799199A (en) Bus master having burst transfer mode
JPH04288653A (en) Microcomputer
JP2000099452A (en) Dma control device
SU1683039A1 (en) Device for data processing for multiprocessor system
JP2504535B2 (en) Bus unit configuration method
JP3201439B2 (en) Direct memory access control circuit
JPH05282239A (en) Dma transfer system
JPS62249263A (en) Direct memory access controller
JP2856709B2 (en) Bus coupling system
JPH05334233A (en) Data transferring device
JPH05128279A (en) One-chip microcomputer
JPH02287750A (en) Address conversion system of channel device
JPH02101559A (en) Processor circuit
JPH04369065A (en) Direct memory access controller
JPS6140658A (en) Data processor
JPS62241048A (en) Addressing system for extended memory
JPH03242775A (en) Microprocessor
JPH04209059A (en) Semiconductor integrated circuit
JPH02307149A (en) Direct memory access control system
JPH0233636A (en) Picture processor
JPH04170664A (en) Microprocessor device
JPH05265923A (en) Data transfer equipment
JPH09146877A (en) Inter-memory data transfer controller
JPH05342116A (en) Microprocessor
JPH0411899B2 (en)