[go: up one dir, main page]

JPH11212904A - Data transfer system - Google Patents

Data transfer system

Info

Publication number
JPH11212904A
JPH11212904A JP1238598A JP1238598A JPH11212904A JP H11212904 A JPH11212904 A JP H11212904A JP 1238598 A JP1238598 A JP 1238598A JP 1238598 A JP1238598 A JP 1238598A JP H11212904 A JPH11212904 A JP H11212904A
Authority
JP
Japan
Prior art keywords
data
data transfer
cpu
register
timer interrupt
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.)
Withdrawn
Application number
JP1238598A
Other languages
Japanese (ja)
Inventor
Naoyuki Wada
直幸 和田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP1238598A priority Critical patent/JPH11212904A/en
Publication of JPH11212904A publication Critical patent/JPH11212904A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

(57)【要約】 【課題】 多数の割り込みによるCPUのオーバーヘッ
ドを少なくする。 【解決手段】 転送すべきデータが蓄積されるデータを
所定時間毎に受け取る外部機器に対して送るデータの転
送を行った場合に、データ転送を終了したか否かが書き
込まれるステータスレジスタ206cと、所定時間毎に
CPUに対しタイマ割り込みを行うコントローラ205
とを備え、CPUがコントローラ205から割り込みを
受けると、ステータスレジスタ206cを参照してデー
タ転送の状態を確認することにより、CPUに対して割
り込みによる所定時間の経過を通知し、且つ、データ転
送の状態を通知できるようにする。
(57) [Summary] [PROBLEMS] To reduce CPU overhead due to a large number of interrupts. A status register (206c) in which whether or not the data transfer has been completed is written when data to be transferred is transferred to an external device that receives stored data at predetermined time intervals. A controller 205 that performs a timer interrupt to the CPU every predetermined time
When the CPU receives an interrupt from the controller 205, the CPU refers to the status register 206c to check the state of the data transfer, thereby notifying the CPU of the elapse of a predetermined time due to the interrupt, and Enables notification of status.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、データを所定時
間毎に受け取る表示装置やネットワーク等の外部機器に
対してデータ転送をDMA(Direct Memory Access) に
より行う場合に好適なデータ転送システムに関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer system suitable for transferring data to an external device such as a display device or a network which receives data at predetermined time intervals by a DMA (Direct Memory Access). is there.

【0002】[0002]

【従来の技術】従来、データを所定時間毎に受け取る表
示装置やネットワーク等の外部機器に対してデータ転送
を行う場合には、HDD(ハード・ディスク・ドライ
ブ)やRAM等のメモリにデータ転送すべきデータを用
意し、CPUにより直接に転送を行うか、CPUの処理
を軽減するために、DMAC(DMAコントローラ)に
よる転送を行っている。
2. Description of the Related Art Conventionally, when data is transferred to an external device such as a display device or a network which receives data at predetermined time intervals, the data is transferred to a memory such as an HDD (hard disk drive) or a RAM. Data to be prepared is prepared and transferred directly by the CPU, or data is transferred by a DMAC (DMA controller) in order to reduce the processing of the CPU.

【0003】上記DMAによる手法では、まず、CPU
がDMACに対してDMAを行う領域を指定すると共に
開始を示すフラグのセットを行う。これに対してDMA
Cは開始を示すフラグがセットされたことを検出してD
MA転送を開始する。指定されたデータのDMA転送が
完了すると、DMACはCPUに対して割り込みを行
い、DMA完了を通知する。CPUはDMACの割り込
みを受けて割り込み処理を行い、DMA完了を知る。
In the above-mentioned DMA method, first, a CPU is used.
Specifies the area for performing DMA on the DMAC and sets a flag indicating the start. On the other hand, DMA
C detects that the start flag has been set, and
Initiate MA transfer. When the DMA transfer of the designated data is completed, the DMAC interrupts the CPU and notifies the CPU of the completion. The CPU receives the DMAC interrupt, performs interrupt processing, and knows that the DMA has been completed.

【0004】また、外部機器がデータを所定時間毎に受
け取るタイミングをCPUが検出するために、自らのタ
イマを参照する手法があるが、CPUの負荷が増大する
ことに鑑み、他の装置から割込みによりタイムスロット
の切れ目をCPUに通知する手法が採用されている。
There is also a method in which the CPU refers to its own timer in order for the CPU to detect the timing at which the external device receives data at predetermined time intervals. However, in view of an increase in the load on the CPU, an interrupt from another device is performed. A method of notifying the CPU of the break of the time slot is adopted.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、タイム
スロットの切れ目を他の装置からの割り込みにより通知
するようにすると、CPUには上記DMA完了の割り込
みに加えて割り込みがなされ、割り込みに対応する処理
が繁雑となりオーバーヘッドが大きくなるという問題点
があった。
However, if a break in the time slot is notified by an interrupt from another device, an interrupt is issued to the CPU in addition to the DMA completion interrupt, and processing corresponding to the interrupt is performed. There has been a problem that it becomes complicated and overhead increases.

【0006】本発明は上記のような従来のデータ転送シ
ステムが有する問題点を解決せんとしてなされたもの
で、その目的は、データを所定時間毎に受け取る表示装
置やネットワーク等の外部機器に対してデータ転送を行
う場合に、上記所定時間の間、つまり、所定時間のタイ
ムスロットにおいて転送するデータを用意し、次のタイ
ムスロットでデータ転送を行い、これをCPUのオーバ
ーヘッドを少なくして通知することのできるデータ転送
システムを提供することである。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems of the conventional data transfer system, and has as its object to provide an external device such as a display device or a network which receives data at predetermined time intervals. When performing data transfer, prepare data to be transferred during the above-mentioned predetermined time, that is, in a time slot of the predetermined time, perform data transfer in the next time slot, and notify it with less CPU overhead. It is to provide a data transfer system capable of performing the following.

【0007】[0007]

【課題を解決するための手段】本発明の請求項1に記載
のデータ転送システムは、転送すべきデータが蓄積され
るデータ蓄積手段と、前記データを所定時間毎に受け取
る外部機器と、前記データ蓄積手段と前記外部機器との
間でデータを転送するデータ転送手段と、前記データ転
送に関する制御を行うCPUと、前記データ転送手段に
よりデータ転送を終了したか否かが書き込まれるレジス
タと、前記所定時間毎に前記CPUに対しタイマ割り込
みを行うタイマ割込手段とを備え、前記CPUは前記タ
イマ割込手段から割り込みを受けると、前記レジスタを
参照してデータ転送の状態を確認することを特徴とす
る。これによって、外部機器がデータを受け取る所定時
間毎にCPUに対して割り込みがなされ、このときCP
Uはデータ転送の状態を確認することができ、CPUに
とっては割り込み回数を減少させオーバーヘッドを少な
くできる。
According to a first aspect of the present invention, there is provided a data transfer system comprising: a data storage unit for storing data to be transferred; an external device for receiving the data at predetermined time intervals; A data transfer unit for transferring data between a storage unit and the external device; a CPU for controlling the data transfer; a register in which whether or not the data transfer is completed by the data transfer unit is written; Timer interrupt means for performing a timer interrupt to the CPU every time, and when the CPU receives an interrupt from the timer interrupt means, the CPU refers to the register to check a data transfer state. I do. As a result, an interrupt is made to the CPU every predetermined time at which the external device receives data.
U can confirm the state of data transfer, and can reduce the number of interrupts and the overhead for the CPU.

【0008】本発明の請求項2に記載のデータ転送シス
テムでは、データ転送の開始を指示するフラグ用の制御
レジスタを有し、CPUが当該制御レジスタのフラグを
必要に応じてセットすることを特徴とする。これによ
り、CPUからの指示によりデータ転送の開始を制御可
能である。
The data transfer system according to a second aspect of the present invention has a control register for a flag for instructing the start of data transfer, and the CPU sets the flag of the control register as needed. And Thus, the start of data transfer can be controlled by an instruction from the CPU.

【0009】本発明の請求項3に記載のデータ転送シス
テムは、転送すべきデータが蓄積されるデータ蓄積手段
と、前記データを所定時間毎に受け取る外部機器と、前
記データ蓄積手段と前記外部機器との間でデータを転送
するデータ転送手段と、前記データ転送に関する制御を
行うCPUと、前記データ転送手段によりデータ転送を
終了したか否かが書き込まれるレジスタと、前記所定時
間毎に前記CPUに対しタイマ割り込みを行うと共に、
前記データ転送手段にデータ転送の開始を指示するタイ
マ割込手段とを備え、前記CPUは前記タイマ割込手段
から割り込みを受けると、前記レジスタを参照してデー
タ転送の状態を確認することを特徴とする。これによっ
て、外部機器がデータを受け取る所定時間毎にCPUに
対して割り込みがなされ、このときCPUはデータ転送
の状態を確認することができ、CPUにとっては割り込
み回数を減少させオーバーヘッドを少なくできる上に、
CPUがデータ転送の開始指示を与える必要がなく、こ
の点においてもオーバーヘッドを少なくできる。
According to a third aspect of the present invention, there is provided a data transfer system, comprising: a data storage unit for storing data to be transferred; an external device for receiving the data at predetermined time intervals; A data transfer unit for transferring data between the CPU, a CPU for controlling the data transfer, a register in which whether or not the data transfer is completed by the data transfer unit is written; In addition to performing a timer interrupt,
Timer interrupt means for instructing the data transfer means to start data transfer is provided, and when the CPU receives an interrupt from the timer interrupt means, the CPU refers to the register to check the state of data transfer. And As a result, an interrupt is issued to the CPU every predetermined time at which the external device receives data. At this time, the CPU can check the state of the data transfer, reducing the number of interrupts and reducing overhead for the CPU. ,
There is no need for the CPU to give a data transfer start instruction, and the overhead can be reduced in this respect as well.

【0010】本発明の請求項4に記載のデータ転送シス
テムは、転送すべきデータが蓄積されるデータ蓄積手段
と、前記データを所定時間毎に受け取る外部機器と、前
記データ蓄積手段と前記外部機器との間でデータを転送
するデータ転送手段と、前記データ転送に関する制御を
行うCPUと、前記データ転送手段によりデータ転送を
終了したか否かが書き込まれると共に、データ転送開始
のタイミングを与える開始値がセットされるレジスタ
と、前記所定時間毎に前記CPUに対しタイマ割り込み
を行うと共に、前記レジスタにセットされた開始値に基
づき前記データ転送手段にデータ転送の開始を指示する
タイマ割込手段とを備え、前記CPUは前記タイマ割込
手段から割り込みを受けると、前記レジスタを参照して
データ転送の状態を確認することを特徴とする。これに
より、レジスタにセットされた開始値に基づきデータ転
送の開始がなされ、CPUがレジスタを参照するタイミ
ングとデータ転送のタイミングが重なることを防止でき
る。
According to a fourth aspect of the present invention, there is provided a data transfer system, comprising: a data storage means for storing data to be transferred; an external device receiving the data at predetermined time intervals; A data transfer means for transferring data between the CPU, a CPU for controlling the data transfer, and a start value for writing whether or not the data transfer has been completed by the data transfer means and for giving a data transfer start timing And a timer interrupt means for performing a timer interrupt to the CPU at each predetermined time and instructing the data transfer means to start data transfer based on a start value set in the register. When the CPU receives an interrupt from the timer interrupt means, the CPU refers to the register to change the state of data transfer. Characterized in that it sure. Thus, the data transfer is started based on the start value set in the register, and it is possible to prevent the timing at which the CPU refers to the register from overlapping with the timing of the data transfer.

【0011】本発明の請求項5に記載のデータ転送シス
テムは、タイマ割込手段からタイマ割込を行ったことを
示す情報をセットする割込要因レジスタが設けられ、C
PUは、タイマ割込手段からタイマ割込を受けた際に
は、前記割込要因レジスタを参照することを特徴とす
る。これにより、割り込みを受けたCPUが割り込み要
因を知ることが可能である。
The data transfer system according to claim 5 of the present invention is provided with an interrupt factor register for setting information indicating that the timer interrupt has been performed from the timer interrupt means.
The PU refers to the interrupt factor register when receiving a timer interrupt from the timer interrupt means. Thus, the CPU that has received the interrupt can know the cause of the interrupt.

【0012】[0012]

【発明の実施の形態】以下添付図面を参照して本発明に
係るデータ転送システムの実施の形態を説明する。各図
において同一の構成要素には、同一の符号を付し重複す
る説明を省略する。図1には、システム全体の構成図が
示されている。システムを統括制御するCPU100に
は、内部バス103を介してストレージ部101、外部
I/F(インタフェース)機器102及びその他の機器
104が接続されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a data transfer system according to the present invention will be described below with reference to the accompanying drawings. In each drawing, the same components are denoted by the same reference numerals, and redundant description will be omitted. FIG. 1 shows a configuration diagram of the entire system. A storage unit 101, an external I / F (interface) device 102, and other devices 104 are connected via an internal bus 103 to a CPU 100 that integrally controls the system.

【0013】ストレージ部101は、HDDやRAM等
のメモリであり、転送すべきデータが例えば、CPU1
00により記憶され、データ転送元となる。外部I/F
機器102は、ストレージ部101のデータを、所定時
間毎に受け取る表示装置やネットワーク等の外部機器1
05に転送する際のインタフェースであり、データ転送
先を構成する。
The storage unit 101 is a memory such as an HDD or a RAM.
00 and becomes a data transfer source. External I / F
The device 102 is an external device 1 such as a display device or a network that receives data of the storage unit 101 at predetermined time intervals.
05, and constitutes a data transfer destination.

【0014】外部機器105が所定時間(所定タイムス
ロット)T毎にデータを受け取る必要があるものとする
と、例えば、所要の容量のデータa、b、c、d、・・
・について、図2に示されるように行われる。つまり、
各データa、b、c、d、・・・に関し、それぞれのフ
ェーズ(Phase)n-2のタイムスロットにおいて、CPU1
00によるデータ処理及びストレージ部101への格納
が行われ、それぞれのフェーズ(Phase)n-1のタイムスロ
ットにおいて、ストレージ部101から外部I/F機器
102へのデータ転送が行われ、それぞれのフェーズ(P
hase)nのタイムスロットにおいて、外部I/F機器10
2から外部機器105へのデータ転送が行われる。
Assuming that the external device 105 needs to receive data every predetermined time (predetermined time slot) T, for example, data a, b, c, d,.
Is performed as shown in FIG. That is,
For each data a, b, c, d,..., In the time slot of each phase (Phase) n-2, the CPU 1
00, the data is stored in the storage unit 101, and data is transferred from the storage unit 101 to the external I / F device 102 in the time slot of each phase (Phase) n-1. (P
hase) n, the external I / F device 10
2 to the external device 105.

【0015】図3には、外部I/F機器102の第1の
実施の形態の構成が示されている。内部バス103とは
バスI/F(インタフェース)部201により接続され
ている。バスI/F部201には、データバッファ部2
02、DMAコントローラ207、レジスタ206が接
続されている。この外部I/F機器102は、コントロ
ーラ205により制御されている。コントローラ205
は、所定周波数のクロック源のクロックをカウントする
カウンタ204の出力を受けて動作を行っており、タイ
ムスロットの切れ目のタイミングでCPU100に割り
込みを発生する。
FIG. 3 shows the configuration of the external I / F device 102 according to the first embodiment. The internal bus 103 is connected by a bus I / F (interface) unit 201. The bus I / F unit 201 includes a data buffer unit 2
02, a DMA controller 207 and a register 206 are connected. The external I / F device 102 is controlled by the controller 205. Controller 205
Is operating in response to the output of the counter 204 that counts the clock of a clock source having a predetermined frequency, and generates an interrupt to the CPU 100 at the timing of a time slot break.

【0016】DMAコントローラ207は、ストレージ
部101に格納されているデータをデータバッファ部2
02へDMA転送する。データバッファ部202は、ダ
ブルバッファの構成となっており、DMAコントローラ
207により転送されるデータが一方のバッファに書き
込まれ、他方のバッファから外部I/F部203へのデ
ータ送出が行われる。データバッファ部202の切り替
え、コントローラ205から出力されるタイムスロット
の切れ目を示す制御信号により行われる。また、データ
バッファ部202からのデータの読み出しタイミング、
外部I/F部203へのデータの書き込みタイミング、
更には外部I/F部203から外部機器205へのデー
タ転送のタイミングは、全てコントローラ205から出
力されるコマンドにより行われる。
The DMA controller 207 transmits data stored in the storage unit 101 to the data buffer unit 2.
02 DMA transfer. The data buffer unit 202 has a double buffer configuration, in which data transferred by the DMA controller 207 is written into one buffer, and data is transmitted from the other buffer to the external I / F unit 203. The switching of the data buffer unit 202 is performed by a control signal output from the controller 205 and indicating a time slot break. Also, the timing of reading data from the data buffer unit 202,
Timing of writing data to the external I / F unit 203,
Further, the timing of data transfer from the external I / F unit 203 to the external device 205 is all performed by a command output from the controller 205.

【0017】レジスタ206には、割り込み要因レジス
タ206a、制御レジスタ206b、ステータスレジス
タ206cが含まれている。割り込み要因レジスタ20
6aには、コントローラ205によりタイムスロットの
切れ目による割り込みを発生させたことを示すためにフ
ラグがセットされる。制御レジスタ206bには、CP
U100によってDMAの対象機器識別情報、データ領
域の先頭アドレス及びレングス、更には、DMA開始の
フラグがセットされ、DMAコントローラ207によっ
て参照される。ステータスレジスタ206は、DMAコ
ントローラ207によって管理され、DMAの完了のフ
ラグがセットされる。
The register 206 includes an interrupt factor register 206a, a control register 206b, and a status register 206c. Interrupt factor register 20
A flag is set in 6a to indicate that the controller 205 has generated an interrupt due to a time slot break. The control register 206b has a CP
The U100 sets the target device identification information of the DMA, the start address and length of the data area, and the flag of the start of the DMA, and is referred to by the DMA controller 207. The status register 206 is managed by the DMA controller 207, and a flag indicating completion of DMA is set.

【0018】以上のように構成された第1の実施の形態
の動作を説明する。データaについてのフェーズ(Phas
e)n-1のタイムスロットの終りにおいて、コントローラ
205はCPU100に対し割り込みを発生する。する
と、CPU100はこれに応えてレジスタ206の割り
込み要因レジスタ206aを参照し、タイムスロットの
切れ目を通知するための割り込みであることを検出す
る。また、これより先にDMAコントローラ207は、
データaについてDMA転送の完了の旨をステータスレ
ジスタ206cにセットしている。そこで、CPU10
0は割り込み要因レジスタ206aの参照に続いてステ
ータスレジスタ206cを参照して、データaについて
DMA転送が完了したことを検出する。
The operation of the first embodiment configured as described above will be described. Phase for data a (Phas
e) At the end of the n-1 time slot, the controller 205 generates an interrupt to the CPU 100. Then, in response to this, the CPU 100 refers to the interrupt factor register 206a of the register 206 and detects that the interrupt is for notifying a time slot break. Prior to this, the DMA controller 207
The completion of the DMA transfer for the data a is set in the status register 206c. Therefore, the CPU 10
0 refers to the status register 206c following the reference to the interrupt factor register 206a to detect that the DMA transfer for the data a has been completed.

【0019】CPU100は、データbについてはフェ
ーズ(Phase)n-2のタイムスロットにおいてストレージ部
101にストアを終了しているので、上記動作に続いて
レジスタ206の制御レジスタ206bに対し、DMA
の対象機器識別情報(つまり、ストレージ部101の識
別情報)、データbに関する領域の先頭アドレス及びレ
ングス、更には、DMA開始のフラグのセットを行う。
Since the CPU 100 has finished storing the data b in the storage unit 101 in the time slot of the phase (Phase) n-2, following the above operation, the control register 206b of the register 206
The target device identification information (that is, the identification information of the storage unit 101), the start address and length of the area related to the data b, and the DMA start flag are set.

【0020】DMAコントローラ207は、制御レジス
タ206bを参照しており、上記のようにDMA開始の
フラグがセットされると、制御レジスタ206bにセッ
トされているDMAの対象機器識別情報(つまり、スト
レージ部101の識別情報)、データbに関する領域の
先頭アドレス及びレングスに基づきDMA転送を開始す
る。つまり、データbについてのフェーズ(Phase)n-1の
タイムスロットに入り、データbのDMA転送がDMA
コントローラ207によって行われる。同時に、CPU
100がデータcについてフェーズ(Phase)n-2のタイム
スロットにおいて、データ処理及びストレージ部101
への格納を行い、データaについてコントローラ205
の制御下において外部I/F機器102から外部機器1
05へのデータ転送が行われる。以下同様に、データが
順次に外部機器105へ転送されて行くことになる。
The DMA controller 207 refers to the control register 206b. When the DMA start flag is set as described above, the target device identification information of the DMA set in the control register 206b (that is, the storage unit) DMA transfer is started based on the identification information 101), the start address and the length of the area related to the data b. That is, the time slot of the phase (Phase) n-1 for the data b is entered, and the DMA transfer of the data b is performed by the DMA.
This is performed by the controller 207. At the same time, CPU
100 is the data processing and storage unit 101 in the time slot of phase n-2 for data c.
To the controller 205 for the data a.
External device 1 from external I / F device 102 under the control of
05 is performed. Hereinafter, similarly, the data is sequentially transferred to the external device 105.

【0021】図4には、外部I/F機器102の第2の
実施の形態の構成が示されている。この実施の形態で
は、DMA開始の指示をCPU100が与えるのではな
く、コントローラ305がDMAコントローラ307へ
直接に与えるように構成してある。つまり、DMAコン
トローラ307には、DMA開始をセットするフラグが
設けられ、コントローラ305が、タイムスロットの切
れ目においてDMA開始をセットするように構成され
る。このため、レジスタ306の制御レジスタ306に
はDMA開始をセットするフラグは設けられない。その
他は、第1の実施の形態と同一である。
FIG. 4 shows the configuration of an external I / F device 102 according to a second embodiment. In this embodiment, the CPU 305 does not give an instruction to start DMA, but the controller 305 gives it directly to the DMA controller 307. That is, the DMA controller 307 is provided with a flag for setting the start of DMA, and the controller 305 is configured to set the start of DMA at a break between time slots. Therefore, the control register 306 of the register 306 is not provided with a flag for setting the start of DMA. Others are the same as the first embodiment.

【0022】以上のように構成された第2の実施の形態
の動作を説明する。データaについてのフェーズ(Phas
e)n-1のタイムスロットの終りにおいて、コントローラ
305はCPU100に対し割り込みを発生する。する
と、CPU100はこれに応えてレジスタ306の割り
込み要因レジスタ206aを参照し、タイムスロットの
切れ目を通知するための割り込みであることを検出す
る。また、これより先にDMAコントローラ307は、
データaについてDMA転送の完了の旨をステータスレ
ジスタ206cにセットしている。そこで、CPU10
0は割り込み要因レジスタ206aの参照に続いてステ
ータスレジスタ206cを参照して、データaについて
DMA転送が完了したことを検出する。
The operation of the second embodiment configured as described above will be described. Phase for data a (Phas
e) At the end of the n-1 time slot, the controller 305 generates an interrupt to the CPU 100. Then, in response to this, the CPU 100 refers to the interrupt factor register 206a of the register 306, and detects that the interrupt is for notifying a time slot break. Prior to this, the DMA controller 307
The completion of the DMA transfer for the data a is set in the status register 206c. Therefore, the CPU 10
0 refers to the status register 206c following the reference to the interrupt factor register 206a to detect that the DMA transfer for the data a has been completed.

【0023】CPU100は、データbについてはフェ
ーズ(Phase)n-2のタイムスロットにおいてストレージ部
101にストアを終了しているので、上記動作に続いて
レジスタ306の制御レジスタ306bに対し、DMA
の対象機器識別情報(つまり、ストレージ部101の識
別情報)、データbに関する領域の先頭アドレス及びレ
ングスのセットを行う。
The CPU 100 finishes storing the data b in the storage unit 101 in the time slot of the phase (Phase) n-2, so that the CPU 100 sends the DMA to the control register 306b of the register 306 following the above operation.
The target device identification information (that is, the identification information of the storage unit 101), the start address of the area related to the data b, and the length are set.

【0024】DMAコントローラ307は、コントロー
ラ305によりDMAコントローラ307内のDMA開
始のフラグがセットされると、制御レジスタ306bに
セットされているDMAの対象機器識別情報(つまり、
ストレージ部101の識別情報)、データbに関する領
域の先頭アドレス及びレングスに基づきDMA転送を開
始する。つまり、データbについてのフェーズ(Phase)n
-1のタイムスロットに入り、データbのDMA転送がD
MAコントローラ307によって行われる。同時に、C
PU100がデータcについてフェーズ(Phase)n-2のタ
イムスロットにおいて、データ処理及びストレージ部1
01への格納を行い、データaについてコントローラ3
05の制御下において外部I/F機器102から外部機
器105へのデータ転送が行われる。以下同様に、デー
タが順次に外部機器105へ転送されて行くことにな
る。
When the DMA start flag in the DMA controller 307 is set by the controller 305, the DMA controller 307 identifies the target device identification information of the DMA set in the control register 306b (that is, the DMA controller 307).
The DMA transfer is started based on the identification information of the storage unit 101), the head address of the area related to the data b, and the length. That is, the phase (Phase) n for the data b
-1 time slot, and DMA transfer of data b is D
This is performed by the MA controller 307. At the same time, C
In the time slot of the phase (Phase) n-2 for the data c, the PU 100 performs the data processing and storage 1
01 is stored in the controller 3 for the data a.
Data transfer from the external I / F device 102 to the external device 105 is performed under the control of 05. Hereinafter, similarly, the data is sequentially transferred to the external device 105.

【0025】この第2の実施の形態によれば、コントロ
ーラ305がDMA開始のフラグをセットしてDMA開
始のタイミングを制御するので、CPU100がDMA
開始のタイミングを制御する必要がなく、CPU100
の負荷の軽減を図ることができる。
According to the second embodiment, the controller 305 sets the DMA start flag and controls the DMA start timing.
There is no need to control the start timing, and the CPU 100
Can be reduced.

【0026】図5には、外部I/F機器102の第3の
実施の形態の構成が示されている。この実施の形態で
は、レジスタ406にDMA開始値レジスタ406dが
備えられ、例えば、タイムスロットの切れ目からDMA
開始までの時間(DMA開始値)がセットされている。
このDMA開始値は、CPU100が予めプログラムに
基づき初期セットするか、オペレータがCPU100に
キーボード等によりコマンドを与えて初期セットするも
のとする。コントローラ405は、カウンタ204の出
力により、タイムスロットの切れ目を検出すると共に、
カウンタ204の出力及びDMA開始値に基づきコント
ローラ305内のフラグにDMA開始をセットするよう
に構成されている。その他は、第2の実施の形態と同一
である。
FIG. 5 shows a configuration of an external I / F device 102 according to a third embodiment. In this embodiment, the register 406 is provided with a DMA start value register 406d.
The time until the start (DMA start value) is set.
The DMA start value is initially set by the CPU 100 based on a program in advance, or is initially set by an operator giving a command to the CPU 100 using a keyboard or the like. The controller 405 detects a time slot break based on the output of the counter 204,
It is configured to set DMA start in a flag in the controller 305 based on the output of the counter 204 and the DMA start value. Others are the same as the second embodiment.

【0027】以上のように構成された第3の実施の形態
の動作を説明する。データaについてのフェーズ(Phas
e)n-1のタイムスロットの終りにおいて、コントローラ
405はCPU100に対し割り込みを発生する。する
と、CPU100はこれに応えてレジスタ406の割り
込み要因レジスタ206aを参照し、タイムスロットの
切れ目を通知するための割り込みであることを検出す
る。また、これより先にDMAコントローラ307は、
データaについてDMA転送の完了の旨をステータスレ
ジスタ206cにセットしている。そこで、CPU10
0は割り込み要因レジスタ206aの参照に続いてステ
ータスレジスタ206cを参照して、データaについて
DMA転送が完了したことを検出する。
The operation of the third embodiment configured as described above will be described. Phase for data a (Phas
e) At the end of the n-1 time slot, the controller 405 generates an interrupt to the CPU 100. Then, in response to this, the CPU 100 refers to the interrupt factor register 206a of the register 406, and detects that the interrupt is for notifying a time slot break. Prior to this, the DMA controller 307
The completion of the DMA transfer for the data a is set in the status register 206c. Therefore, the CPU 10
0 refers to the status register 206c following the reference to the interrupt factor register 206a to detect that the DMA transfer for the data a has been completed.

【0028】CPU100は、データbについてはフェ
ーズ(Phase)n-2のタイムスロットにおいてストレージ部
101にストアを終了しているので、上記動作に続いて
レジスタ306の制御レジスタ306bに対し、DMA
の対象機器識別情報(つまり、ストレージ部101の識
別情報)、データbに関する領域の先頭アドレス及びレ
ングスのセットを行う。
The CPU 100 finishes storing the data b in the storage unit 101 in the time slot of the phase (Phase) n-2.
The target device identification information (that is, the identification information of the storage unit 101), the start address of the area related to the data b, and the length are set.

【0029】コントローラ405は、レジスタ406の
DMA開始値に基づきタイムスロットの切れ目から所定
時間(DMA開始値)が経過したか否かを検出してお
り、所定時間が経過すると、DMAコントローラ307
内のDMA開始のフラグをセットする。DMAコントロ
ーラ307は、コントローラ405によりDMAコント
ローラ307内のDMA開始のフラグがセットされたと
きに、制御レジスタ306bにセットされているDMA
の対象機器識別情報(つまり、ストレージ部101の識
別情報)、データbに関する領域の先頭アドレス及びレ
ングスに基づきDMA転送を開始する。つまり、データ
bについてのフェーズ(Phase)n-1のタイムスロットに入
り、データbのDMA転送がDMAコントローラ307
によって行われる。同時に、CPU100がデータcに
ついてフェーズ(Phase)n-2のタイムスロットにおいて、
データ処理及びストレージ部101への格納を行い、デ
ータaについてコントローラ405の制御下において外
部I/F機器102から外部機器105へのデータ転送
が行われる。以下同様に、データが順次に外部機器10
5へ転送されて行くことになる。
The controller 405 detects, based on the DMA start value of the register 406, whether or not a predetermined time (DMA start value) has elapsed from the time slot break.
DMA start flag is set. When the DMA start flag in the DMA controller 307 is set by the controller 405, the DMA controller 307 sets the DMA set in the control register 306b.
DMA transfer is started based on the target device identification information (that is, the identification information of the storage unit 101), the head address of the area related to the data b, and the length. That is, the time slot of the phase (Phase) n-1 for the data b is entered, and the DMA transfer of the data b is performed by the DMA controller 307.
Done by At the same time, in the time slot of phase (Phase) n-2 for the data c,
Data processing and storage in the storage unit 101 are performed, and the data a is transferred from the external I / F device 102 to the external device 105 under the control of the controller 405. Similarly, the data is sequentially transferred to the external device 10.
5 will be transferred.

【0030】この第3の実施の形態によれば、レジスタ
406のDMA開始値に基づきタイムスロットの切れ目
から所定時間(DMA開始値)が経過したときに、DM
Aコントローラ307内のDMA開始のフラグをセット
するので、第2の実施の形態に比べて、DMA開始を送
らせることができる。従って、CPU100は割り込み
を受けてから上記DMA開始までの時間にレジスタ40
6の参照及び書き込みを行えば良く、余裕を持って動作
を行うことができる。
According to the third embodiment, when a predetermined time (DMA start value) has elapsed from the time slot break based on the DMA start value of the register 406, the DM
Since the DMA start flag in the A controller 307 is set, the start of the DMA can be sent as compared with the second embodiment. Therefore, the CPU 100 sets the register 40 in the time from the reception of the interrupt to the start of the DMA.
6 and the operation can be performed with a margin.

【0031】なお、以上の第1乃至第3の実施の形態に
おいて、CPU100が割り込み要因レジスタ206a
の参照に続いてステータスレジスタ206cを参照し
て、データaについてDMA転送が完了したことを検出
するものとして説明を行ったが、DMAが完了していな
いことを割り込み要因レジスタ206aの参照により検
出した場合には、外部機器105がタイムスロット単位
にデータを受け取ることができずに、システムが破綻し
たことになる。係る場合にCPU100は、異常に対し
リトライ(再度の転送)を行ったり、不正発生のコマン
ドを外部機器105に送出する等の所定の対策を採る。
In the first to third embodiments described above, the CPU 100 sets the interrupt factor register 206a
Has been described with reference to the status register 206c with reference to the above, the completion of the DMA transfer has been detected for the data a. However, the fact that the DMA has not been completed has been detected by referring to the interrupt factor register 206a. In this case, the external device 105 cannot receive data in time slot units, and the system is broken. In such a case, the CPU 100 takes predetermined measures such as retrying (transferring again) for an abnormality or sending a command indicating occurrence of a fraud to the external device 105.

【0032】[0032]

【発明の効果】以上説明したように請求項1に記載のデ
ータ転送システムによれば、外部機器がデータを受け取
る所定時間毎にCPUに対して割り込みがなされ、この
ときCPUはデータ転送の状態を確認することができ、
CPUにとっては割り込み回数を減少させオーバーヘッ
ドを少なくできる効果がある。
As described above, according to the data transfer system of the first aspect, the CPU is interrupted every predetermined time when the external device receives data, and at this time, the CPU changes the state of the data transfer. Can be confirmed,
For a CPU, the number of interrupts can be reduced and the overhead can be reduced.

【0033】以上説明したように請求項2に記載のデー
タ転送システムによれば、データ転送の開始を指示する
フラグ用の制御レジスタのフラグをCPUから必要に応
じてセット可能であるので、CPUからの指示によりデ
ータ転送の開始を制御できる効果がある。
As described above, according to the data transfer system of the second aspect, the flag of the control register for the flag for instructing the start of data transfer can be set by the CPU as needed, so that the Has an effect that the start of data transfer can be controlled by the instruction of (1).

【0034】以上説明したように請求項3に記載のデー
タ転送システムによれば、外部機器がデータを受け取る
所定時間毎にCPUに対して割り込みがなされ、このと
きCPUはデータ転送の状態を確認することができ、C
PUにとっては割り込み回数を減少させオーバーヘッド
を少なくできる上に、CPUがデータ転送の開始指示を
与える必要がなく、この点においてもオーバーヘッドを
少なくできる効果がある。
As described above, according to the data transfer system of the third aspect, the CPU is interrupted every predetermined time during which the external device receives data. At this time, the CPU confirms the state of the data transfer. Can, C
For the PU, the number of interrupts can be reduced and the overhead can be reduced. In addition, there is no need for the CPU to give an instruction to start data transfer, and this also has the effect of reducing the overhead.

【0035】以上説明したように請求項4に記載のデー
タ転送システムによれば、レジスタにセットされた開始
値に基づきデータ転送の開始がなされ、CPUがレジス
タを参照するタイミングとデータ転送のタイミングが重
なることを防止でき、CPUは余裕を持って動作でき
る。
As described above, according to the data transfer system of the fourth aspect, the data transfer is started based on the start value set in the register, and the timing at which the CPU refers to the register and the timing of the data transfer are determined. Overlap can be prevented, and the CPU can operate with a margin.

【0036】以上説明したように請求項5に記載のデー
タ転送システムによれば、タイマ割込を行ったことを示
す情報をセットする割込要因レジスタが設けられている
ので、割り込みを受けたCPUが割り込み要因を知るこ
とが可能である。
As described above, according to the data transfer system of the fifth aspect, since the interrupt factor register for setting the information indicating that the timer interrupt has been performed is provided, the CPU receiving the interrupt is provided. Can know the cause of the interrupt.

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

【図1】データ転送システムの全体の構成図。FIG. 1 is an overall configuration diagram of a data transfer system.

【図2】本発明のシステムによるデータ転送のタイミン
グを示す図。
FIG. 2 is a diagram showing timing of data transfer by the system of the present invention.

【図3】本発明のデータ転送システムを構成する外部I
/F機器の第1の実施の形態の構成図。
FIG. 3 shows an external I constituting the data transfer system of the present invention.
FIG. 1 is a configuration diagram of a first embodiment of a / F device.

【図4】本発明のデータ転送システムを構成する外部I
/F機器の第2の実施の形態の構成図。
FIG. 4 shows an external I constituting the data transfer system of the present invention.
FIG. 2 is a configuration diagram of a second embodiment of the / F device.

【図5】本発明のデータ転送システムを構成する外部I
/F機器の第3の実施の形態の構成図。
FIG. 5 shows an external I constituting the data transfer system of the present invention.
FIG. 7 is a configuration diagram of a third embodiment of the / F device.

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

100 CPU 101 ストレー
ジ部 102 外部I/F機器 103 内部バス 105 外部機器 201 バスI/
F部 202 データバッファ部 203 外部I/
F部 204 カウンタ 205、305、
405 コントローラ 206、306、406 レジスタ 206a 割り込
み要因レジスタ 206b、306b 制御レジスタ 206c ステー
タスレジスタ 207、307 DMAコントローラ 406d DMA開始値レジスタ
100 CPU 101 Storage unit 102 External I / F device 103 Internal bus 105 External device 201 Bus I / F
F section 202 Data buffer section 203 External I /
F section 204 counters 205, 305,
405 controller 206, 306, 406 register 206a interrupt cause register 206b, 306b control register 206c status register 207, 307 DMA controller 406d DMA start value register

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 転送すべきデータが蓄積されるデータ蓄
積手段と、 前記データを所定時間毎に受け取る外部機器と、 前記データ蓄積手段と前記外部機器との間でデータを転
送するデータ転送手段と、 前記データ転送に関する制御を行うCPUと、 前記データ転送手段によりデータ転送を終了したか否か
が書き込まれるレジスタと、 前記所定時間毎に前記CPUに対しタイマ割り込みを行
うタイマ割込手段とを備え、 前記CPUは前記タイマ割込手段から割り込みを受ける
と、前記レジスタを参照してデータ転送の状態を確認す
ることを特徴とするデータ転送システム。
1. Data storage means for storing data to be transferred, an external device receiving the data at predetermined time intervals, and a data transfer means for transferring data between the data storage means and the external device. A CPU for controlling the data transfer, a register in which whether or not the data transfer has been completed by the data transfer means, and a timer interrupt means for performing a timer interrupt to the CPU every predetermined time. The data transfer system according to claim 1, wherein when the CPU receives an interrupt from the timer interrupt unit, the CPU refers to the register to check a data transfer state.
【請求項2】 データ転送の開始を指示するフラグ用の
制御レジスタを有し、 CPUが当該制御レジスタのフラグを必要に応じてセッ
トすることを特徴とする請求項1に記載のデータ転送シ
ステム。
2. The data transfer system according to claim 1, further comprising a control register for a flag for instructing start of data transfer, wherein the CPU sets the flag of the control register as needed.
【請求項3】 転送すべきデータが蓄積されるデータ蓄
積手段と、 前記データを所定時間毎に受け取る外部機器と、 前記データ蓄積手段と前記外部機器との間でデータを転
送するデータ転送手段と、 前記データ転送に関する制御を行うCPUと、 前記データ転送手段によりデータ転送を終了したか否か
が書き込まれるレジスタと、 前記所定時間毎に前記CPUに対しタイマ割り込みを行
うと共に、前記データ転送手段にデータ転送の開始を指
示するタイマ割込手段とを備え、 前記CPUは前記タイマ割込手段から割り込みを受ける
と、前記レジスタを参照してデータ転送の状態を確認す
ることを特徴とするデータ転送システム。
3. Data storage means for storing data to be transferred, an external device for receiving the data at predetermined time intervals, and data transfer means for transferring data between the data storage means and the external device. A CPU for controlling the data transfer; a register in which whether or not the data transfer is completed by the data transfer means; and a timer interrupt for the CPU every predetermined time period; A data transfer system comprising: a timer interrupt unit for instructing a start of data transfer; wherein the CPU, upon receiving an interrupt from the timer interrupt unit, refers to the register to check a data transfer state. .
【請求項4】 転送すべきデータが蓄積されるデータ蓄
積手段と、 前記データを所定時間毎に受け取る外部機器と、 前記データ蓄積手段と前記外部機器との間でデータを転
送するデータ転送手段と、 前記データ転送に関する制御を行うCPUと、 前記データ転送手段によりデータ転送を終了したか否か
が書き込まれると共に、データ転送開始のタイミングを
与える開始値がセットされるレジスタと、 前記所定時間毎に前記CPUに対しタイマ割り込みを行
うと共に、前記レジスタにセットされた開始値に基づき
前記データ転送手段にデータ転送の開始を指示するタイ
マ割込手段とを備え、 前記CPUは前記タイマ割込手段から割り込みを受ける
と、前記レジスタを参照してデータ転送の状態を確認す
ることを特徴とするデータ転送システム。
4. A data storage means for storing data to be transferred, an external device receiving the data at predetermined time intervals, and a data transfer means for transferring data between the data storage means and the external device. A CPU for controlling the data transfer; a register in which whether or not the data transfer has been completed by the data transfer means is written, and a start value for giving a data transfer start timing is set; Timer interrupt means for performing a timer interrupt to the CPU and instructing the data transfer means to start data transfer based on a start value set in the register, wherein the CPU interrupts the timer interrupt means Receiving the data, the data transfer state is checked by referring to the register. .
【請求項5】 タイマ割込手段からタイマ割込を行った
ことを示す情報をセットする割込要因レジスタが設けら
れ、 CPUは、タイマ割込手段からタイマ割込を受けた際に
は、前記割込要因レジスタを参照することを特徴とする
請求項1乃至4のいずれか1項に記載のデータ転送シス
テム。
5. An interrupt factor register for setting information indicating that a timer interrupt has been performed from the timer interrupt means, wherein the CPU, upon receiving a timer interrupt from the timer interrupt means, 5. The data transfer system according to claim 1, wherein the data transfer system refers to an interrupt factor register.
JP1238598A 1998-01-26 1998-01-26 Data transfer system Withdrawn JPH11212904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1238598A JPH11212904A (en) 1998-01-26 1998-01-26 Data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1238598A JPH11212904A (en) 1998-01-26 1998-01-26 Data transfer system

Publications (1)

Publication Number Publication Date
JPH11212904A true JPH11212904A (en) 1999-08-06

Family

ID=11803811

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1238598A Withdrawn JPH11212904A (en) 1998-01-26 1998-01-26 Data transfer system

Country Status (1)

Country Link
JP (1) JPH11212904A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008097430A (en) * 2006-10-13 2008-04-24 Sanyo Electric Co Ltd Stream data playback system
US8412871B2 (en) 2005-06-01 2013-04-02 Sony Corporation Information processing apparatus, information processing method, and program
JP2013535735A (en) * 2010-07-29 2013-09-12 サムスン エレクトロニクス カンパニー リミテッド Direct memory access device for multi-core system and operation method thereof
CN113568850A (en) * 2020-04-29 2021-10-29 杭州海康威视数字技术股份有限公司 Data transmission method, device, electronic device and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8412871B2 (en) 2005-06-01 2013-04-02 Sony Corporation Information processing apparatus, information processing method, and program
JP2008097430A (en) * 2006-10-13 2008-04-24 Sanyo Electric Co Ltd Stream data playback system
US8229288B2 (en) 2006-10-13 2012-07-24 Semiconductor Components Industries, Llc Stream data reproduction system
JP2013535735A (en) * 2010-07-29 2013-09-12 サムスン エレクトロニクス カンパニー リミテッド Direct memory access device for multi-core system and operation method thereof
CN113568850A (en) * 2020-04-29 2021-10-29 杭州海康威视数字技术股份有限公司 Data transmission method, device, electronic device and storage medium

Similar Documents

Publication Publication Date Title
JP2002245022A (en) Multiprocessor system, its shared memory control method and shared memory control program,
US3961312A (en) Cycle interleaving during burst mode operation
JPH11212904A (en) Data transfer system
US6446150B1 (en) Method of and system for managing reselection on a SCSI bus
JP2530113B2 (en) Interface circuit for data transfer control and magnetic disk device
JP3283928B2 (en) Disk controller
JPH05233513A (en) Interface circuit for controlling data transfer
JPS63305445A (en) Data writing system at power break
JP2865131B2 (en) Data transfer method
JP2701752B2 (en) Microprocessor clock supply control circuit
JP2888222B2 (en) Data backup method
JPH0962610A (en) DMA controller
JP4499909B2 (en) Multiplexed storage controller
JP3288159B2 (en) Bus connection method
JP2003345524A (en) Storage control device control method and storage control device
JPH03134732A (en) Buffer controller
JPH0820934B2 (en) Disk cache control method
JPS6132710B2 (en)
JPH07121307A (en) Multiplexed disk device
JPH0236971B2 (en)
JP2000267988A (en) DMA controller and abnormality detection method for DMA controller
JPH06295519A (en) Hard disk drive
JPH04241274A (en) Method for updating correction information in information storage system
JPH01175656A (en) High speed data transferring system
JPH02266410A (en) Power supply making monitoring system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050405