JPH0571978B2 - - Google Patents
Info
- Publication number
- JPH0571978B2 JPH0571978B2 JP59272547A JP27254784A JPH0571978B2 JP H0571978 B2 JPH0571978 B2 JP H0571978B2 JP 59272547 A JP59272547 A JP 59272547A JP 27254784 A JP27254784 A JP 27254784A JP H0571978 B2 JPH0571978 B2 JP H0571978B2
- Authority
- JP
- Japan
- Prior art keywords
- microcomputer
- data
- sent
- sequentially
- clock
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4204—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
- G06F13/4208—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being a system bus, e.g. VME bus, Futurebus, Multibus
- G06F13/4217—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being a system bus, e.g. VME bus, Futurebus, Multibus with synchronous protocol
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
- Information Transfer Systems (AREA)
Description
【発明の詳細な説明】
産業上の利用分野
本発明はマイコンから他のマイコンへデータを
転送する場合のデータ伝送方式に関する。DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a data transmission system for transferring data from a microcomputer to another microcomputer.
従来の技術
一般に第1のマイコンから第2のマイコンに対
してデータを転送する場合は、クロツク伝送用の
線路とデータ伝送用の線路とを設け、第1のマイ
コンからクロツクとこのクロツクに同期したデー
タとを第2のマイコンに送り、第2のマイコンは
送られて来るクロツクのタイミングでデータを読
み取るようにしている。Conventional technology Generally, when data is transferred from a first microcomputer to a second microcomputer, a line for clock transmission and a line for data transmission are provided, and a The data is sent to the second microcomputer, and the second microcomputer reads the data at the timing of the sent clock.
発明が解決しようとする問題点
上述した従来の方式では、第2のマイコンが第
1のマイコンから送られて来るデータを受付ける
ことができない状態にあるとき、例えば他の作業
を行つているときや停電状態にあるとき等は、第
1のマイコンは一方的にデータを送り出すだけな
ので、そのデータが第2のマイコンに伝達されな
いと云う不都合が生じる。このような問題は、デ
ータを1回しか転送しない場合や第2のマイコン
に小規模なものが用いられているような場合に生
じ易い。Problems to be Solved by the Invention In the conventional method described above, when the second microcomputer is in a state where it cannot accept data sent from the first microcomputer, for example, when it is performing another task or When there is a power outage, etc., the first microcomputer only sends out data unilaterally, resulting in the inconvenience that the data is not transmitted to the second microcomputer. Such problems tend to occur when data is transferred only once or when a small-scale second microcomputer is used.
問題点を解決するための手段
本発明は、第1のマイコンから第2のマイコン
にデータを転送するようにしたデータ伝送方式に
おいて、上記第1のマイコンから上記第2のマイ
コンにスタート信号が送られたとき、上記第2の
マイコンは、上記スタート信号を検出することに
より、この第2のマイコンから連続的に発生する
多数のクロツクを上記第1のマイコンに順次送り
出し、上記第1のマイコンは、上記第2のマイコ
ンからの上記多数のクロツクを順次検出すること
により、多数のデータを上記第2のマイコンに順
次送り出すと共に、上記第2のマイコンは、上記
多数のクロツクにより、上記第1のマイコンから
の上記多数のデータを順次読み取るように構成し
たものである。Means for Solving the Problems The present invention provides a data transmission system in which data is transferred from a first microcomputer to a second microcomputer, in which a start signal is sent from the first microcomputer to the second microcomputer. When the second microcomputer detects the start signal, it sequentially sends a large number of clocks that are continuously generated from the second microcomputer to the first microcomputer, and the first microcomputer By sequentially detecting the multiple clocks from the second microcomputer, a large amount of data is sequentially sent to the second microcomputer, and the second microcomputer detects the first clock using the multiple clocks. It is configured to sequentially read the above-mentioned large amount of data from the microcomputer.
作 用
二つのマイコンが互いにデータの授受を確認し
合いながら転送を行うので、データを確実に転送
することができ、特に、第2のマイコンから連続
的に発生するクロツクの発生に異常が生じてこの
クロツクが第2のマイコンから第1のマイコンに
順次送り出されなくなつたときには、たとえデー
タの順次転送の途中であつても、その時点からデ
ータが第1のマイコンから第2のマイコンに順次
送り出されなくなるから、上記データの順次転送
を簡単な構成によりさらに確実に行うことができ
る。Function: Since the two microcomputers mutually confirm that data is being sent and received, data can be transferred reliably, and especially if an abnormality occurs in the continuous clock generation from the second microcontroller. When this clock is no longer sent sequentially from the second microcomputer to the first microcomputer, data will be sent sequentially from the first microcomputer to the second microcomputer from that point on, even if data is being transferred sequentially. Therefore, the data can be transferred more reliably with a simple configuration.
実施例
第1図及び第2図に示すように、第1のマイコ
ンAから第2のマイコンBにデータを送る場合、
先ず、第2図のt1のタイミングで、「H」から
「L」に立下るスタートビツトを、AからBに送
つてデータの転送開始を知らせる。これによつて
Bは転送開始を知り、次にt2のタイミングでクロ
ツクをAに送る。Aはスタートビツトを出してか
らクロツクが返つて来たことによつて、転送開始
をBが知つたものと判断して、直ちに1つ目のデ
ータ例えば「H」を送り出す。Bはこのデータ
「H」をt3のタイミングで読み取つた後、続いて
次のクロツクをt4のタイミングでAに送る。以下
同様にしてt5,t6……のタイミングでデータの送
り出し、読み取り及びクロツクの送り出しを繰り
返すことによつて、一つのデータブロツクを、A
からBに誤り無く転送することができる。Embodiment As shown in FIGS. 1 and 2, when data is sent from the first microcomputer A to the second microcomputer B,
First, at timing t1 in FIG. 2, a start bit falling from "H" to "L" is sent from A to B to notify the start of data transfer. Through this, B learns that the transfer has started, and then sends a clock to A at timing t2 . When the clock returns after outputting the start bit, A determines that B has learned that the transfer has started, and immediately sends out the first data, for example "H". After B reads this data "H" at timing t3 , it subsequently sends the next clock to A at timing t4 . Thereafter, by repeating data sending, reading, and clock sending at timings t 5 , t 6 , etc., one data block is converted to A.
can be transferred from to B without error.
若しBがデータを受付けるこができない状態に
あるときに、Aがスタートビツトを送り、その後
にBが動き始めたような場合は、Bはスタートビ
ツトを検出することができない。一方、Aはいつ
まで待つてもクロツクが返つてこないため、回線
はそこで永久に停止してしまう。この対策とし
て、Aはスタートビツトを出してから所定時間経
過過してもクロツクが返つてこない場合は、再び
スタートビツトを出し直すようにしている。 If A sends a start bit while B is in a state where it cannot accept data, and then B starts moving, B will not be able to detect the start bit. On the other hand, no matter how long A waits, the clock does not return, so the line stops forever. As a countermeasure against this problem, if A does not return the clock even after a predetermined period of time has elapsed after issuing the start bit, A will issue the start bit again.
また、一つのデータブロツクの転送が終了した
ら、Aの電源電池のレベルチエツクを行い、転送
中に電池の電圧が所定レベルに達していなかつた
ことが判明した場合は、データの信頼性が低いも
のとして、そのときに転送されたデータを全て無
効と成すようにしてもよい。 When the transfer of one data block is completed, check the level of the power supply battery of A. If it is found that the voltage of the battery did not reach the specified level during the transfer, the reliability of the data may be low. As a result, all data transferred at that time may be invalidated.
発明の効果
二つのマイコンA,Bが常にデータの授受を互
いに確認し合いながら、転送作業を行うので、全
てのデータを誤り無く確実に転送することがで
き、特に、第2のマイコンから連続的に発生する
クロツクの発生に異常が生じてこのクロツクが第
2のマイコンから第1のマイコンに順次送り出さ
れなくなつたときには、たとえデータの順次転送
の途中であつても、その時点からデータが第1の
マイコンから第2のマイコンに順次送り出されな
くなるから、上記データの順次転送を簡単な構成
によりさらに確実に行うことができる。本発明は
特にデータ転送を1回のみ行うようなシステムに
用いて有効である。Effects of the invention Since the two microcomputers A and B perform the transfer work while constantly confirming that data is being sent and received, all data can be reliably transferred without errors. If an abnormality occurs in the generation of the clock that occurs during a period of time, and this clock is no longer sent sequentially from the second microcontroller to the first microcontroller, even if the data is being transferred sequentially, from that point on, the data will not be sent to the first microcontroller. Since data is no longer sent sequentially from one microcomputer to a second microcomputer, the data can be transferred more reliably with a simple configuration. The present invention is particularly effective for use in systems where data transfer is performed only once.
第1図は本発明の実施例を示すブロツク図、第
2図はタイミングチヤートである。
なお図面に用いられた符号において、A……第
1のマイコン、B……第2のマイコン、である。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a timing chart. Note that in the symbols used in the drawings, A: the first microcomputer, and B: the second microcomputer.
Claims (1)
を転送するようにしたデータ伝送方式において、 上記第1のマイコンから上記第2のマイコンに
スタート信号が送られたとき、上記第2のマイコ
ンは、上記スタート信号を検出することにより、
この第2のマイコンから連続的に発生する多数の
クロツクを上記第1のマイコンに順次送り出し、 上記第1のマイコンは、上記第2のマイコンか
らの上記多数のクロツクを順次検出することによ
り、多数のデータを上記第2のマイコンに順次送
り出すと共に、 上記第2のマイコンは、上記多数のクロツクに
より、上記第1のマイコンからの上記多数のデー
タを順次読み取るように構成したことを特徴とす
るデータ伝送方式。[Claims] 1. In a data transmission method in which data is transferred from a first microcomputer to a second microcomputer, when a start signal is sent from the first microcomputer to the second microcomputer, the By detecting the start signal, the second microcomputer
The second microcomputer sequentially sends a large number of clocks generated continuously to the first microcomputer, and the first microcomputer sequentially detects the large number of clocks from the second microcomputer. The data is sequentially sent to the second microcomputer, and the second microcomputer is configured to sequentially read the large number of data from the first microcomputer using the large number of clocks. Transmission method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59272547A JPS61148557A (en) | 1984-12-24 | 1984-12-24 | Data transmission system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59272547A JPS61148557A (en) | 1984-12-24 | 1984-12-24 | Data transmission system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61148557A JPS61148557A (en) | 1986-07-07 |
| JPH0571978B2 true JPH0571978B2 (en) | 1993-10-08 |
Family
ID=17515419
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59272547A Granted JPS61148557A (en) | 1984-12-24 | 1984-12-24 | Data transmission system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61148557A (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS53149706A (en) * | 1977-06-02 | 1978-12-27 | Nec Corp | Serial data transfer system on timing clock control system |
| JPS5954355A (en) * | 1982-09-22 | 1984-03-29 | Sanyo Electric Co Ltd | Data transfer system |
-
1984
- 1984-12-24 JP JP59272547A patent/JPS61148557A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61148557A (en) | 1986-07-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4390969A (en) | Asynchronous data transmission system with state variable memory and handshaking protocol circuits | |
| JPH0571978B2 (en) | ||
| JPS54147716A (en) | Facsimile failure display system | |
| EP0315111A3 (en) | Data processing device | |
| SU1372330A1 (en) | Device for connecting microprocessor with external devices | |
| JP2671426B2 (en) | Serial data transfer method | |
| JPH0122300Y2 (en) | ||
| RU1815638C (en) | Device for testing microprocessor system | |
| JPS62243052A (en) | Bus switching device in multi-computer system | |
| SU1674140A2 (en) | Input-output interface controller | |
| JPS59148195A (en) | Storage device refresh method | |
| JP3497179B2 (en) | Bus management method for data processing system | |
| JPS6184136A (en) | Slip control circuit | |
| SU1325490A2 (en) | Subscribers simulator | |
| SU1684799A1 (en) | Data transceiver | |
| JPH02162860A (en) | Communication method between master station versus plural slave stations | |
| JPH0126106B2 (en) | ||
| JPS61245740A (en) | Time division multiplex transmission system | |
| JPS6028026B2 (en) | Central processing unit mutual communication method | |
| JPH023220B2 (en) | ||
| JPH0367399B2 (en) | ||
| JPH01191281A (en) | Ic card reader/writer | |
| JPH0548022B2 (en) | ||
| JPH0433067B2 (en) | ||
| JPS6242216A (en) | Power supply controller |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |