JP3186150B2 - Data transfer device - Google Patents

Data transfer device

Info

Publication number
JP3186150B2
JP3186150B2 JP34108591A JP34108591A JP3186150B2 JP 3186150 B2 JP3186150 B2 JP 3186150B2 JP 34108591 A JP34108591 A JP 34108591A JP 34108591 A JP34108591 A JP 34108591A JP 3186150 B2 JP3186150 B2 JP 3186150B2
Authority
JP
Japan
Prior art keywords
data
cpu
memory
written
signal
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.)
Expired - Lifetime
Application number
JP34108591A
Other languages
Japanese (ja)
Other versions
JPH05173935A (en
Inventor
肇 野村
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.)
Denso Corp
Original Assignee
Denso 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 Denso Corp filed Critical Denso Corp
Priority to JP34108591A priority Critical patent/JP3186150B2/en
Publication of JPH05173935A publication Critical patent/JPH05173935A/en
Application granted granted Critical
Publication of JP3186150B2 publication Critical patent/JP3186150B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数の中央演算処理装
置(以下、「CPU」という)を使用するデータ転送方
法に関するもので、特にCPUのメモリ領域中にあるデ
ータを他のCPUのメモリ領域中のある部分へ転送する
データ転送方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer method using a plurality of central processing units (hereinafter referred to as "CPU"), and more particularly to a method for transferring data in a memory area of a CPU to a memory of another CPU. The present invention relates to a data transfer method for transferring data to a certain part in an area.

【0002】[0002]

【従来の技術】従来より、特開平2−153248号公
報に示されるように、内燃機関の電子制御装置におい
て、複数のCPU間あるいはCPUとメモリ間で多バイ
ト長にわたるデータを一度に転送し、プログラムによら
ず受信側メモリに直接書き込むダイレクト・メモリ・ア
クセス・チャネル手段(以下「DMA」という)が開示
されている。
2. Description of the Related Art Conventionally, as disclosed in Japanese Patent Application Laid-Open No. 2-153248, in an electronic control unit for an internal combustion engine, data of a multibyte length is transferred at once between a plurality of CPUs or between a CPU and a memory. A direct memory access channel means (hereinafter referred to as "DMA") for directly writing to a receiving memory without using a program is disclosed.

【0003】[0003]

【発明が解決しようとする課題】ところが、前記データ
の転送方法においては、CPUのプログラムによらずデ
−タの転送を行っているため、発信側メモリから受信側
メモリにデ−タを転送している最中にCPUがメモリ
(受信側メモリ)に記憶されているデ−タを読み込んで
しまう恐れがある。すなわち、例えばデ−タ全体がNバ
イトであるデ−タのうち、前半のnバイトまでが今回の
デ−タの転送により更新されたデ−タであり、後半のN
−nバイトが未だ更新されていないデ−タについて、こ
のデータを1つのデ−タとしてCPUが読み込んでしま
うという不具合が発生してしまうというものである。
However, in the data transfer method, since data is transferred without depending on the program of the CPU, the data is transferred from the transmission side memory to the reception side memory. During reading, the CPU may read data stored in the memory (reception side memory). That is, for example, of the data whose entire data is N bytes, up to the first n bytes are data updated by the transfer of the current data, and
-For data for which n bytes have not yet been updated, there is a problem that the CPU reads this data as one piece of data.

【0004】そこで、このような不具合を解決するため
に転送するデ−タの前後のアドレスにDMAによる転送
の開始と終了とを示すデ−タを書き込み、CPUがこの
デ−タを読み込むことによりDMAによるデ−タ転送を
実行している期間、CPUがメモリに記憶されているデ
−タを読み込まないようにするという方法が提案されて
いる。
Therefore, in order to solve such a problem, data indicating the start and end of DMA transfer is written into addresses before and after the data to be transferred, and the CPU reads the data. A method has been proposed in which a CPU does not read data stored in a memory while data transfer by DMA is being executed.

【0005】しかしながら、DMAを用いて一度に多量
のデ−タを転送するような場合、前述したような方法で
はDMAによるデ−タ転送を実行している期間、CPU
がメモリに記憶されているデ−タを全く読み込むことが
できないため、この期間CPUでの演算処理が長時間待
たされてしまうという問題が生じる。そこで、本発明は
上記問題を解決するためになされたものであり、その目
的とするところは、CPUでの演算処理を長時間待たす
ことなく、DMAを用いて多バイト長にわたるデ−タを
確実に転送することにある。
However, in the case where a large amount of data is transferred at a time using the DMA, the above-described method requires a CPU during the period when the data transfer by the DMA is being executed.
Cannot read the data stored in the memory at all, which causes a problem that the arithmetic processing in the CPU is kept waiting for a long time. SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem, and an object of the present invention is to provide a multi-byte data using a DMA without waiting for a long time in a CPU. The point is to ensure the transfer.

【0006】[0006]

【課題を解決するための手段】前記目的を達成するため
の本発明によるデータ転送装置は、メモリを有する複数
の中央演算処理装置間でデータを転送するデータ転送装
において、転送される全データのうち、受信側の前記
中央演算処理装置のメモリに一度に書き込めるデータ長
を超える第1デ−タの前後にデータの始まりと終わりを
示す識別データを設定し、前記受信側の前記中央演算処
理装置は、前記受信側の前記中央演算処理装置の前記メ
モリに前記第1データが書き込まれている途中であるか
否かを前記識別データに基づいて判断し、前記第1デー
タの書き込み途中であると判断した場合には、前記メモ
リに書き込まれている途中の前記第1データの読み込み
禁止することを特徴とする。
Means for Solving the Problems A data transfer apparatus according to the present invention for achieving the above object, a data transfer instrumentation for transferring data between a plurality of central processing unit having a memory
In location, among all the data to be transferred, the receiving side the
Data length that can be written to the central processing unit memory at one time
Before and after the first data exceeding the threshold, identification data indicating the start and end of the data is set, and the central processing on the receiving side is set.
The central processing unit on the receiving side.
Whether the first data is being written to the memory
Is determined based on the identification data, and the first data
If it is determined that the data is being written,
Reading the first data being written to the memory
Characterized in that it prohibited.

【0007】[0007]

【作用】メモリを有する複数のCPU間でデータ転送を
行なう場合、全転送データのうち、受信側メモリへ一度
に書き込み可能なバイト長を超えるバイト長のデータ
は、そのデータの始まりと終わりに転送データの始まり
と終わりであることを示す識別データを書き込む。これ
により、一つのデータについて、書き換え途中の未更新
部分を含むデータであるか否かを判別し、書き換え途中
の未更新部分を含むデータについては、その読み込み
禁止し、更新終了のデータのみを転送する。
When data is transferred between a plurality of CPUs having a memory , data having a byte length exceeding the byte length that can be written to the receiving memory at one time out of all the transfer data is set to the beginning of the data. At the end, write the identification data indicating the beginning and end of the transfer data. Thereby, it is determined whether or not one piece of data is data including a non-updated part in the middle of rewriting, reading of data including a non-updated part in the middle of rewriting is prohibited, and only the data of the end of the update is read. Forward.

【0008】[0008]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。本発明を内燃機関の電子制御装置に適用した実施
例を以下に示す。図2に示すように、内燃機関への燃料
供給制御を司る第1のCPU1と、燃焼室に供給される
混合気の点火時期制御を司る第2のCPU2とが電子制
御装置(ECU)3内に備えられている。
Embodiments of the present invention will be described below with reference to the drawings. An embodiment in which the present invention is applied to an electronic control unit for an internal combustion engine will be described below. As shown in FIG. 2, a first CPU 1 that controls fuel supply to the internal combustion engine and a second CPU 2 that controls ignition timing of an air-fuel mixture supplied to the combustion chamber include an electronic control unit (ECU) 3. It is provided in.

【0009】第1のCPU1には、この第1のCPU1
で実行される各種演算プログラムおよび燃料噴射量(燃
料噴射弁の開弁時間を演算するのに用いられる各種テー
ブル)等を記憶するリードオンリーメモリ(以下、RO
Mという)4、演算結果を一時的に記憶するランダムア
クセスメモリ(以下、RAMという)5が備えられてい
る。
The first CPU 1 includes the first CPU 1
A read-only memory (hereinafter referred to as RO) for storing various arithmetic programs executed by the ECU and a fuel injection amount (various tables used for calculating the valve opening time of the fuel injection valve) and the like.
M) 4 and a random access memory (hereinafter, referred to as RAM) 5 for temporarily storing the operation result.

【0010】第2のCPU2には、第1のCPU1に内
蔵されるROM4およびRAM5と同様の機能を有する
ROM6およびRAM7が備えられている。ECU3の
入力側には、内燃機関のカム軸が360°回転する毎に
特定気筒の圧縮工程上死点前の所定角度位置で第1の気
筒判別信号(G1)を出力する第1の気筒判別センサ1
0と、前記気筒判別信号に対してクランク軸に対して3
60°(360°CA)ずれた位置で第2の気筒判別信
号(G2)を出力する第2の気筒判別センサ11、およ
びクランク軸が30°回転するごとに1パルスの信号
(NE)を出力する回転センサ12が接続されている。
第1の気筒判別信号(G1)、第2の気筒判別信号(G
2)および回転数信号(NE)は、図1に示すように、
ECU3の内部で波形整形回路15に入力された後、第
1のCPU1と第2のCPU2に入力される。
The second CPU 2 is provided with a ROM 6 and a RAM 7 having the same functions as the ROM 4 and the RAM 5 built in the first CPU 1. A first cylinder discrimination signal that outputs a first cylinder discrimination signal (G1) at a predetermined angular position before a top dead center of a compression process of a specific cylinder every time the camshaft of the internal combustion engine rotates 360 ° on the input side of the ECU 3. Sensor 1
0 and 3 with respect to the crankshaft for the cylinder discrimination signal.
A second cylinder discrimination sensor 11 that outputs a second cylinder discrimination signal (G2) at a position shifted by 60 ° (360 ° CA), and outputs a one-pulse signal (NE) every time the crankshaft rotates 30 °. Rotation sensor 12 is connected.
The first cylinder discrimination signal (G1) and the second cylinder discrimination signal (G
2) and the rotation speed signal (NE), as shown in FIG.
After being input to the waveform shaping circuit 15 inside the ECU 3, it is input to the first CPU 1 and the second CPU 2.

【0011】ECU3への他の入力として、スロットル
弁が全閉状態であることを示す信号(IDL)を出力す
るアイドルスイッチ16、自動変速機のシフト位置がニ
ュートラルであることを示す信号(NSW)を出力する
ニュートラルスイッチ17、スタータが通電状態である
ことを示す信号(STA)を出力するスタータスイッチ
18等のスイッチ類が接続され、ECU3内部の入力回
路20を通してレベル交換され、第1のCPU1と第2
のCPU2の双方へ入力される。
As other inputs to the ECU 3, an idle switch 16 for outputting a signal (IDL) indicating that the throttle valve is fully closed, and a signal (NSW) indicating that the shift position of the automatic transmission is neutral. And a starter switch 18 that outputs a signal (STA) indicating that the starter is energized are connected, and the levels are exchanged through an input circuit 20 inside the ECU 3 to exchange the level with the first CPU 1. Second
Are input to both CPU2.

【0012】さらにECU3の入力として、内燃機関の
吸入空気量を電圧に変換して出力するエアフローメータ
22、内燃機関の冷却水温を抵抗値として出力する水温
センサ23、内燃機関の吸気温度を抵抗値として出力す
る吸気温センサ24、スロットル開度を抵抗値として出
力するスロットルセンサ25、電源電圧をモニタするた
めにバッテリ26が接続されている。
Further, as inputs to the ECU 3, an air flow meter 22 for converting the intake air amount of the internal combustion engine into a voltage and outputting the voltage, a water temperature sensor 23 for outputting the cooling water temperature of the internal combustion engine as a resistance value, and a resistance value for the intake air temperature of the internal combustion engine , A throttle sensor 25 that outputs the throttle opening as a resistance value, and a battery 26 for monitoring the power supply voltage.

【0013】これらの入力のうち、水温信号、吸気温信
号、バッテリ信号については第1AD変換器27に入力
され、第1のCPU1に対してのみデータを転送する。
吸入空気量信号(AFM)、スロットル開度信号につい
ては第1のAD変換器27および第2のAD変換器28
に入力され、第1のAD変換器27から第1のCPU1
へ、第2のAD変換器28から第2のCPU2へデータ
を転送する。
Among these inputs, a water temperature signal, an intake air temperature signal, and a battery signal are input to the first AD converter 27, and the data is transferred only to the first CPU 1.
A first A / D converter 27 and a second A / D converter 28 provide an intake air amount signal (AFM) and a throttle opening signal.
To the first CPU 1 from the first AD converter 27.
The data is transferred from the second AD converter 28 to the second CPU 2.

【0014】第1のCPU1、第2のCPU2間の通信
手段として、CPU1とCPU2は以下の5本のライン
により接続される。すなわち、CPU1からCPU2
へデータを出力するためのSOUT、CPU2からC
PU1へデータを送るためのSIN、データの同期を
取るための同期信号をCPU1からCPU2へ送るため
のCLK、CPU2が受信可能状態であることを示す
信号を送るためのCTS、CPU1が受信可能状態で
あることを示す信号を送るためのRTSの各ラインであ
る。
As a communication means between the first CPU 1 and the second CPU 2, the CPU 1 and the CPU 2 are connected by the following five lines. That is, from CPU1 to CPU2
SOUT for outputting data to CPU 2
SIN for transmitting data to PU1, CLK for transmitting a synchronization signal for synchronizing data from CPU1 to CPU2, CTS for transmitting a signal indicating that CPU2 is in a receivable state, receivable state for CPU1 Are lines of the RTS for sending a signal indicating that

【0015】第1のCPU1がプログラムによりデータ
送信可能な状態となっているとき、第2のCPU2が受
信可能であることがCTSによって第1のCPU1に伝
えられると、第1のCPU1からは、第1のCPU1内
のあらかじめ定められたRAMアドレスから始まるメモ
リの内容を、あらかじめ定められたデータ長だけSOU
Tを通じて、CLKに同期した形で出力する。第2のC
PU2では、このデータを、あらかじめ定められた第2
のCPU2内のRAM領域に書き込む。
When the first CPU 1 is in a state in which data can be transmitted by a program and the second CPU 2 is notified by the CTS to the first CPU 1 that the second CPU 2 can receive data, the first CPU 1 outputs The contents of the memory starting from a predetermined RAM address in the first CPU 1 are stored in the SOU by a predetermined data length.
Through T, it is output in synchronization with CLK. 2nd C
PU2 converts this data into a predetermined second
Is written to the RAM area in the CPU 2.

【0016】ここで、第1のCPU1におけるRAMか
らSOUTへの出力および第2のCPU2におけるRA
Mへの書き込みは、各CPU内のプログラムの介在なし
に、各CPUに備えられたDMAコントローラによって
ハード的に行われる。第2のCPU2から第1のCPU
1へのデータ転送も、第1のCPU1から第2のCPU
2の場合と同様な手段により行われる。
Here, the output from the RAM to the SOUT in the first CPU 1 and the RA in the second CPU 2
Writing to M is performed by hardware by a DMA controller provided in each CPU without intervention of a program in each CPU. From the second CPU 2 to the first CPU
Data transfer from the first CPU 1 to the second CPU
This is performed by the same means as in the case of 2.

【0017】図3および図4に送信側の処理および受信
側の処理におけるフローチャートを示す。図5にはメモ
リ内の転送領域の状態を示す。いま、DMAの受信側に
て所定のRAMアドレスに一度にデータを書き込めるバ
イト長を2バイト、それを超える精度を要求されるデー
タDのバイト長を3(=n)バイトとする。この場合、
データD′は上位1バイト(d1 ′)と下位2バイト
(d2 ′、d3 ′)または、上位2バイト(d1
′、d2 ′)と下位1バイト(d3 ′)で書き込み
タイミングがずれて読み込んだとき、真のデータと異な
る値をとる可能性がある。そこで、本実施例ではDMA
により転送されるデ−タのうち、前述したように一度に
書き込めるバイト長を超える精度が要求されるデ−タ
(デ−タD’)の前後にのみ書き込み中であることを示
すデ−タC1 ’およびデ−タC2 ’を設ける。これに
より、前述したようにデ−タの書き込みタイミングがず
れていることにより真のデ−タと異なるデ−タをCPU
1、CPU2が読み込んでしまうことを防止することが
できる。一方、上記デ−タとは異なり高精度のデ−タが
要求されず、一度に書き込み可能なデ−タの場合にはこ
のような不具合が生じないので、書き込み中であること
を示すデ−タを設けない。これにより、この間はCPU
1およびCPU2が各RAM内のデ−タを自由に読み込
むことができ、演算処理が待たされる時間を大幅に短縮
することができる。ここで、一度に書き込めるバイト長
を超える精度を必要とするデ−タは、例えば吸入空気
量、スロットル開度の検出結果を示すデ−タ等であり、
これらのデータの必要とされる精度(バイト長)は予め
決定されている。
FIGS. 3 and 4 show flowcharts of processing on the transmitting side and processing on the receiving side. FIG. 5 shows the state of the transfer area in the memory. Now, it is assumed that the byte length at which data can be written to a predetermined RAM address at a time on the receiving side of the DMA is 2 bytes, and the byte length of the data D which requires an accuracy exceeding that is 3 (= n) bytes. in this case,
The data D 'is composed of upper one byte (d1') and lower two bytes (d2 ', d3') or upper two bytes (d1 ').
', D2') and the lower one byte (d3 ') when read with a shift in write timing, there is a possibility that a value different from true data may be obtained. Therefore, in this embodiment, the DMA
As described above, data indicating that data is being written only before and after data (data D ') requiring an accuracy exceeding the byte length that can be written at a time among the data transferred as described above. C1 'and data C2' are provided. As a result, data different from the true data due to the shift of the data write timing as described above is transmitted to the CPU.
1. It is possible to prevent the CPU 2 from reading. On the other hand, unlike the above-mentioned data, high-precision data is not required. In the case of data that can be written at once, such a problem does not occur, so that data indicating that writing is in progress. No data is provided. Due to this , during this time the CPU
1 and the CPU 2 can freely read the data in each RAM, and the time required for the arithmetic processing can be greatly reduced. Here, data requiring an accuracy exceeding the byte length that can be written at one time is, for example, data indicating a detection result of an intake air amount and a throttle opening, and the like.
The required precision (byte length) of these data is determined in advance.

【0018】次に、以上述べたようなデ−タD’を転送
する際の送信側の処理および受信側の処理について説明
する。送信側の処理では、図3に示すように、常にC1
←0(=K1 )、C2 ←0(=K2 )としている(ステ
ップ100)。ただし、K1 、K2 は任意の定数であ
る。ここで、転送が行なわれれば、受信側においてもC
1 ′=0、C2 ′=0となる。受信側の処理では、図4
に示すように、ステップ240で、C1 ′←1(=K
1 ′)、C2 ′←1(=K2 ′)としているため、C
1 ′、d1 ′d2 ′、d3 ′、C2 ′への転送が行なわ
れないときには、C1 ′≠0(=K1 )、C2′≠0
(=K2 )となる。K1 ′、K2 ′は、K1 ′≠K1
2 ′≠K2 の任意の定数である。
Next, processing on the transmitting side and processing on the receiving side when transferring the data D 'as described above will be described. In the processing on the transmission side, as shown in FIG. 3, always C 1
← 0 (= K 1 ), C 2 ← 0 (= K 2 ) (step 100). However, K 1 and K 2 are arbitrary constants. Here, if the transfer is performed, the C
A 1 '= 0, C 2' = 0. In the processing on the receiving side, FIG.
As shown in step 240, at step 240, C 1 ′ ← 1 (= K
1 ′) and C 2 ′ ← 1 (= K 2 ′).
1 ', d 1' d 2 ', d 3', C 2 ' when is not performed forwarding to the, C 1' ≠ 0 (= K 1), C 2 '≠ 0
(= K 2 ). K 1 ′ and K 2 ′ are K 1 ′ ≠ K 1 ,
K 2 ′ ≠ K 2 is an arbitrary constant.

【0019】受信側にてデータD′を使用する場合、ま
ずd1 ′、d2 ′、d3 ′を読み込んだ後(ステップ2
00)、C1 ′を0(=K1 )と比較する(ステップ2
10)。ここでC1 ′≠0(=K1 )と判断されれば
(ステップ210)、d1 ′〜d3 ′への書き込みがま
だ行なわれていないので、このとき読み込んだD′をそ
のまま使用しても良い。C1 ′=0(=K1 )と判断さ
れれば(ステップ210)、既にd1 ′〜d3 ′への書
き込みが始まっているため、次に、C2 ′と0(=K
2 )とを比較し(ステップ220)、C2 ′≠0(=K
2 )と判断されれば、まだ書き込み中であるのでC2
=0(=K2 )となるまで待つ。C2 ′=0(=K2
と判断されれば、d1 ′〜d3 ′への書き込みを終了し
ているので、その後d1 ′〜d3 ′の読み込みを行い
(ステップ230)、その値を使用する。さらに、C
1 ′、C2 ′については、C1 ′←1(≠K1 ′)、C
2 ′←1(≠K2 ′)としておく(ステップ240)。
これは、次回d1 ′、d2 ′、d3′を読み込む時にも
上記処理を可能とするためである。
When using the data D 'on the receiving side, first read d 1 ', d 2 ', d 3 ' (step 2).
00), C 1 ′ is compared with 0 (= K 1 ) (step 2)
10). Here, if it is determined that C 1 ′ ≠ 0 (= K 1 ) (step 210), since writing to d 1 ′ to d 3 ′ has not yet been performed, D ′ read at this time is used as it is. May be. If it is determined that C 1 ′ = 0 (= K 1 ) (step 210), since writing to d 1 ′ to d 3 ′ has already started, next, C 2 ′ and 0 (= K 1)
2 ) (step 220), and C 2 ′ ≠ 0 (= K
If 2 ) is determined, writing is still in progress and C 2
Wait until = 0 (= K 2 ). C 2 '= 0 (= K 2 )
If it is determined that, since the completion of writing to d 1 '~d 3', then to load the d 1 '~d 3' (step 230), and use that value. Further, C
1 ', C 2' For, C 1 '← 1 (≠ K 1'), C
2 ′ ← 1 (≠ K 2 ′) (step 240).
This is to enable the above processing when reading d 1 ′, d 2 ′ and d 3 ′ next time.

【0020】前記実施例では、データC1 、C2 をデー
タDとは別のアドレスのRAMとしていたが、C1 、C
2 についてはそれぞれ1ビットあれば充分であり、C
1 、C 2 を1ビットデータとして、それぞれd1 、d3
の一部とすることも可能である。前記実施例の場合、第
1のCPU1からは、具体的に、内燃機関の各気筒の燃
料噴射弁30を制御するための信号#1、#2、#3、
#4および内燃機関の状態を制御するためのその他VS
V31を制御するための信号等が出力される。第2のC
PU2からは、内燃機関各気筒の点火プラグ32に点火
させるための点火信号が出力され、さらに内燃機関状態
を制御するためのその他VSV34等を制御するための
信号が出力される。
In the above embodiment, the data C1 , CTwo The day
RAM was at a different address from that of D1 , C
Two Is sufficient for each one bit.
1 , C Two As 1-bit data, d1 , DThree 
Can be part of In the case of the above embodiment,
Specifically, the CPU 1 outputs the fuel of each cylinder of the internal combustion engine.
# 1, # 2, # 3 for controlling the fuel injection valve 30
# 4 and other VS for controlling the state of the internal combustion engine
A signal for controlling V31 is output. 2nd C
PU2 ignites the ignition plug 32 of each cylinder of the internal combustion engine
An ignition signal is output for the
To control the VSV 34 and the like
A signal is output.

【0021】前記実施例では2個のCPUを使用してい
るが、本発明としては、3個以上のCPUを使用しても
同様のことを行える。この場合、複数のCPUに入力さ
れる信号は、使用している全てのCPUに入力する必要
はなく、その入力を必要とする一部のCPUにのみ信号
を入力しても良い。
In the above embodiment, two CPUs are used. However, the present invention can be applied to the case where three or more CPUs are used. In this case, the signals input to the plurality of CPUs do not need to be input to all the CPUs being used, and the signals may be input only to some of the CPUs that need the input.

【0022】[0022]

【発明の効果】以上説明したように、本発明によるデー
タ転送方法によれば、複数のCPU間あるいはCPUと
メモリ間でデータを転送する場合、CPUでの演算処理
を長時間待たすことなく、DMAを用いて多バイト長に
わたるデ−タを確実に転送できるという効果がある。
As described above, according to the data transfer method of the present invention, when data is transferred between a plurality of CPUs or between a CPU and a memory, arithmetic processing in the CPU does not have to wait for a long time. There is an effect that data over a multibyte length can be reliably transferred by using DMA.

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

【図1】本発明の実施例によるデータ転送方法を示す回
路図である。
FIG. 1 is a circuit diagram illustrating a data transfer method according to an embodiment of the present invention.

【図2】本発明の実施例によるデータ転送方法を示すブ
ロック図である。
FIG. 2 is a block diagram illustrating a data transfer method according to an embodiment of the present invention.

【図3】本発明の実施例による送信側の処理を示すフロ
ーチャート図である。
FIG. 3 is a flowchart illustrating processing on a transmission side according to an embodiment of the present invention.

【図4】本発明の実施例による受信側の処理を示すフロ
ーチャート図である。
FIG. 4 is a flowchart illustrating processing on the receiving side according to the embodiment of the present invention.

【図5】本発明の実施例によるデータ転送方法を説明す
るための図である。
FIG. 5 is a diagram illustrating a data transfer method according to an embodiment of the present invention.

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

1 第1のCPU(中央演算処理装置) 2 第2のCPU(中央演算処理装置) 4 ROM(メモリ) 5 RAM(メモリ) 6 ROM(メモリ) 7 RAM(メモリ) 40 通信手段 DESCRIPTION OF SYMBOLS 1 1st CPU (central processing unit) 2 2nd CPU (central processing unit) 4 ROM (memory) 5 RAM (memory) 6 ROM (memory) 7 RAM (memory) 40 Communication means

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 12/00,13/16 G06F 13/28,15/16 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 12 / 00,13 / 16 G06F 13 / 28,15 / 16

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 メモリを有する複数の中央演算処理装置
間でデータを転送するデータ転送装置において、転送される全 データのうち、受信側の前記中央演算処理
装置のメモリに一度に書き込めるデータ長を超える第1
デ−タの前後にデータの始まりと終わりを示す識別デー
タを設定し、 前記受信側の前記中央演算処理装置は、前記受信側の前
記中央演算処理装置の前記メモリに前記第1データが書
き込まれている途中であるか否かを前記識別データに基
づいて判断し、前記第1データの書き込み途中であると
判断した場合には、前記メモリに書き込まれている途中
の前記第1データの読み込みを禁止するデータ転送装
置。
In a data transfer apparatus for transferring data between a plurality of central processing units having a memory, the central processing unit on the receiving side of all data transferred.
The first that exceeds the data length that can be written to the memory of the device at one time
Identification data indicating the beginning and end of data before and after the data
And the central processing unit on the receiving side is provided in front of the receiving side.
The first data is written in the memory of the central processing unit.
It is determined whether or not data is being written based on the identification data.
And it is determined that the first data is being written.
If it is determined, the data is being written to the memory
Data transfer device for inhibiting reading of the first data
Place.
JP34108591A 1991-12-24 1991-12-24 Data transfer device Expired - Lifetime JP3186150B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34108591A JP3186150B2 (en) 1991-12-24 1991-12-24 Data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34108591A JP3186150B2 (en) 1991-12-24 1991-12-24 Data transfer device

Publications (2)

Publication Number Publication Date
JPH05173935A JPH05173935A (en) 1993-07-13
JP3186150B2 true JP3186150B2 (en) 2001-07-11

Family

ID=18343114

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34108591A Expired - Lifetime JP3186150B2 (en) 1991-12-24 1991-12-24 Data transfer device

Country Status (1)

Country Link
JP (1) JP3186150B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3562126B2 (en) * 1996-04-09 2004-09-08 株式会社デンソー DMA controller
JP7056457B2 (en) * 2018-08-08 2022-04-19 株式会社デンソー Electronic control device

Also Published As

Publication number Publication date
JPH05173935A (en) 1993-07-13

Similar Documents

Publication Publication Date Title
JPS6116250A (en) Control unit for car engine
US4379333A (en) Method and system for operating a power-producing machine at maximum torque under varying operating conditions
US5991686A (en) Vehicle electronic control using one A/D converter for time-synchronous and time-asynchronous A/D converter
US5586034A (en) Data communication equipment for transferring data
US6581119B1 (en) Interrupt controller and a microcomputer incorporating this controller
JPS6158841B2 (en)
JPH06324811A (en) A/d conversion controller for internal combustion engine
JP3186150B2 (en) Data transfer device
US4428348A (en) Digital control system for an internal combustion engine
JP3549712B2 (en) Method of writing data into memory of control device for vehicle and control device for vehicle
US5093793A (en) Method of transferring signals within electronic control system for internal combustion engines
JP3050337B2 (en) Electronic control unit for internal combustion engine
JP3562126B2 (en) DMA controller
JP2003167756A (en) Logic development device for microcomputer
JP2518336B2 (en) Serial communication controller
JPH07279745A (en) On-vehicle control device and on-vehicle control system
EP0989301B1 (en) Ignition timing control system for an internal combustion engine
JPS5843584B2 (en) Ignition timing control device
JPH0713897A (en) Serial communication device for data
JP3255957B2 (en) Automotive electronic control unit
JPH08180031A (en) Data communication equipment
JPH0524342B2 (en)
JP3494031B2 (en) Automotive electronic control unit
JP2623814B2 (en) Control device for engine control
JPS6118002A (en) Concentrated controller using microcomputer

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110511

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120511

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120511

Year of fee payment: 11