JPS5951640A - Method for transmitting data between microcomputers - Google Patents
Method for transmitting data between microcomputersInfo
- Publication number
- JPS5951640A JPS5951640A JP57162542A JP16254282A JPS5951640A JP S5951640 A JPS5951640 A JP S5951640A JP 57162542 A JP57162542 A JP 57162542A JP 16254282 A JP16254282 A JP 16254282A JP S5951640 A JPS5951640 A JP S5951640A
- Authority
- JP
- Japan
- Prior art keywords
- data
- bit
- microcomputers
- cpu
- transfer
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/16—Combinations 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/163—Interprocessor communication
- G06F15/17—Interprocessor communication using an input/output type connection, e.g. channel, I/O port
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Small-Scale Networks (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、ルームエアコンを構成する室内機と室外機あ
るいはビデオテープレコーダを構成する本体とカメラな
どのように相互に距離を隔てて独立した仕事をしながら
、双方向にデータの送受を必要とするマイクロコンビー
ータ間のデータ伝送方法に関するものである。DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention is directed to systems that perform independent tasks at a distance from each other, such as an indoor unit and an outdoor unit that make up a room air conditioner, or a main body and a camera that make up a video tape recorder. However, the present invention relates to a data transmission method between microcontrollers that requires bidirectional data transmission and reception.
従来例の構成とその問題点
従来、マイクロコンピュータ間のデータ伝送方法は、伝
送データ線とマイクロコンビーータの入出力端子を節約
するため、シリアル伝送の方法が経済的であり、スター
ト・ストップビットを待った調歩同期方式や、転送用ク
ロックを持った2通量期方式などがあり、これをプログ
ラムで制御したシ、専用のLSIや、この目的のだめの
シフトバッファを持ったマイクロコンピュータが採用さ
れている。Conventional configuration and its problems Traditionally, the method of transmitting data between microcomputers has been serial transmission, which is economical because it saves the transmission data lines and the input/output terminals of the microcomputer. There are start-stop synchronization methods that wait for the transfer, and two-pass synchronization methods that have a transfer clock, and these are controlled by a program, using a dedicated LSI, or a microcomputer with a shift buffer for this purpose. There is.
ところが、調歩同期方式は、低速のデータ伝送ではもっ
とも一般的なものであるが、スタートビットからストッ
プピント間ではさまれる1バイトのデータの転送方向は
一定であり、相互の信号の受授を可能とするには構造が
極めて複何(化する欠点を有していた。However, in the start-stop synchronization method, which is the most common method for low-speed data transmission, the transfer direction of the 1-byte data sandwiched between the start bit and the stop bit is constant, making it possible to receive and receive mutual signals. To do so, the structure had the disadvantage of being extremely complex.
発明の目的
本発明は上記従来の欠点を解消するもので、任意の距I
MIIを隔てて疎結合された2つのマイクロコンピュー
タ間のデータ転送線を最少化ならしめ、かつデータの転
送方向を時間軸で定義し、データ線の異常や出力データ
のセルフチェックのだめに論理値の異なる2ビツトの定
義ビットを付加することによりデータ転送の信頼性を向
上させることを目n勺とするものである。OBJECTS OF THE INVENTION The present invention solves the above-mentioned drawbacks of the conventional art.
The number of data transfer lines between two microcomputers loosely coupled across the MII is minimized, the data transfer direction is defined on the time axis, and logical values are The objective is to improve the reliability of data transfer by adding two different definition bits.
発明の構成
この目的を達成するために本発明は、複数のマイクロコ
ンピータを1本の転送用データ線で接続し、一定時間間
隔でデータの出力とサンプリングを行うシステムを構成
し、データバスの異常を検出するだめに論理値の異なる
2つのチェックビットを付加し、またマイクロコンピー
−一夕間で双方向のデータ伝送をする/ζめ、転送開始
の同期合せに割込み入力端子を使用し、データの転送と
サンプリングに内部タイマを使用したものである。Structure of the Invention To achieve this object, the present invention configures a system in which a plurality of microcomputers are connected by a single transfer data line, outputs and samples data at regular intervals, and detects abnormalities in the data bus. Two check bits with different logic values are added to detect the data, and an interrupt input terminal is used to synchronize the start of transfer to allow bidirectional data transmission between the microcomputer and the computer overnight. An internal timer is used for data transfer and sampling.
実施例の説明 以下、本発明の一実施例を添付図面により説明する。Description of examples An embodiment of the present invention will be described below with reference to the accompanying drawings.
まず第1図により転送データのビット構成について説明
する。同図において、転送データは、全ビットOあるい
は1の場合があるため、データバスの異常は単なるエコ
ーリードでは判断できない。First, the bit structure of transfer data will be explained with reference to FIG. In the figure, since all bits of the transferred data may be 0 or 1, abnormalities in the data bus cannot be determined by mere echo reading.
このため、スタートビット2と第1のリプライビット3
をあらかじめLOWとHighに定義してオキ、スレー
ブCPUはまずスタートビット2を出力し、データビッ
ト4まで出力しながらエコーリードする。ここでバスの
異常が起これば、スタートビット2あるいは第1のりプ
ライビット3で出力データとの相違が出るため、スレー
ブCPUはデータエラーを検出し、転送のウェイトルー
チンで待機する。さらにスレーブCPUは、データピン
ト4を出力した後データバスのサンプリングに移り、デ
ータビット6と第2のリプライビット6をリードし、取
り込む。マスタCPUは、データビット4までのデータ
を取り込んだ後、データビット5を出力し、最後に第2
のリグライビット6をLOW で出力してから自分の割
込みマスクを解除する。最後の第2のりプライビット6
は、スレーブCPUでもその論理値がチェックされ、あ
らかじめ定義されている値と一致しておれば、正常ンー
ケンスと判断する。Therefore, start bit 2 and first reply bit 3
By defining LOW and HIGH in advance, the slave CPU first outputs start bit 2, and performs an echo read while outputting up to data bit 4. If a bus abnormality occurs here, a difference with the output data will appear in the start bit 2 or the first pass bit 3, so the slave CPU detects the data error and waits in the transfer wait routine. Furthermore, after outputting the data pin 4, the slave CPU moves to sampling the data bus, reads and captures the data bit 6 and the second reply bit 6. After the master CPU takes in data up to data bit 4, it outputs data bit 5, and finally the second
After outputting regri bit 6 to LOW, cancel its own interrupt mask. Last second glue bit 6
The slave CPU also checks its logical value, and if it matches a predefined value, it is determined to be a normal sequence.
このように、定義済み冗長ビットを付加することでデー
タ転送時における伝送線のチェックを行うことができる
。In this way, by adding defined redundant bits, it is possible to check the transmission line during data transfer.
発明の効果
上記実施例より明らかなように本発明は、定義済の冗長
ビットを付加することで、データ転送時における伝送線
のチェックが行える優れた効果を奏するものである。Effects of the Invention As is clear from the above embodiments, the present invention provides an excellent effect in that transmission lines can be checked during data transfer by adding defined redundant bits.
第1図は本発明の一実施例における転送データのビット
説明図、第2図は伝送データタイミング図である。
2・・・・・・スタートビット、3・・・・・・第1の
リプライビット、4・・・・・・データビット、5・・
・・・・データビット、6・・・・・・第2のリプライ
ビット。FIG. 1 is a bit explanatory diagram of transfer data in an embodiment of the present invention, and FIG. 2 is a timing diagram of the transmission data. 2... Start bit, 3... First reply bit, 4... Data bit, 5...
...Data bit, 6...Second reply bit.
Claims (2)
タ線と、1本の共通グランド線に接続され、伝送開始の
同期合わせをプログラムでマスク可能な割込み入力で制
御し、かつデータの伝送方向が時間軸で定義されるシリ
アルデータ通信装置を構成し、伝送データのエラーチェ
ックのための出力データをエコーリードするとともに、
論理値が異なる2ビツトのデータビットを付加したマイ
クロコンピュータ間のデータ伝送方法。(1) Connected to multiple microconbeaters, one common data line, and one common ground line, synchronization of transmission start controlled by interrupt input that can be masked by program, and data transmission It constitutes a serial data communication device whose direction is defined by the time axis, echo-reads output data for error checking of transmitted data, and
A data transmission method between microcomputers that adds two data bits with different logical values.
た1本の共通データ線と、共通グランド線で接続シ、片
方のマイクロコンビー−タラ、チー1人力ポートよシ割
込みマスク可能な久カ端子に接続シ、各マイクロコンピ
ュータのベースタイマヲデータ伝送の期間中同じ長さで
動作させる特許請求の範囲第1項記載のマイクロコンビ
ーータ間のデータ伝送方法。(2) Connect two microcomputers with one common data line via a signal amplifier and a common ground line, and connect one microcontroller to one human power port to a long terminal that can mask interrupts. 2. The method for transmitting data between microcomputers as set forth in claim 1, wherein the base timers of each microcomputer are operated for the same length during the data transmission period.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57162542A JPS5951640A (en) | 1982-09-17 | 1982-09-17 | Method for transmitting data between microcomputers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57162542A JPS5951640A (en) | 1982-09-17 | 1982-09-17 | Method for transmitting data between microcomputers |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS5951640A true JPS5951640A (en) | 1984-03-26 |
Family
ID=15756578
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP57162542A Pending JPS5951640A (en) | 1982-09-17 | 1982-09-17 | Method for transmitting data between microcomputers |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS5951640A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5461814A (en) * | 1977-10-27 | 1979-05-18 | Toshiba Corp | Data transmission system |
JPS5637747A (en) * | 1979-09-04 | 1981-04-11 | Fanuc Ltd | Serial data transmission system |
JPS5793499A (en) * | 1980-12-02 | 1982-06-10 | Mitsubishi Electric Corp | Signal transmission control system for separation type air conditioner |
-
1982
- 1982-09-17 JP JP57162542A patent/JPS5951640A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5461814A (en) * | 1977-10-27 | 1979-05-18 | Toshiba Corp | Data transmission system |
JPS5637747A (en) * | 1979-09-04 | 1981-04-11 | Fanuc Ltd | Serial data transmission system |
JPS5793499A (en) * | 1980-12-02 | 1982-06-10 | Mitsubishi Electric Corp | Signal transmission control system for separation type air conditioner |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS5951186B2 (en) | Control device | |
US20030172233A1 (en) | Plural station memory data sharing system | |
JPS5951640A (en) | Method for transmitting data between microcomputers | |
JPH04287150A (en) | Synchronous serial bus system | |
JP3123844B2 (en) | Redundant device | |
JPS6049350B2 (en) | Data bus control method | |
RU2691886C1 (en) | Complex-functional unit for vlsi-type system on chip | |
JP2628311B2 (en) | Microcomputer | |
JP2003124947A (en) | Daisy chain data input/output system by serial communication system | |
SU1221656A1 (en) | Multichannel device for controlling information exchange among computers | |
JPS6251331A (en) | On-vehicle electronic control equipment | |
JPS60217446A (en) | High speed programmable logic controller | |
JPS5951641A (en) | Method for transmitting data between microcomputers | |
JPH0566613B2 (en) | ||
JP2671426B2 (en) | Serial data transfer method | |
JPS59117349A (en) | Data transmitter | |
JPH0373050A (en) | Serial write data transfer system | |
JPS6226054B2 (en) | ||
JPS6044710B2 (en) | System diagnosis method | |
JPS62116035A (en) | Data transmission system for duplex system microprocessor | |
JPH03222543A (en) | Bus transfer reply system | |
CN117742213A (en) | EtherCAT-based integrated slave station control system, etherCAT-based integrated slave station control method and master-slave station system | |
JP2996089B2 (en) | Logic simulation equipment | |
JPS60209864A (en) | Data transmission circuit unit | |
JPS61105150A (en) | Information transfer circuit |