JPS60251452A - Continuous i/o transfer method of high speed circuit data - Google Patents

Continuous i/o transfer method of high speed circuit data

Info

Publication number
JPS60251452A
JPS60251452A JP59106566A JP10656684A JPS60251452A JP S60251452 A JPS60251452 A JP S60251452A JP 59106566 A JP59106566 A JP 59106566A JP 10656684 A JP10656684 A JP 10656684A JP S60251452 A JPS60251452 A JP S60251452A
Authority
JP
Japan
Prior art keywords
data
transfer
slave
memory
main memory
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
JP59106566A
Other languages
Japanese (ja)
Inventor
Hisao Otani
大谷 久夫
Yoshikazu Yamazaki
山崎 吉一
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.)
Kokusai Electric Corp
Original Assignee
Kokusai 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 Kokusai Electric Corp filed Critical Kokusai Electric Corp
Priority to JP59106566A priority Critical patent/JPS60251452A/en
Publication of JPS60251452A publication Critical patent/JPS60251452A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/124Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine

Abstract

PURPOSE:To reduce the load of a master CPU and to improve processing functions by adding an one-chip microprocessor as a slave CPU and directly controlling data transfer between a master memory and a serial data communication control LSI. CONSTITUTION:Buffer areas 21, 22 are formed in the master memory 2 and switching circuits SW1, SW2 are controlled by programs from the master CPU1 and the slave CPU9 to switch the areas 21, 22 in the memory 2 alternately and access them. When a large quantity of data are to be sent from a disk 14-1, the circuit SW1 is turned to the area 21 side, data transfer from the disk 14-1 to the area 21 is started, and at the end of data transfer, the circuit SW2 is turned to the area side 21 to transfer data from the area 21 to a communication control LSI6. At the end of the data transfer, the slave CPU9 turns the circuit SW2 to the area 22 side and the data of the transferred area 22 are transferred to the LSI6. Thus, the data can be transferred at a high speed without interruption by switching the circuits 21, 22 alternately.

Description

【発明の詳細な説明】 (発明の属する技術分野) 本発明はマイクロプロセッサ(以下CPUという)を用
いたデータ伝送端末装置において、高速回線データを1
チツプのスレーブマイクロプロセッサを付加使用するこ
とによって、主メモリとの間で連続して直接入出力転送
を行う方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Technical field to which the invention pertains) The present invention provides a data transmission terminal device using a microprocessor (hereinafter referred to as CPU), which transmits high-speed line data in one piece.
The present invention relates to a method for performing continuous direct input/output transfers to and from main memory by additionally using a slave microprocessor on a chip.

(従来の技術) 矛1図は従来の高速回線データ連続入出力転送制御回路
の構成側図である。図中1はCPU、2は主メモリ、4
はD M A O(Direct MemoryAcc
ess C!ontroller)、6はM P−S 
O(Multi−Protocal Elerial 
Controlle’r、通信制御用IC)’。
(Prior Art) Figure 1 is a side view of a conventional high-speed line data continuous input/output transfer control circuit. In the figure, 1 is the CPU, 2 is the main memory, 4
is DM A O (Direct Memory Acc
ess C! controller), 6 is M P-S
O (Multi-Protocal Elerial
Controller'r, communication control IC)'.

7はD’C! E (Data C!ommunica
tion Biquipment。
7 is D'C! E (Data C! omnica
tion equipment.

変復調器などの回線終端装置)で、これらは本発明の矛
2図においてさらに詳しく説明する。また8は伝送回線
、10は制御回路、11はデータ、アドレス、制御信号
のバス(母線)である。
(line terminating equipment such as a modem), which will be explained in more detail in Figure 2, the main part of the present invention. Further, 8 is a transmission line, 10 is a control circuit, and 11 is a bus (bus) for data, addresses, and control signals.

この図に示すように従来の高速回線データ連続入出力転
送を行う方法は、主メモリ2とMPS O(通信制御用
LSI)60間に複数のバッファメモリ(シフトレジス
タやF工FOメモリも同じ)101.102’Jを設け
、これらのバッファメモリをハードウェアにより切替制
御することにより行っていた。このため図から明らかな
ように2つのバッファメモリ101と102、バッファ
メモリ制御回路106.8ビット幅の2個の双方向デー
タ切替回路(j3KL1,2)104,105が。
As shown in this figure, the conventional method for continuous high-speed line data input/output transfer is to use multiple buffer memories (same for shift registers and FO memories) between the main memory 2 and the MPSO (communication control LSI) 60. 101 and 102'J, and these buffer memories were switched and controlled by hardware. Therefore, as is clear from the figure, there are two buffer memories 101 and 102, a buffer memory control circuit 106, and two bidirectional data switching circuits (j3KL1, 2) 104, 105 each having a width of 8 bits.

必要である。特にバッファメモリ制御回路105には、
各バッファメモリ毎に転送数カウンタと、メモリ自身の
制御回路およびマイクロプロセッサ(CPU )1との
インターフェイス回路、EiELl 、5EL2の制御
回路、MPSo6との制御インターフェイス回路をすべ
て含んでいる。このためハードウェアは複雑で高価にな
ることが欠点であった。またメモリ制御にはマイクロプ
ロセッサの介入を必要とし、回線制御の一部はCPUが
行うことになるため、CPHの処理負担が大きく処理能
力が低下する。さらにデータを受取り処理後大容量ファ
イル等に格納する場合にはバッファメモリを経由して主
メモリに取込んでいるためこの遅れが問題になることが
ある。またバックアメモリの容量はハード的に固定され
てしまうので転送速度や処理速度に対して自由度がなり
ためである。
is necessary. In particular, the buffer memory control circuit 105 has
Each buffer memory includes a transfer number counter, a control circuit for the memory itself, an interface circuit with the microprocessor (CPU) 1, a control circuit for EiEL1, 5EL2, and a control interface circuit with MPSo6. Therefore, the disadvantage is that the hardware is complicated and expensive. Furthermore, since memory control requires the intervention of a microprocessor, and part of line control is performed by the CPU, the processing load on the CPH is large and the processing capacity is reduced. Furthermore, when data is received and processed and then stored in a large-capacity file or the like, this delay may become a problem because the data is taken into the main memory via the buffer memory. Further, since the capacity of the backup memory is fixed by hardware, there is a degree of freedom in terms of transfer speed and processing speed.

次に矛1図の回路の動作を説明して上記を補足する。矛
1図においてバッファメモリ101と102は主メモリ
2と通信制御用I CMPSo 6間の転送を一時記憶
する。106はバッファメモリの制御と双方向データバ
ス切替回路(SEL) 104 。
Next, the operation of the circuit shown in Figure 1 will be explained to supplement the above. In Figure 1, buffer memories 101 and 102 temporarily store transfers between the main memory 2 and the communication control ICMPSo 6. Reference numeral 106 denotes a buffer memory control and bidirectional data bus switching circuit (SEL) 104 .

105の制御を行うバッファメモリ制御回路で、この中
に101,102と6間のデータ転送時に使用する2個
のアドレスカウンタと2個の転送データのバイト数のカ
ウンタが含まれる。
This is a buffer memory control circuit that controls 105, and includes two address counters and two counters for the number of bytes of transfer data used when transferring data between 101, 102, and 6.

104(SELl)は101と102のいずれのバッフ
ァメモリを選ぶかを決める8ビット幅双方向データバス
切替回路、1o5(SEL2月よ104とBUSllの
いずれかを選択するための8ピット幅双方向データバス
切替回路である。また0ONT10はC,P U 1か
らBUSIIを介して制御される回路、14−1は磁気
ディスク装置(D I S、 K )などの大容量ファ
イルを含む入出力機器、13−1はそのコントローラで
ある。
104 (SELl) is an 8-bit width bidirectional data bus switching circuit for selecting either buffer memory 101 or 102, and 1o5 (SEL) is an 8-bit width bidirectional data bus switching circuit for selecting either 104 or BUSll. 0ONT10 is a circuit controlled from C, PU1 via BUSII, 14-1 is an input/output device including a large capacity file such as a magnetic disk device (DIS, K), 13 -1 is its controller.

こ\で14−IDISK内のデータを送る場合の、例に
ついて回路の動作を説明する。バッファメモリ101,
102に対応するバッファエリアを主メモリ2内にとり
、14−IDISKから主メモリの2つのバッファエリ
アにデータをDMAO4によるDMA (ダイレクトメ
モリアクセス)によって読込む。次に読込んだ主メモリ
2の101に対応づるバッファエリアのデータをバッフ
ァメモリ101へD M Aによって転送する。この転
送中にCPU1からのプログラムによってバッファメモ
リ制御回路105内のバックアメモリ101゜102用
アドレスカウンタを零(0)にセットし、転送データ(
バイトλ数カウンタを指定データ数にセットする。また
704SBL1はバックアメモリ101から、105S
BL2は104SEL1からそれぞれデータを選ぶよう
にしておく。そして主メモリ2からバッファメモリ10
1へのデータの転送が終了したら、バッファメモリ10
1かt)MPSo6へのデータ転送を開始する。このデ
ータ転送間に主メモリ2の102に対応するバッファエ
リア内のデータをバッファメモリ102にDMAによっ
て転送すると共に、14−IDISKから主メモリ2の
101に対応するバッファエリアにもDMAによって次
に101へ送るべきデータを転送しておく。
Here, the operation of the circuit will be explained for an example when data in 14-IDISK is sent. buffer memory 101,
A buffer area corresponding to 102 is provided in the main memory 2, and data is read from 14-IDISK into the two buffer areas of the main memory by DMA (direct memory access) using DMAO4. Next, the read data in the buffer area corresponding to 101 of main memory 2 is transferred to buffer memory 101 by DMA. During this transfer, the address counters for backup memories 101 and 102 in the buffer memory control circuit 105 are set to zero (0) by a program from the CPU 1, and the transfer data (
Set the byte λ number counter to the specified data number. In addition, 704SBL1 is connected to 105S from backup memory 101.
BL2 is configured to select data from 104 SEL1. And from main memory 2 to buffer memory 10
After the data transfer to buffer memory 10 is completed, the buffer memory 10
1 or t) Start data transfer to MPSo6. During this data transfer, data in the buffer area corresponding to 102 in main memory 2 is transferred to buffer memory 102 by DMA, and data in the buffer area corresponding to 101 in main memory 2 is also transferred from 14-IDISK to buffer area 101 in main memory 2 by DMA. Transfer the data to be sent to.

主メモリ2からバッファメモリ101または102への
データ転送時間と、14−IDISKから主メモリ2へ
のデータ転送時間はバッファメモリ101または102
からMPS (! 6への転送時間に比べると十分早い
ように設計されている。バックアメモリioiとMPS
06間のデータ転送が終了すると、つまりバッファメモ
リ制御回路1o5内の101に対応した転送データ(バ
イト)数カウンタが零になったときに、制御回路105
は104EIEL1をバッファメモリ102側に切替え
、102とMPSO6間のデータ転送を開始する。そし
てこの転送の間に主メモリ2内の101に対応するバッ
ファエリア内のデータをバッファメモリ101に、また
14−1DISKから主メモリ2の102に対応するバ
ッファエリアにデータをDMAによって転送しておくと
共に、バッファメモリ制御回路106のメモリ101に
対応するアドレスカウンタ、および転送データ(バイト
)数カウンタをC!PU1のプログラムによってセット
しておく・ 以上の動作を繰返すことによってデータを連続して入出
力するが、このように複数のバッファメモリをハードウ
ェアによって切替え制御する理由は、高速の転送になる
とCPU 1のプログラムによる切替処理では間に合わ
ぬから、つまり後述の矛6図に示すt2時間内に切替え
ができないためである。
The data transfer time from main memory 2 to buffer memory 101 or 102 and the data transfer time from 14-IDISK to main memory 2 are as follows:
It is designed to be sufficiently fast compared to the transfer time from MPS (! 6).
When the data transfer between 06 and 06 is completed, that is, when the transfer data (byte) number counter corresponding to 101 in the buffer memory control circuit 1o5 becomes zero, the control circuit 105
switches 104EIEL1 to the buffer memory 102 side and starts data transfer between 102 and MPSO6. During this transfer, the data in the buffer area corresponding to 101 in the main memory 2 is transferred to the buffer memory 101, and the data is transferred from the 14-1 DISK to the buffer area corresponding to 102 in the main memory 2 by DMA. At the same time, the address counter corresponding to the memory 101 of the buffer memory control circuit 106 and the transfer data (byte) number counter are set to C! Set by the program of PU1. Data is input and output continuously by repeating the above operation, but the reason why multiple buffer memories are switched and controlled by hardware is that when it comes to high-speed transfer, CPU 1 This is because the switching processing by the program cannot be done in time, that is, the switching cannot be performed within time t2 shown in Figure 6, which will be described later.

、1−1図から明らかなように101〜105はすべて
個別部品で構成されているから、1チツプのcpuで構
成する場合と比較して部品点数で約40倍、占有面積で
約15倍となり、回路は複雑で高価となることが欠点で
ある。
As is clear from Figure 1-1, all of 101 to 105 are made up of individual parts, so compared to the case where they are made up of one chip of CPU, the number of parts is about 40 times greater, and the area occupied is about 15 times more. The drawback is that the circuit is complex and expensive.

またバッファメモリ制御回路103はインテリジエンシ
イを持っていないために、0ONT10はBUSllに
接続され、回線制御の一部はCPU1のプログラムによ
って行われる。しかもこの0ONTiOに対するプログ
ラム処理は状態の監視など常時行う必要があるもので、
CPU 1の処理負担は大きい。さらにDMA転送に係
るCPU1のプログラムの介入も、D工5K14’−1
と主メモリ2間の転送、主メモリと101または102
間の転送、バッファメモリ101,102とMPSO6
間の転送に必要であって、1チツプCPUを用いた場合
に比べて1回多くなり全体の処理能力が低下する。デー
タはバッファメモリ101,102を経由して主メモリ
2に取込まれるため、たとえば受取ったデータを処理し
てからD工5K14−1に格納する場合処理は主メモリ
で行うことになり。
Furthermore, since the buffer memory control circuit 103 does not have intelligence, the OONT10 is connected to the BUSll, and part of the line control is performed by the program of the CPU1. Moreover, the program processing for this 0ONTiO requires constant monitoring of the status.
The processing load on the CPU 1 is heavy. Furthermore, the intervention of the CPU1 program related to DMA transfer is also
Transfer between main memory 2 and main memory 101 or 102
Transfer between buffer memories 101, 102 and MPSO 6
This is necessary for the transfer between the two chips, and the number of transfers is one more time than when a single-chip CPU is used, reducing the overall processing capacity. Since data is taken into the main memory 2 via the buffer memories 101 and 102, for example, when the received data is processed and then stored in the D-engine 5K14-1, the processing is performed in the main memory.

この段階でデータ内容に異常が発見され、再送を要求す
ると、バッファメモリ101または102内のデータは
捨てることになるため伝送効率は低下する。またバッフ
ァメモリ101および102のメモリ容量はハード的に
固定されてしまうため転送速度や処理速度に対して柔軟
に対応できないことは前記の通りである。
If an abnormality is discovered in the data content at this stage and retransmission is requested, the data in the buffer memory 101 or 102 will be discarded, resulting in a decrease in transmission efficiency. Further, as described above, since the memory capacity of the buffer memories 101 and 102 is fixed in terms of hardware, it is not possible to respond flexibly to transfer speeds and processing speeds.

(本発明の目的) 前記従来の高速回線データの連続入出力転送制御方法の
欠点を取除くことにあるが、具体的には安価な1チツプ
マイクロプロセツサをスレーブCPUとして付加し、主
メモリとMPSO(各種通信規約を充す直列データ通信
制御用IC,)間で中間にバッファメモリを置くことな
く直接データの転送制御を行う。さらにスレーブCPU
はインテリジエンシイを備えてbるため、回線制御の一
部やその他の制御を分担することが可能となり、主CP
Uの処理1べき負荷を軽減し、処理機能の向上を計るこ
とが目的である。なおバッファメモリの代りにバッファ
エリアを主メモリ上にとるため主メモリの容量の範囲で
自由にとることができる。またデータ転送に使用しない
ときは他のプログラムに開放して主メモリを有効に利用
することも目的である。
(Objective of the present invention) It is to eliminate the drawbacks of the conventional continuous input/output transfer control method for high-speed line data. Specifically, an inexpensive 1-chip microprocessor is added as a slave CPU, and the main memory and Direct data transfer control is performed between MPSOs (serial data communication control ICs that meet various communication protocols) without placing a buffer memory in between. Furthermore, slave CPU
Since it is equipped with intelligence, it is possible to share part of the line control and other controls, and the main CP
The purpose is to reduce the processing load on U and improve its processing capabilities. Note that since a buffer area is provided on the main memory instead of the buffer memory, it can be used freely within the capacity of the main memory. Another purpose is to make effective use of the main memory by opening it up to other programs when it is not used for data transfer.

(本発明の構成と作用) 矛2図は本発明を実施したマイクロコンピュータシステ
ムの構成例図で、牙1図と同一記号のものは同一名称の
ものとする。矛2図においてMlはマスタマイクロフロ
0セツサ(マスタCPUと略記)、5は割込み制御用L
SIで、PIO’(プログラマブルインタラブトコント
ローラ)、5は切替制御ゲー) S E L (+9e
lector)、 9は1チツプのスレーブマイクロプ
ロセッサ(スレーブCPUと略記)で、本発明の核心と
なる部分である。
(Structure and operation of the present invention) Figure 2 shows an example of the configuration of a microcomputer system embodying the present invention, and those with the same symbols as those in Figure 1 have the same names. In Figure 2, Ml is the master microflow 0 setter (abbreviated as master CPU), and 5 is L for interrupt control.
SI, PIO' (programmable interactive controller), 5 is switching control game) S E L (+9e
9 is a one-chip slave microprocessor (abbreviated as slave CPU), which is the core of the present invention.

10は制御回路00 N T (Controller
)で、MPSO6とDOK7などの一部を制御する。1
1はデータ、アドレス、制御信号等のバス、12はタイ
マ用LEIIでP工T(プログラマブル インタラブト
 タイマ)、16−1〜13−nは各入出力機器のコン
トローラ、14−1〜14−nは磁気ディスク装置DI
SKなどの入出力機器で、FDはフロッピィティスフ駆
動装置、OR,T K BはCRTキーボード、PRT
はプリンタである。
10 is a control circuit 00NT (Controller
) controls some of the MPSO6 and DOK7. 1
1 is a bus for data, addresses, control signals, etc., 12 is a timer LEII (programmable interactive timer), 16-1 to 13-n are controllers for each input/output device, and 14-1 to 14-n are Magnetic disk device DI
Input/output equipment such as SK, FD is floppy disk drive, OR, TKB is CRT keyboard, PRT
is a printer.

矛5図は本発明の動作概念を与える説明図(蜀と、切替
のタイミングチャー) (B)である。主メモリ2中の
21と22は転送データの一時記憶用の領域で、バッフ
ァエリアと呼ばれる。23はバッファエリア21または
22とMPSC6とのデ゛−タバス、S W、 1とS
W2は切替回路で、DISKと主メモリ間または主メモ
リとMPSO間のデ゛−タ転送を主メモリ内のどちらの
バッファエリアと行うかを選択するに用いる。
Figure 5 is an explanatory diagram (B) showing the operational concept of the present invention (Shu and switching timing chart). Areas 21 and 22 in the main memory 2 are areas for temporary storage of transferred data, and are called buffer areas. 23 is a data bus between buffer area 21 or 22 and MPSC6, SW, 1 and S
W2 is a switching circuit used to select which buffer area in the main memory is to be used for data transfer between the DISK and the main memory or between the main memory and the MPSO.

上記のように主メモリ中に2つのバッファエリ。As mentioned above, there are two buffer areas in main memory.

ア21,22を設け、マスタCPUM1およびスレーブ
0PU9のプログラムにより、swi。
A 21 and 22 are provided, and swi is executed by the master CPU 1 and slave PU 9 programs.

SW2を制御して主メモリ2内の2つのバッファエリア
を交互に切替えアクセスする。例で示すとDISK14
−1から大量のデータを送る場合は、swiをバッファ
エリア21側に切替えておき、DISKから21へのデ
ータ転送を開始し、21への転送が終了した時点でSW
2をバッファエリア21側に切替えて21からMPSO
6へのデータ転送を開始する。この21から6への転送
中にDISK14−1からバッファエリア22へ次のデ
ータを転送しておく。21からMPSO6への転送はス
レーブCPU9が監視していて転送が終了すると、スレ
ーブ0PU9がEIW2をバッファエリア21から22
へ切替え、次のデ゛−夕を22からMPSC6へ転送す
る。このように21と22を交互に切替え使用すること
により切れ目なくデータを高速転送することができる。
SW2 is controlled to alternately switch and access the two buffer areas in the main memory 2. As an example, DISK14
- When sending a large amount of data from 1, switch swi to the buffer area 21 side, start data transfer from DISK to 21, and when the transfer to 21 is finished, switch swi to buffer area 21.
2 to the buffer area 21 side and MPSO from 21
Start data transfer to 6. During this transfer from 21 to 6, the next data is transferred from DISK 14-1 to buffer area 22. The slave CPU 9 monitors the transfer from 21 to the MPSO 6, and when the transfer is completed, the slave 0PU 9 transfers the EIW 2 from the buffer area 21 to the buffer area 22.
The next data is transferred from 22 to MPSC 6. By alternately switching and using 21 and 22 in this way, data can be transferred at high speed without interruption.

DISKやFDと主メモリとの間のデータ転送速度は通
常主メモリ2とMPEIC!6間のデータ転送速度に比
べて数10倍〜数倍程度である。
The data transfer speed between DISK or FD and main memory is normally between main memory 2 and MPEIC! The data transfer rate is several tens to several times faster than the data transfer rate between 6 and 6.

このためSWlはり、MAC4の1つのチャネルを使用
しマスタOPUM1のグログラムによって行う。SW2
は転送を切れ目なく行うために、以下に説明するように
矛3図(B)に例示したt2の時間内に切替えることが
必要である。このためSW2はDMAO4の2つのチャ
ネルを使用し、マスクOP、Uのプログラムにより指定
されたデータによりスレーブCPU9のプログラムで行
う。
For this purpose, SW1 uses one channel of MAC4 and is executed by the program of master OPUM1. SW2
In order to perform seamless transfer, it is necessary to switch within the time t2 illustrated in Figure 3 (B), as explained below. For this reason, SW2 uses two channels of DMAO4, and is executed by the program of slave CPU 9 according to the data specified by the mask OP and U programs.

次に矛6図CB)について説明する。23′は主メモリ
2とMPS06間のデータ転送状態を示し、このうち2
4はバッファエリア21とMPS 06間の最終転送デ
ータ、25はバッファエリア22とMPS 06間の最
初の転送データをそれぞれ示すものとする。またt、は
1データ(バイト)の転送周期(データ転送速度の逆数
)で、たとえば回線のデータ伝送速度が8 KB/Sで
あればt、=125μBである。t3は主メモリ2とM
PS06間の1データ(バイト)の転送所要時間で通常
1〜2μS。
Next, Figure 6 CB) will be explained. 23' indicates the data transfer status between the main memory 2 and MPS06, of which 2
4 indicates the final transfer data between the buffer area 21 and MPS 06, and 25 indicates the first transfer data between the buffer area 22 and MPS 06. Further, t is the transfer period (reciprocal of the data transfer rate) of one data (byte), and for example, if the data transfer rate of the line is 8 KB/S, t=125 μB. t3 is main memory 2 and M
The time required to transfer 1 data (byte) between PS06 is usually 1 to 2 μS.

t2は(1,−13)に等しく、この時間内にSW2は
バッファエリア21から22へまたは22から21へ切
替を完了することが必要である。っまり24と25間を
切れ目なく行うということは、切替えを行ってもt、は
不変にできるということである。
t2 is equal to (1, -13), within which time SW2 needs to complete the switching from buffer area 21 to 22 or from 22 to 21. The fact that the transition between 24 and 25 is performed seamlessly means that t can remain unchanged even if switching is performed.

マスタOPUMIのプログラムによってt2時間内で切
替えを実施しようとした場内に、マスタOPUM1は入
出力機器14−1〜14−nに対するサービスやその他
の処理プログラムを多重に実行しているため、切替要求
があっても待ち時間やプログラムの走行時間などによっ
てt2時間を大幅に超過することがある。本発明ではこ
れを解決するためにインテリジエンシイを持ったスレー
ブO’P U 9を用いて柔軟性のある切替制御を行う
ようにした。
While the master OPUM1 program was trying to perform switching within time t2, the master OPUM1 was executing multiple services and other processing programs for the input/output devices 14-1 to 14-n, so the switching request was not received. Even if there is, the t2 time may be significantly exceeded depending on waiting time, program running time, etc. In order to solve this problem, the present invention uses a slave O'P U 9 having intelligence to perform flexible switching control.

次に本廃明回路の動作を説明づる。矛4図は矛2図中の
高速データ転送を行う部分の詳細構成側図である。P工
C(Progr’amable工nterruptCo
ntroller) 5はスレーブ1チツプCPU9か
らの割込み要求信号15を受付け、バス11を経由して
マスクCPUM1へ伝える。DMAO4は2つのチャネ
ルCHOとCHIを使用し、主メモリ2内のバッファエ
リア21.22とMPSO6の間でデータ転送を行うと
同時に、残っているチャネルの1つを用いてDIEIK
14−1などの大容量ファイルとバッファエリア21.
22間でデータの入出力を行う。5Aと5Bは切替ゲー
ト(SEL)で、5AはMPSC6からの転送要求信号
65を16.17としてDMAO4のチャネルCHOと
OH1に振り分け、このOHO、1m!H1からの転送
許可信号18.19をまとめて66としている。5Bは
MPSO6からの送信または受信な−どの異なる転送要
求信号61.62をまとめて65とし、DMAC4から
の転送許可信号66を66.64としてM23C6のT
XA 、RXBへ振り分ける。このMPS O6は直列
データを並列に、または並列データを直列に変換すると
共に、各種プロトコール制御機能を持っている。なおM
PSO6のTXAは送信部、RXAは受信部で、DRQ
、はDMA転送要求信号、DAKは転送許可信号、Tは
端子を表わしている。9は1チツプのスレーブCPUで
、ハードウェアのカウンタ機能を持っている。9中のT
 I (29)は/・−ドウエアカウンタのカウント信
号入力端子、ボー) 1(20)は制御回路C0NTI
Oの制御信号300Å出力端子、ボー!−2(26)、
%はPIO3への割込要求信号15.5A、5Bそれぞ
れへの選択制御信号27.28の出力端子をそれぞれ設
けである。またDBB31はデータバスバッファで、マ
スクOP U’M 1とのデータの受渡しをする。
Next, we will explain the operation of the present circuit. Figure 4 is a side view of the detailed configuration of the portion of Figure 2 that performs high-speed data transfer. P engineering C (Progr'amable engineering interruptCo)
controller) 5 accepts an interrupt request signal 15 from the slave 1 chip CPU 9 and transmits it to the mask CPU 1 via the bus 11. DMAO4 uses two channels CHO and CHI to transfer data between buffer area 21.22 in main memory 2 and MPSO6, and at the same time uses one of the remaining channels to perform DIEIK.
Large capacity files such as 14-1 and buffer area 21.
Data input/output is performed between 22 and 22. 5A and 5B are switching gates (SEL), and 5A distributes the transfer request signal 65 from MPSC6 as 16.17 to channels CHO and OH1 of DMAO4, and this OHO, 1m! The transfer permission signals 18 and 19 from H1 are collectively numbered 66. 5B is a combination of different transfer request signals 61, 62 such as transmission or reception from MPSO 6 as 65, transfer permission signal 66 from DMAC 4 as 66.64, and T of M23C6.
Distribute to XA and RXB. This MPS O6 converts serial data into parallel data or parallel data into serial data, and has various protocol control functions. Furthermore, M
TXA of PSO6 is a transmitter, RXA is a receiver, and DRQ
, represents a DMA transfer request signal, DAK represents a transfer permission signal, and T represents a terminal. 9 is a 1-chip slave CPU, which has a hardware counter function. T in 9
I (29) is the count signal input terminal of the doware counter, baud) 1 (20) is the control circuit C0NTI
O control signal 300Å output terminal, baud! -2 (26),
% is provided with output terminals for the selection control signals 27.28 to the interrupt request signals 15.5A and 5B to the PIO3, respectively. Further, DBB31 is a data bus buffer, and exchanges data with mask OP U'M1.

こ\でDISK14−1内のデータを送る場合 ゛の例
について、!8図を用いて説明する。矛8図はマスタO
PUMIとスレーブO、P U 9相互間の処理を示す
流れ図である。矛8図において801でD工61に14
−1から主メモリ2のバッファエリア21にDMAによ
りデータを転送する。バッファエリア21へのデータ転
送が終了したら、802でMPSC!6の各種パラメー
タを設定し、これによってMPSO6の動作モードやプ
ロトコル(通信規約)が決定される。805はDMAC
! 4のこれから使用するチャネルのパラメータの設定
で、CHOにはバッファエリア21の開始アドレス、転
送データ(バイト)数および転送モードをセットする。
If you want to send the data in DISK14-1 with this \ For the example of ゛,! This will be explained using Figure 8. The 8th figure is Master O.
It is a flow chart showing mutual processing between PUMI, slave O, and PU 9. In Figure 8, 801 and D-work 61 are 14
-1 to the buffer area 21 of the main memory 2 by DMA. When the data transfer to the buffer area 21 is completed, MPSC! Various parameters of MPSO 6 are set, and the operation mode and protocol (communication rules) of MPSO 6 are determined thereby. 805 is DMAC
! In setting the parameters of the channel to be used from now on in step 4, the start address of the buffer area 21, the number of transfer data (bytes), and the transfer mode are set in CHO.

804はC!0NTIOへの制御データをスレーブC!
PU9のDBB31ヘセットし、スレーブCPU9側は
822においてこのデータを取込み、MPSC!6の伝
送りロック速度を切替える等の制御をC!0NTiOを
通じて行う。なおマスタOPUMIとスレーブ0PU9
とのデータ受渡し方法については後忙説明げる。
804 is C! Control data to 0NTIO to slave C!
Set to DBB31 of PU9, slave CPU9 side takes in this data at 822, and MPSC! Controls such as switching the transmission lock speed of 6 are controlled by C! This is done through 0NTiO. In addition, master OPUMI and slave 0PU9
I will explain later how to transfer data.

805は最初に使用するDMAC!4のcHOを指定し
、826はこれを受取り矛4図の27 、28によって
sBB、1(5A)を16.18側に、5EL2(5B
)を61.63側に選択する。
805 is the first DMAC to use! Specify the cHO of 4, and 826 receives this and moves sBB, 1 (5A) to the 16.18 side, and 5EL2 (5B) by 27 and 28 in Figure 4.
) to the 61.63 side.

806は最初に使用するDMAC!4のCHDの転送デ
ータ(バイト)数を指定し、824はこれをスレーブ0
PU9のハードカウンタおよびソフトカウンタにセット
する。807,808は次に使用するDMAC!4のO
H1の転送データ(バイト)数を指定し、825,82
6はそれぞれのデータをスレーブ0PU9のデータメモ
リに格納しておく。ここまでの説明ではわかりやすくす
るため801でデータ読込み後802から808を実行
しているが、実際には801で転送を開始したならばD
MAO4がプログラムとは無関係に転送を実行し、転送
が終了したら割込みによりプログラムに戻ることができ
るため、この転送中に802から808を実行し、さら
に他の処理を実行しながら転送の終了を待つことが可能
である。転送終了の割込みが発生したらその処理を中断
し、809を実行することになる。
806 is the first DMAC to use! Specify the number of transfer data (bytes) of CHD 4, and 824 transfers this to slave 0.
Set in the hard counter and soft counter of PU9. 807 and 808 are DMACs to be used next! 4 O
Specify the number of transfer data (bytes) for H1, 825, 82
6 stores each data in the data memory of the slave 0PU9. In the explanation so far, for the sake of clarity, steps 802 to 808 are executed after data is read at 801, but in reality, if the transfer is started at 801, D
Since MAO4 executes the transfer independently of the program and can return to the program via an interrupt when the transfer is complete, it executes steps 802 to 808 during this transfer and waits for the transfer to complete while executing other processes. Is possible. When a transfer end interrupt occurs, the process is interrupted and step 809 is executed.

ここでマスタOPUM1とスレーブ0PU9のデ゛−タ
受は渡し方法を説明しておく。
Here, the method of receiving and passing data between master OPUM1 and slave 0PU9 will be explained.

牙5図(蜀はスレーブ0PU9のメインプログラムの流
れ図の一例である。図の501で初期状態をセットした
後、502でDMAO4のチャネル切替要求があるかど
うかをチェックし、要求がなければ506の0ONT1
0で回線状態の監視等の処理を行い、502に戻る動作
を繰返している。
Figure 5 (Shu is an example of the flowchart of the main program of slave 0PU9. After setting the initial state at 501 in the figure, it is checked at 502 whether there is a channel switching request for DMAO4, and if there is no request, the flowchart at 506 is executed. 0ONT1
Processing such as monitoring the line status is performed at step 0, and the operation of returning to step 502 is repeated.

マスクCPUからスレーブCPUのDBB31ヘデータ
がセットされると、スレーブCPUは割込みを発生し、
マスクCPUからの割込み処理プログラムが起動されデ
ータを受取る。
When data is set from the mask CPU to DBB31 of the slave CPU, the slave CPU generates an interrupt.
The interrupt processing program from the mask CPU is activated and receives data.

矛7図はスレーブ0PU9のマスタ(:!PUM1から
の割込みに対する処理流れ図の一例を示す。
Figure 7 shows an example of a processing flowchart for an interrupt from the master (:!PUM1) of slave 0PU9.

マスクCPUから渡されるデータには、コマンドとして
処理を指定するものと単なるデータの2種類がある。こ
の図においてまず701でマスクCPUからスレーブC
PU9のDBB31にセットサしたコマンド(マスタC
PUからの指令)を読込み、702で何のコマンドであ
るかを解析し、その結果により706から706の該当
する処理を行う。たとえば牙8図の805でDMA0H
Oの指定を受けた場合、825ではマスクOP’Uから
のコマンドを702でDMACH指定と判定し。
There are two types of data passed from the mask CPU: one that specifies processing as a command, and one that specifies processing. In this figure, first, at 701, the mask CPU transfers the data to the slave C.
Command set in DBB31 of PU9 (Master C
The command from the PU) is read, the command is analyzed in step 702, and the corresponding processing in steps 706 to 706 is performed based on the result. For example, 805 in Fang 8 is DMA0H.
If O is specified, in 825 the command from mask OP'U is determined to be DMACH specification in 702.

703で5EL1,5EL2(5A、5B)をそれぞれ
16.18側と61.63側に切替える。
At 703, 5EL1 and 5EL2 (5A, 5B) are switched to the 16.18 side and the 61.63 side, respectively.

また703は807によるD M A OH1指定のと
き、次に使用するDMAチャネルと判断してスレーブ0
PU9のデータメモリに格納しておく。
Also, when DMA OH1 is specified by 807, 703 determines that it is the next DMA channel to be used and sends it to slave 0.
Store it in the data memory of PU9.

ここで牙8図の説明に戻る。809はDMAによるバッ
ファエリア21とMPS(T6間のデ゛−タ転送開始を
指定し、827によりスレーブCPU9は転送制御を開
始する。810はDISK14−1からバッファエリア
22へのDMAによるデータ転送を起動しておく。転送
開始を指定されるとMPSO6は61の転送要求信号を
出力し、この信号はBEL’5によりDMAO4に対し
て16としてOHOにデータの転送を要求する。DMA
O4は転送が可能な状態になると18の転送許可信号を
出力し、この信号は5EL5により65としてMPSC
6へ伝えられ、ここで1データ(バイト)の転送が実行
される。データはバックアメモリ21からバス11を経
由してMPSC!6へ送られる。1アータ(バイト)の
転送が終るとMPSO6は61を落しく遮断し)、DM
AO4は18を落すと共に、バッファエリア21のアド
レスを1つ進め、転送データ(バイト)数を1つ減算す
る。
Here, we return to the explanation of Fig. 8. 809 specifies the start of data transfer between the buffer area 21 and MPS (T6) by DMA, and 827 causes the slave CPU 9 to start transfer control. 810 specifies the data transfer from DISK 14-1 to the buffer area 22 by DMA. Activate it. When the transfer start is specified, the MPSO 6 outputs a transfer request signal of 61, and this signal is set as 16 to the DMAO 4 by BEL'5 and requests the OHO to transfer data. DMA
When O4 becomes ready for transfer, it outputs a transfer permission signal of 18, and this signal is sent to MPSC as 65 by 5EL5.
6, where one data (byte) is transferred. Data is transferred from the backup memory 21 via the bus 11 to the MPSC! Sent to 6. When the transfer of one arter (byte) is completed, MPSO6 abruptly shuts off 61), and DM
AO4 drops 18, advances the address of the buffer area 21 by one, and subtracts one from the number of transfer data (bytes).

また61はスレーブCP’U9のT129に入力され、
この信号の後縁でハードカウンタがインクリメント(増
量)される。MPSC!6は受取ったデータをシリアル
データに変換し、DOFli7へ送ると再び次の転送要
求信号61を出力して来て以上の動作を繰返す。この関
係のタイミングチャートを牙9図に示した。
Also, 61 is input to T129 of slave CP'U9,
A hard counter is incremented at the trailing edge of this signal. MPSC! 6 converts the received data into serial data, sends it to DOFli 7, outputs the next transfer request signal 61 again, and repeats the above operation. A timing chart of this relationship is shown in Figure 9.

矛9図(A)において65.66は矛4図に示すものと
同じで、65はMPSO/lから出力される転送要求信
号REQ、66はDMAO4から出力される転送許可信
号AOKである。また64はスレーブCPU9のハード
ウェアカウンタのカウント状態を示し、65はスレーブ
0PU9のソフトウェアカウンタのカウント状態を示1
゜34は】74図の65によりカウントをインクリメン
トし、35は64のカウンタがオーバーフロしたときに
カウントダウンする。ここでnrXn8がマスタCPU
のプログラムによりスレーブCPUに渡される1つのD
MAチャネルに対する転送データ数を表わす。
In Figure 9 (A), 65 and 66 are the same as those shown in Figure 4, 65 is the transfer request signal REQ output from MPSO/1, and 66 is the transfer permission signal AOK output from DMAO4. Further, 64 indicates the count state of the hardware counter of the slave CPU 9, and 65 indicates the count state of the software counter of the slave 0PU9.
34 increments the count by 65 in Figure 74, and 35 counts down when the counter 64 overflows. Here nrXn8 is the master CPU
One D passed to the slave CPU by the program
Represents the number of data transferred to the MA channel.

矛9図(B)はソフトウェアカウンタ65を基準にして
DMA0HOのチャネル屋の切替わる状態を36で、マ
スタCPUへの割込要求信号工Rを15で、D工5K1
4−1と主メモリ2間のデータ転送を57でそれぞれ示
しであるIo さてスレーブ0PU9のハードカウンタはつぎつぎとイ
ンクリメントされ、指定カウント数に達するとオーバー
フローしてTI(矛4図)19への割込を発生し、この
割込によりT1割込処理プログラムが起動される。
Figure 9 (B) shows the switching state of the DMA0HO channel based on the software counter 65 at 36, the interrupt request signal R to the master CPU at 15, and the state D 5K1.
The data transfer between 4-1 and main memory 2 is indicated by 57, respectively. Now, the hard counter of slave 0PU9 is incremented one after another, and when it reaches the specified count, it overflows and the allocation to TI (Figure 4) 19 is performed. This interrupt causes the T1 interrupt processing program to be activated.

矛6図はスレーブ0PU9のT1割込み処理流れ図の一
例である。この図において601はソフトウェアで持っ
ている転送数カウンタを1つだけ減算し、602ではカ
ウントアツプしたか否かを判定し、カウントアツプしな
い場合にはメインプログラムへ戻る。カウントアツプし
たとさは603で825(矛8図)によりスレーブCP
U9のデータメモリに格納されている次のDMAチャネ
ル指定データ(この場合C!H1)を27(矛4図)に
出力し、S]1CL5Aが転送要求および許可信号のラ
インをそれぞれ16→17.18→19に切替える。6
04はPT03を経由してマスタOPUM1に割込み要
求15を出すときの要因をセットするもので、この例で
は切替要求フラグとCHOが終了したことを示すフラグ
をセットする。
Figure 6 is an example of a T1 interrupt processing flowchart of the slave 0PU9. In this figure, at 601, the transfer number counter held by the software is decremented by one, and at 602, it is determined whether or not the count has increased, and if the count has not increased, the process returns to the main program. The count up is 603 and 825 (Figure 8) is the slave CP.
The next DMA channel designation data (C!H1 in this case) stored in the data memory of U9 is output to 27 (Figure 4), and S]1CL5A transfers the transfer request and permission signal lines from 16 to 17. Switch from 18 to 19. 6
04 sets the factors when issuing the interrupt request 15 to the master OPUM1 via PT03, and in this example, a switching request flag and a flag indicating that CHO has been completed are set.

牙5図(B)はこの要因のビット割付けの一例を示す図
である。この図はスレーブC!PU9からマスタCPU
への割込みについて、その要因が何であるかを知らせる
ための割込み要因ビット割付けである。図においてbO
切替要求フラグはDMAO4の0I(0またはOH1の
いずれかの転送が終了したことを示し、b4、b5はD
 MA Oのどちらのチャネルが終了したかを示す終了
フラグで、bOと組になって使用される。マスクOP’
Uのプログラムは、スレーブCPUから割込があったと
きこのbOがセットされていれは、b4、b5を調べて
転送の終了したチャネルを判定し、そのチャネルを次の
転送に使用する場合は、DMAO4およびスレーブC!
PU9に対して必要なパラメータをセットする。bl、
b2、b3とb6、blは回線監視の状態その他の割込
み要因に使用している。
Figure 5 (B) is a diagram showing an example of bit allocation for this factor. This figure is slave C! Master CPU from PU9
This is an interrupt factor bit assignment to notify the cause of an interrupt. In the figure bO
The switching request flag indicates that the transfer of either 0I (0 or OH1) of DMAO4 has been completed, and b4 and b5 are D
A termination flag indicating which channel of MAO has terminated, and is used in combination with bO. Mask OP'
If this bO is set when there is an interrupt from the slave CPU, the U program checks b4 and b5 to determine which channel has completed the transfer, and if that channel is to be used for the next transfer, DMAO4 and slave C!
Set the necessary parameters for PU9. bl,
b2, b3, b6, and bl are used for line monitoring status and other interrupt factors.

さて矛6図の605は矛8図中の826で、スレーブ0
PU9のデータメモリに格納されている次のDMAチャ
ネルの転送データ(バイト)数をハ・−ドウエアカウン
タおよびソフトウェアカウンタにセットした後メインプ
ログラムに戻る。
Now, 605 in figure 6 is 826 in figure 8, and slave 0
After setting the number of transfer data (bytes) of the next DMA channel stored in the data memory of PU 9 in the hardware counter and software counter, the program returns to the main program.

矛5図(A)に示すメイングログラムにおいて、502
ではDMAC!チャネルの切替要求フラグがあると、5
05でT1割込み処理グログラムによりセットされた要
因データを矛4図スレーブCPU9のDBB51へ出力
し、割込み要求15を出す。
In the main program shown in Figure 5 (A), 502
So DMAC! If there is a channel switching request flag, 5
At step 05, the factor data set by the T1 interrupt processing program is output to the DBB 51 of the slave CPU 9, and an interrupt request 15 is issued.

504はマスタOPUMIが要因データを受取るのを待
ち、受取ったら505で切替要求フラグと終了フラグを
リセットする。
Step 504 waits for the master OPUMI to receive the factor data, and upon receipt, resets the switching request flag and end flag in step 505.

以上スレーブCPU9のンフトカクンタがカウントアツ
フしてから切替要求割込みを出すまでの処理は、矛8図
の828から860の手順に対応する。そしてマスタC
PUのプログラムは811でスレーブcpuからの割込
み要因データを読込み解析し、CHOの転送が終了した
ことが判明すると、812でDMAO4のOHOのパラ
メータを設定し、813.814でDMAO4のCHO
およびOHOの転送データ(バイト)数を指定する。8
51,862ではそれぞれをスレーブCPU9のデータ
メモリに格納する。以下マスクCPU側の815から8
20まで、スレーブCPU側の835から857まで必
要データ(バイト)数に達するまで処理を繰返し、必要
数になったら821と838で転送を停止する。
The processing from the time when the CPU 9 of the slave CPU 9 counts up to when the switching request interrupt is issued corresponds to the steps 828 to 860 in Figure 8. and master C
The PU program reads and analyzes the interrupt factor data from the slave CPU in 811, and when it is found that the CHO transfer is completed, sets the OHO parameters of DMAO4 in 812, and sets the DMAO4 CHO parameters in 813.814.
and the number of OHO transfer data (bytes). 8
At 51 and 862, each is stored in the data memory of the slave CPU 9. From 815 to 8 on the mask CPU side below
20, the processing is repeated from 835 to 857 on the slave CPU side until the required number of data (bytes) is reached, and when the required number is reached, the transfer is stopped at 821 and 838.

以上はデータ転送を中心に述べたが、マスクCCPUの
プログラム処理の面から見ると、前記のように801で
はDISKl4−1から主メモリ2へのデータ読込みl
DMAを起動し、続いて802から808を実行すれば
、読込みが終了するまで他のプログラム処理を行うこと
が可能である。読込みが終了し809で主メモリ2とM
PsO6間の転送を開始してしまえば、以後はDISK
l4−1と主メモリ2間のデータ読込みDMA0の起動
、終了処理と、主メモリ2とMPS06間のデータ転送
に係わるスレーブ0PU9からの切替要求割込み15に
対する処理を行うだけであり、しかもこの処理はわずか
なものであるため、大部分の時間を他のプログラム処理
に向けることができる。
The above description has focused on data transfer, but from the perspective of mask CCPU program processing, as mentioned above, in 801, data reading from DISK 4-1 to main memory 2 is
By starting the DMA and then executing steps 802 to 808, it is possible to perform other program processing until the reading is completed. When reading is completed, main memory 2 and M are stored in 809.
Once the transfer between PsO6 has started, the DISK
It only performs processing for starting and terminating data reading DMA0 between l4-1 and main memory 2, and processing for switching request interrupt 15 from slave 0PU9 related to data transfer between main memory 2 and MPS06. Since it is small, most of the time can be devoted to other program processing.

また牙8図では一般的な使用方法について例示しである
が、ある条件のもとではマスタapUllQの処理は次
のように簡単化できるやすなわちたとえばDMAI:!
4は再送処理等がないものとして常にOHOとCHlを
交互に使用することにし、OHO、CHIの転送データ
(バイト)数が一定とすると、DMAO4は806でパ
ラメータをセットするときに動作モードとしてオートイ
ニシャライズ(自動初期設定)を指定すれば、転送終了
時に自動的にパラメータを再セットしてくれる機能を持
っているため、812,817は省略できる。さらに8
16.814.818.819の処理も805から80
8で指定されたものを使用するようにスレーブ0PU9
側にプログラムしておけば省略できる。
Also, Figure 8 shows an example of a general usage method, but under certain conditions, the processing of master apUllQ can be simplified as follows.For example, DMAI:!
DMAO4 assumes that there is no retransmission processing, etc., and always uses OHO and CHl alternately, and assumes that the number of transferred data (bytes) for OHO and CHI is constant. DMAO4 is set to auto as the operation mode when setting parameters in 806. If initialization (automatic initial setting) is specified, the parameters can be automatically reset at the end of the transfer, so steps 812 and 817 can be omitted. 8 more
Processing of 16.814.818.819 is also 805 to 80
Slave 0PU9 to use the one specified in 8.
It can be omitted if it is programmed on the side.

以上の説明はDISKl4−1内のデータを送る場合で
あったが、受取る場合もはソ同様で、このときは801
,810はなくなり、815が最初の主メモリ2からD
ISKl4−1へのデータ読込みとなる。また821で
MPsO6と主メモリ2間の転送停止後主メモリ2から
DISKl 4−1への転送が必要になる。当然矛4図
28の指定は5Bを62.64側とし、スレーブ0PU
9側の転送処理はMPsO6から主メモリ2へとなる。
The above explanation was for the case of sending data in DISKl4-1, but the case of receiving data is also the same as that of 801.
, 810 are gone, and 815 is the first main memory 2 to D
Data is read into ISK14-1. Further, after the transfer between the MPsO 6 and the main memory 2 is stopped at step 821, the transfer from the main memory 2 to the DISK 1 4-1 becomes necessary. Naturally, the designation in Figure 28 is to set 5B to the 62.64 side, and slave 0PU
The transfer process on the 9 side is from the MPsO 6 to the main memory 2.

(発明の効果) (1)従来の高速データの入出力転送制御回路の構成を
示す矛1図と本発明による高速データの入出力転送制御
回路の構成図である牙2図とを比較すれば明らかなよう
に、本発明回路ではバッファメモリおよびその制御回路
は不要となり、ハードウェアは簡単で小形となり安価で
柔軟性のあるものとなる。
(Effects of the Invention) (1) Comparing Figure 1 showing the configuration of a conventional high-speed data input/output transfer control circuit with Figure 2 showing the configuration of a high-speed data input/output transfer control circuit according to the present invention. As can be seen, the circuit of the present invention eliminates the need for a buffer memory and its control circuit, making the hardware simple, compact, inexpensive, and flexible.

(2)スレーブCPUに処理負荷を分担させ伽のでシス
テム全体のデータ処理機能を向上させることができる。
(2) Since the processing load is shared by the slave CPU, the data processing function of the entire system can be improved.

(3)主−モリ上のバッファエリアは自由にとることが
できると共に、データ転送に使用しないときは他のプロ
グラムに利用することができる。
(3) The buffer area on the main memory can be used freely and can be used for other programs when it is not used for data transfer.

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

矛1図は従来の高速データの入出力転送制御回路の構成
例図、矛2図は本発明による高速データの入出力転送制
御回路の構成例図、矛3図は本発明の動作概念を与える
説明図と図中の切替タイミングチャート、矛4図は矛2
図中の高速データ転送を行う部分の詳細な構成例図、牙
5図国は牙4図中のスレーブCPHのメインプログラム
の流れ図、(B)はスレーブO’P Uの割込み要因ビ
ット割付けの一例図、矛6図はスレーブCPUのT1割
込み処理流れ図、矛7図はスレーブCPUのマスタCP
U割込み処理流れ図、牙8図はマスタCPUとスレーブ
CPU相互間の処理流れ図、矛9図はデータ切替動作の
タイミングチャートである。 1・・・マイクロプロセッサ(C!’PU)、 Ml・
・・マスタOP’U、2・・・主メモリ、 6・・・P
ICt(プログラマブル インタラピト コントローラ
、割込み制御用LSI)、4・・・DMA0(直接メモ
リアクセスコントローラ)、5・・・5EL(データバ
ス切替回路) 、6・・・MPSO(マルチプロトコル
シリアルコントローラ、通信制御用LSI)、7・・・
DOE(データ通信装置モデム)、8・・・伝送回線、
9・・・スレーブC!PU、 10・・・0ONT(制
御回路)、11・・・B U、E+ (バス)、12・
・・P工T(プログラマブル インタラブドタイマ)、
15・・・入出力コントローラ、14・・・入出力機器
、101,102・・・バッファメモリ、103・・・
バッファメモリ制御回路、io4,1os・・・5EL
(データ切替回路)、15・・・割込要求信号、20・
・・ポート(300Å出力端子)、21.22・・・バ
ッファエリア、23・・・データバス、27.28・・
・選択制御信号、26・・・ポート(15,27,,2
8のデ゛−タ出力端子)、29 (TI)・・・カウン
ト信号入力端子、50・・・0ONT 10への制御信
号、31(DBB)・・・データバスバッファ、52.
55・・・制御信号、16.17,61..62.65
・・・転送要求信号、18.19,63,64.66・
・・転送許可信号、ノCHO、CHI・・・チャネル番
号。 ′特許出願人 国際電気株式会社 代理人 大塊 学 外1名 第5図 (A) 第6図 亮7図 第8図(1)
Figure 1 shows an example of the configuration of a conventional high-speed data input/output transfer control circuit, Figure 2 shows an example of the configuration of a high-speed data input/output transfer control circuit according to the present invention, and Figure 3 shows the operational concept of the present invention. Explanatory diagram and switching timing chart in the diagram, spear 4 figure is spear 2
A detailed configuration example of the part that performs high-speed data transfer in the figure. Figure 5 is a flowchart of the main program of the slave CPH in Figure 4. (B) is an example of the interrupt factor bit assignment of the slave O'P U. Figure 6 is a flowchart of the slave CPU's T1 interrupt processing, and Figure 7 is the master CPU of the slave CPU.
FIG. 8 is a flowchart of processing between the master CPU and slave CPU, and FIG. 9 is a timing chart of data switching operation. 1... Microprocessor (C!'PU), Ml.
...Master OP'U, 2...Main memory, 6...P
ICt (programmable interrupt controller, LSI for interrupt control), 4...DMA0 (direct memory access controller), 5...5EL (data bus switching circuit), 6...MPSO (multiprotocol serial controller, for communication control) LSI), 7...
DOE (data communication equipment modem), 8...transmission line,
9...Slave C! PU, 10...0ONT (control circuit), 11...BU, E+ (bus), 12...
...P engineering T (programmable interwoven timer),
15... Input/output controller, 14... Input/output device, 101, 102... Buffer memory, 103...
Buffer memory control circuit, io4, 1os...5EL
(data switching circuit), 15... interrupt request signal, 20.
...Port (300Å output terminal), 21.22...Buffer area, 23...Data bus, 27.28...
・Selection control signal, 26... port (15, 27,, 2
8 data output terminal), 29 (TI)...Count signal input terminal, 50...0Control signal to ONT 10, 31 (DBB)...Data bus buffer, 52.
55... Control signal, 16.17, 61. .. 62.65
... Transfer request signal, 18.19, 63, 64.66.
...Transfer permission signal, CHO, CHI...Channel number. 'Patent applicant: Kokusai Denki Co., Ltd. agent Daibu, 1 outsider Figure 5 (A) Figure 6 Ryo 7 Figure 8 (1)

Claims (1)

【特許請求の範囲】[Claims] マイクロプロセッサを用いたデータ処理システムに訃い
て、データ伝送回線と磁気ディスク装置などの大容量フ
ァイルを同時に動作させて高速データの入出力転送制御
を行う場合、テークの送出または取込みをマスクマイク
ロプロセッサと1チツプ形スレーブマイクロプロセツサ
およびDMA(ダイレクトメモリアクセス)コントロー
ラなどから成る制御回路を用いて、主メモリとMPS 
O(マルチプロトコロシリアルコントロー乏通信制御用
LSI)の間にバッファメモリを置くことなく主メモリ
とMPS 0間、で直接高速回線テークの授受を、主メ
モリの複数のバッファエリアを切替え使用することによ
り連続して行なうと共に、回線制御の一部をスレーブ゛
マイクロフ90セッサテ処理することによってマスタマ
イクロプロセッサのデータ転送に係わる処理負荷量を軽
減し、処理機能を向上させるようにしたことを特徴とす
る高速回線データの連続入出力転送方法。
When using a data processing system using a microprocessor and controlling high-speed data input/output transfer by simultaneously operating a data transmission line and a large-capacity file such as a magnetic disk device, it is necessary to use a mask microprocessor to send or receive takes. Main memory and MPS are controlled using a control circuit consisting of a single-chip slave microprocessor and a DMA (direct memory access) controller.
Transferring high-speed lines directly between main memory and MPS 0 without placing a buffer memory between O (multi-protocol serial controller LSI for communication control), switching between multiple buffer areas in main memory. In addition, a part of the line control is processed by the slave microprocessor 90, thereby reducing the processing load related to data transfer on the master microprocessor and improving the processing function. Continuous input/output transfer method for high-speed line data.
JP59106566A 1984-05-28 1984-05-28 Continuous i/o transfer method of high speed circuit data Pending JPS60251452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59106566A JPS60251452A (en) 1984-05-28 1984-05-28 Continuous i/o transfer method of high speed circuit data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59106566A JPS60251452A (en) 1984-05-28 1984-05-28 Continuous i/o transfer method of high speed circuit data

Publications (1)

Publication Number Publication Date
JPS60251452A true JPS60251452A (en) 1985-12-12

Family

ID=14436826

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59106566A Pending JPS60251452A (en) 1984-05-28 1984-05-28 Continuous i/o transfer method of high speed circuit data

Country Status (1)

Country Link
JP (1) JPS60251452A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6359042A (en) * 1986-08-27 1988-03-14 Nissan Motor Co Ltd Communication interface equipment
EP2671163A1 (en) * 2011-02-02 2013-12-11 T-Data Systems (S) Pte Ltd A portable data storage device with wireless functionality having a digital switch circuit and a method for storing data in the aforementioned

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5470734A (en) * 1977-11-17 1979-06-06 Fujitsu Ltd Main memory allotment system
JPS5690341A (en) * 1979-12-24 1981-07-22 Fujitsu Ltd Buffer switching system
JPS5694425A (en) * 1979-12-27 1981-07-30 Fujitsu Ltd Receiving data transfer control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5470734A (en) * 1977-11-17 1979-06-06 Fujitsu Ltd Main memory allotment system
JPS5690341A (en) * 1979-12-24 1981-07-22 Fujitsu Ltd Buffer switching system
JPS5694425A (en) * 1979-12-27 1981-07-30 Fujitsu Ltd Receiving data transfer control system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6359042A (en) * 1986-08-27 1988-03-14 Nissan Motor Co Ltd Communication interface equipment
EP2671163A1 (en) * 2011-02-02 2013-12-11 T-Data Systems (S) Pte Ltd A portable data storage device with wireless functionality having a digital switch circuit and a method for storing data in the aforementioned
EP2671163A4 (en) * 2011-02-02 2014-07-16 T Data Systems S Pte Ltd A portable data storage device with wireless functionality having a digital switch circuit and a method for storing data in the aforementioned

Similar Documents

Publication Publication Date Title
US5083261A (en) Dynamically alterable interrupt priority circuit
US5016165A (en) Direct memory access controlled system
JP2002366507A (en) Multichannel dma(direct memory access) controller, and processor system
US5611056A (en) Method for controlling the expansion of connections to a SCSI bus
JPH0142415B2 (en)
JPH02299337A (en) Bus constitution suitable for data communication
US4719563A (en) Data transmission control device for controlling transfer of large amounts of data between two memory units
JPS60251452A (en) Continuous i/o transfer method of high speed circuit data
JP2579170B2 (en) Memory card
JP3261715B2 (en) I / O data transfer processor
CA2025657C (en) Method and apparatus for preventing bus contention problems between two processors
JP2000244585A (en) Bus interface circuit
JP2581001B2 (en) Information management apparatus and information management method
JP2619385B2 (en) DMA controller
JPS61125670A (en) Data transfer device
JPS5913768B2 (en) Channel transfer control method
JPS5850410Y2 (en) Interrupt priority controller
JPS609873Y2 (en) Data processing device with one-chip direct memory access controller
JPS6269752A (en) Data communication equipment
JPH02219158A (en) Scsi interface circuit
JPH03262063A (en) Bus control circuit for dma transfer
JPH04257049A (en) Dma controller
JPH01311350A (en) Channel interface circuit
JPS5936456A (en) Communication controller
JPH01248264A (en) System for controlling contention of system bus