JPH03151735A - Data communication system - Google Patents

Data communication system

Info

Publication number
JPH03151735A
JPH03151735A JP29070589A JP29070589A JPH03151735A JP H03151735 A JPH03151735 A JP H03151735A JP 29070589 A JP29070589 A JP 29070589A JP 29070589 A JP29070589 A JP 29070589A JP H03151735 A JPH03151735 A JP H03151735A
Authority
JP
Japan
Prior art keywords
data
value
header
duty
pulse
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.)
Granted
Application number
JP29070589A
Other languages
Japanese (ja)
Other versions
JPH0771068B2 (en
Inventor
Takeshi Yasuda
武史 安田
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 Ten Ltd
Original Assignee
Denso Ten Ltd
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 Ten Ltd filed Critical Denso Ten Ltd
Priority to JP29070589A priority Critical patent/JPH0771068B2/en
Publication of JPH03151735A publication Critical patent/JPH03151735A/en
Publication of JPH0771068B2 publication Critical patent/JPH0771068B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To send data of plural channels serially through a single signal line by sending a specific header in a duty of a preceding pulse in each data channel and sending an optional data in a duty of a succeeding pulse. CONSTITUTION:For example, 3 data channels A, B, C are set to send 3 kinds of data. HA, HB, HC are headers of each channel and DA, DB, DC are data. Although the data DA-DC are set optionally in a range of a period T, the data has a larger value than a maximum value M of the header in order to distinguish it from the header actually and set in a range below the period T. In this case, a lower limit margin alpha and an upper limit margin beta are used and a margin alpha is added further to a transmission data longer than the M and the value is set to be T-beta or below. Thus, when the data of plural channels are sent serially, one each of a signal line 3 and ports P1, P2 in use is enough.

Description

【発明の詳細な説明】 〔概 要〕 一定周期のパルスのデユーティでデータを伝送するデー
タ通信方式に関し、 単一の信号線で複数チャンネル(またはステ・ンプ)の
データをシリアル伝送できるようにすることを目的とし
、 一定周期のパルス列の連続する2パルスずつを複数のデ
ータチャンネルに割当て、各データチャンネルでは先行
パルスのデユーティで固有のヘッダを送信し、また後続
パルスのデユーティで任意のデータを送信するよう構成
する。
[Detailed Description of the Invention] [Summary] To enable serial transmission of data of multiple channels (or steps) using a single signal line, regarding a data communication system that transmits data with a duty of pulses of a constant period. The purpose is to allocate two consecutive pulses of a constant period pulse train to multiple data channels, and each data channel transmits a unique header with the duty of the preceding pulse, and transmits arbitrary data with the duty of the subsequent pulse. Configure it to do so.

〔産業上の利用分野〕[Industrial application field]

本発明は一定周期のパルスのデユーティでデータを伝送
するデータ通信方式に関する。
The present invention relates to a data communication system that transmits data with a pulse duty of a constant period.

CPU間の通信で複数種類のデータを伝送する場合、各
チャンネル毎に信号線を敷設して並列伝送することは、
ボートおよび信号線の使用効率が低下するため好ましく
ない。
When transmitting multiple types of data in communication between CPUs, it is difficult to install signal lines for each channel and transmit them in parallel.
This is undesirable because it reduces the efficiency of using the boat and signal line.

〔従来の技術〕[Conventional technology]

CPU間でデータ通信を行う場合にシリアルボートを使
用すれば、lデータを複数ビットのデジタル値として伝
送できる。ところが、通信機能を有するシリアルポート
は数に限りがあるので、シリアルボート以外のボートを
使用してデータ通信する必要も生ずる。この場合、送信
するデータに対応して一定周期Tのパルスのデユーティ
を設定する方式は、比較的簡易で有用なデータ通信方式
として注目される。
If a serial port is used for data communication between CPUs, l data can be transmitted as a multi-bit digital value. However, since the number of serial ports having communication functions is limited, it becomes necessary to use a port other than the serial port for data communication. In this case, a method of setting the duty of a pulse with a constant period T in accordance with the data to be transmitted is attracting attention as a relatively simple and useful data communication method.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、上述したパルスデューティ式のデータ通
信方式でも、データ種類(チャンネルまたはステップ)
が増加すると使用ポート数および信号線数が増加する問
題がある。
However, even with the above-mentioned pulse duty type data communication method, the data type (channel or step)
When the number of ports increases, there is a problem that the number of ports and signal lines used increases.

本発明はパルスデューティ式のデータ通信方式において
、単一の信号線でも複数種類のデータをシリアルに伝送
可能とするものである。
The present invention enables serial transmission of a plurality of types of data even through a single signal line in a pulse duty type data communication system.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の構成図で、lは送信側CPU、2は受
信側CPU、3はCPU1のボートPLからCPU2の
ボートP2にかけて敷設された単一の信号線である。送
信側のボートPiにはタイマー一致出力ボートを使用し
、受信側のボー)P2にはエツジ割込ボートを使用する
FIG. 1 is a block diagram of the present invention, where l is a transmitting side CPU, 2 is a receiving side CPU, and 3 is a single signal line laid from the boat PL of CPU1 to the boat P2 of CPU2. A timer match output port is used for the sending port Pi, and an edge interrupt port is used for the receiving port P2.

〔作用〕[Effect]

CPUIはボートP1から周期Tのパルス列を送信する
。このパルス列は連続する2パルスが組として使用され
、各組が複数のデータチャンネルに割当てられる。各デ
ータチャンネルでは先頭パルスのデユーティで固有のヘ
ッダを送信し、また後続パルスのデユーティで任意のデ
ータを送信する。ヘッダ部のデユーティは後続のデータ
がどのデータチャンネルに属するかを示す固有の値であ
る。これに対しデータ部のデユーティは送信するデータ
値に応じて可変設定される。
The CPUI transmits a pulse train with a period T from the boat P1. In this pulse train, two consecutive pulses are used as a set, and each set is assigned to a plurality of data channels. In each data channel, a unique header is transmitted with the duty of the first pulse, and arbitrary data is transmitted with the duty of the subsequent pulse. The duty in the header section is a unique value indicating to which data channel the subsequent data belongs. On the other hand, the duty of the data part is variably set depending on the data value to be transmitted.

第2図は3種類のデータを伝送するために3つのデータ
チャンネルA、B、Cを設定した例で、HA、HB、H
Cは各チャンネルのヘッダ、DA。
Figure 2 shows an example in which three data channels A, B, and C are set up to transmit three types of data: HA, HB, and H.
C is the header of each channel, DA.

DB、DCはデータである。−例を挙げると、T=5m
s、  HA=1ms、  HB=1.5ms、  I
C=2.0LIlsである。
DB and DC are data. - For example, T=5m
s, HA=1ms, HB=1.5ms, I
C=2.0LIls.

データDA−DCは周期Tの範囲で任意に設定できるが
、実際にはヘッダと区別するためにヘッダの最大値M(
この例では2m5)より大きい値を有し、且つ次のチャ
ンネルのヘッダと一体化しないように周期T未満の範囲
で設定する。このとき下限マージンαと上限マージンβ
を用い、Mより長い送信データに更にαを加え、且つそ
の値が(T−β)以下に収まるように設定してもよい。
Data DA-DC can be set arbitrarily within the period T, but in reality, to distinguish it from the header, the maximum value M (
In this example, it has a value larger than 2m5) and is set within a range less than the period T so as not to be integrated with the header of the next channel. At this time, the lower limit margin α and the upper limit margin β
may be used to add α to the transmission data longer than M, and to set the value to be less than or equal to (T−β).

このようにして複数チャンネルのデータをシリアルに伝
送すると、使用する信号線3とボー1− Pl、P2の
数はそれぞれ1つで済む。
When data of a plurality of channels is transmitted serially in this manner, only one signal line 3, one baud 1-Pl, and one baud P2 are used.

〔実施例〕〔Example〕

第3図および第4図は本発明の一実施例を示すフローチ
ャートで、第1図のシステム構成に適合させである。
3 and 4 are flowcharts showing one embodiment of the present invention, and are adapted to the system configuration of FIG. 1.

第3図は送信側CPUIによる送信処理のフローチャー
トで、出力ボートP1から送出するパルスのエツジ(立
上りおよび立下り)の回数を計数するエツジカウンタC
NTと、各パルスのH(ハイ)レベルとL(ロー)レベ
ルの幅をセットされるパルス幅レジスタDと、タイマ一
致割込み用のコンベアレジスタCPR七、現在時刻を示
すタイマTMとを使用する。
FIG. 3 is a flowchart of the transmission process by the transmitting side CPUI, in which the edge counter C counts the number of edges (rising and falling) of the pulse sent from the output port P1.
NT, a pulse width register D in which the width of the H (high) level and L (low) level of each pulse is set, a conveyor register CPR7 for timer coincidence interrupt, and a timer TM indicating the current time.

このルーチンはタイマTMの値がコンベアレジスタCP
Rの値と一致する毎に起動され、先ずステップ310〜
SinでカウンタCNTの値が判定される。本例は第2
図のように3つのデータチャンネルA−Cを繰り返すこ
とを想定しているので、カウンタCNTの値は0〜11
の範囲で変化する。
In this routine, the value of timer TM is set to conveyor register CP.
It is activated every time the value of R matches, and first steps 310 to
The value of the counter CNT is determined at Sin. This example is the second
Since it is assumed that three data channels A to C are repeated as shown in the figure, the value of counter CNT is 0 to 11.
Varies within the range of .

CNT=Oは最初のデータチャンネルAのへラダHAの
立下りを指す。従って、ステップSIOでCNT=Oと
判定されたらステップS20でレジスタDにヘッダII
Aの幅1msをセットする。そして、このヘッダHAは
Lレベルであるので、lll1s後にボートPIをLか
らHに立上げるデータ″“1゛をステップS31でポー
トPL用のレジスタにセットしてからステップS33に
移る。このステップS33でカウンタCNTの値を判定
し、CNT≧11であればステップS34でカウンタC
NTをクリアし、そうでなければステップS35でカウ
ンタCNTをインクリメントしてからステップS36へ
移る。このステップ336ではレジスタDの値と現在の
タイマTMの値を加算してその結果をコンベアレジスタ
CPHにセットする。
CNT=O refers to the falling edge of the first data channel A's Herada HA. Therefore, if it is determined that CNT=O in step SIO, header II is stored in register D in step S20.
Set the width of A to 1ms. Then, since this header HA is at the L level, data "1" for raising the port PI from L to H after llll1s is set in the register for the port PL in step S31, and then the process moves to step S33. In this step S33, the value of the counter CNT is determined, and if CNT≧11, the value of the counter CNT is determined in step S34.
NT is cleared, and if not, the counter CNT is incremented in step S35, and then the process moves to step S36. In this step 336, the value of register D and the current value of timer TM are added and the result is set in conveyor register CPH.

このようにすると、やがてタイマTMO値がコンベアレ
ジスタCPRO値と一致する1ms後にボー)P 1が
LからHに立上り、且つ本ルーチンが再度起動される。
In this way, 1 ms after the timer TMO value coincides with the conveyor register CPRO value, baud P1 rises from L to H, and this routine is restarted.

このときはCNT=1であるからステップSllからス
テップS21へ移り、ごこでレジスタDに(51)ms
がセットされる。
At this time, since CNT=1, the process moves from step Sll to step S21, and register D is now set to (51) ms.
is set.

これはパルス周期T=5msからヘッダHAの幅1ms
を引いた残りのHレベルの幅である。このときは、次に
ボートP1をHからLに立下げる必要があるので、ステ
ップS32でボートPl用のレジスタに“0゛をセット
しておく。次にステップS33に移るとCNT≧11で
ないと判定されるので、ステップS35でカウンタCN
TをインクリメントしくCNT=2になる)、またステ
ップS36でコンベアレジスタCPRに次の値(D+T
M)をセットして終了する。このときのDは(51) 
msである。
This is from the pulse period T = 5ms to the header HA width of 1ms.
This is the width of the remaining H level after subtracting . At this time, it is necessary to lower the boat P1 from H to L, so set "0" in the register for the boat P1 in step S32.Next, in step S33, if CNT≧11, Since the determination is made, the counter CN is set in step S35.
T is incremented so that CNT=2), and in step S36, the conveyor register CPR is set to the next value (D+T
Set M) and finish. D at this time is (51)
It is ms.

やがてタイマー数刻込みが発生すると、これはデータチ
ャンネルAのヘッダ部のパルスの立下りであるので、次
はそのデータ部の構成に移る。このときばCN T =
 2であるからステップSL2からステップS22へ分
岐し、ここでレジスタDにデータDAをセットする。こ
のとき前述したマージンとしてのデータ拡張子αを加え
てヘッダとの識別性を高める。このデータDAと拡張子
αは全てLレベルであるので、次はステップS31に移
り、P1←lにセットする。以下、ステップ333〜S
36を前述したケースと同様に通過して終了する。
Eventually, when the timer ticks down, this is the falling edge of the pulse in the header section of data channel A, so next we move on to the configuration of that data section. In this case, CN T =
2, the process branches from step SL2 to step S22, where data DA is set in register D. At this time, the aforementioned data extension α is added as a margin to improve the distinguishability from the header. Since this data DA and the extension α are all at the L level, the process moves to step S31 and is set to P1←l. Below, steps 333 to S
36 and ends in the same manner as in the case described above.

やがてタイマー数刻込みが発生すると、CNT−3であ
るからステップ313からステップS23へ分岐し、こ
こで残りのHレベルの幅(5−DA−α)がレジスタD
にセットされる。このときはステップS32でPi←0
にセットしてステップS33へ移る。
Eventually, when the timer ticks down, since it is CNT-3, the process branches from step 313 to step S23, where the remaining H level width (5-DA-α) is stored in register D.
is set to At this time, in step S32, Pi←0
, and the process moves to step S33.

以上のようにして次にタイマー数刻込みが発生するとボ
ートPlはHからLに立下るので、これでデータチャン
ネルAの全波形が完成する。ステップS 14〜S 1
 n、  S24〜S2 nはデータチャンネルB、C
についての同様の処理を示している。つまり、CNT=
4〜7がチャンネルBについてであり、CNT=8〜1
1がチャンネルCについてである。
As described above, when the timer ticks next, the boat Pl falls from H to L, so that the entire waveform of data channel A is completed. Steps S14 to S1
n, S24~S2 n is data channel B, C
A similar process is shown for . In other words, CNT=
4-7 are for channel B, CNT=8-1
1 is for channel C.

第4図は受信側CPU2による受信処理のフローチャー
トで、パルス幅レジスタDとタイマTMの他に、割込発
生時間レジスタRとヘッダ識別フラグFA、FB、FC
を使用する。
FIG. 4 is a flowchart of the reception process by the receiving side CPU 2, in which, in addition to the pulse width register D and timer TM, the interrupt occurrence time register R and header identification flags FA, FB, and FC are
use.

このルーチンはボートP2の入力レベルが変化する毎に
起動され、先ずステップS41で立下り(I(−L )
か立上り(L−H)かを判断する。立下りのときはステ
ップS42でレジスタRに割込み時のタイマTMO値を
セットしてからステップ343で割込みエツジを反転す
る。これに対し、立上りのときはステップ351でレジ
スタDに今回の割込み時刻TMから前回の割込み時刻R
を引いた値、つまりLレベルの幅をセットする。ステッ
プ352〜S54ではこのDの値を1ms、1.5ms
、  2msと比較してヘッダHA、HB、HCを判別
する。このとき、いずれかのヘッダと判定されればステ
ップ355〜S57で対応するヘッダ識別フラグFA−
FCの1つをセットする。
This routine is started every time the input level of boat P2 changes, and first, in step S41, the input level of boat P2 changes.
or rising (L-H). If it is a falling edge, the timer TMO value at the time of interrupt is set in register R in step S42, and then the interrupt edge is inverted in step 343. On the other hand, when the rising edge occurs, register D is stored from the current interrupt time TM to the previous interrupt time R in step 351.
Set the value after subtracting , that is, the width of the L level. In steps 352 to S54, the value of D is set to 1ms and 1.5ms.
, 2ms to determine the headers HA, HB, and HC. At this time, if it is determined that the header is one of the headers, the corresponding header identification flag FA-
Set one of the FCs.

ステップ352〜354の判定でいずれもN(ノー)で
あればステップS51のDの値はヘッダHA〜HCでは
ない、換言ずればデータDA〜D’Cのいずれかである
ので、ステップS61へ分岐する。ステップ561−3
63ではフラグFA〜FCの値からどのチャンネルのデ
ータかを判別する。FA=1であればステップS64で
データDAを算出する。この処理はレジスタDの値から
送信側で付加したデータ拡張子αを引く演算である。同
様にFB=1であればステップS65でデータDBを算
出し、FC=1であればステップ366でデータDCを
算出する。ごの後ステップ367〜S69でフラグFA
〜F” Cをクリアしてから、ステップS43へ移る。
If all of the determinations in steps 352 to 354 are N (no), the value of D in step S51 is not the headers HA to HC, in other words, it is any of the data DA to D'C, so the process branches to step S61. do. Step 561-3
At 63, it is determined which channel the data belongs to from the values of flags FA to FC. If FA=1, data DA is calculated in step S64. This process is an operation of subtracting the data extension α added on the transmitting side from the value of register D. Similarly, if FB=1, data DB is calculated in step S65, and if FC=1, data DC is calculated in step 366. After that, flag FA is set in steps 367 to S69.
~F” After clearing C, the process moves to step S43.

このシステムでは受信側の割込発生時間レジスタRのL
SBがlμsで、送信側のマージンがα=β−0,5m
sのとき、1/7000の分解能でデータ伝送できる。
In this system, the interrupt occurrence time register R on the receiving side is L.
SB is lμs and the margin on the transmitting side is α=β−0.5m
s, data can be transmitted with a resolution of 1/7000.

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

以上述べたように本発明によれば、各CPUの単一のボ
ートと両者間の単一の信号線だけを用いて複数種類のデ
ータを伝送できる利点がある。
As described above, according to the present invention, there is an advantage that a plurality of types of data can be transmitted using only a single port of each CPU and a single signal line between the two.

0

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

第1図は本発明の構成図、 第2図は本発明の伝送波形図、 第3図および第4図は本発明の実施例を示すフローチャ
ートである。 図中、1は送信側CPU、2は受信側CPU。 3は信号線、PL、P2はボート、HA−ICはヘッダ
、DA−DCはデータである。 出 願 人 富士通テン株式会社
FIG. 1 is a block diagram of the present invention, FIG. 2 is a transmission waveform diagram of the present invention, and FIGS. 3 and 4 are flowcharts showing embodiments of the present invention. In the figure, 1 is a transmitting side CPU, and 2 is a receiving side CPU. 3 is a signal line, PL and P2 are ports, HA-IC is a header, and DA-DC is data. Applicant Fujitsu Ten Ltd.

Claims (1)

【特許請求の範囲】[Claims] 1、一定周期(T)のパルス列の連続する2パルスずつ
を複数のデータチャンネル(A、B、C)に割当て、各
データチャンネルでは先行パルスのデューティで固有の
ヘッダ(HA、HB、HC)を送信し、また後続パルス
のデューティで任意のデータ(DA、DB、DC)を送
信することを特徴とするデータ通信方式。
1. Assign each two consecutive pulses of a pulse train with a constant period (T) to multiple data channels (A, B, C), and each data channel has a unique header (HA, HB, HC) based on the duty of the preceding pulse. A data communication method characterized by transmitting arbitrary data (DA, DB, DC) with the duty of subsequent pulses.
JP29070589A 1989-11-08 1989-11-08 Data communication method Expired - Lifetime JPH0771068B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29070589A JPH0771068B2 (en) 1989-11-08 1989-11-08 Data communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29070589A JPH0771068B2 (en) 1989-11-08 1989-11-08 Data communication method

Publications (2)

Publication Number Publication Date
JPH03151735A true JPH03151735A (en) 1991-06-27
JPH0771068B2 JPH0771068B2 (en) 1995-07-31

Family

ID=17759449

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29070589A Expired - Lifetime JPH0771068B2 (en) 1989-11-08 1989-11-08 Data communication method

Country Status (1)

Country Link
JP (1) JPH0771068B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007082360A (en) * 2005-09-16 2007-03-29 Hitachi Ltd Drive control unit for electric motor
JP2011167038A (en) * 2010-02-15 2011-08-25 Denso Corp Power conversion device
JP2011167039A (en) * 2010-02-15 2011-08-25 Denso Corp Power conversion device
JP2012161123A (en) * 2011-01-31 2012-08-23 Denso Corp Electronic equipment
JP2017034834A (en) * 2015-07-31 2017-02-09 株式会社デンソー Pwm signal processing device and pwm signal processing system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007082360A (en) * 2005-09-16 2007-03-29 Hitachi Ltd Drive control unit for electric motor
JP4600226B2 (en) * 2005-09-16 2010-12-15 株式会社日立製作所 Electric motor drive control device
JP2011167038A (en) * 2010-02-15 2011-08-25 Denso Corp Power conversion device
JP2011167039A (en) * 2010-02-15 2011-08-25 Denso Corp Power conversion device
JP2012161123A (en) * 2011-01-31 2012-08-23 Denso Corp Electronic equipment
JP2017034834A (en) * 2015-07-31 2017-02-09 株式会社デンソー Pwm signal processing device and pwm signal processing system

Also Published As

Publication number Publication date
JPH0771068B2 (en) 1995-07-31

Similar Documents

Publication Publication Date Title
PT81764A (en) PROCESS FOR THE TRANSMISSION OF PACKET SEQUET NUMBERS IN A PACKET TRANSMISSION SYSTEM OF
JPH03151735A (en) Data communication system
EP0317481A3 (en) Remote storage management mechanism and method
JP2753915B2 (en) Communication control device
SE437595B (en) CLUTCH DEVICE FOR TESTING A DATA TRANSFER
JPH03154457A (en) Data communication system
JP3389643B2 (en) Communication method of PWM data
JPH03114334A (en) Window flow control system
JPH065831B2 (en) Signal frame transmission method
JPS61848A (en) Bus selection system for decentralized control system
JPH04349732A (en) Communication equipment
JPS6125673U (en) Communication device for distributed control system
SU394789A1 (en) MULTI-CHANNEL DEVICE FOR CONNECTING SOURCES OF INFORMATION TO THE GENERAL HIGHWAY
JPS623453B2 (en)
JPS6151258A (en) Inter-controller interface
JPS623626B2 (en)
JPS61174855A (en) Information transmission method
JPH0412054B2 (en)
JPS63164548A (en) Transmission equipment
JPS6152752A (en) Fault display circuit
JPH04111648A (en) Data transfer system
JPS59186451A (en) Data transmission system
JPH04230560A (en) Bus system
JPS63201835A (en) Interruption control method
JPH02114745A (en) Data transmission reception system