JPS63273959A - Serial communication system - Google Patents
Serial communication systemInfo
- Publication number
- JPS63273959A JPS63273959A JP62109989A JP10998987A JPS63273959A JP S63273959 A JPS63273959 A JP S63273959A JP 62109989 A JP62109989 A JP 62109989A JP 10998987 A JP10998987 A JP 10998987A JP S63273959 A JPS63273959 A JP S63273959A
- Authority
- JP
- Japan
- Prior art keywords
- data
- microcomputer
- sck
- serial
- controller
- 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
- 238000004891 communication Methods 0.000 title claims abstract description 16
- 230000001360 synchronised effect Effects 0.000 claims description 8
- 238000000034 method Methods 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/4221—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
- G06F13/423—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus with synchronous protocol
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multi Processors (AREA)
- Communication Control (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Circuits Of Receivers In General (AREA)
Abstract
Description
【発明の詳細な説明】
1既 要〕
マイクロコンピュータ相互のシリアルポートを用いた通
信において、同期クロックを複数回カウントして同期合
わせを行い、非通信時のノイズによるデータずれを防止
する。[Detailed Description of the Invention] 1. Summary In communication between microcomputers using serial ports, synchronization clocks are counted multiple times to achieve synchronization, thereby preventing data shift due to noise during non-communication.
本発明はマイクロコンピュータ相互間のシリアル通信方
式に関する。The present invention relates to a serial communication system between microcomputers.
一方のマイクロコンピュータ(以下、マイコンと略称す
る)から他方のマイコンに対し同期クロックを与えなが
らシリアル通信を行うシステムでは、同期クロックを送
出しない非通信時にクロックラインにノイズが混入する
と同期ずれを起こす。In a system where one microcomputer (hereinafter abbreviated as microcomputer) performs serial communication while providing a synchronized clock to the other microcomputer, synchronization may occur if noise enters the clock line during non-communication times when no synchronized clock is sent.
上述した同期ずれはその後の通信時のシリアルデータを
無効にしてしまう、そこで本発明では、同期クセツクを
複数回カウントしてから通信を開始するようにして、耐
ノイズ性を向上させる。The above-mentioned synchronization error invalidates the serial data during subsequent communication. Therefore, in the present invention, the noise resistance is improved by counting the synchronization error a plurality of times before starting communication.
(問題点を解決するための手段〕
第1図は本発明の基本構成図で、A、Bはシリアル通信
を行うマイコンである。マイコンBには同期クロックS
CK、応答信号RIIA、DY、、シリアルデータアウ
ト30%シリアルデータインStの各ボートがある。(Means for solving the problem) Fig. 1 is a basic configuration diagram of the present invention, where A and B are microcomputers that perform serial communication.Microcomputer B has a synchronous clock S
There are ports for CK, response signals RIIA, DY, and serial data out 30% serial data in St.
■先ず、マイコンAからマイコンBに対し数回の同期ク
ロックSCKを与える。■この同期クロックSCKを受
けたマイコンBはシリアルシフトカウンタでカウントを
行い、該カウンタがオーバーフローしたらマイコンAに
応答信号READYを返送して同期が合ったことを知ら
せる。■REA口Yを受信したマイコンA°は、同期ク
ロックSCKに同期してシリアルデータSiをマイコン
Bに送信し、同時にマイコンBからのシリアルデータS
oを受信する。(1) First, microcomputer A provides synchronization clock SCK several times to microcomputer B. (2) Upon receiving this synchronization clock SCK, microcomputer B counts with a serial shift counter, and when the counter overflows, it sends back a response signal READY to microcomputer A to notify that synchronization has been achieved. ■Microcomputer A°, which has received REA port Y, sends serial data Si to microcomputer B in synchronization with the synchronous clock SCK, and at the same time sends serial data S from microcomputer B.
Receive o.
このようにするとマイコンAが同期クロックSCKを送
信する前にクロックラインにノイズが混入しても、それ
がシリアルシフトカウンタをオーバーフローさせる数よ
り少なければREADYが発生しないので、誤動作を防
止できる。In this way, even if noise enters the clock line before microcomputer A transmits the synchronization clock SCK, if the noise is less than the number that overflows the serial shift counter, READY will not occur, and malfunctions can be prevented.
第2図は本発明の一実施例を示すブロック図で、Aはチ
ューナコントローラ、Bはデツキコントローラ、Cはチ
ューナ、Dはカセットデツキ、Eはキー人力部、Fは表
示部である。キー人力部Eと表示部FはチューナC側に
設けられているが、デツキD側でも共用されるため、デ
ツキ制御に必要なキー人力をチューナコントローラAか
らシリアルデータSiでデツキコントローラBへ送信し
、また表示制御に必要な表示データをデツキコントロー
ラBからシリアルデータSoでチューナコントローラA
へ送信する必要がある。FIG. 2 is a block diagram showing one embodiment of the present invention, in which A is a tuner controller, B is a deck controller, C is a tuner, D is a cassette deck, E is a key input section, and F is a display section. The key power section E and the display section F are provided on the tuner C side, but they are also shared on the deck D side, so the key power required for deck control is transmitted from the tuner controller A to the deck controller B using serial data Si. In addition, the display data necessary for display control is transferred from the deck controller B to the tuner controller A using serial data So.
need to be sent to.
■〜■は第1図の手順に対応するが、本例では更にマイ
コンAからスタート信号5TAIlTを送信する手順■
を追加しである。これは長時間の累積ノイズでシリアル
シフトカウンタがオーバーフローし、誤ってREADY
が発生するのを防止するためである。■~■ correspond to the procedure shown in Fig. 1, but in this example, the procedure ■ further involves transmitting the start signal 5TAIT from microcomputer A.
Added. This is due to long-term accumulated noise that causes the serial shift counter to overflow and incorrectly indicate READY.
This is to prevent this from occurring.
第3図は動作を示すタイムチャートである。先ず、チュ
ーナコントローラAが5TARTを“H”にすると通信
開始となり、同期クロックSCKが送信される。デツキ
コントローラBはクロックSCKの立下りでデータSo
を出力し、また立上りでデータSiを取込む。チューナ
コントローラAはクロックSCKの立下りでデータSt
を出力し、□また立上りでデータS11を取込む。そし
て、シリアルシフトカウンタがオーバーフローしたらR
EADVを“H”にする。ここから実際のデータ(斜線
部)の送受信に入り、それまでのデータは無視される。FIG. 3 is a time chart showing the operation. First, when the tuner controller A sets 5TART to "H", communication starts and the synchronous clock SCK is transmitted. The deck controller B outputs the data So at the falling edge of the clock SCK.
is output, and data Si is taken in at the rising edge. Tuner controller A outputs data St at the falling edge of clock SCK.
It outputs □ and takes in data S11 again at the rising edge. Then, if the serial shift counter overflows, R
Set EADV to “H”. From here, the actual data (hatched area) begins to be sent and received, and the data up to that point is ignored.
1回のシリアルデータが例えば4ビツトとすると、その
送受信の終了と共に5TART 、 READY 。If one serial data is, for example, 4 bits, 5TART and READY will be sent at the end of the transmission/reception.
SCKは全て“L”になる。All SCKs become "L".
第4図にチューナコントローラAとデツキコントローラ
Bの処理を示す。通信開始と終了の主導権はチューナコ
ントローラが持ち、それを5TARTのH” 111.
″でデツキコントローラに伝達する。デツキコントロー
ラは同期合せを行い、合ったことをRE^口Yでチュー
ナコントローラに知らせる。データの送受信は双方同時
に行う。FIG. 4 shows the processing of the tuner controller A and the deck controller B. The tuner controller has the initiative to start and end communication, and it is controlled by the 5TART H"111.
'' to the deck controller. The deck controller performs synchronization and notifies the tuner controller of the synchronization using RE^mouth Y. Data is sent and received at the same time on both sides.
以上述べたように本発明によれば、マイコン相互間のシ
リアル通信システムにおいて、通信を行っていない期間
のノイズによる同期ずれを防止できる利点がある。As described above, according to the present invention, in a serial communication system between microcomputers, there is an advantage that synchronization deviation due to noise during periods of non-communication can be prevented.
第1図は本発明の基本構成図、
第2図は本発明の実施例を示す構成図、第3図は第2図
の動作を示すタイムチャート、第4図は第2図のコント
ローラの処理を示すフローチャートである。
出 願 人 富士通テン株式会社
代理人弁理士 青 柳 稔
(α)チューTコントO−1側
第4図Figure 1 is a basic configuration diagram of the present invention, Figure 2 is a configuration diagram showing an embodiment of the invention, Figure 3 is a time chart showing the operation of Figure 2, and Figure 4 is the processing of the controller in Figure 2. It is a flowchart which shows. Applicant Fujitsu Ten Ltd. Representative Patent Attorney Minoru Aoyagi (α) Chu T Control O-1 side Figure 4
Claims (1)
コンピュータ(B)に同期クロック(SCK)を送信し
、該同期クロック(SCK)を受けたマイクロコンピュ
ータ(B)はシリアルシフトカウンタでカウントを行い
、該カウンタがオーバーフローしたら応答信号(REA
DY)を該マイクロコンピュータ(A)に返送し、次の
同期クロック(SCK)から両マイクロコンピュータ(
A、B)においてシリアルデータ(S_0、Si)の送
受信を行うことを特徴とするシリアル通信方式。A synchronous clock (SCK) is sent from one microcomputer (A) to the other microcomputer (B), and the microcomputer (B) that receives the synchronous clock (SCK) counts with a serial shift counter, and the counter If the response signal (REA) overflows, the response signal (REA
DY) is returned to the microcomputer (A), and from the next synchronous clock (SCK) both microcomputers (
A serial communication method characterized by transmitting and receiving serial data (S_0, Si) in A and B).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62109989A JPS63273959A (en) | 1987-05-06 | 1987-05-06 | Serial communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62109989A JPS63273959A (en) | 1987-05-06 | 1987-05-06 | Serial communication system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63273959A true JPS63273959A (en) | 1988-11-11 |
Family
ID=14524265
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62109989A Pending JPS63273959A (en) | 1987-05-06 | 1987-05-06 | Serial communication system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63273959A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02281363A (en) * | 1989-04-24 | 1990-11-19 | Nippondenso Co Ltd | Microcomputer communication method |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS561825A (en) * | 1979-03-14 | 1981-01-10 | Pavan Jean Paul | Round ceiling frame plantation apparatus for plastic using cultivation |
-
1987
- 1987-05-06 JP JP62109989A patent/JPS63273959A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS561825A (en) * | 1979-03-14 | 1981-01-10 | Pavan Jean Paul | Round ceiling frame plantation apparatus for plastic using cultivation |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02281363A (en) * | 1989-04-24 | 1990-11-19 | Nippondenso Co Ltd | Microcomputer communication method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111510277B (en) | Multi-channel signal synchronization system, circuit and method | |
EP0549334B1 (en) | A data input and output control device and a one-chip microcomputer integrating the same | |
JPS63273959A (en) | Serial communication system | |
US4887261A (en) | Method and arrangement for transmitting a digital signal with a low bit rate in a time section, provided for higher bit rates, of a time division multiplexed signal | |
JPS6242544B2 (en) | ||
JP3085448B2 (en) | Communications system | |
JPS5931274B2 (en) | Synchronization method in button telephone equipment | |
JPH05336091A (en) | Bus communication system | |
JP2893897B2 (en) | Serial I / O device | |
JP3412927B2 (en) | Frame synchronization circuit | |
JPH0258441A (en) | Two line system bidirectional digital transmission system | |
SU1486990A1 (en) | System for numerical program control of group of machines | |
JP2558119B2 (en) | Transceiver circuit | |
JPH01289334A (en) | Clock synchronizing data transmission system | |
SU1040616A1 (en) | Device for element-by-element phasing of discrete signal receivers | |
JPH04349732A (en) | Communication equipment | |
JPS62122439A (en) | Start-stop synchronization system transmission system | |
JPS63146540A (en) | Start-stop synchronization system signal transmission equipment | |
JPH06125356A (en) | Synchronization circuit | |
JPH0415652B2 (en) | ||
JPS62281624A (en) | Multi-frame system | |
JPS59204350A (en) | Data transmission system | |
JPS62183634A (en) | Data transmission equipment | |
JPS61261940A (en) | Bit multiplex transmitting device | |
JPS63260332A (en) | Synchronizing system |