JPS6049465A - Data transfer method between microcomputers - Google Patents

Data transfer method between microcomputers

Info

Publication number
JPS6049465A
JPS6049465A JP15872583A JP15872583A JPS6049465A JP S6049465 A JPS6049465 A JP S6049465A JP 15872583 A JP15872583 A JP 15872583A JP 15872583 A JP15872583 A JP 15872583A JP S6049465 A JPS6049465 A JP S6049465A
Authority
JP
Japan
Prior art keywords
data
microcomputer
input
ready signal
storage area
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
JP15872583A
Other languages
Japanese (ja)
Inventor
Yoshiaki Ikeda
池田 良昭
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP15872583A priority Critical patent/JPS6049465A/en
Publication of JPS6049465A publication Critical patent/JPS6049465A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/167Interprocessor communication using a common memory, e.g. mailbox

Abstract

PURPOSE:To reduce the hardware quantity of an interface and at the same time to discriminate the transfer order of data through a simple process by transferring data successively via an input/output register FIFO. CONSTITUTION:An independent access is possible at the input and output sides with a register FIFO4, and the FIFO4 delivers an input ready signal IR showing the presence or absence of an idle area in a memory region as well as an output ready signal OR showing the presence or absence of writing of data to the memory region. When it is needed to read the memory information of the FIFO4 while a microcomputer 6 for reception is using the data given from a microcomputer 1 for transmission, the computer 6 discriminates whether the signal OR is set at 1. Then a reading action is carried out if the signal OR is set at 1. Thus the frequent interruption processing can be omitted by transferring data via the FIFO4. This can reduce the hardware quantity and also discriminate the transfer order of data with a simple process.

Description

【発明の詳細な説明】 発明の”技術分野。[Detailed description of the invention] “Technical field of invention”.

本発明はマイクロコンピュータ間のデータ転送方法に関
するものである。
The present invention relates to a data transfer method between microcomputers.

従来技術と問題点 一般に、マイクロコンピュータ間でデータを転送する方
法としては、(,1)DMA方式、 (2)送信側マイ
クロコンピュータが受信側マイクロコンピュータをホー
ルド状態とし、受信側マイクロコンピュータのメモリに
バスを介してデータを転送する方式等が知られている。
Prior Art and Problems In general, methods for transferring data between microcomputers include (1) DMA method; (2) the transmitting microcomputer puts the receiving microcomputer in a hold state and the data is stored in the memory of the receiving microcomputer; A method of transferring data via a bus is known.

しかし、いずれもインターフェイス部分のハードウェア
を多く必要とする欠点がある。また、データの転送順序
が判るようにする為にはポインタ等でデータの転送順序
制御を行なう必要があり、処理が複雑化する問題点があ
った。
However, both have the disadvantage of requiring a large amount of interface hardware. Furthermore, in order to know the data transfer order, it is necessary to control the data transfer order using a pointer or the like, which poses the problem of complicating the process.

発明の目的 本発明はこのような従来の欠点を改善したちのであり、
少ないハードウェアでインターフェイスすることが可能
であり且つデータの転送順序も複雑な処理を必要とせず
に判別し得るマイクロコンピュータ間のデータ転送方法
を提供することを課題とする。
Purpose of the Invention The present invention aims to improve these conventional drawbacks.
It is an object of the present invention to provide a data transfer method between microcomputers that can interface with a small amount of hardware and can determine the data transfer order without requiring complicated processing.

発明の実施例 第1図は本発明を実施する装置の一例を示す要部ブロッ
ク図である。
Embodiment of the Invention FIG. 1 is a block diagram of essential parts showing an example of an apparatus for carrying out the invention.

同図において、1は送信側マイクロコンピュータであり
、その8ビツトの双方向性のバス2はドライバ3を介し
てFIFOレジスタ4のデータ入力端子に接続され、任
意の1ビツトのバス線がドライバ5を介してFIFOレ
ジスタ4のインプットレディ信号IR出力端子に接続さ
れている。またライト信号WRがFIFOレジスタ4の
ライト信号入力端子に接続されている。6は受信側マイ
クロコンピュータであり、その8ビツトのバス7はドラ
イバ8を介してFIFOレジスタ4のデータ出力端子に
接続され、任意の1ビツトのバス線がドライバ9を介し
てFIFOレジスタ4のアウトプットレディ信号OR出
力端子に接続されている。またFIFOレジスタ4のイ
ンプットレディ信号IRがエツジトリガ形のワンショッ
トマルチバイブレーク(以下単にワンショットマルチと
いう)10を介して割込み入力端子に入力され、リード
信号RDがFIFOレジスタ4のリード信号入力端子に
出力されている。
In the figure, reference numeral 1 is a transmitting microcomputer, whose 8-bit bidirectional bus 2 is connected to the data input terminal of a FIFO register 4 via a driver 3, and any 1-bit bus line is connected to the driver 5. The input ready signal IR output terminal of the FIFO register 4 is connected to the input ready signal IR output terminal of the FIFO register 4 via. Further, a write signal WR is connected to a write signal input terminal of the FIFO register 4. 6 is a receiving microcomputer, whose 8-bit bus 7 is connected to the data output terminal of the FIFO register 4 via the driver 8, and any 1-bit bus line is connected to the output terminal of the FIFO register 4 via the driver 9. Connected to the ready signal OR output terminal. In addition, the input ready signal IR of the FIFO register 4 is input to the interrupt input terminal via an edge-trigger type one-shot multi-by-break (hereinafter simply referred to as one-shot multi) 10, and the read signal RD is output to the read signal input terminal of the FIFO register 4. has been done.

FIFOレジスタ4は、入力側と出力側とが独立にアク
セス可能であり然も記憶領域が一杯になったか否かを示
すインプットレディ信号JRと記憶領域にデータが書込
まれているか否かを示すアウトプットレディ信号ORと
を出力する形式のレジスタであり、例えば、74LS2
24のICで構成することができる。
The FIFO register 4 can be accessed independently on the input side and the output side, and also has an input ready signal JR indicating whether the storage area is full or not, and an input ready signal JR indicating whether data has been written to the storage area. This is a register that outputs an output ready signal OR, for example, 74LS2.
It can be configured with 24 ICs.

第2図はFIFOレジスタ4の実施例を示すブロック図
であり、4ビット入出力、容量4×16ビツトの市販の
FIFOレジスクを2個使用して、合計8×16ビツト
のFIFOレジスタ4を構成したものである。同図にお
いて、D1〜D、はドライバ3の出力、0.〜OIlは
FIFOレジスタ20゜21の出力であり、この出力が
ドライバ8に入力される。また送信側マイクロコンピュ
ータ1のライト信号HRは、FIFOレジスク20.2
1のライト信号入力端子に入力され、受信側マイクロコ
ンピュータ6のリード信号RDは、FIFOレジスタ2
0゜21のリード信号入力端子に人力される。FIFO
レジスタ21から出力されるインプットレディ信号1’
l?、 、 IR2ば、記憶領域に空きがあるとき“1
″となり、記憶領域が一杯にあると“0”となる信号で
あり、その論理積がアンド回路22でとられてインプッ
トレディ信号IRが生成される。またFtFOレジスタ
20.21から出力されるアウトプットレディ信号OR
,、OR2は、記憶領域に少なくとも一つのデータが記
憶されているとき“1″となり、データが全く記憶され
ていないとき“θ″となる信号で、その論理積がアンド
回路23でとられてア□ ウドプツトレディ信号ORが
生成される。
FIG. 2 is a block diagram showing an embodiment of the FIFO register 4. Two commercially available FIFO registers with 4-bit input/output and a capacity of 4 x 16 bits are used to configure the FIFO register 4 with a total of 8 x 16 bits. This is what I did. In the figure, D1 to D are the outputs of the driver 3, 0. ~OIl is the output of the FIFO register 20.degree. 21, and this output is input to the driver 8. Also, the write signal HR of the transmitting microcomputer 1 is the FIFO register 20.2.
The read signal RD of the receiving microcomputer 6 is input to the write signal input terminal of the FIFO register 2.
It is manually input to the read signal input terminal of 0°21. FIFO
Input ready signal 1' output from register 21
l? , , IR2 is set to “1” when there is free space in the storage area.
'', which becomes "0" when the storage area is full, and the AND circuit 22 takes the AND circuit to generate the input ready signal IR. Toready signal OR
,,OR2 is a signal that becomes "1" when at least one data is stored in the storage area, and becomes "θ" when no data is stored. A □ The output ready signal OR is generated.

第3図は送信側マイクロコンピュータ1のデータ書込み
処理の流れを示すフローチャート、第4図及び第5図は
受信側マイクロコンピュータ6のデータ読取り処理の流
れを示すフローチャートである。また第6図は第1図示
装置を動作させた場合の各部の状態を示すタイミングチ
ャートであり、(a)は送信側マイクロコンピュータ1
の書込ミ処理、(b)は受信側マイクロコンピュータ6
の続出し処理、(C’)はインプットレディ信号IRの
状態、(d)はワンショットマルチ10の出力波形、(
e)はアウトプットレディ信号ORの状態をそれぞれ示
す。
FIG. 3 is a flowchart showing the flow of data writing processing by the sending microcomputer 1, and FIGS. 4 and 5 are flowcharts showing the flow of data reading processing by the receiving microcomputer 6. Further, FIG. 6 is a timing chart showing the states of each part when the first illustrated device is operated, and (a) is a timing chart showing the state of each part when the first illustrated device is operated.
write processing, (b) is the receiving microcomputer 6
(C') is the state of the input ready signal IR, (d) is the output waveform of the one-shot multi 10, (
e) shows the state of the output ready signal OR, respectively.

送信側マイクロコンピュータ1は第3図のフローチャー
トに示すように、インプットレディ信号IRが1”か否
かを判別し、“1”のとき受信用マイクロコンピュータ
6へ送出すべきデータをバス2.ドライバ3を介してF
IFOレジスタ4へ送出し書込み処理を行なう。インプ
ットレディ信号IRが0″のときはFIFOレジスタ4
の記憶容量が一杯になっているので、データの書込みは
行なわない。
As shown in the flowchart of FIG. 3, the transmitting microcomputer 1 determines whether the input ready signal IR is "1" or not, and when it is "1", sends the data to the receiving microcomputer 6 to the bus 2.driver. F through 3
Send and write processing to the IFO register 4. When the input ready signal IR is 0'', FIFO register 4
Since the memory capacity of is full, data will not be written.

受信側マイクロコンピュータ6は、通常は第4図のフロ
ーチャートに示すような処理を実行しており、送信用マ
イクロコンピュータ1からのデータを用いる処理中で該
データを必要となったとき或いは他の処理の空き時間等
の好きな時間に、アウトプットレディ信号ORが“1”
か否かを判別し、“1″であればFIFOレジスタ4の
記憶情報をドライバ8.バス7を介して読取る。また、
受信用マイクロコンピュータ6が他の処理で忙L<FI
FOレジスタ4の記憶情報の読取り処理をある時間行な
わない為、FIFOレジスク4の記憶情報が一杯になる
と、インプットレディ信号IRは、”1”から0”に変
化し、その立下がりでワンショットマルチ10が起動さ
れて受信用マイクロコンピュータ6に割込みがかけられ
る。受信用マイクロコンピュータ6は割込みがかかると
第5図に示すような処理を実行するようプログラムされ
ており、アウトプントレディ信号ORがO″にアルまで
即ちFIFOレジスタ4の記憶情報が全部なくなるまで
FIFOレジスタ4の記憶情報の読出しを行なう。なお
、全部の情報を読出す以外に所定量のデータを読出す構
成にすることもできる。
The receiving microcomputer 6 normally executes the processing shown in the flowchart of FIG. 4, and when the data from the transmitting microcomputer 1 is needed during processing or for other processing. Output ready signal OR is set to “1” at any time such as during free time.
If it is "1", the information stored in the FIFO register 4 is transferred to the driver 8. Read via bus 7. Also,
The receiving microcomputer 6 is busy with other processing L<FI
Since the reading process of the stored information in the FO register 4 is not performed for a certain period of time, when the stored information in the FIFO register 4 becomes full, the input ready signal IR changes from "1" to 0, and at the falling edge, the one-shot multi-channel signal is activated. 10 is activated and an interrupt is applied to the receiving microcomputer 6.The receiving microcomputer 6 is programmed to execute the process shown in FIG. 5 when the interrupt occurs, and the output ready signal OR is The information stored in the FIFO register 4 is read out up to '', that is, until all of the information stored in the FIFO register 4 is exhausted. Note that instead of reading out all the information, it is also possible to adopt a configuration in which a predetermined amount of data is read out.

FIFOレジスタ4の記憶容量は、送信用マイクロコン
ピュータ1の書込み速度のバラツキ、受(M用マイクロ
コンビエータ6のデータの読出し速度のバラツキを考慮
して決定し、受信用マイクロコンピュータ6へ割込みが
あまり頻繁にかからないようにすることが望ましい。
The storage capacity of the FIFO register 4 is determined by taking into account variations in the writing speed of the transmitting microcomputer 1 and variations in the reading speed of data in the receiving (M) microcombiator 6, so that there are not too many interrupts to the receiving microcomputer 6. It is preferable not to apply it frequently.

なお、受信用マイクロコンピュータ6の割込み受付形式
によっては第1図のワンショットマルチ10を省略する
ことができる。また、第1図と同様な構成をもう一組設
ければ、受信用マイクロコンピュータ6から送信用マイ
クロコンピュータ1へのデータ転送も可能である。
Incidentally, depending on the interrupt acceptance format of the receiving microcomputer 6, the one-shot multiplexer 10 shown in FIG. 1 can be omitted. Furthermore, if another set of configuration similar to that shown in FIG. 1 is provided, data transfer from the receiving microcomputer 6 to the transmitting microcomputer 1 is also possible.

発明の詳細 な説明したように、本発明によれば、ハードウェアはF
IFOレジスタ4と若干の回路で済み、非常にインター
フェイス回路を簡単にすることができる。また、FIF
Oレジスタ4を介してデータの転送を行なっているから
、データの転送順序も複雑な処理なく判別し得る効果が
ある。また、FIFOレジスタ4の記憶情報の読取りを
、アウトプントレディ信号IRにて受信用マイクロコン
ピュータ6に割込みを上げ、その割込み処理内で行なう
ことも考えられるが、そうすると割込みルーチンへ移行
するまでに時間がかかり効率良くデータを読取れないと
共に、割込みが頻繁にかかることかう受信用マイクロコ
ンピュータ6の他の処理に悪影響を与える虞もある。こ
れに対し、本発明では、受信用マイクロコンピュータ6
が次のデータを必要な時にデータの読取りを行なわせて
いるので、そのような問題は生じず、且つFIFOレレ
スタ4が一杯になったとき初めて割込み処理にてFIF
Oレジスタ4のデータを直ちに読取る構成としているの
で、送信用マイクロコンピュータIの書込み処理が長時
間停止する事態を回避できる。
DETAILED DESCRIPTION OF THE INVENTION According to the present invention, the hardware
It only requires the IFO register 4 and a few circuits, making the interface circuit extremely simple. Also, FIF
Since data is transferred via the O register 4, the data transfer order can be determined without complicated processing. It is also possible to read the information stored in the FIFO register 4 by sending an interrupt to the receiving microcomputer 6 using the output ready signal IR, and to perform the reading within the interrupt processing. In addition, there is a possibility that other processing of the reception microcomputer 6 will be adversely affected due to frequent interruptions. In contrast, in the present invention, the receiving microcomputer 6
Since the next data is read when necessary, such a problem does not occur, and the FIFO register 4 is only read by interrupt processing when the FIFO register 4 is full.
Since the data in the O register 4 is immediately read, it is possible to avoid a situation where the writing process of the transmitting microcomputer I is stopped for a long time.

本発明の方法は、上位マイクロコンピュータと下位マイ
クロコンピュータ間のデータ転送であって、データの転
送順序が問題となるようなマルチマイクロコンピュータ
システム等に適用すれば非−常に有効である。
The method of the present invention is very effective when applied to a multi-microcomputer system or the like where data transfer between an upper microcomputer and a lower microcomputer is concerned with the order of data transfer.

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

第1図は本発明を実施する装置の一例を示す要部ブロッ
ク図、第2図はFIFOレジスタ4の実施例を示すブロ
ック図、第3図は送信側マイクロコンピュータ1のデー
タ書込み処理の流れを示すフローチャート、第4図及び
第5図は受信側マイクロコンピュータ6のデータ読取り
処理の流れを示すフローチャート、第6図は第1図示装
置を動作させた場合の各部の状態を示すタイミングチャ
ートである。 lは送信側マイクロコンピュータ、2はそのバス、4は
FIFOレジスタ、6は受信側マイクロコンピュータ、
10は割込み信号を発生するワンショットマルチ、IR
はインプットレディ信号、ORはアウトプントレディ信
号である。 特許出願人ファナック株式会社 代理人弁理士玉蟲久五部外I名 第 1 図 第 2 図 M 3 図 第 4 図 第5図 第6図
FIG. 1 is a block diagram of main parts showing an example of a device implementing the present invention, FIG. 2 is a block diagram showing an embodiment of the FIFO register 4, and FIG. 3 shows the flow of data write processing of the sending microcomputer 1. 4 and 5 are flowcharts showing the flow of the data reading process of the receiving microcomputer 6, and FIG. 6 is a timing chart showing the states of each part when the first illustrated device is operated. l is the sending microcomputer, 2 is its bus, 4 is the FIFO register, 6 is the receiving microcomputer,
10 is a one-shot multi-IR that generates an interrupt signal.
is an input ready signal, and OR is an output ready signal. Patent Applicant Fanuc Co., Ltd. Patent Attorney Patent Attorney Gobe Tamamushi Gobu I Name 1 Figure 2 Figure M 3 Figure 4 Figure 5 Figure 6

Claims (1)

【特許請求の範囲】[Claims] マイクロコンピュータ間のデータ転送方法において、入
力側と出力側とが独立にアクセス可能であり且つ記憶領
域が一杯になったか否かを示すインプットレディ信号と
記憶領域にデータが書込まれているか否かを示すアウト
プットレディ信号とを出力するFIFOレジスタを送信
側マイクロコンピュータと受信側マイクロコンピュータ
間に設け、送信側マイクロコンピュータは前記インプッ
トレディ信号により前記記憶領域に空き領域があること
を判別してデータを前記FIFOレジスタの記憶領域に
書込み、前記受信側マイクロコンピュータは任意の時間
に前記アウトプットレディ信号により前記記憶領域にデ
ータが書込まれてい、ることを判別して前記記憶領域に
記憶されたデータを読出し且つ前記インプットレディ信
号により前記記憶領域が一杯になったときは割込み処理
にて前記記憶領域のデータを直ちに読取ることを特徴と
するマイクロコンピュータ間のデータ転送方法。
In a data transfer method between microcomputers, the input side and the output side can be accessed independently, and an input ready signal indicating whether the storage area is full or not and whether data has been written to the storage area. A FIFO register is provided between the transmitting microcomputer and the receiving microcomputer, and the transmitting microcomputer determines from the input ready signal that there is free space in the storage area and outputs the data. is written to the storage area of the FIFO register, and the receiving microcomputer determines that data has been written to the storage area by the output ready signal at an arbitrary time and stores the data in the storage area. A data transfer method between microcomputers, characterized in that when data is read and the storage area becomes full due to the input ready signal, the data in the storage area is immediately read by interrupt processing.
JP15872583A 1983-08-30 1983-08-30 Data transfer method between microcomputers Pending JPS6049465A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15872583A JPS6049465A (en) 1983-08-30 1983-08-30 Data transfer method between microcomputers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15872583A JPS6049465A (en) 1983-08-30 1983-08-30 Data transfer method between microcomputers

Publications (1)

Publication Number Publication Date
JPS6049465A true JPS6049465A (en) 1985-03-18

Family

ID=15677969

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15872583A Pending JPS6049465A (en) 1983-08-30 1983-08-30 Data transfer method between microcomputers

Country Status (1)

Country Link
JP (1) JPS6049465A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6242300A (en) * 1985-08-20 1987-02-24 松下電器産業株式会社 Toll receiving terminal
US5649106A (en) * 1991-03-14 1997-07-15 Mitsubishi Denki Kabushiki Kaisha Parallel computer with reconstruction of processor clusters

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6242300A (en) * 1985-08-20 1987-02-24 松下電器産業株式会社 Toll receiving terminal
US5649106A (en) * 1991-03-14 1997-07-15 Mitsubishi Denki Kabushiki Kaisha Parallel computer with reconstruction of processor clusters

Similar Documents

Publication Publication Date Title
US5247640A (en) Dual access control system including plural magnetic disk control units and contention control circuitry
US5748887A (en) Inter-processor asynchronous serial communication transmission/reception apparatus using each other&#39;s memories
JPS6049465A (en) Data transfer method between microcomputers
WO1993012486A1 (en) Direct memory access interface for buses of different width
JPH08241199A (en) Data-processing system
JP3304395B2 (en) Data transfer device and data transfer method
JPS61123244A (en) Data communication processor
KR970002400B1 (en) Control scheme of interrupt go and done in a multiprocessor interrupt requester
KR940009430B1 (en) Device for and method of adapting dual-port memory between network adaptor and central control device
JP2667285B2 (en) Interrupt control device
JP2821176B2 (en) Information processing device
JP2747154B2 (en) I / O processor
JPS6388644A (en) Central processing unit
JP2588514Y2 (en) Communication control device
JPH0330899B2 (en)
JPS6342547A (en) Line control unit
JPH02211571A (en) Information processor
JPH023853A (en) Interface method for cpu
JPH02171949A (en) Dma transfer system
JPH0362249A (en) Data processor
JPH036762A (en) Direct access method for image memory
JPH01276241A (en) Multiple interrupting device
JPH05189351A (en) Bus converter
JPH0429101B2 (en)
JPH0760416B2 (en) Data processing device