JPH0240754A - Dma unit - Google Patents

Dma unit

Info

Publication number
JPH0240754A
JPH0240754A JP63190975A JP19097588A JPH0240754A JP H0240754 A JPH0240754 A JP H0240754A JP 63190975 A JP63190975 A JP 63190975A JP 19097588 A JP19097588 A JP 19097588A JP H0240754 A JPH0240754 A JP H0240754A
Authority
JP
Japan
Prior art keywords
dma
timer
signal
controller
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
JP63190975A
Other languages
Japanese (ja)
Inventor
Tatsuya Saito
齋藤 龍也
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP63190975A priority Critical patent/JPH0240754A/en
Publication of JPH0240754A publication Critical patent/JPH0240754A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the use efficiency of an in-chip device as compared with a case wherein timer circuits are provided individually by adding a transfer controller to the DMA unit and decreasing idle combinations of devices. CONSTITUTION:A CPU 11 outputs a D/T signal 12 to a timer/DMA controller 2, which operates as a DMA controller when the D/T signal 12 is at high level, but functions as a timer when at low level. For DMA service, the number of times of transfer is set in a counting register 3 and decreased in synchronism with the DMA transfer. When the controller 2 selects timer operation, the value obtained by dividing a time to be closed by the period of a clock is set in the register 3, whose contents are decreased in synchronism with the clock. This operation is repeated and when the value in the register 3 becomes minus, a borrow signal 6 is inputted to the controller 6 and the completion of determined-frequency DMA transfer is detected. Here, a terminal count signal 8 is outputted to indicate the transfer end to the outside.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はDMAユニットに関する。より詳細には、タイ
マ機能を付加した新規なりMAユニットの構成に関する
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a DMA unit. More specifically, the present invention relates to the configuration of a new MA unit with a timer function added.

従来の技術 第3図は、従来のDMAユニットの典型的な構成を示す
図である。
Prior Art FIG. 3 is a diagram showing a typical configuration of a conventional DMA unit.

即ち、DMAユニット16は、カウントレジスタ3、カ
ウントデクリメンタ4およびDMAコントローラー17
を備えており、これらは内部バス5を介して相互に接続
されている。
That is, the DMA unit 16 includes a count register 3, a count decrementer 4, and a DMA controller 17.
These are interconnected via an internal bus 5.

このようなりMAユニットは、以下のように動作する。The MA unit thus operates as follows.

まず、DMARQ信号9によってDMA転送要求が周辺
デバイス13よりDMAコントローラに人力される。こ
れを受けたDMAコントローラはCP UllにHLD
AK信号18を送り、データバスの使用権をあけ渡すよ
う要求する。
First, a DMA transfer request is manually input from the peripheral device 13 to the DMA controller in response to the DMARQ signal 9. Upon receiving this, the DMA controller sends HLD to CP Ull.
It sends an AK signal 18 to request release of the right to use the data bus.

CPUは、バス使用権の要求を受けつけると、HLDA
K信号19をDMAコントローラに返し、データバス使
用権がDMAユニットに移ったことを知らせる。更に、
DMAユニットは、DMA転送が可能になったことをD
MAAK信号10によって周辺デバイスに通知する。
When the CPU receives a request for bus usage rights, the CPU
A K signal 19 is returned to the DMA controller to notify that the right to use the data bus has been transferred to the DMA unit. Furthermore,
The DMA unit indicates that DMA transfer is possible.
Peripheral devices are notified by MAAK signal 10.

また、DMA転送が可能になると、DMAユニット自身
は、カウントレジスタに転送回数をセットし、カウント
デクリメンタによってDMA転送が1回行われる毎にカ
ウントレジスタの値を1ずつ減じてゆく。そして、これ
を繰り返してカウントレジスタの値がマイナスになると
、カウントデクリメンタよりDMAコントローラにボロ
ー信号6が入力され、決められた回数のDMA転送が処
理されたことが検知される。そこで、DMAコントロー
ラはDMA転送を終了し、ターミナルカウント信号8を
出力して外部にDMA転送終了を知らせる。
Furthermore, when DMA transfer becomes possible, the DMA unit itself sets the number of transfers in a count register, and a count decrementer decrements the value of the count register by 1 each time a DMA transfer is performed. When this is repeated and the value of the count register becomes negative, a borrow signal 6 is input from the count decrementer to the DMA controller, and it is detected that a predetermined number of DMA transfers have been processed. The DMA controller then ends the DMA transfer and outputs the terminal count signal 8 to inform the outside of the end of the DMA transfer.

発明が解決しようとする課題 上述した従来のDMAコントローラは、DMA転送が使
用されない時には完全な待機状態にあり、実際のシステ
ムにおいてD M、A転送が使用されない用途の場合は
ハードウェア資源の利用効率が悪いという欠点がある。
Problems to be Solved by the Invention The conventional DMA controller described above is in a complete standby state when DMA transfer is not used, and in an actual system where DM, A transfer is not used, it is difficult to use hardware resources efficiently. The disadvantage is that it is bad.

そこで、本発明の目的は、上記従来技術の問題点を解決
し、DMA転送を使用しない処理の場合に、DMAコン
トローラユニットのハードウェア資源を有効に利用する
ことのできる真意な構成を備えたDMAコントローラユ
ニットを提供することにある。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to solve the above-mentioned problems of the prior art and provide a DMA with a true configuration that can effectively utilize the hardware resources of a DMA controller unit in the case of processing that does not use DMA transfer. Our goal is to provide a controller unit.

課題を解決するための手段 即ち、本発明に従い、DMA転送コントロール機能とタ
イマ機能との2つの機、能を備え、制御信号によって選
択的に該2種の機能のいずれかの動作を行うことを特徴
とするDMAユニットが提供される。
Means for solving the problem, that is, according to the present invention, is provided with two functions, a DMA transfer control function and a timer function, and is capable of selectively operating one of the two functions according to a control signal. A DMA unit is provided.

作用 本発明者は、DMAユニットをタイマとしても使用可能
に構成することによって、ハードウェア資源の有効利用
を果たすことができると判断した。
Effect The inventor of the present invention has determined that hardware resources can be used effectively by configuring the DMA unit so that it can also be used as a timer.

即ち、具体的にはレジスタの値をデクリメントしていく
方式として、DMA転送同期とクロック同期の二つを選
択可能とし、制御信号によっていずれかの同期デクリメ
ント方式を選択可能に構成することにより、DMAユニ
ットにタイマの機能を容易に付加することができる。
Specifically, by making it possible to select between DMA transfer synchronization and clock synchronization as the method of decrementing the value of the register, and configuring either of the synchronous decrement methods to be selectable by a control signal, the DMA A timer function can be easily added to the unit.

以下に図面を参照して本発明をより具体的に詳述するが
、以下の開示は本発明の一実施例に過ぎず、本発明の技
術的範囲を何ら限定するものではない。
The present invention will be described in more detail below with reference to the drawings, but the following disclosure is only one example of the present invention and does not limit the technical scope of the present invention in any way.

実施例 第1図は本発明の一実施例のブロック図である。Example FIG. 1 is a block diagram of one embodiment of the present invention.

タイマ/DMAユニット1は、タイマ/DMAコントロ
ーラ2、カウントレジスタ3およびカウントデクリメン
タ4より主に構成されている。
The timer/DMA unit 1 mainly includes a timer/DMA controller 2, a count register 3, and a count decrementer 4.

タイマ/DMAコントローラとカウントレジスタおよび
カウントレジスタとカウントデクリメンタはそれぞれ内
部バス5を介して接続されている。
The timer/DMA controller and the count register and the count register and count decrementer are connected via an internal bus 5, respectively.

従って、カウントデクリメンタからタイマ/DMAコン
トローラへボロー信号6が、周辺デバイス13からタイ
マ/DMAコントローラへDMARQ信号9が、タイマ
/DMAコントローラから周辺デバイスへDMAAK信
号10が、クロックジェネレータ19からタイマ/DM
Aコントローラヘク°ロック7が、タイマ/DMAコン
トローラからターミナルカウント信号8が、更に、CP
 Ullからタイマ/DMAコントローラへD/T信号
12とHLDAK信号19が、タイマ/DMAコントロ
ーラカラCPUへHLDRQ信号18が人力されるよう
に構成されている。
Therefore, a borrow signal 6 is sent from the count decrementer to the timer/DMA controller, a DMARQ signal 9 is sent from the peripheral device 13 to the timer/DMA controller, a DMAAK signal 10 is sent from the timer/DMA controller to the peripheral device, and a DMAAK signal 10 is sent from the clock generator 19 to the timer/DMA controller. DM
The A controller lock 7 receives the terminal count signal 8 from the timer/DMA controller, and the CP
The configuration is such that the D/T signal 12 and HLDAK signal 19 are input from the Ull to the timer/DMA controller, and the HLDRQ signal 18 is input to the timer/DMA controller CPU.

第1図に示す装置の動作について説明する。The operation of the apparatus shown in FIG. 1 will be explained.

まず、CPUIIよりD/T信号が出力され、タイマ/
DMAコントローラに入力される。ここで、D/T信号
がハイレベルならばタイマ/DMAユニットはDMAコ
ントローラとして動作し、ローレベルならばタイマ機能
を果たすように構成されている。。
First, the CPU II outputs the D/T signal, and the timer/
Input to DMA controller. Here, if the D/T signal is at a high level, the timer/DMA unit operates as a DMA controller, and if the D/T signal is at a low level, it is configured to perform a timer function. .

DMAサービスを行なう際の動作は、カウントレジスタ
に転送回数をセットし、DMA転送に同期してカウント
レジスタの値を減じていくのが特徴で、第3図に示した
従来のDMAユニットの動作と同様な処理を行う。
The operation when performing DMA service is characterized by setting the number of transfers in a count register and decrementing the value of the count register in synchronization with the DMA transfer, which is similar to the operation of the conventional DMA unit shown in Figure 3. Perform similar processing.

一方、タイマ/DMAユニットがタイマ動作を選択され
た場合、カウントレジスタに計時したい時間をクロック
の周期で割った値をセットしておき、クロックに同期し
てカウントレジスタの値を減じていき、カウントレジス
タの値がマイナスになるとターミナルカウント信号8が
出力されて、定められた時間が経過したことを知らせる
On the other hand, when the timer/DMA unit is selected to operate as a timer, the value obtained by dividing the time to be measured by the clock cycle is set in the count register, and the value of the count register is decremented in synchronization with the clock. When the value in the register becomes negative, a terminal count signal 8 is output, indicating that a predetermined time has elapsed.

実施例2 第2図は本発明の他の実施例の構成を示す図である。Example 2 FIG. 2 is a diagram showing the configuration of another embodiment of the present invention.

本実施例の装置は、先の実施例と基本的な構成は同じで
あるが、D/T信号を外部端子から制御されるように構
成されている点に特徴がある。
The device of this embodiment has the same basic configuration as the previous embodiment, but is characterized in that the D/T signal is controlled from an external terminal.

即ち、外部よりタイマ/DMAユニットを制御すること
ができるので、他のシステムがタイマを使う処理を行う
場合に、この装置のタイマ機能を利用することが可能と
なり、ユニットの使用効率が更に高まる。
That is, since the timer/DMA unit can be controlled from the outside, when another system performs processing that uses a timer, it becomes possible to utilize the timer function of this device, further increasing the usage efficiency of the unit.

発明の詳細 な説明したように、本発明によれば、DMAユニットに
タイマ機能を付加したことによって、ユニットの遊休組
合せが減少され、チップ全体の利用効率を高める効果が
あり、 即ち、タイマ回路を個別に設ける場合に比べ、シングル
チップにCPU、DMAユニット、タイマユニットを設
けている場合にはチップ面積を減少でき、また、マルチ
チップ構成でCPUSDMAユニット、タイマユニット
を設けている場合にはチップ数を減少することができる
As described in detail, according to the present invention, by adding a timer function to the DMA unit, the number of idle combinations of units is reduced, and the efficiency of using the entire chip is improved. Compared to the case where they are installed individually, the chip area can be reduced when the CPU, DMA unit, and timer unit are installed in a single chip, and the number of chips can be reduced when the CPU, DMA unit, and timer unit are installed in a multi-chip configuration. can be reduced.

このように、本発明に係るDMAユニットが搭載された
情報処理装置では、様々な用途に対しチップ内ユニット
の使用効率を高く保つことが出来、システム全体のコス
トダウムを計ることが出来る。
As described above, in the information processing device equipped with the DMA unit according to the present invention, the usage efficiency of the unit within the chip can be kept high for various uses, and the cost of the entire system can be reduced.

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

第1図は、本発明に従って構成されたDMAユニットの
構成例を示す図であり、 第2図は、本発明に従って構成されたDMAユニットの
他の構成例を示す図であり、 第3図は、従来のDMAユニットの構成を示す図である
。 〔主な参照番号〕 1・・・・タイマ/DMAユニット、 2・・・・タイマ/DMAコントローラ、3・・・・カ
ウントレジスタ、 4・・・・カウントデクリメンタ、 5・・・・内部バス、    6・・・・ボロー信号、
7・・・・クロック、 8・・・・ターミナルカウント信号、 9・・・・DMARQ信号、 10・・・・DMAAK信号、 11・・・・CPU (中央処理装置)、12・・・・
D/T信号、  13・・周辺デバイス、14・・・・
クロックジェネレータ、 15・・・・外部端子、  16・・DMAユニット、
17・・・・DMAコントローラ、 18・・・・HLDRQ信号、 19・・・・HLDAK信号
FIG. 1 is a diagram showing a configuration example of a DMA unit configured according to the present invention, FIG. 2 is a diagram showing another configuration example of a DMA unit configured according to the present invention, and FIG. , is a diagram showing the configuration of a conventional DMA unit. [Main reference numbers] 1...Timer/DMA unit, 2...Timer/DMA controller, 3...Count register, 4...Count decrementer, 5...Internal Bus, 6...Borrow signal,
7...Clock, 8...Terminal count signal, 9...DMARQ signal, 10...DMAAK signal, 11...CPU (central processing unit), 12...
D/T signal, 13...peripheral device, 14...
Clock generator, 15...external terminal, 16...DMA unit,
17...DMA controller, 18...HLDRQ signal, 19...HLDAK signal

Claims (1)

【特許請求の範囲】[Claims] DMA転送コントロール機能とタイマ機能との2つの機
能を備え、制御信号によって選択的に該2種の機能のい
ずれかの動作を行うことを特徴とするDMAユニット。
A DMA unit comprising two functions, a DMA transfer control function and a timer function, and selectively performing one of the two functions in response to a control signal.
JP63190975A 1988-07-30 1988-07-30 Dma unit Pending JPH0240754A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63190975A JPH0240754A (en) 1988-07-30 1988-07-30 Dma unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63190975A JPH0240754A (en) 1988-07-30 1988-07-30 Dma unit

Publications (1)

Publication Number Publication Date
JPH0240754A true JPH0240754A (en) 1990-02-09

Family

ID=16266785

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63190975A Pending JPH0240754A (en) 1988-07-30 1988-07-30 Dma unit

Country Status (1)

Country Link
JP (1) JPH0240754A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5692740A (en) * 1996-10-23 1997-12-02 Xerox Corporation Disk type inverter-stacker with improved sheet control with automatically repositionable fingers

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5692740A (en) * 1996-10-23 1997-12-02 Xerox Corporation Disk type inverter-stacker with improved sheet control with automatically repositionable fingers

Similar Documents

Publication Publication Date Title
EP1428131B1 (en) Multiple channel interface for communications between devices
EP0428330A2 (en) Computer interface circuit
JP2822986B2 (en) Single chip microcomputer with DMA
US5640602A (en) Transferring digital data in units of 2 bytes to increase utilization of a 2-byte-wide bus
US5287486A (en) DMA controller using a programmable timer, a transfer counter and an or logic gate to control data transfer interrupts
EP0463775B1 (en) Multiple speed expansion card
Yun et al. A high-performance asynchronous SCSI controller
JPH0240754A (en) Dma unit
CA1105148A (en) Direct memory access expander unit for use with a microprocessor
JP2826244B2 (en) DMA unit
JPH04323755A (en) Dma device
JP3491588B2 (en) External bus controller
EP0668556A2 (en) A queue memory system and method therefor
JP3548943B2 (en) Interrupt control method
JP4097377B2 (en) Microcomputer
JPH052557A (en) Data transfer device
JPH0644180A (en) Dma device
JPS6240565A (en) Memory control system
JPH0520261A (en) Priority control cirucit
JPS5913763B2 (en) Bus usage control method and device
JPS60222951A (en) Data transfer system
JPH0150927B2 (en)
JP2002024160A (en) Dma transfer device
JPH06187065A (en) Clock switching circuit
JPH04102955A (en) Interruption controller