JPH01126046A - Data transmission and reception system - Google Patents

Data transmission and reception system

Info

Publication number
JPH01126046A
JPH01126046A JP62283285A JP28328587A JPH01126046A JP H01126046 A JPH01126046 A JP H01126046A JP 62283285 A JP62283285 A JP 62283285A JP 28328587 A JP28328587 A JP 28328587A JP H01126046 A JPH01126046 A JP H01126046A
Authority
JP
Japan
Prior art keywords
reception
timing
section
data
unit
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
JP62283285A
Other languages
Japanese (ja)
Inventor
Masamitsu Miyazaki
正光 宮崎
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.)
Hitachi Denshi KK
Original Assignee
Hitachi Denshi KK
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 Hitachi Denshi KK filed Critical Hitachi Denshi KK
Priority to JP62283285A priority Critical patent/JPH01126046A/en
Publication of JPH01126046A publication Critical patent/JPH01126046A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To expand the function of a reception unit by leading the phase of reception when the timing of the reception unit and that of the transmission unit using a microprocessor, a hardware and a monitor program in common are overlapped. CONSTITUTION:The microprocessor 4 the relevant hardware and monitor program are used in common for the reception and transmission units. A reception control counter section 1 commands which phase of the specified transmission reception procedure is to be processed, the result is given to a reception timing discrimination section 2 thereby discriminating whether a correct control signal DC/CLK is obtained at the designated phase. A shift control section 3 receives the result of discrimination from the reception timing discrimination section 2 and checks again the DC/CLK after a prescribed time elapses and the reception procedure is advanced forcibly when the state is not equal to the discrimination just before. Thus, a monitor program with wide application is adopted for the reception unit to expand the function of the reception unit.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータの送受信を行なうために分離した複数の
ユニットを接続しひとつのシステムを構成するような装
置におけるデータ送受信方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data transmission/reception system in a device that connects a plurality of separate units to configure one system for transmitting and receiving data.

〔発明の概要〕[Summary of the invention]

規定された周期の送信タイミングとハンドシェーク手順
で送信されるデータを、送信ユニットと同一のマイクロ
プロセッサ、ハードウェアおよび同一の構造のプログラ
ム(以下モニタプログラムと称する)で構成した受信ユ
ニットで受信する場合、送信側と受信両のタイミングが
重なるような場合は正常に受信できない可能性がある。
When data transmitted using a specified periodic transmission timing and handshake procedure is received by a receiving unit configured with the same microprocessor, hardware, and program (hereinafter referred to as a monitor program) with the same structure as the transmitting unit, If the timings of the transmitting side and the receiving side overlap, there is a possibility that normal reception may not be possible.

そこで受信ユニットでは送信ユニットとのタイミングの
重なりの検出を、所定のユニットタイム(あらかじめ決
めた一定の時間)の前後で2回行ない9判定結果が同じ
なら通常手順、変化があればハンドシェーク手順をひと
つ先に進めるような制御をするとともに、以降は所定の
ユニットタイム値だけずれたタイミングで受信するよう
な制御を行なう。
Therefore, the receiving unit detects the timing overlap with the transmitting unit twice before and after a predetermined unit time (predetermined fixed time), and if the 9 judgment results are the same, the normal procedure is used, and if there is a change, the handshake procedure is performed once. Control is performed so as to proceed forward, and thereafter control is performed such that reception is performed at timings shifted by a predetermined unit time value.

これにより送信、受信双方のユニットのマイクロプロセ
ッサ、ハードウェア、モニタプログラムを共用でき開発
コストを低減できるとともにモニタプログラムの採用に
より受信ユニットの機能の拡張性を高くすることができ
る。
As a result, the microprocessor, hardware, and monitor program of both the transmitting and receiving units can be shared, reducing development costs, and by employing the monitor program, it is possible to increase the expandability of the functions of the receiving unit.

〔従来の技術〕[Conventional technology]

第3図は従来の実例を示す。送信側ユニットと受信両ユ
ニットを接続する信号は方向コントロール信号(以下D
Cと略す)/クロック信号(以下CLKと略す)2・1
と並列のデータ信号(以下DATAと略す)5・2であ
る。送信側ユニットからは第2図の送信タイミング、D
C,CLK、DATAで示されるようなタイミングと手
順で送信される。
FIG. 3 shows a conventional example. The signal that connects the transmitting side unit and the receiving unit is the direction control signal (hereinafter referred to as D
C)/clock signal (hereinafter abbreviated as CLK) 2.1
and a data signal (hereinafter abbreviated as DATA) 5.2 in parallel. From the transmitting unit, the transmission timing shown in Figure 2, D
It is transmitted using the timing and procedure shown by C, CLK, and DATA.

アドレス、データ、アイドルデータの各DATAとCL
Kはカウンタ値9〜0に対応してカウンター8,6.4
のタイミングで送信される。待受時、受信制御カウンタ
部lはマイクロプロセッサ5からのイニシャル信号5・
3によりOにセットされており、受信動作が開始すると
マイクロプロセッサ5から更新信号5・4が受信制御カ
ランタ部1に加えられ、カウンター 7.5.3なるデ
ータ入力タイミングであることを受信タイミング判定部
2に与える。
Address, data, idle data DATA and CL
K is counter 8, 6.4 corresponding to counter value 9 to 0.
will be sent at the timing of During standby, the reception control counter section l receives an initial signal 5 from the microprocessor 5.
When the reception operation starts, the update signals 5 and 4 are applied from the microprocessor 5 to the reception control counter unit 1, and the reception timing is determined by the counter 7.5.3 to determine the data input timing. Give to part 2.

送信開始を示すD C= Highを検出するため、マ
イクロプロセッサ5からDC:=High、 CLK=
HighなるDC/CLK信号5・5が受信タイミング
判定部2に加えられDC/CLK入力信号2・1と比較
されている。受信制御部カウンタから指定される所定の
タイミングにて信号5・5と2・10両者が一致すると
DATA入力起動信号2・2がマイクロプロセッサ5に
加えられ、送信タイミングに比べ十分速い割込信号5弓
に対応して起動信号2・2を検出するとDATA5・2
を入力する。送信開始を検出後受信制御カウンタ部1の
信号1・1に従ってカウンタ=7の位置のCLK立下り
でアドレスを入力し、カウンタ=5の位置のCLKの立
上りでデータを入力し、カウンタ=3の位置のCLKの
立下りでアイドルデータな入力する手順は送信開始の検
出と同様、CLKの変化に対応して十分速い割込信号5
・1に対応して行なう。
In order to detect DC=High indicating the start of transmission, the microprocessor 5 sends DC:=High, CLK=
High DC/CLK signals 5.5 are applied to the reception timing determination section 2 and compared with DC/CLK input signals 2.1. When both signals 5.5 and 2.10 match at a predetermined timing specified by the reception control section counter, the DATA input activation signal 2.2 is added to the microprocessor 5, and the interrupt signal 5 is generated which is sufficiently faster than the transmission timing. When starting signal 2.2 is detected corresponding to the bow, DATA5.2
Enter. After detecting the start of transmission, input the address at the falling edge of CLK at the counter = 7 position according to signals 1 and 1 of the reception control counter section 1, input data at the rising edge of CLK at the counter = 5 position, and input the data at the rising edge of CLK at the counter = 3 position. The procedure for inputting idle data at the falling edge of CLK at the position is similar to the detection of the start of transmission, and the interrupt signal 5 is sufficiently fast in response to the change in CLK.
・Do this in response to 1.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

前述の従来技術では、送信ユニットからのデーp ’v
見逃さないよう送信タイミングより十分速いタイミング
で受信検出処理をする必要があり、マイクロプロセッサ
5のプログラムが受信ユニット個別のプログラムとなる
。送信ユニットに対し受信ユニットが従属する装置の形
態ではこれで問題ないが受信ユニットの機能を拡張する
用途では対応できない欠点がある。本発明はこの欠点を
解決するためマイクロプロセッサ、ハードウェアおよび
モニタプログラムを送信ユニットと共通にし開発コスト
を低減するとともに受信ユニットの機能の拡張性を確保
することを目的とする。
In the prior art described above, the data p'v from the transmitting unit
It is necessary to perform reception detection processing at a timing sufficiently earlier than the transmission timing so as not to miss the transmission timing, and the program of the microprocessor 5 becomes a program for each receiving unit. This is not a problem in the form of a device in which the receiving unit is subordinate to the transmitting unit, but it has a drawback that it cannot be used in applications where the functions of the receiving unit are expanded. SUMMARY OF THE INVENTION In order to solve this problem, it is an object of the present invention to share a microprocessor, hardware, and monitor program with the transmitting unit, thereby reducing development costs and ensuring extensibility of the receiving unit's functions.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は上記の目的を達成するため、第2図に示すよう
に送信タイミングと受信タイミングに同じ性格の信号を
使用する。受信タイミングが送信タイミングに重なった
時発生する受信障害に対応するため、送信のタイミング
および送信手順が割込みで規定される正確な周期で発生
することを前提とし、カウンタ=7のタイミングにおい
てDC/CLKの状態と所定ユニットタイム後再度チエ
ツクしたDC/CLKの状態を比較し、この一致。
In order to achieve the above object, the present invention uses signals of the same nature for transmission timing and reception timing, as shown in FIG. In order to deal with reception failures that occur when the reception timing overlaps with the transmission timing, it is assumed that the transmission timing and transmission procedure occur at the exact period specified by the interrupt, and the DC/CLK signal is set at the timing of counter = 7. Compare the state of DC/CLK with the state of DC/CLK checked again after a predetermined unit time, and find a match.

不一致により受信タイミングが正常か修正すべきDを判
定し、修正すべき場合にはカウンタ9〜Oを管理する動
作を強制的にひとつ進め以降の動作はユニットタイム分
ずらしたタイミングとすることにより正常な受信を可能
にするものである。
Due to the discrepancy, it is determined whether the reception timing is normal or D should be corrected, and if it is necessary to correct it, the operation for managing counters 9 to O is forcibly advanced by one and subsequent operations are made normal by shifting the timing by the unit time. This allows for easy reception.

〔作用〕[Effect]

本発明の動作について第1図、第2図を用いて説明する
と、タイミング移動制御部3は、送信ユニットの送信タ
イミングに対応するDCの立上りに対し受信ユニットの
受信タイミングが1クロック分遅れカウンタ8に近い場
合を所定のユニントタイムの前後2回DC/CLKの状
態を監視することにより検出し、受信障害を生じる可能
性のあるタイミングの場合9強制的に受信タイミングの
位相を進めることにより正常な受信動作を完結できる。
To explain the operation of the present invention using FIGS. 1 and 2, the timing movement control section 3 detects a counter 8 whose reception timing of the reception unit is delayed by one clock with respect to the rise of DC corresponding to the transmission timing of the transmission unit. By monitoring the status of DC/CLK twice before and after a predetermined unit time, we detect cases close to Can complete the action.

〔実施例〕〔Example〕

以下この発明の一実施例を第1図および第2図により説
明する。1は受信制御カウンタ部であり規定された送受
信手順のどの位相の処理なすべきかを示す。2は受信タ
イミング判定部であり受信制御カウンタ部1で指定され
る位相において正しい制御信号のDC/CLKが得られ
たか否かを判定する。3はタイミング移動制御部であり
、受信タイミング判定部20判定結果を受けた後、所定
ユニットタイム経過後再度DC/CLKの状態をチエツ
クし、直前の判定結果と一致していればその受信タイミ
ングは正しいと判哨し通常処理を継続し。
An embodiment of the present invention will be described below with reference to FIGS. 1 and 2. 1 is a reception control counter section which indicates which phase of the specified transmission and reception procedure should be processed. Reference numeral 2 denotes a reception timing determination unit which determines whether or not the correct control signal DC/CLK is obtained at the phase designated by the reception control counter unit 1. 3 is a timing movement control unit which, after receiving the judgment result from the reception timing judgment unit 20, checks the state of DC/CLK again after a predetermined unit time has elapsed, and if it matches the previous judgment result, the reception timing is changed. It is judged as correct and normal processing continues.

直前の判定結果と不一致であればその受信タイミングは
マージンが小さいと判断し受信手順をひとつ強制的に進
めるとともに以降は自身がもつ受信タイミングからユニ
ットタイム分ずれたタイミングの受信処理を行なう。4
はマイクロプロセッサであり、外部から得られる割込信
号に対応して割込信号を整数倍して得られる正確な受信
タイミングを決定するとともにタイミング移動制御部3
.からの起動信号を受けてアドレス、データ、アイドル
データの各データを入力し受信処理をする。以下この動
作について説明する。受信制御カウンタ部1は4・3の
初期化信号により0とされ待受状態となる。マイクロプ
ロセッサ4がらは送信ユニットからの送信開始を検出す
るためD C= High/CLK=Highなる判定
信号4・5を受信タイミング判定部2に与えておく。受
信ユニットの受信タイミングは第2図に示す如き送信タ
イミングと同じ性格テアル。これは送、受信ユニットの
マイクロプロセッサ°ハードウェアとモニタプログラム
を同一とする本方式によるものでありこの受信タイミン
グ信号4・4はマイクロプロセッサ4より受信制御カウ
ンタ部1を経由して受信タイミング判定部2に加えられ
、第2図に示すような手順の各信号な検出する。送、受
信タイミングが同じ性格であるため、送信ユニットがカ
ウンタ9の位置で出方したD C= Hi ghのデー
タを約1クロツク遅れた受信ユニットがカウンタ8に近
いタイミングで検出し受信障害となる可能性がある。受
信タイミング判定部2では次の受信タイミングすなわち
カウンタ7VC近イl’ 4 ミ7 f テD C=H
igh / CLK=High する判定をした後、タ
イミング移動制御部3のタイママで所定時間経過した後
再起動信号2・3によりD C/CL Kの判定を再度
行ない、一致していない場合のみ受信起動信号3・2を
発生させマイクロプロセッサは4・2のデータラインか
ら1アドレス”データを受信する。またタイミング移動
制御部3から受信制御カウンタ部に強制的なカウントア
ツプ信号3・1を出力する。以降の各受信タイミングに
おいてはタイミング移動制御部3のユニットタイム分ず
らしたタイミングで第2図のカウンタ=5に相当する位
相でのデータとカウンタ=3に相当する位相でのアイド
ルデータの受信を同様にして行ないDC=H+ghの間
の一手順のデータ受信が完了する。
If it does not match the previous determination result, it is determined that the reception timing has a small margin, and the reception procedure is forcibly advanced by one step, and from then on, reception processing is performed at a timing that is shifted by the unit time from its own reception timing. 4
is a microprocessor, which determines the accurate reception timing obtained by multiplying the interrupt signal by an integer in response to the interrupt signal obtained from the outside, and also controls the timing movement control unit 3.
.. Upon receiving the activation signal from the controller, it inputs address, data, and idle data and performs reception processing. This operation will be explained below. The reception control counter section 1 is set to 0 by the initialization signal 4.3 and enters a standby state. The microprocessor 4 supplies determination signals 4 and 5 such that DC=High/CLK=High to the reception timing determination section 2 in order to detect the start of transmission from the transmission unit. The reception timing of the receiving unit is the same as the transmission timing as shown in FIG. This is based on this method in which the microprocessor hardware and monitor program of the transmitting and receiving units are the same, and the reception timing signals 4 are sent from the microprocessor 4 via the reception control counter section 1 to the reception timing judgment section. 2, each signal is detected in the procedure shown in FIG. Since the transmission and reception timings are the same, the reception unit, which is delayed by about one clock, detects the DC=High data that the transmission unit outputs at the counter 9 position at a timing close to the counter 8, resulting in a reception failure. there is a possibility. The reception timing determination unit 2 determines the next reception timing, that is, the counter 7VC near I' 4 Mi7 f TeDC=H
After determining that high/CLK=High, after a predetermined time has elapsed using the timer of the timing movement control unit 3, the DC/CLK is determined again using restart signals 2 and 3, and reception is activated only if they do not match. The microprocessor generates the signal 3.2 and receives 1 address data from the data line 4.2. Also, the timing shift control section 3 outputs a forced count-up signal 3.1 to the reception control counter section. At each subsequent reception timing, data at a phase corresponding to counter=5 in FIG. 2 and idle data at a phase corresponding to counter=3 in FIG. 2 are similarly received at timings shifted by the unit time of the timing movement control section 3. As a result, one procedure of data reception during DC=H+gh is completed.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、送信、受信各ユニットノマイクロプロ
セッサハードウェアおよびモニタプログラムを共通化す
ることによる同じ性格の送信、受信タイミング信号を使
用してデータ送受信制御を実現でき、送信、受信ユニッ
トの開発コストを低減することができるとともに応用の
広いモニタプログラムを受信ユニットに採用できること
から受信ユニットの機能の拡張性が高くなる。
According to the present invention, it is possible to realize data transmission and reception control using transmission and reception timing signals of the same nature by sharing the microprocessor hardware and monitor program for each transmission and reception unit. Since costs can be reduced and a monitor program with a wide range of applications can be adopted in the receiving unit, the functionality of the receiving unit can be expanded.

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

第1図は本発明の一実施例を示すブロック図。 第2図は本発明におけるデータ送受信手順を示すタイム
チャート、第3図は従来の一例を示すブロック図である
。 1:受信制御カウンタ部、2:受信タイミング判定部、
3:タイミング移動制御部、4:マイクロプロセッサ。
FIG. 1 is a block diagram showing one embodiment of the present invention. FIG. 2 is a time chart showing a data transmission/reception procedure in the present invention, and FIG. 3 is a block diagram showing an example of the conventional method. 1: Reception control counter unit, 2: Reception timing determination unit,
3: timing movement control section, 4: microprocessor.

Claims (1)

【特許請求の範囲】[Claims] 1、送信、受信両ユニットを複数の制御信号、並列デー
タ信号で結び規定された手順のデータ送受信をするのに
、データ受信手順を指定する受信制御カウンタ部、制御
信号から受信のタイミングを検定する受信タイミング判
定部、受信タイミングをユニットタイム分移動する制御
をするタイミング移動制御部および受信制御カウンタ部
の更新処理、受信タイミング判定部への判定データの設
定、タイミング移動制御部の起動信号に従ってデータ受
信をするマイクロプロセッサから構成し、受信制御カウ
ンタ部から指定される所定の位相において1回目の制御
信号を受信タイミング判定部で判定後、タイミング移動
制御部のユニットタイム経過で2回目の制御信号判定を
し両判定が一致すれば通常のタイミングでマイクロプロ
セッサに起動信号を与え、不一致であれば受信制御カウ
ンタ部の受信手順をひとつすすめ以降の動信動作はタイ
ミング移動制御部にて受信動作をユニットタイム分ずら
す動作をすることを特徴とするデータ送受信方式。
1. A reception control counter section that specifies the data reception procedure to connect both the transmission and reception units with multiple control signals and parallel data signals to transmit and receive data according to a specified procedure, and verifies the timing of reception from the control signal. Update processing of the reception timing judgment section, timing movement control section that controls movement of reception timing by unit time, and reception control counter section, setting of judgment data to the reception timing judgment section, and data reception according to the activation signal of the timing movement control section. After the first control signal is determined by the reception timing determination section at a predetermined phase specified by the reception control counter section, the second control signal is determined after the unit time of the timing movement control section has elapsed. If the two judgments match, a start signal is given to the microprocessor at the normal timing, and if they do not match, the reception control counter section advances one reception procedure, and the subsequent movement control unit executes the reception operation at the unit time. A data transmission/reception method characterized by a shift operation.
JP62283285A 1987-11-11 1987-11-11 Data transmission and reception system Pending JPH01126046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62283285A JPH01126046A (en) 1987-11-11 1987-11-11 Data transmission and reception system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62283285A JPH01126046A (en) 1987-11-11 1987-11-11 Data transmission and reception system

Publications (1)

Publication Number Publication Date
JPH01126046A true JPH01126046A (en) 1989-05-18

Family

ID=17663463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62283285A Pending JPH01126046A (en) 1987-11-11 1987-11-11 Data transmission and reception system

Country Status (1)

Country Link
JP (1) JPH01126046A (en)

Similar Documents

Publication Publication Date Title
JP2005515546A (en) Low power bus interface
JPH01297735A (en) Microprocessor
JP2968733B2 (en) Serial bus controller
JPH0844594A (en) Data processor
JPH01126046A (en) Data transmission and reception system
JP3465889B2 (en) Serial data transfer device, control method therefor, and communication device
CN109844288B (en) Method for processing engine position data by multi-core computer
JPS5855535B2 (en) Multi-computer device for vehicles
JP3906373B2 (en) Clock synchronous bus board
JPH1166020A (en) Abnormality detection circuit for microcomputer
JP2998804B2 (en) Multi-microprocessor system
JP3415636B2 (en) Processor unit
JPH03219333A (en) Stand-by duplex system device
JPH0750467B2 (en) One-chip microcomputer
JPS59176863A (en) Timer synchronizing system
EP0943999A1 (en) Interrupt masker for an interrupt handler with double-edge interrupt request signals detection
JP2003122536A (en) Printer controller
JPH06152695A (en) Serial interface circuit
JPS60112103A (en) Hybrid controller
JP2001325216A (en) Communication system switching device and communication system switching method
JP2614926B2 (en) Power control system
JP2733283B2 (en) Serial transmission control device
JPS63163290A (en) Ic inspecting device
JPH09198280A (en) Method for generating pulse for system monitoring and real time operating system provided with pulse generation function for monitoring
JP2000139080A (en) Setting method of parameter